]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/gdi.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initgdic |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
af309447 | 59 | #include <wx/imaglist.h> |
6d8b4f8d RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
8ab979d7 | 64 | |
8ab979d7 RD |
65 | |
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
f3d9dc1d | 70 | if (!target) { |
8ab979d7 | 71 | target = o; |
f3d9dc1d | 72 | } else if (target == Py_None) { |
8ab979d7 RD |
73 | Py_DECREF(Py_None); |
74 | target = o; | |
f3d9dc1d | 75 | } else { |
8ab979d7 RD |
76 | if (!PyTuple_Check(target)) { |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
f3d9dc1d RD |
81 | o3 = PyTuple_New(1); |
82 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
83 | |
84 | o2 = target; | |
f3d9dc1d RD |
85 | target = PySequence_Concat(o2, o3); |
86 | Py_DECREF(o2); | |
8ab979d7 RD |
87 | Py_DECREF(o3); |
88 | } | |
89 | return target; | |
90 | } | |
91 | ||
794c5cb1 RD |
92 | #if PYTHON_API_VERSION >= 1009 |
93 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
94 | #else | |
0122b7e3 | 95 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 96 | #endif |
e508a2b6 RD |
97 | |
98 | static wxString wxPyEmptyStr(""); | |
96bfd053 RD |
99 | // Implementations of some alternate "constructors" |
100 | ||
8ab979d7 RD |
101 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
102 | return new wxBitmap(width, height, depth); | |
103 | } | |
104 | ||
96bfd053 RD |
105 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
106 | char** cArray = NULL; | |
107 | int count; | |
108 | ||
109 | if (!PyList_Check(listOfStrings)) { | |
110 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
111 | return NULL; | |
112 | } | |
113 | count = PyList_Size(listOfStrings); | |
114 | cArray = new char*[count]; | |
115 | ||
116 | for(int x=0; x<count; x++) { | |
117 | // TODO: Need some validation and error checking here | |
118 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
119 | } | |
120 | return cArray; | |
121 | } | |
122 | ||
d56cebe7 | 123 | |
96bfd053 RD |
124 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
125 | char** cArray = NULL; | |
126 | wxBitmap* bmp; | |
127 | ||
128 | cArray = ConvertListOfStrings(listOfStrings); | |
129 | if (! cArray) | |
130 | return NULL; | |
131 | bmp = new wxBitmap(cArray); | |
132 | delete [] cArray; | |
133 | return bmp; | |
134 | } | |
135 | ||
136 | ||
137 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
138 | return new wxBitmap(icon); | |
139 | } | |
140 | ||
141 | ||
d56cebe7 RD |
142 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
143 | return new wxBitmap(bits, width, height, depth); | |
144 | } | |
926bb76c | 145 | |
4c9993c3 | 146 | |
d56cebe7 RD |
147 | // #ifdef __WXMSW__ |
148 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
149 | // int width, int height, int depth = 1) { | |
150 | // if (! PyString_Check(data)) { | |
151 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
152 | // return NULL; | |
153 | // } | |
154 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
155 | // } | |
156 | // #endif | |
8bf5d46e | 157 | |
8ab979d7 RD |
158 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
159 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
160 | } |
161 | // Implementations of some alternate "constructors" | |
162 | wxIcon* wxEmptyIcon() { | |
163 | return new wxIcon(); | |
164 | } | |
165 | ||
166 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
167 | char** cArray = NULL; | |
168 | wxIcon* icon; | |
169 | ||
170 | cArray = ConvertListOfStrings(listOfStrings); | |
171 | if (! cArray) | |
172 | return NULL; | |
173 | icon = new wxIcon(cArray); | |
174 | delete [] cArray; | |
175 | return icon; | |
8ab979d7 RD |
176 | } |
177 | // Alternate 'constructor' | |
9c039d08 | 178 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
179 | return new wxCursor(id); |
180 | } | |
181 | // Alternate 'constructor' | |
182 | wxColour* wxNamedColour(const wxString& colorName) { | |
183 | return new wxColour(colorName); | |
184 | } | |
ecc08ead RD |
185 | |
186 | class wxPyPen : public wxPen { | |
187 | public: | |
188 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
189 | : wxPen(colour, width, style) | |
190 | { m_dash = NULL; } | |
191 | ~wxPyPen() { | |
192 | if (m_dash) | |
181526ac | 193 | delete [] m_dash; |
ecc08ead RD |
194 | } |
195 | ||
196 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
181526ac RD |
197 | if (m_dash) |
198 | delete [] m_dash; | |
ecc08ead | 199 | m_dash = new wxDash[nb_dashes]; |
181526ac | 200 | for (int i=0; i<nb_dashes; i++) { |
ecc08ead | 201 | m_dash[i] = dash[i]; |
181526ac | 202 | } |
ecc08ead RD |
203 | wxPen::SetDashes(nb_dashes, m_dash); |
204 | } | |
205 | ||
206 | private: | |
207 | wxDash* m_dash; | |
208 | }; | |
9d37f964 RD |
209 | |
210 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
211 | *x1 = dc->MinX(); | |
212 | *y1 = dc->MinY(); | |
213 | *x2 = dc->MaxX(); | |
214 | *y2 = dc->MaxY(); | |
215 | } | |
8ab979d7 RD |
216 | // Alternate 'constructor' |
217 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
218 | return new wxMemoryDC(oldDC); | |
219 | } | |
af309447 | 220 | |
17c0e08c RD |
221 | #include <wx/metafile.h> |
222 | ||
af309447 | 223 | #if 0 |
8ab979d7 RD |
224 | extern wxFont * wxNORMAL_FONT; |
225 | extern wxFont * wxSMALL_FONT; | |
226 | extern wxFont * wxITALIC_FONT; | |
227 | extern wxFont * wxSWISS_FONT; | |
228 | extern wxPen * wxRED_PEN; | |
229 | extern wxPen * wxCYAN_PEN; | |
230 | extern wxPen * wxGREEN_PEN; | |
231 | extern wxPen * wxBLACK_PEN; | |
232 | extern wxPen * wxWHITE_PEN; | |
233 | extern wxPen * wxTRANSPARENT_PEN; | |
234 | extern wxPen * wxBLACK_DASHED_PEN; | |
235 | extern wxPen * wxGREY_PEN; | |
236 | extern wxPen * wxMEDIUM_GREY_PEN; | |
237 | extern wxPen * wxLIGHT_GREY_PEN; | |
238 | extern wxBrush * wxBLUE_BRUSH; | |
239 | extern wxBrush * wxGREEN_BRUSH; | |
240 | extern wxBrush * wxWHITE_BRUSH; | |
241 | extern wxBrush * wxBLACK_BRUSH; | |
242 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
243 | extern wxBrush * wxCYAN_BRUSH; | |
244 | extern wxBrush * wxRED_BRUSH; | |
245 | extern wxBrush * wxGREY_BRUSH; | |
246 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
247 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
248 | extern wxColour * wxBLACK; | |
249 | extern wxColour * wxWHITE; | |
250 | extern wxColour * wxRED; | |
251 | extern wxColour * wxBLUE; | |
252 | extern wxColour * wxGREEN; | |
253 | extern wxColour * wxCYAN; | |
254 | extern wxColour * wxLIGHT_GREY; | |
255 | extern wxCursor * wxSTANDARD_CURSOR; | |
256 | extern wxCursor * wxHOURGLASS_CURSOR; | |
257 | extern wxCursor * wxCROSS_CURSOR; | |
258 | extern wxBitmap wxNullBitmap; | |
259 | extern wxIcon wxNullIcon; | |
260 | extern wxCursor wxNullCursor; | |
261 | extern wxPen wxNullPen; | |
262 | extern wxBrush wxNullBrush; | |
263 | extern wxPalette wxNullPalette; | |
264 | extern wxFont wxNullFont; | |
265 | extern wxColour wxNullColour; | |
0569df0f RD |
266 | extern wxFontList * wxTheFontList; |
267 | extern wxPenList * wxThePenList; | |
6ee2116b | 268 | extern wxBrushList * wxTheBrushList; |
0569df0f | 269 | extern wxColourDatabase * wxTheColourDatabase; |
af309447 | 270 | |
1d99702e RD |
271 | #endif |
272 | #ifdef __cplusplus | |
273 | extern "C" { | |
af309447 | 274 | #endif |
1afc06c2 | 275 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
276 | PyObject * _resultobj; |
277 | wxBitmap * _result; | |
278 | int _arg0; | |
279 | int _arg1; | |
1d99702e | 280 | int _arg2 = (int ) -1; |
1afc06c2 | 281 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
282 | char _ptemp[128]; |
283 | ||
284 | self = self; | |
1afc06c2 | 285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 286 | return NULL; |
cf694132 | 287 | { |
4268f798 | 288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
289 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
290 | ||
4268f798 | 291 | wxPyEndAllowThreads(__tstate); |
493f1553 | 292 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
293 | } if (_result) { |
294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
295 | _resultobj = Py_BuildValue("s",_ptemp); | |
296 | } else { | |
297 | Py_INCREF(Py_None); | |
298 | _resultobj = Py_None; | |
299 | } | |
8ab979d7 RD |
300 | return _resultobj; |
301 | } | |
302 | ||
96bfd053 RD |
303 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
304 | PyObject * _resultobj; | |
305 | wxBitmap * _result; | |
306 | PyObject * _arg0; | |
307 | PyObject * _obj0 = 0; | |
308 | char *_kwnames[] = { "listOfStrings", NULL }; | |
309 | char _ptemp[128]; | |
310 | ||
311 | self = self; | |
312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
313 | return NULL; | |
314 | { | |
315 | _arg0 = _obj0; | |
316 | } | |
317 | { | |
4268f798 | 318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
319 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
320 | ||
4268f798 | 321 | wxPyEndAllowThreads(__tstate); |
493f1553 | 322 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
323 | } if (_result) { |
324 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
325 | _resultobj = Py_BuildValue("s",_ptemp); | |
326 | } else { | |
327 | Py_INCREF(Py_None); | |
328 | _resultobj = Py_None; | |
329 | } | |
330 | return _resultobj; | |
331 | } | |
332 | ||
333 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
334 | PyObject * _resultobj; | |
335 | wxBitmap * _result; | |
336 | wxIcon * _arg0; | |
337 | PyObject * _argo0 = 0; | |
338 | char *_kwnames[] = { "icon", NULL }; | |
339 | char _ptemp[128]; | |
340 | ||
341 | self = self; | |
342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
343 | return NULL; | |
344 | if (_argo0) { | |
345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
348 | return NULL; | |
349 | } | |
350 | } | |
351 | { | |
4268f798 | 352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
353 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
354 | ||
4268f798 | 355 | wxPyEndAllowThreads(__tstate); |
493f1553 | 356 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
357 | } if (_result) { |
358 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
359 | _resultobj = Py_BuildValue("s",_ptemp); | |
360 | } else { | |
361 | Py_INCREF(Py_None); | |
362 | _resultobj = Py_None; | |
363 | } | |
364 | return _resultobj; | |
365 | } | |
366 | ||
d56cebe7 | 367 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
368 | PyObject * _resultobj; |
369 | wxBitmap * _result; | |
d56cebe7 RD |
370 | char * _arg0; |
371 | int _arg1; | |
8bf5d46e | 372 | int _arg2; |
d56cebe7 RD |
373 | int _arg3 = (int ) 1; |
374 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
8bf5d46e RD |
375 | char _ptemp[128]; |
376 | ||
377 | self = self; | |
d56cebe7 | 378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
379 | return NULL; |
380 | { | |
4268f798 | 381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 | 382 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 383 | |
4268f798 | 384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 385 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
386 | } if (_result) { |
387 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
388 | _resultobj = Py_BuildValue("s",_ptemp); | |
389 | } else { | |
390 | Py_INCREF(Py_None); | |
391 | _resultobj = Py_None; | |
392 | } | |
8bf5d46e RD |
393 | return _resultobj; |
394 | } | |
395 | ||
1afc06c2 | 396 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
397 | PyObject * _resultobj; |
398 | wxMask * _result; | |
399 | wxBitmap * _arg0; | |
400 | wxColour * _arg1; | |
1d99702e | 401 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
402 | wxColour temp; |
403 | PyObject * _obj1 = 0; | |
1afc06c2 | 404 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
405 | char _ptemp[128]; |
406 | ||
407 | self = self; | |
f6bcfd97 | 408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 409 | return NULL; |
1d99702e RD |
410 | if (_argo0) { |
411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
414 | return NULL; | |
415 | } | |
416 | } | |
f6bcfd97 BP |
417 | { |
418 | _arg1 = &temp; | |
419 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 420 | return NULL; |
f6bcfd97 | 421 | } |
cf694132 | 422 | { |
4268f798 | 423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
424 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
425 | ||
4268f798 | 426 | wxPyEndAllowThreads(__tstate); |
493f1553 | 427 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
428 | } if (_result) { |
429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
430 | _resultobj = Py_BuildValue("s",_ptemp); | |
431 | } else { | |
432 | Py_INCREF(Py_None); | |
433 | _resultobj = Py_None; | |
434 | } | |
8ab979d7 RD |
435 | return _resultobj; |
436 | } | |
437 | ||
96bfd053 RD |
438 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
439 | PyObject * _resultobj; | |
440 | wxIcon * _result; | |
441 | char *_kwnames[] = { NULL }; | |
442 | char _ptemp[128]; | |
443 | ||
444 | self = self; | |
445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
446 | return NULL; | |
447 | { | |
4268f798 | 448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
449 | _result = (wxIcon *)wxEmptyIcon(); |
450 | ||
4268f798 | 451 | wxPyEndAllowThreads(__tstate); |
493f1553 | 452 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
453 | } if (_result) { |
454 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
455 | _resultobj = Py_BuildValue("s",_ptemp); | |
456 | } else { | |
457 | Py_INCREF(Py_None); | |
458 | _resultobj = Py_None; | |
459 | } | |
460 | return _resultobj; | |
461 | } | |
462 | ||
463 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
464 | PyObject * _resultobj; | |
465 | wxIcon * _result; | |
466 | PyObject * _arg0; | |
467 | PyObject * _obj0 = 0; | |
468 | char *_kwnames[] = { "listOfStrings", NULL }; | |
469 | char _ptemp[128]; | |
470 | ||
471 | self = self; | |
472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
473 | return NULL; | |
474 | { | |
475 | _arg0 = _obj0; | |
476 | } | |
477 | { | |
4268f798 | 478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
479 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
480 | ||
4268f798 | 481 | wxPyEndAllowThreads(__tstate); |
493f1553 | 482 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
483 | } if (_result) { |
484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
485 | _resultobj = Py_BuildValue("s",_ptemp); | |
486 | } else { | |
487 | Py_INCREF(Py_None); | |
488 | _resultobj = Py_None; | |
489 | } | |
490 | return _resultobj; | |
491 | } | |
492 | ||
1afc06c2 | 493 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
494 | PyObject * _resultobj; |
495 | wxCursor * _result; | |
496 | int _arg0; | |
1afc06c2 | 497 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
498 | char _ptemp[128]; |
499 | ||
500 | self = self; | |
1afc06c2 | 501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 502 | return NULL; |
cf694132 | 503 | { |
4268f798 | 504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
505 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
506 | ||
4268f798 | 507 | wxPyEndAllowThreads(__tstate); |
493f1553 | 508 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
509 | } if (_result) { |
510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
511 | _resultobj = Py_BuildValue("s",_ptemp); | |
512 | } else { | |
513 | Py_INCREF(Py_None); | |
514 | _resultobj = Py_None; | |
515 | } | |
8ab979d7 RD |
516 | return _resultobj; |
517 | } | |
518 | ||
1afc06c2 | 519 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
520 | PyObject * _resultobj; |
521 | wxColour * _result; | |
522 | wxString * _arg0; | |
523 | PyObject * _obj0 = 0; | |
1afc06c2 | 524 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
525 | char _ptemp[128]; |
526 | ||
527 | self = self; | |
1afc06c2 | 528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
529 | return NULL; |
530 | { | |
185d7c3e RD |
531 | #if PYTHON_API_VERSION >= 1009 |
532 | char* tmpPtr; int tmpSize; | |
533 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 534 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
535 | return NULL; |
536 | } | |
537 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
538 | return NULL; | |
539 | _arg0 = new wxString(tmpPtr, tmpSize); | |
540 | #else | |
8ab979d7 RD |
541 | if (!PyString_Check(_obj0)) { |
542 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
543 | return NULL; | |
544 | } | |
185d7c3e RD |
545 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
546 | #endif | |
8ab979d7 | 547 | } |
cf694132 | 548 | { |
4268f798 | 549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
550 | _result = (wxColour *)wxNamedColour(*_arg0); |
551 | ||
4268f798 | 552 | wxPyEndAllowThreads(__tstate); |
493f1553 | 553 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
554 | } if (_result) { |
555 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
556 | _resultobj = Py_BuildValue("s",_ptemp); | |
557 | } else { | |
558 | Py_INCREF(Py_None); | |
559 | _resultobj = Py_None; | |
560 | } | |
8ab979d7 RD |
561 | { |
562 | if (_obj0) | |
563 | delete _arg0; | |
564 | } | |
565 | return _resultobj; | |
566 | } | |
567 | ||
1afc06c2 | 568 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
569 | PyObject * _resultobj; |
570 | wxMemoryDC * _result; | |
571 | wxDC * _arg0; | |
1d99702e | 572 | PyObject * _argo0 = 0; |
1afc06c2 | 573 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
574 | char _ptemp[128]; |
575 | ||
576 | self = self; | |
1afc06c2 | 577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 578 | return NULL; |
1d99702e RD |
579 | if (_argo0) { |
580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
583 | return NULL; | |
584 | } | |
585 | } | |
cf694132 | 586 | { |
4268f798 | 587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
588 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
589 | ||
4268f798 | 590 | wxPyEndAllowThreads(__tstate); |
493f1553 | 591 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
592 | } if (_result) { |
593 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
594 | _resultobj = Py_BuildValue("s",_ptemp); | |
595 | } else { | |
596 | Py_INCREF(Py_None); | |
597 | _resultobj = Py_None; | |
598 | } | |
8ab979d7 RD |
599 | return _resultobj; |
600 | } | |
601 | ||
602 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
603 | ||
604 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
605 | return 1; | |
606 | } | |
607 | ||
608 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
609 | PyObject * pyobj; | |
610 | char ptemp[128]; | |
611 | ||
612 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
613 | pyobj = PyString_FromString(ptemp); | |
614 | return pyobj; | |
615 | } | |
616 | ||
617 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
618 | ||
619 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
620 | return 1; | |
621 | } | |
622 | ||
623 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
624 | PyObject * pyobj; | |
625 | char ptemp[128]; | |
626 | ||
627 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
628 | pyobj = PyString_FromString(ptemp); | |
629 | return pyobj; | |
630 | } | |
631 | ||
632 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
633 | ||
634 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
635 | return 1; | |
636 | } | |
637 | ||
638 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
639 | PyObject * pyobj; | |
640 | char ptemp[128]; | |
641 | ||
642 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
643 | pyobj = PyString_FromString(ptemp); | |
644 | return pyobj; | |
645 | } | |
646 | ||
647 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
648 | ||
649 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
650 | return 1; | |
651 | } | |
652 | ||
653 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
654 | PyObject * pyobj; | |
655 | char ptemp[128]; | |
656 | ||
657 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
658 | pyobj = PyString_FromString(ptemp); | |
659 | return pyobj; | |
660 | } | |
661 | ||
662 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
663 | ||
664 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
665 | return 1; | |
666 | } | |
667 | ||
668 | static PyObject *_wrap_wxRED_PEN_get() { | |
669 | PyObject * pyobj; | |
670 | char ptemp[128]; | |
671 | ||
672 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
673 | pyobj = PyString_FromString(ptemp); | |
674 | return pyobj; | |
675 | } | |
676 | ||
677 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
678 | ||
679 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
680 | return 1; | |
681 | } | |
682 | ||
683 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
684 | PyObject * pyobj; | |
685 | char ptemp[128]; | |
686 | ||
687 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
688 | pyobj = PyString_FromString(ptemp); | |
689 | return pyobj; | |
690 | } | |
691 | ||
692 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
693 | ||
694 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
695 | return 1; | |
696 | } | |
697 | ||
698 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
699 | PyObject * pyobj; | |
700 | char ptemp[128]; | |
701 | ||
702 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
703 | pyobj = PyString_FromString(ptemp); | |
704 | return pyobj; | |
705 | } | |
706 | ||
707 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
708 | ||
709 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
710 | return 1; | |
711 | } | |
712 | ||
713 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
714 | PyObject * pyobj; | |
715 | char ptemp[128]; | |
716 | ||
717 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
718 | pyobj = PyString_FromString(ptemp); | |
719 | return pyobj; | |
720 | } | |
721 | ||
722 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
723 | ||
724 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
725 | return 1; | |
726 | } | |
727 | ||
728 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
729 | PyObject * pyobj; | |
730 | char ptemp[128]; | |
731 | ||
732 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
733 | pyobj = PyString_FromString(ptemp); | |
734 | return pyobj; | |
735 | } | |
736 | ||
737 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
738 | ||
739 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
740 | return 1; | |
741 | } | |
742 | ||
743 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
744 | PyObject * pyobj; | |
745 | char ptemp[128]; | |
746 | ||
747 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
748 | pyobj = PyString_FromString(ptemp); | |
749 | return pyobj; | |
750 | } | |
751 | ||
752 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
753 | ||
754 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
755 | return 1; | |
756 | } | |
757 | ||
758 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
759 | PyObject * pyobj; | |
760 | char ptemp[128]; | |
761 | ||
762 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
763 | pyobj = PyString_FromString(ptemp); | |
764 | return pyobj; | |
765 | } | |
766 | ||
767 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
768 | ||
769 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
770 | return 1; | |
771 | } | |
772 | ||
773 | static PyObject *_wrap_wxGREY_PEN_get() { | |
774 | PyObject * pyobj; | |
775 | char ptemp[128]; | |
776 | ||
777 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
778 | pyobj = PyString_FromString(ptemp); | |
779 | return pyobj; | |
780 | } | |
781 | ||
782 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
783 | ||
784 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
785 | return 1; | |
786 | } | |
787 | ||
788 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
789 | PyObject * pyobj; | |
790 | char ptemp[128]; | |
791 | ||
792 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
793 | pyobj = PyString_FromString(ptemp); | |
794 | return pyobj; | |
795 | } | |
796 | ||
797 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
798 | ||
799 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
800 | return 1; | |
801 | } | |
802 | ||
803 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
804 | PyObject * pyobj; | |
805 | char ptemp[128]; | |
806 | ||
807 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
808 | pyobj = PyString_FromString(ptemp); | |
809 | return pyobj; | |
810 | } | |
811 | ||
812 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
813 | ||
814 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
815 | return 1; | |
816 | } | |
817 | ||
818 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
819 | PyObject * pyobj; | |
820 | char ptemp[128]; | |
821 | ||
822 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
823 | pyobj = PyString_FromString(ptemp); | |
824 | return pyobj; | |
825 | } | |
826 | ||
827 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
828 | ||
829 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
830 | return 1; | |
831 | } | |
832 | ||
833 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
834 | PyObject * pyobj; | |
835 | char ptemp[128]; | |
836 | ||
837 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
838 | pyobj = PyString_FromString(ptemp); | |
839 | return pyobj; | |
840 | } | |
841 | ||
842 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
843 | ||
844 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
845 | return 1; | |
846 | } | |
847 | ||
848 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
849 | PyObject * pyobj; | |
850 | char ptemp[128]; | |
851 | ||
852 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
853 | pyobj = PyString_FromString(ptemp); | |
854 | return pyobj; | |
855 | } | |
856 | ||
857 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
858 | ||
859 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
860 | return 1; | |
861 | } | |
862 | ||
863 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
864 | PyObject * pyobj; | |
865 | char ptemp[128]; | |
866 | ||
867 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
868 | pyobj = PyString_FromString(ptemp); | |
869 | return pyobj; | |
870 | } | |
871 | ||
872 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
873 | ||
874 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
875 | return 1; | |
876 | } | |
877 | ||
878 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
879 | PyObject * pyobj; | |
880 | char ptemp[128]; | |
881 | ||
882 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
883 | pyobj = PyString_FromString(ptemp); | |
884 | return pyobj; | |
885 | } | |
886 | ||
887 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
888 | ||
889 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
890 | return 1; | |
891 | } | |
892 | ||
893 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
894 | PyObject * pyobj; | |
895 | char ptemp[128]; | |
896 | ||
897 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
898 | pyobj = PyString_FromString(ptemp); | |
899 | return pyobj; | |
900 | } | |
901 | ||
902 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
903 | ||
904 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
905 | return 1; | |
906 | } | |
907 | ||
908 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
909 | PyObject * pyobj; | |
910 | char ptemp[128]; | |
911 | ||
912 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
913 | pyobj = PyString_FromString(ptemp); | |
914 | return pyobj; | |
915 | } | |
916 | ||
917 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
918 | ||
919 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
920 | return 1; | |
921 | } | |
922 | ||
923 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
924 | PyObject * pyobj; | |
925 | char ptemp[128]; | |
926 | ||
927 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
928 | pyobj = PyString_FromString(ptemp); | |
929 | return pyobj; | |
930 | } | |
931 | ||
932 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
933 | ||
934 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
935 | return 1; | |
936 | } | |
937 | ||
938 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
939 | PyObject * pyobj; | |
940 | char ptemp[128]; | |
941 | ||
942 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
943 | pyobj = PyString_FromString(ptemp); | |
944 | return pyobj; | |
945 | } | |
946 | ||
947 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
948 | ||
949 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
950 | return 1; | |
951 | } | |
952 | ||
953 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
954 | PyObject * pyobj; | |
955 | char ptemp[128]; | |
956 | ||
957 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
958 | pyobj = PyString_FromString(ptemp); | |
959 | return pyobj; | |
960 | } | |
961 | ||
962 | static int _wrap_wxBLACK_set(PyObject *val) { | |
963 | ||
964 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
965 | return 1; | |
966 | } | |
967 | ||
968 | static PyObject *_wrap_wxBLACK_get() { | |
969 | PyObject * pyobj; | |
970 | char ptemp[128]; | |
971 | ||
972 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
973 | pyobj = PyString_FromString(ptemp); | |
974 | return pyobj; | |
975 | } | |
976 | ||
977 | static int _wrap_wxWHITE_set(PyObject *val) { | |
978 | ||
979 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
980 | return 1; | |
981 | } | |
982 | ||
983 | static PyObject *_wrap_wxWHITE_get() { | |
984 | PyObject * pyobj; | |
985 | char ptemp[128]; | |
986 | ||
987 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
988 | pyobj = PyString_FromString(ptemp); | |
989 | return pyobj; | |
990 | } | |
991 | ||
992 | static int _wrap_wxRED_set(PyObject *val) { | |
993 | ||
994 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
995 | return 1; | |
996 | } | |
997 | ||
998 | static PyObject *_wrap_wxRED_get() { | |
999 | PyObject * pyobj; | |
1000 | char ptemp[128]; | |
1001 | ||
1002 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1003 | pyobj = PyString_FromString(ptemp); | |
1004 | return pyobj; | |
1005 | } | |
1006 | ||
1007 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1008 | ||
1009 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1010 | return 1; | |
1011 | } | |
1012 | ||
1013 | static PyObject *_wrap_wxBLUE_get() { | |
1014 | PyObject * pyobj; | |
1015 | char ptemp[128]; | |
1016 | ||
1017 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1018 | pyobj = PyString_FromString(ptemp); | |
1019 | return pyobj; | |
1020 | } | |
1021 | ||
1022 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1023 | ||
1024 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1025 | return 1; | |
1026 | } | |
1027 | ||
1028 | static PyObject *_wrap_wxGREEN_get() { | |
1029 | PyObject * pyobj; | |
1030 | char ptemp[128]; | |
1031 | ||
1032 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1033 | pyobj = PyString_FromString(ptemp); | |
1034 | return pyobj; | |
1035 | } | |
1036 | ||
1037 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1038 | ||
1039 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1040 | return 1; | |
1041 | } | |
1042 | ||
1043 | static PyObject *_wrap_wxCYAN_get() { | |
1044 | PyObject * pyobj; | |
1045 | char ptemp[128]; | |
1046 | ||
1047 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1048 | pyobj = PyString_FromString(ptemp); | |
1049 | return pyobj; | |
1050 | } | |
1051 | ||
1052 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1053 | ||
1054 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1055 | return 1; | |
1056 | } | |
1057 | ||
1058 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1059 | PyObject * pyobj; | |
1060 | char ptemp[128]; | |
1061 | ||
1062 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1063 | pyobj = PyString_FromString(ptemp); | |
1064 | return pyobj; | |
1065 | } | |
1066 | ||
1067 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1068 | ||
1069 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1070 | return 1; | |
1071 | } | |
1072 | ||
1073 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1074 | PyObject * pyobj; | |
1075 | char ptemp[128]; | |
1076 | ||
1077 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1078 | pyobj = PyString_FromString(ptemp); | |
1079 | return pyobj; | |
1080 | } | |
1081 | ||
1082 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1083 | ||
1084 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1085 | return 1; | |
1086 | } | |
1087 | ||
1088 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1089 | PyObject * pyobj; | |
1090 | char ptemp[128]; | |
1091 | ||
1092 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1093 | pyobj = PyString_FromString(ptemp); | |
1094 | return pyobj; | |
1095 | } | |
1096 | ||
1097 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1098 | ||
1099 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1100 | return 1; | |
1101 | } | |
1102 | ||
1103 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1104 | PyObject * pyobj; | |
1105 | char ptemp[128]; | |
1106 | ||
1107 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1108 | pyobj = PyString_FromString(ptemp); | |
1109 | return pyobj; | |
1110 | } | |
1111 | ||
1112 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1113 | ||
1114 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1115 | return 1; | |
1116 | } | |
1117 | ||
1118 | static PyObject *_wrap_wxNullBitmap_get() { | |
1119 | PyObject * pyobj; | |
1120 | char ptemp[128]; | |
1121 | ||
1122 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1123 | pyobj = PyString_FromString(ptemp); | |
1124 | return pyobj; | |
1125 | } | |
1126 | ||
1127 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1128 | ||
1129 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1130 | return 1; | |
1131 | } | |
1132 | ||
1133 | static PyObject *_wrap_wxNullIcon_get() { | |
1134 | PyObject * pyobj; | |
1135 | char ptemp[128]; | |
1136 | ||
1137 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1138 | pyobj = PyString_FromString(ptemp); | |
1139 | return pyobj; | |
1140 | } | |
1141 | ||
1142 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1143 | ||
1144 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1145 | return 1; | |
1146 | } | |
1147 | ||
1148 | static PyObject *_wrap_wxNullCursor_get() { | |
1149 | PyObject * pyobj; | |
1150 | char ptemp[128]; | |
1151 | ||
1152 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1153 | pyobj = PyString_FromString(ptemp); | |
1154 | return pyobj; | |
1155 | } | |
1156 | ||
1157 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1158 | ||
1159 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1160 | return 1; | |
1161 | } | |
1162 | ||
1163 | static PyObject *_wrap_wxNullPen_get() { | |
1164 | PyObject * pyobj; | |
1165 | char ptemp[128]; | |
1166 | ||
1167 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1168 | pyobj = PyString_FromString(ptemp); | |
1169 | return pyobj; | |
1170 | } | |
1171 | ||
1172 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1173 | ||
1174 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1175 | return 1; | |
1176 | } | |
1177 | ||
1178 | static PyObject *_wrap_wxNullBrush_get() { | |
1179 | PyObject * pyobj; | |
1180 | char ptemp[128]; | |
1181 | ||
1182 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1183 | pyobj = PyString_FromString(ptemp); | |
1184 | return pyobj; | |
1185 | } | |
1186 | ||
1187 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1188 | ||
1189 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1190 | return 1; | |
1191 | } | |
1192 | ||
1193 | static PyObject *_wrap_wxNullPalette_get() { | |
1194 | PyObject * pyobj; | |
1195 | char ptemp[128]; | |
1196 | ||
1197 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1198 | pyobj = PyString_FromString(ptemp); | |
1199 | return pyobj; | |
1200 | } | |
1201 | ||
1202 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1203 | ||
1204 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1205 | return 1; | |
1206 | } | |
1207 | ||
1208 | static PyObject *_wrap_wxNullFont_get() { | |
1209 | PyObject * pyobj; | |
1210 | char ptemp[128]; | |
1211 | ||
1212 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1213 | pyobj = PyString_FromString(ptemp); | |
1214 | return pyobj; | |
1215 | } | |
1216 | ||
1217 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1218 | ||
1219 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1220 | return 1; | |
1221 | } | |
1222 | ||
1223 | static PyObject *_wrap_wxNullColour_get() { | |
1224 | PyObject * pyobj; | |
1225 | char ptemp[128]; | |
1226 | ||
1227 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1228 | pyobj = PyString_FromString(ptemp); | |
1229 | return pyobj; | |
1230 | } | |
1231 | ||
0569df0f RD |
1232 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1233 | ||
1234 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1235 | return 1; | |
1236 | } | |
1237 | ||
1238 | static PyObject *_wrap_wxTheFontList_get() { | |
1239 | PyObject * pyobj; | |
1240 | char ptemp[128]; | |
1241 | ||
1242 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1243 | pyobj = PyString_FromString(ptemp); | |
1244 | return pyobj; | |
1245 | } | |
1246 | ||
1247 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1248 | ||
1249 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1250 | return 1; | |
1251 | } | |
1252 | ||
1253 | static PyObject *_wrap_wxThePenList_get() { | |
1254 | PyObject * pyobj; | |
1255 | char ptemp[128]; | |
1256 | ||
1257 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1258 | pyobj = PyString_FromString(ptemp); | |
1259 | return pyobj; | |
1260 | } | |
1261 | ||
1262 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1263 | ||
1264 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1265 | return 1; | |
1266 | } | |
1267 | ||
1268 | static PyObject *_wrap_wxTheBrushList_get() { | |
1269 | PyObject * pyobj; | |
1270 | char ptemp[128]; | |
1271 | ||
6ee2116b | 1272 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
0569df0f RD |
1273 | pyobj = PyString_FromString(ptemp); |
1274 | return pyobj; | |
1275 | } | |
1276 | ||
1277 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1278 | ||
1279 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1280 | return 1; | |
1281 | } | |
1282 | ||
1283 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1284 | PyObject * pyobj; | |
1285 | char ptemp[128]; | |
1286 | ||
1287 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1288 | pyobj = PyString_FromString(ptemp); | |
1289 | return pyobj; | |
1290 | } | |
1291 | ||
9416aa89 RD |
1292 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1293 | wxGDIObject *src; | |
1294 | wxObject *dest; | |
1295 | src = (wxGDIObject *) ptr; | |
1296 | dest = (wxObject *) src; | |
1297 | return (void *) dest; | |
1298 | } | |
1299 | ||
1300 | #define new_wxGDIObject() (new wxGDIObject()) | |
1301 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1302 | PyObject * _resultobj; | |
1303 | wxGDIObject * _result; | |
1304 | char *_kwnames[] = { NULL }; | |
1305 | char _ptemp[128]; | |
1306 | ||
1307 | self = self; | |
1308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1309 | return NULL; | |
1310 | { | |
4268f798 | 1311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1312 | _result = (wxGDIObject *)new_wxGDIObject(); |
1313 | ||
4268f798 | 1314 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1315 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1316 | } if (_result) { |
1317 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1318 | _resultobj = Py_BuildValue("s",_ptemp); | |
1319 | } else { | |
1320 | Py_INCREF(Py_None); | |
1321 | _resultobj = Py_None; | |
1322 | } | |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1327 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxGDIObject * _arg0; | |
1330 | PyObject * _argo0 = 0; | |
1331 | char *_kwnames[] = { "self", NULL }; | |
1332 | ||
1333 | self = self; | |
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1335 | return NULL; | |
1336 | if (_argo0) { | |
1337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1340 | return NULL; | |
1341 | } | |
1342 | } | |
1343 | { | |
4268f798 | 1344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1345 | delete_wxGDIObject(_arg0); |
1346 | ||
4268f798 | 1347 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1348 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1349 | } Py_INCREF(Py_None); |
1350 | _resultobj = Py_None; | |
1351 | return _resultobj; | |
1352 | } | |
1353 | ||
1354 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1355 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | bool _result; | |
1358 | wxGDIObject * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | ||
1362 | self = self; | |
1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1364 | return NULL; | |
1365 | if (_argo0) { | |
1366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1369 | return NULL; | |
1370 | } | |
1371 | } | |
1372 | { | |
4268f798 | 1373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1374 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
1375 | ||
4268f798 | 1376 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1377 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1378 | } _resultobj = Py_BuildValue("i",_result); |
1379 | return _resultobj; | |
1380 | } | |
1381 | ||
1382 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1383 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1384 | PyObject * _resultobj; | |
1385 | wxGDIObject * _arg0; | |
1386 | bool _arg1; | |
1387 | PyObject * _argo0 = 0; | |
1388 | int tempbool1; | |
1389 | char *_kwnames[] = { "self","visible", NULL }; | |
1390 | ||
1391 | self = self; | |
1392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1393 | return NULL; | |
1394 | if (_argo0) { | |
1395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1398 | return NULL; | |
1399 | } | |
1400 | } | |
1401 | _arg1 = (bool ) tempbool1; | |
1402 | { | |
4268f798 | 1403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1404 | wxGDIObject_SetVisible(_arg0,_arg1); |
1405 | ||
4268f798 | 1406 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1407 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1408 | } Py_INCREF(Py_None); |
1409 | _resultobj = Py_None; | |
1410 | return _resultobj; | |
1411 | } | |
1412 | ||
1413 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1414 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1415 | PyObject * _resultobj; | |
1416 | bool _result; | |
1417 | wxGDIObject * _arg0; | |
1418 | PyObject * _argo0 = 0; | |
1419 | char *_kwnames[] = { "self", NULL }; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1423 | return NULL; | |
1424 | if (_argo0) { | |
1425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1428 | return NULL; | |
1429 | } | |
1430 | } | |
1431 | { | |
4268f798 | 1432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1433 | _result = (bool )wxGDIObject_IsNull(_arg0); |
1434 | ||
4268f798 | 1435 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1436 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1437 | } _resultobj = Py_BuildValue("i",_result); |
1438 | return _resultobj; | |
1439 | } | |
1440 | ||
1441 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1442 | wxBitmap *src; | |
1443 | wxGDIObject *dest; | |
1444 | src = (wxBitmap *) ptr; | |
1445 | dest = (wxGDIObject *) src; | |
1446 | return (void *) dest; | |
1447 | } | |
1448 | ||
1449 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1450 | wxBitmap *src; | |
1451 | wxObject *dest; | |
1452 | src = (wxBitmap *) ptr; | |
1453 | dest = (wxObject *) src; | |
1454 | return (void *) dest; | |
1455 | } | |
1456 | ||
6999b0d8 RD |
1457 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1458 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1459 | PyObject * _resultobj; |
6999b0d8 RD |
1460 | wxBitmap * _result; |
1461 | wxString * _arg0; | |
b37c7e1d | 1462 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
6999b0d8 RD |
1463 | PyObject * _obj0 = 0; |
1464 | char *_kwnames[] = { "name","type", NULL }; | |
1465 | char _ptemp[128]; | |
8ab979d7 RD |
1466 | |
1467 | self = self; | |
b37c7e1d | 1468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1469 | return NULL; |
6999b0d8 | 1470 | { |
185d7c3e RD |
1471 | #if PYTHON_API_VERSION >= 1009 |
1472 | char* tmpPtr; int tmpSize; | |
1473 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1474 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1475 | return NULL; |
1476 | } | |
1477 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1478 | return NULL; | |
1479 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1480 | #else | |
6999b0d8 RD |
1481 | if (!PyString_Check(_obj0)) { |
1482 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1483 | return NULL; |
8ab979d7 | 1484 | } |
185d7c3e RD |
1485 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1486 | #endif | |
6999b0d8 | 1487 | } |
cf694132 | 1488 | { |
4268f798 | 1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1490 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 | 1491 | |
4268f798 | 1492 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1493 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1494 | } if (_result) { |
1495 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1496 | _resultobj = Py_BuildValue("s",_ptemp); | |
1497 | } else { | |
1498 | Py_INCREF(Py_None); | |
1499 | _resultobj = Py_None; | |
1500 | } | |
1501 | { | |
1502 | if (_obj0) | |
1503 | delete _arg0; | |
1504 | } | |
8ab979d7 RD |
1505 | return _resultobj; |
1506 | } | |
1507 | ||
6999b0d8 RD |
1508 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1509 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1510 | PyObject * _resultobj; |
1511 | wxBitmap * _arg0; | |
1d99702e | 1512 | PyObject * _argo0 = 0; |
6999b0d8 | 1513 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1514 | |
1515 | self = self; | |
6999b0d8 | 1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1517 | return NULL; |
1d99702e RD |
1518 | if (_argo0) { |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1522 | return NULL; |
1523 | } | |
1524 | } | |
cf694132 | 1525 | { |
4268f798 | 1526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1527 | delete_wxBitmap(_arg0); |
cf694132 | 1528 | |
4268f798 | 1529 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1530 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1531 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1532 | _resultobj = Py_None; |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
6999b0d8 RD |
1536 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1537 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1538 | PyObject * _resultobj; |
6999b0d8 | 1539 | wxPalette * _result; |
8ab979d7 | 1540 | wxBitmap * _arg0; |
1d99702e | 1541 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1542 | char *_kwnames[] = { "self", NULL }; |
1543 | char _ptemp[128]; | |
8ab979d7 RD |
1544 | |
1545 | self = self; | |
6999b0d8 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1547 | return NULL; |
1d99702e RD |
1548 | if (_argo0) { |
1549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1552 | return NULL; |
1553 | } | |
1554 | } | |
cf694132 | 1555 | { |
4268f798 | 1556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1557 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 | 1558 | |
4268f798 | 1559 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1560 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1561 | } if (_result) { |
1562 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1563 | _resultobj = Py_BuildValue("s",_ptemp); | |
1564 | } else { | |
1565 | Py_INCREF(Py_None); | |
1566 | _resultobj = Py_None; | |
1567 | } | |
8ab979d7 RD |
1568 | return _resultobj; |
1569 | } | |
1570 | ||
6999b0d8 RD |
1571 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1572 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1573 | PyObject * _resultobj; |
1574 | wxMask * _result; | |
1575 | wxBitmap * _arg0; | |
1d99702e | 1576 | PyObject * _argo0 = 0; |
6999b0d8 | 1577 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1578 | char _ptemp[128]; |
1579 | ||
1580 | self = self; | |
6999b0d8 | 1581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1582 | return NULL; |
1d99702e RD |
1583 | if (_argo0) { |
1584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1587 | return NULL; |
1588 | } | |
1589 | } | |
cf694132 | 1590 | { |
4268f798 | 1591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1592 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 | 1593 | |
4268f798 | 1594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1595 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1596 | } if (_result) { |
1597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1598 | _resultobj = Py_BuildValue("s",_ptemp); | |
1599 | } else { | |
1600 | Py_INCREF(Py_None); | |
1601 | _resultobj = Py_None; | |
1602 | } | |
8ab979d7 RD |
1603 | return _resultobj; |
1604 | } | |
1605 | ||
6999b0d8 RD |
1606 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1607 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1608 | PyObject * _resultobj; |
6999b0d8 RD |
1609 | bool _result; |
1610 | wxBitmap * _arg0; | |
1611 | wxString * _arg1; | |
b37c7e1d | 1612 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
6999b0d8 RD |
1613 | PyObject * _argo0 = 0; |
1614 | PyObject * _obj1 = 0; | |
b37c7e1d | 1615 | char *_kwnames[] = { "self","name","type", NULL }; |
8ab979d7 RD |
1616 | |
1617 | self = self; | |
b37c7e1d | 1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
6999b0d8 RD |
1619 | return NULL; |
1620 | if (_argo0) { | |
1621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1624 | return NULL; |
6999b0d8 RD |
1625 | } |
1626 | } | |
8ab979d7 | 1627 | { |
185d7c3e RD |
1628 | #if PYTHON_API_VERSION >= 1009 |
1629 | char* tmpPtr; int tmpSize; | |
1630 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1631 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1632 | return NULL; |
1633 | } | |
1634 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1635 | return NULL; | |
1636 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1637 | #else | |
6999b0d8 | 1638 | if (!PyString_Check(_obj1)) { |
8ab979d7 RD |
1639 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1640 | return NULL; | |
1641 | } | |
185d7c3e RD |
1642 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1643 | #endif | |
8ab979d7 | 1644 | } |
cf694132 | 1645 | { |
4268f798 | 1646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1647 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 | 1648 | |
4268f798 | 1649 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1650 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1651 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1652 | { |
6999b0d8 RD |
1653 | if (_obj1) |
1654 | delete _arg1; | |
8ab979d7 RD |
1655 | } |
1656 | return _resultobj; | |
1657 | } | |
1658 | ||
6999b0d8 RD |
1659 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1660 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1661 | PyObject * _resultobj; |
6999b0d8 RD |
1662 | bool _result; |
1663 | wxBitmap * _arg0; | |
1664 | wxString * _arg1; | |
b37c7e1d | 1665 | wxBitmapType _arg2; |
6999b0d8 | 1666 | wxPalette * _arg3 = (wxPalette *) NULL; |
1d99702e | 1667 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1668 | PyObject * _obj1 = 0; |
1669 | PyObject * _argo3 = 0; | |
1670 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1671 | |
1672 | self = self; | |
6999b0d8 | 1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1674 | return NULL; |
1d99702e RD |
1675 | if (_argo0) { |
1676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1679 | return NULL; |
1680 | } | |
1681 | } | |
cf694132 | 1682 | { |
185d7c3e RD |
1683 | #if PYTHON_API_VERSION >= 1009 |
1684 | char* tmpPtr; int tmpSize; | |
1685 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1686 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1687 | return NULL; |
1688 | } | |
1689 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1690 | return NULL; | |
1691 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1692 | #else | |
6999b0d8 RD |
1693 | if (!PyString_Check(_obj1)) { |
1694 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1695 | return NULL; |
6999b0d8 | 1696 | } |
185d7c3e RD |
1697 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1698 | #endif | |
6999b0d8 RD |
1699 | } |
1700 | if (_argo3) { | |
1701 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1702 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1704 | return NULL; |
1705 | } | |
1706 | } | |
cf694132 | 1707 | { |
4268f798 | 1708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1709 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 1710 | |
4268f798 | 1711 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1712 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1713 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1714 | { |
1715 | if (_obj1) | |
1716 | delete _arg1; | |
1717 | } | |
8ab979d7 RD |
1718 | return _resultobj; |
1719 | } | |
1720 | ||
6999b0d8 RD |
1721 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1722 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1723 | PyObject * _resultobj; |
6999b0d8 RD |
1724 | wxBitmap * _arg0; |
1725 | wxMask * _arg1; | |
1d99702e | 1726 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1727 | PyObject * _argo1 = 0; |
1728 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1729 | |
1730 | self = self; | |
6999b0d8 | 1731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1732 | return NULL; |
1d99702e RD |
1733 | if (_argo0) { |
1734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1737 | return NULL; |
1738 | } | |
1739 | } | |
6999b0d8 RD |
1740 | if (_argo1) { |
1741 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1744 | return NULL; |
1745 | } | |
1746 | } | |
cf694132 | 1747 | { |
4268f798 | 1748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1749 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 | 1750 | |
4268f798 | 1751 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1752 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1753 | } Py_INCREF(Py_None); |
1754 | _resultobj = Py_None; | |
8ab979d7 RD |
1755 | return _resultobj; |
1756 | } | |
1757 | ||
6999b0d8 RD |
1758 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1759 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1760 | PyObject * _resultobj; | |
1761 | wxBitmap * _arg0; | |
1762 | wxPalette * _arg1; | |
1d99702e | 1763 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1764 | PyObject * _argo1 = 0; |
1765 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1766 | |
1767 | self = self; | |
6999b0d8 | 1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1769 | return NULL; |
1d99702e RD |
1770 | if (_argo0) { |
1771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1774 | return NULL; |
1775 | } | |
1776 | } | |
6999b0d8 RD |
1777 | if (_argo1) { |
1778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1781 | return NULL; |
6999b0d8 | 1782 | } |
8ab979d7 | 1783 | } |
cf694132 | 1784 | { |
4268f798 | 1785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1786 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 | 1787 | |
4268f798 | 1788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1789 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1790 | } Py_INCREF(Py_None); |
1791 | _resultobj = Py_None; | |
8ab979d7 RD |
1792 | return _resultobj; |
1793 | } | |
1794 | ||
9b3d3bc4 RD |
1795 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1796 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1797 | PyObject * _resultobj; |
9b3d3bc4 | 1798 | long _result; |
6999b0d8 | 1799 | wxBitmap * _arg0; |
1d99702e | 1800 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1801 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1802 | |
1803 | self = self; | |
9b3d3bc4 | 1804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1805 | return NULL; |
1d99702e RD |
1806 | if (_argo0) { |
1807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1810 | return NULL; |
1811 | } | |
1812 | } | |
cf694132 | 1813 | { |
4268f798 | 1814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 1815 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 | 1816 | |
4268f798 | 1817 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1818 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1819 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1820 | return _resultobj; |
1821 | } | |
1822 | ||
9b3d3bc4 RD |
1823 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1824 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1825 | PyObject * _resultobj; |
9b3d3bc4 | 1826 | wxBitmap * _arg0; |
6999b0d8 | 1827 | long _arg1; |
9b3d3bc4 RD |
1828 | PyObject * _argo0 = 0; |
1829 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1830 | |
1831 | self = self; | |
9b3d3bc4 | 1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1833 | return NULL; |
9b3d3bc4 RD |
1834 | if (_argo0) { |
1835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1838 | return NULL; |
9b3d3bc4 | 1839 | } |
8ab979d7 | 1840 | } |
9b3d3bc4 | 1841 | { |
4268f798 | 1842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1843 | wxBitmap_SetHandle(_arg0,_arg1); |
1844 | ||
4268f798 | 1845 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1846 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1847 | } Py_INCREF(Py_None); |
1848 | _resultobj = Py_None; | |
1849 | return _resultobj; | |
6999b0d8 | 1850 | } |
9b3d3bc4 RD |
1851 | |
1852 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1853 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1854 | PyObject * _resultobj; | |
1855 | bool _result; | |
1856 | wxBitmap * _arg0; | |
1857 | PyObject * _argo0 = 0; | |
1858 | char *_kwnames[] = { "self", NULL }; | |
1859 | ||
1860 | self = self; | |
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1862 | return NULL; | |
1863 | if (_argo0) { | |
1864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1867 | return NULL; | |
1868 | } | |
1869 | } | |
cf694132 | 1870 | { |
4268f798 | 1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 1872 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 | 1873 | |
4268f798 | 1874 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1875 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1876 | } _resultobj = Py_BuildValue("i",_result); |
1877 | return _resultobj; | |
1878 | } | |
1879 | ||
1880 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1881 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1882 | PyObject * _resultobj; | |
1883 | int _result; | |
1884 | wxBitmap * _arg0; | |
1885 | PyObject * _argo0 = 0; | |
1886 | char *_kwnames[] = { "self", NULL }; | |
1887 | ||
1888 | self = self; | |
1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1890 | return NULL; | |
1891 | if (_argo0) { | |
1892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1895 | return NULL; | |
1896 | } | |
6999b0d8 RD |
1897 | } |
1898 | { | |
4268f798 | 1899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1900 | _result = (int )wxBitmap_GetWidth(_arg0); |
1901 | ||
4268f798 | 1902 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1903 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1904 | } _resultobj = Py_BuildValue("i",_result); |
1905 | return _resultobj; | |
6999b0d8 | 1906 | } |
9b3d3bc4 RD |
1907 | |
1908 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1909 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1910 | PyObject * _resultobj; | |
1911 | int _result; | |
1912 | wxBitmap * _arg0; | |
1913 | PyObject * _argo0 = 0; | |
1914 | char *_kwnames[] = { "self", NULL }; | |
1915 | ||
1916 | self = self; | |
1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1918 | return NULL; | |
1919 | if (_argo0) { | |
1920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1923 | return NULL; | |
1924 | } | |
1925 | } | |
1926 | { | |
4268f798 | 1927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1928 | _result = (int )wxBitmap_GetHeight(_arg0); |
1929 | ||
4268f798 | 1930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1931 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1932 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1933 | return _resultobj; |
1934 | } | |
1935 | ||
9b3d3bc4 RD |
1936 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1937 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1938 | PyObject * _resultobj; |
9b3d3bc4 RD |
1939 | int _result; |
1940 | wxBitmap * _arg0; | |
1d99702e | 1941 | PyObject * _argo0 = 0; |
6999b0d8 | 1942 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1943 | |
1944 | self = self; | |
9b3d3bc4 | 1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1946 | return NULL; |
1d99702e RD |
1947 | if (_argo0) { |
1948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1951 | return NULL; |
1952 | } | |
1953 | } | |
cf694132 | 1954 | { |
4268f798 | 1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1956 | _result = (int )wxBitmap_GetDepth(_arg0); |
1957 | ||
4268f798 | 1958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1959 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1960 | } _resultobj = Py_BuildValue("i",_result); |
1961 | return _resultobj; | |
1962 | } | |
1963 | ||
1964 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1965 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1966 | PyObject * _resultobj; | |
1967 | wxBitmap * _arg0; | |
1968 | int _arg1; | |
1969 | PyObject * _argo0 = 0; | |
1970 | char *_kwnames[] = { "self","w", NULL }; | |
1971 | ||
1972 | self = self; | |
1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1974 | return NULL; | |
1975 | if (_argo0) { | |
1976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1979 | return NULL; | |
1980 | } | |
1981 | } | |
1982 | { | |
4268f798 | 1983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 1984 | wxBitmap_SetWidth(_arg0,_arg1); |
cf694132 | 1985 | |
4268f798 | 1986 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1987 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1988 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1989 | _resultobj = Py_None; |
1990 | return _resultobj; | |
1991 | } | |
1992 | ||
9b3d3bc4 RD |
1993 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1994 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1995 | PyObject * _resultobj; |
9b3d3bc4 RD |
1996 | wxBitmap * _arg0; |
1997 | int _arg1; | |
1d99702e | 1998 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1999 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
2000 | |
2001 | self = self; | |
9b3d3bc4 | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2003 | return NULL; |
1d99702e RD |
2004 | if (_argo0) { |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
2008 | return NULL; |
2009 | } | |
2010 | } | |
6999b0d8 | 2011 | { |
4268f798 | 2012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2013 | wxBitmap_SetHeight(_arg0,_arg1); |
2014 | ||
4268f798 | 2015 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2016 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2017 | } Py_INCREF(Py_None); |
2018 | _resultobj = Py_None; | |
2019 | return _resultobj; | |
2020 | } | |
2021 | ||
2022 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2023 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject * _resultobj; | |
2025 | wxBitmap * _arg0; | |
2026 | int _arg1; | |
2027 | PyObject * _argo0 = 0; | |
2028 | char *_kwnames[] = { "self","d", NULL }; | |
2029 | ||
2030 | self = self; | |
2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2032 | return NULL; | |
2033 | if (_argo0) { | |
2034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2037 | return NULL; |
9b3d3bc4 | 2038 | } |
6999b0d8 | 2039 | } |
cf694132 | 2040 | { |
4268f798 | 2041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 2042 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 | 2043 | |
4268f798 | 2044 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2045 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2046 | } Py_INCREF(Py_None); |
2047 | _resultobj = Py_None; | |
2048 | return _resultobj; | |
2049 | } | |
2050 | ||
2051 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2052 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2053 | PyObject * _resultobj; | |
2054 | wxBitmap * _arg0; | |
2055 | wxSize * _arg1; | |
2056 | PyObject * _argo0 = 0; | |
2057 | wxSize temp; | |
2058 | PyObject * _obj1 = 0; | |
2059 | char *_kwnames[] = { "self","size", NULL }; | |
2060 | ||
2061 | self = self; | |
2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2063 | return NULL; | |
2064 | if (_argo0) { | |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
6999b0d8 | 2071 | { |
9b3d3bc4 RD |
2072 | _arg1 = &temp; |
2073 | if (! wxSize_helper(_obj1, &_arg1)) | |
2074 | return NULL; | |
6999b0d8 | 2075 | } |
9b3d3bc4 | 2076 | { |
4268f798 | 2077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2078 | wxBitmap_SetSize(_arg0,*_arg1); |
2079 | ||
4268f798 | 2080 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2081 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2082 | } Py_INCREF(Py_None); |
2083 | _resultobj = Py_None; | |
8ab979d7 RD |
2084 | return _resultobj; |
2085 | } | |
2086 | ||
f6bcfd97 BP |
2087 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2088 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2089 | PyObject * _resultobj; | |
2090 | wxBitmap * _result; | |
2091 | wxBitmap * _arg0; | |
2092 | wxRect * _arg1; | |
2093 | PyObject * _argo0 = 0; | |
2094 | wxRect temp; | |
2095 | PyObject * _obj1 = 0; | |
2096 | char *_kwnames[] = { "self","rect", NULL }; | |
2097 | char _ptemp[128]; | |
2098 | ||
2099 | self = self; | |
2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2101 | return NULL; | |
2102 | if (_argo0) { | |
2103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2106 | return NULL; | |
2107 | } | |
2108 | } | |
2109 | { | |
2110 | _arg1 = &temp; | |
2111 | if (! wxRect_helper(_obj1, &_arg1)) | |
2112 | return NULL; | |
2113 | } | |
2114 | { | |
4268f798 | 2115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2116 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
2117 | ||
4268f798 | 2118 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2119 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2120 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2121 | _resultobj = Py_BuildValue("s",_ptemp); | |
2122 | return _resultobj; | |
2123 | } | |
2124 | ||
2125 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2126 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2127 | PyObject * _resultobj; | |
2128 | bool _result; | |
2129 | wxBitmap * _arg0; | |
2130 | wxIcon * _arg1; | |
2131 | PyObject * _argo0 = 0; | |
2132 | PyObject * _argo1 = 0; | |
2133 | char *_kwnames[] = { "self","icon", NULL }; | |
2134 | ||
2135 | self = self; | |
2136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2137 | return NULL; | |
2138 | if (_argo0) { | |
2139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2142 | return NULL; | |
2143 | } | |
2144 | } | |
2145 | if (_argo1) { | |
2146 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2147 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2149 | return NULL; | |
2150 | } | |
2151 | } | |
2152 | { | |
4268f798 | 2153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2154 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
2155 | ||
4268f798 | 2156 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2157 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2158 | } _resultobj = Py_BuildValue("i",_result); |
2159 | return _resultobj; | |
2160 | } | |
2161 | ||
2162 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2163 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject * _resultobj; | |
2165 | bool _result; | |
2166 | wxBitmap * _arg0; | |
2167 | wxCursor * _arg1; | |
2168 | PyObject * _argo0 = 0; | |
2169 | PyObject * _argo1 = 0; | |
2170 | char *_kwnames[] = { "self","cursor", NULL }; | |
2171 | ||
2172 | self = self; | |
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2174 | return NULL; | |
2175 | if (_argo0) { | |
2176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2179 | return NULL; | |
2180 | } | |
2181 | } | |
2182 | if (_argo1) { | |
2183 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
2189 | { | |
4268f798 | 2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2191 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); |
2192 | ||
4268f798 | 2193 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2194 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2195 | } _resultobj = Py_BuildValue("i",_result); |
2196 | return _resultobj; | |
2197 | } | |
2198 | ||
2199 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2200 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2201 | PyObject * _resultobj; | |
2202 | int _result; | |
2203 | wxBitmap * _arg0; | |
2204 | PyObject * _argo0 = 0; | |
2205 | char *_kwnames[] = { "self", NULL }; | |
2206 | ||
2207 | self = self; | |
2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2209 | return NULL; | |
2210 | if (_argo0) { | |
2211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2214 | return NULL; | |
2215 | } | |
2216 | } | |
2217 | { | |
4268f798 | 2218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2219 | _result = (int )wxBitmap_GetQuality(_arg0); |
2220 | ||
4268f798 | 2221 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2222 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2223 | } _resultobj = Py_BuildValue("i",_result); |
2224 | return _resultobj; | |
2225 | } | |
2226 | ||
2227 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2228 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2229 | PyObject * _resultobj; | |
2230 | wxBitmap * _arg0; | |
2231 | int _arg1; | |
2232 | PyObject * _argo0 = 0; | |
2233 | char *_kwnames[] = { "self","q", NULL }; | |
2234 | ||
2235 | self = self; | |
2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2237 | return NULL; | |
2238 | if (_argo0) { | |
2239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2242 | return NULL; | |
2243 | } | |
2244 | } | |
2245 | { | |
4268f798 | 2246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2247 | wxBitmap_SetQuality(_arg0,_arg1); |
2248 | ||
4268f798 | 2249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2250 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2251 | } Py_INCREF(Py_None); |
2252 | _resultobj = Py_None; | |
2253 | return _resultobj; | |
2254 | } | |
2255 | ||
9416aa89 RD |
2256 | static void *SwigwxMaskTowxObject(void *ptr) { |
2257 | wxMask *src; | |
2258 | wxObject *dest; | |
2259 | src = (wxMask *) ptr; | |
2260 | dest = (wxObject *) src; | |
2261 | return (void *) dest; | |
2262 | } | |
2263 | ||
9b3d3bc4 RD |
2264 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2265 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2266 | PyObject * _resultobj; | |
2267 | wxMask * _result; | |
2268 | wxBitmap * _arg0; | |
2269 | PyObject * _argo0 = 0; | |
2270 | char *_kwnames[] = { "bitmap", NULL }; | |
2271 | char _ptemp[128]; | |
2272 | ||
2273 | self = self; | |
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2275 | return NULL; | |
2276 | if (_argo0) { | |
2277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2280 | return NULL; | |
2281 | } | |
2282 | } | |
2283 | { | |
4268f798 | 2284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2285 | _result = (wxMask *)new_wxMask(*_arg0); |
2286 | ||
4268f798 | 2287 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2288 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2289 | } if (_result) { |
2290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2291 | _resultobj = Py_BuildValue("s",_ptemp); | |
2292 | } else { | |
2293 | Py_INCREF(Py_None); | |
2294 | _resultobj = Py_None; | |
2295 | } | |
2296 | return _resultobj; | |
8ab979d7 RD |
2297 | } |
2298 | ||
96bfd053 RD |
2299 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2300 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject * _resultobj; | |
2302 | wxMask * _arg0; | |
2303 | PyObject * _argo0 = 0; | |
2304 | char *_kwnames[] = { "self", NULL }; | |
2305 | ||
2306 | self = self; | |
2307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2308 | return NULL; | |
2309 | if (_argo0) { | |
2310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2313 | return NULL; | |
2314 | } | |
2315 | } | |
2316 | { | |
4268f798 | 2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
2318 | wxMask_Destroy(_arg0); |
2319 | ||
4268f798 | 2320 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2321 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2322 | } Py_INCREF(Py_None); |
2323 | _resultobj = Py_None; | |
2324 | return _resultobj; | |
2325 | } | |
2326 | ||
9416aa89 RD |
2327 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2328 | wxIcon *src; | |
2329 | wxGDIObject *dest; | |
2330 | src = (wxIcon *) ptr; | |
2331 | dest = (wxGDIObject *) src; | |
2332 | return (void *) dest; | |
2333 | } | |
2334 | ||
2335 | static void *SwigwxIconTowxObject(void *ptr) { | |
2336 | wxIcon *src; | |
2337 | wxObject *dest; | |
2338 | src = (wxIcon *) ptr; | |
2339 | dest = (wxObject *) src; | |
2340 | return (void *) dest; | |
2341 | } | |
2342 | ||
9b3d3bc4 RD |
2343 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2344 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2345 | PyObject * _resultobj; |
9b3d3bc4 | 2346 | wxIcon * _result; |
8ab979d7 RD |
2347 | wxString * _arg0; |
2348 | long _arg1; | |
9b3d3bc4 RD |
2349 | int _arg2 = (int ) -1; |
2350 | int _arg3 = (int ) -1; | |
8ab979d7 | 2351 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2352 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2353 | char _ptemp[128]; |
2354 | ||
2355 | self = self; | |
9b3d3bc4 | 2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2357 | return NULL; |
2358 | { | |
185d7c3e RD |
2359 | #if PYTHON_API_VERSION >= 1009 |
2360 | char* tmpPtr; int tmpSize; | |
2361 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2362 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2363 | return NULL; |
2364 | } | |
2365 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2366 | return NULL; | |
2367 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2368 | #else | |
8ab979d7 RD |
2369 | if (!PyString_Check(_obj0)) { |
2370 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2371 | return NULL; | |
2372 | } | |
185d7c3e RD |
2373 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2374 | #endif | |
8ab979d7 | 2375 | } |
cf694132 | 2376 | { |
4268f798 | 2377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 2378 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 | 2379 | |
4268f798 | 2380 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2381 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2382 | } if (_result) { |
9b3d3bc4 | 2383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2384 | _resultobj = Py_BuildValue("s",_ptemp); |
2385 | } else { | |
2386 | Py_INCREF(Py_None); | |
2387 | _resultobj = Py_None; | |
2388 | } | |
8ab979d7 RD |
2389 | { |
2390 | if (_obj0) | |
2391 | delete _arg0; | |
2392 | } | |
2393 | return _resultobj; | |
2394 | } | |
2395 | ||
9b3d3bc4 RD |
2396 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2397 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2398 | PyObject * _resultobj; |
9b3d3bc4 | 2399 | wxIcon * _arg0; |
1d99702e | 2400 | PyObject * _argo0 = 0; |
1afc06c2 | 2401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2402 | |
2403 | self = self; | |
9b3d3bc4 | 2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2405 | return NULL; |
1d99702e RD |
2406 | if (_argo0) { |
2407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2410 | return NULL; |
2411 | } | |
2412 | } | |
cf694132 | 2413 | { |
4268f798 | 2414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2415 | delete_wxIcon(_arg0); |
2416 | ||
4268f798 | 2417 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2418 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2419 | } Py_INCREF(Py_None); |
2420 | _resultobj = Py_None; | |
2421 | return _resultobj; | |
2422 | } | |
2423 | ||
2424 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2425 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2426 | PyObject * _resultobj; | |
2427 | bool _result; | |
2428 | wxIcon * _arg0; | |
2429 | wxString * _arg1; | |
2430 | long _arg2; | |
2431 | PyObject * _argo0 = 0; | |
2432 | PyObject * _obj1 = 0; | |
2433 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2434 | ||
2435 | self = self; | |
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2437 | return NULL; | |
2438 | if (_argo0) { | |
2439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2442 | return NULL; | |
2443 | } | |
2444 | } | |
2445 | { | |
185d7c3e RD |
2446 | #if PYTHON_API_VERSION >= 1009 |
2447 | char* tmpPtr; int tmpSize; | |
2448 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2449 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2450 | return NULL; |
2451 | } | |
2452 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2453 | return NULL; | |
2454 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2455 | #else | |
9b3d3bc4 RD |
2456 | if (!PyString_Check(_obj1)) { |
2457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2458 | return NULL; | |
2459 | } | |
185d7c3e RD |
2460 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2461 | #endif | |
9b3d3bc4 RD |
2462 | } |
2463 | { | |
4268f798 | 2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2465 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
2466 | ||
4268f798 | 2467 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2468 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2469 | } _resultobj = Py_BuildValue("i",_result); |
2470 | { | |
2471 | if (_obj1) | |
2472 | delete _arg1; | |
2473 | } | |
2474 | return _resultobj; | |
2475 | } | |
2476 | ||
2477 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2478 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2479 | PyObject * _resultobj; | |
2480 | long _result; | |
2481 | wxIcon * _arg0; | |
2482 | PyObject * _argo0 = 0; | |
2483 | char *_kwnames[] = { "self", NULL }; | |
2484 | ||
2485 | self = self; | |
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2487 | return NULL; | |
2488 | if (_argo0) { | |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | { | |
4268f798 | 2496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2497 | _result = (long )wxIcon_GetHandle(_arg0); |
2498 | ||
4268f798 | 2499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2500 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2501 | } _resultobj = Py_BuildValue("l",_result); |
2502 | return _resultobj; | |
2503 | } | |
2504 | ||
2505 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2506 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2507 | PyObject * _resultobj; | |
2508 | wxIcon * _arg0; | |
2509 | long _arg1; | |
2510 | PyObject * _argo0 = 0; | |
2511 | char *_kwnames[] = { "self","handle", NULL }; | |
2512 | ||
2513 | self = self; | |
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2515 | return NULL; | |
2516 | if (_argo0) { | |
2517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2520 | return NULL; | |
2521 | } | |
2522 | } | |
2523 | { | |
4268f798 | 2524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2525 | wxIcon_SetHandle(_arg0,_arg1); |
2526 | ||
4268f798 | 2527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2528 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2529 | } Py_INCREF(Py_None); |
2530 | _resultobj = Py_None; | |
2531 | return _resultobj; | |
2532 | } | |
2533 | ||
2534 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2535 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2536 | PyObject * _resultobj; | |
2537 | bool _result; | |
2538 | wxIcon * _arg0; | |
2539 | PyObject * _argo0 = 0; | |
2540 | char *_kwnames[] = { "self", NULL }; | |
2541 | ||
2542 | self = self; | |
2543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2544 | return NULL; | |
2545 | if (_argo0) { | |
2546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2549 | return NULL; | |
2550 | } | |
2551 | } | |
2552 | { | |
4268f798 | 2553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2554 | _result = (bool )wxIcon_Ok(_arg0); |
2555 | ||
4268f798 | 2556 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2557 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2558 | } _resultobj = Py_BuildValue("i",_result); |
2559 | return _resultobj; | |
2560 | } | |
2561 | ||
2562 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2563 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2564 | PyObject * _resultobj; | |
2565 | int _result; | |
2566 | wxIcon * _arg0; | |
2567 | PyObject * _argo0 = 0; | |
2568 | char *_kwnames[] = { "self", NULL }; | |
2569 | ||
2570 | self = self; | |
2571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2572 | return NULL; | |
2573 | if (_argo0) { | |
2574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2577 | return NULL; | |
2578 | } | |
2579 | } | |
2580 | { | |
4268f798 | 2581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2582 | _result = (int )wxIcon_GetWidth(_arg0); |
2583 | ||
4268f798 | 2584 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2585 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2586 | } _resultobj = Py_BuildValue("i",_result); |
2587 | return _resultobj; | |
2588 | } | |
2589 | ||
2590 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2591 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2592 | PyObject * _resultobj; | |
2593 | int _result; | |
2594 | wxIcon * _arg0; | |
2595 | PyObject * _argo0 = 0; | |
2596 | char *_kwnames[] = { "self", NULL }; | |
2597 | ||
2598 | self = self; | |
2599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2600 | return NULL; | |
2601 | if (_argo0) { | |
2602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2605 | return NULL; | |
2606 | } | |
2607 | } | |
2608 | { | |
4268f798 | 2609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2610 | _result = (int )wxIcon_GetHeight(_arg0); |
2611 | ||
4268f798 | 2612 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2613 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2614 | } _resultobj = Py_BuildValue("i",_result); |
2615 | return _resultobj; | |
2616 | } | |
2617 | ||
2618 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2619 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject * _resultobj; | |
2621 | int _result; | |
2622 | wxIcon * _arg0; | |
2623 | PyObject * _argo0 = 0; | |
2624 | char *_kwnames[] = { "self", NULL }; | |
2625 | ||
2626 | self = self; | |
2627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2628 | return NULL; | |
2629 | if (_argo0) { | |
2630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2633 | return NULL; | |
2634 | } | |
2635 | } | |
2636 | { | |
4268f798 | 2637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2638 | _result = (int )wxIcon_GetDepth(_arg0); |
2639 | ||
4268f798 | 2640 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2641 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2642 | } _resultobj = Py_BuildValue("i",_result); |
2643 | return _resultobj; | |
2644 | } | |
2645 | ||
2646 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2647 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2648 | PyObject * _resultobj; | |
2649 | wxIcon * _arg0; | |
2650 | int _arg1; | |
2651 | PyObject * _argo0 = 0; | |
2652 | char *_kwnames[] = { "self","w", NULL }; | |
2653 | ||
2654 | self = self; | |
2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2656 | return NULL; | |
2657 | if (_argo0) { | |
2658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2661 | return NULL; | |
2662 | } | |
2663 | } | |
2664 | { | |
4268f798 | 2665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2666 | wxIcon_SetWidth(_arg0,_arg1); |
2667 | ||
4268f798 | 2668 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2669 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2670 | } Py_INCREF(Py_None); |
2671 | _resultobj = Py_None; | |
2672 | return _resultobj; | |
2673 | } | |
2674 | ||
2675 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2676 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject * _resultobj; | |
2678 | wxIcon * _arg0; | |
2679 | int _arg1; | |
2680 | PyObject * _argo0 = 0; | |
2681 | char *_kwnames[] = { "self","h", NULL }; | |
2682 | ||
2683 | self = self; | |
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2685 | return NULL; | |
2686 | if (_argo0) { | |
2687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2690 | return NULL; | |
2691 | } | |
2692 | } | |
2693 | { | |
4268f798 | 2694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2695 | wxIcon_SetHeight(_arg0,_arg1); |
2696 | ||
4268f798 | 2697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2698 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2699 | } Py_INCREF(Py_None); |
2700 | _resultobj = Py_None; | |
2701 | return _resultobj; | |
2702 | } | |
2703 | ||
2704 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2705 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2706 | PyObject * _resultobj; | |
2707 | wxIcon * _arg0; | |
2708 | int _arg1; | |
2709 | PyObject * _argo0 = 0; | |
2710 | char *_kwnames[] = { "self","d", NULL }; | |
2711 | ||
2712 | self = self; | |
2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2714 | return NULL; | |
2715 | if (_argo0) { | |
2716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2719 | return NULL; | |
2720 | } | |
2721 | } | |
2722 | { | |
4268f798 | 2723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2724 | wxIcon_SetDepth(_arg0,_arg1); |
2725 | ||
4268f798 | 2726 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2727 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2728 | } Py_INCREF(Py_None); |
2729 | _resultobj = Py_None; | |
2730 | return _resultobj; | |
2731 | } | |
2732 | ||
2733 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2734 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2735 | PyObject * _resultobj; | |
2736 | wxIcon * _arg0; | |
2737 | wxSize * _arg1; | |
2738 | PyObject * _argo0 = 0; | |
2739 | wxSize temp; | |
2740 | PyObject * _obj1 = 0; | |
2741 | char *_kwnames[] = { "self","size", NULL }; | |
2742 | ||
2743 | self = self; | |
2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2745 | return NULL; | |
2746 | if (_argo0) { | |
2747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2750 | return NULL; | |
2751 | } | |
2752 | } | |
2753 | { | |
2754 | _arg1 = &temp; | |
2755 | if (! wxSize_helper(_obj1, &_arg1)) | |
2756 | return NULL; | |
2757 | } | |
2758 | { | |
4268f798 | 2759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2760 | wxIcon_SetSize(_arg0,*_arg1); |
2761 | ||
4268f798 | 2762 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2763 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2764 | } Py_INCREF(Py_None); |
2765 | _resultobj = Py_None; | |
2766 | return _resultobj; | |
2767 | } | |
2768 | ||
96bfd053 RD |
2769 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2770 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2771 | PyObject * _resultobj; | |
2772 | wxIcon * _arg0; | |
2773 | wxBitmap * _arg1; | |
2774 | PyObject * _argo0 = 0; | |
2775 | PyObject * _argo1 = 0; | |
2776 | char *_kwnames[] = { "self","bmp", NULL }; | |
2777 | ||
2778 | self = self; | |
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2780 | return NULL; | |
2781 | if (_argo0) { | |
2782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2785 | return NULL; | |
2786 | } | |
2787 | } | |
2788 | if (_argo1) { | |
2789 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2790 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2792 | return NULL; | |
2793 | } | |
2794 | } | |
2795 | { | |
4268f798 | 2796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
2797 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
2798 | ||
4268f798 | 2799 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2800 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2801 | } Py_INCREF(Py_None); |
2802 | _resultobj = Py_None; | |
2803 | return _resultobj; | |
2804 | } | |
2805 | ||
9416aa89 RD |
2806 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2807 | wxCursor *src; | |
2808 | wxGDIObject *dest; | |
2809 | src = (wxCursor *) ptr; | |
2810 | dest = (wxGDIObject *) src; | |
2811 | return (void *) dest; | |
2812 | } | |
2813 | ||
2814 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2815 | wxCursor *src; | |
2816 | wxObject *dest; | |
2817 | src = (wxCursor *) ptr; | |
2818 | dest = (wxObject *) src; | |
2819 | return (void *) dest; | |
2820 | } | |
2821 | ||
9b3d3bc4 RD |
2822 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2823 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2824 | PyObject * _resultobj; | |
2825 | wxCursor * _result; | |
2826 | wxString * _arg0; | |
2827 | long _arg1; | |
2828 | int _arg2 = (int ) 0; | |
2829 | int _arg3 = (int ) 0; | |
2830 | PyObject * _obj0 = 0; | |
2831 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2832 | char _ptemp[128]; | |
2833 | ||
2834 | self = self; | |
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2836 | return NULL; | |
2837 | { | |
185d7c3e RD |
2838 | #if PYTHON_API_VERSION >= 1009 |
2839 | char* tmpPtr; int tmpSize; | |
2840 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2842 | return NULL; |
2843 | } | |
2844 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2845 | return NULL; | |
2846 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2847 | #else | |
9b3d3bc4 RD |
2848 | if (!PyString_Check(_obj0)) { |
2849 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2850 | return NULL; | |
2851 | } | |
185d7c3e RD |
2852 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2853 | #endif | |
9b3d3bc4 RD |
2854 | } |
2855 | { | |
4268f798 | 2856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2857 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); |
2858 | ||
4268f798 | 2859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2860 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2861 | } if (_result) { |
2862 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2863 | _resultobj = Py_BuildValue("s",_ptemp); | |
2864 | } else { | |
2865 | Py_INCREF(Py_None); | |
2866 | _resultobj = Py_None; | |
2867 | } | |
2868 | { | |
2869 | if (_obj0) | |
2870 | delete _arg0; | |
2871 | } | |
2872 | return _resultobj; | |
2873 | } | |
2874 | ||
2875 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2876 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2877 | PyObject * _resultobj; | |
2878 | wxCursor * _arg0; | |
2879 | PyObject * _argo0 = 0; | |
2880 | char *_kwnames[] = { "self", NULL }; | |
2881 | ||
2882 | self = self; | |
2883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2884 | return NULL; | |
2885 | if (_argo0) { | |
2886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2889 | return NULL; | |
2890 | } | |
2891 | } | |
2892 | { | |
4268f798 | 2893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2894 | delete_wxCursor(_arg0); |
2895 | ||
4268f798 | 2896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2897 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2898 | } Py_INCREF(Py_None); |
2899 | _resultobj = Py_None; | |
2900 | return _resultobj; | |
2901 | } | |
2902 | ||
2903 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2904 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2905 | PyObject * _resultobj; | |
2906 | long _result; | |
2907 | wxCursor * _arg0; | |
2908 | PyObject * _argo0 = 0; | |
2909 | char *_kwnames[] = { "self", NULL }; | |
2910 | ||
2911 | self = self; | |
2912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2913 | return NULL; | |
2914 | if (_argo0) { | |
2915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2918 | return NULL; | |
2919 | } | |
2920 | } | |
2921 | { | |
4268f798 | 2922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2923 | _result = (long )wxCursor_GetHandle(_arg0); |
2924 | ||
4268f798 | 2925 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2926 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2927 | } _resultobj = Py_BuildValue("l",_result); |
2928 | return _resultobj; | |
2929 | } | |
2930 | ||
2931 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2932 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2933 | PyObject * _resultobj; | |
2934 | wxCursor * _arg0; | |
2935 | long _arg1; | |
2936 | PyObject * _argo0 = 0; | |
2937 | char *_kwnames[] = { "self","handle", NULL }; | |
2938 | ||
2939 | self = self; | |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2941 | return NULL; | |
2942 | if (_argo0) { | |
2943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
2946 | return NULL; | |
2947 | } | |
2948 | } | |
2949 | { | |
4268f798 | 2950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2951 | wxCursor_SetHandle(_arg0,_arg1); |
2952 | ||
4268f798 | 2953 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2954 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2955 | } Py_INCREF(Py_None); |
2956 | _resultobj = Py_None; | |
2957 | return _resultobj; | |
2958 | } | |
2959 | ||
2960 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2961 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2962 | PyObject * _resultobj; | |
2963 | bool _result; | |
2964 | wxCursor * _arg0; | |
2965 | PyObject * _argo0 = 0; | |
2966 | char *_kwnames[] = { "self", NULL }; | |
2967 | ||
2968 | self = self; | |
2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2970 | return NULL; | |
2971 | if (_argo0) { | |
2972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2975 | return NULL; | |
2976 | } | |
2977 | } | |
2978 | { | |
4268f798 | 2979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2980 | _result = (bool )wxCursor_Ok(_arg0); |
2981 | ||
4268f798 | 2982 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2983 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2984 | } _resultobj = Py_BuildValue("i",_result); |
2985 | return _resultobj; | |
2986 | } | |
2987 | ||
2988 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2989 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2990 | PyObject * _resultobj; | |
2991 | int _result; | |
2992 | wxCursor * _arg0; | |
2993 | PyObject * _argo0 = 0; | |
2994 | char *_kwnames[] = { "self", NULL }; | |
2995 | ||
2996 | self = self; | |
2997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
2998 | return NULL; | |
2999 | if (_argo0) { | |
3000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
3003 | return NULL; | |
3004 | } | |
3005 | } | |
3006 | { | |
4268f798 | 3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3008 | _result = (int )wxCursor_GetWidth(_arg0); |
3009 | ||
4268f798 | 3010 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3011 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3012 | } _resultobj = Py_BuildValue("i",_result); |
3013 | return _resultobj; | |
3014 | } | |
3015 | ||
3016 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
3017 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3018 | PyObject * _resultobj; | |
3019 | int _result; | |
3020 | wxCursor * _arg0; | |
3021 | PyObject * _argo0 = 0; | |
3022 | char *_kwnames[] = { "self", NULL }; | |
3023 | ||
3024 | self = self; | |
3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
3026 | return NULL; | |
3027 | if (_argo0) { | |
3028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
3031 | return NULL; | |
3032 | } | |
3033 | } | |
3034 | { | |
4268f798 | 3035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3036 | _result = (int )wxCursor_GetHeight(_arg0); |
3037 | ||
4268f798 | 3038 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3039 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3040 | } _resultobj = Py_BuildValue("i",_result); |
3041 | return _resultobj; | |
3042 | } | |
3043 | ||
3044 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
3045 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3046 | PyObject * _resultobj; | |
3047 | int _result; | |
3048 | wxCursor * _arg0; | |
3049 | PyObject * _argo0 = 0; | |
3050 | char *_kwnames[] = { "self", NULL }; | |
3051 | ||
3052 | self = self; | |
3053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
3054 | return NULL; | |
3055 | if (_argo0) { | |
3056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3059 | return NULL; | |
3060 | } | |
3061 | } | |
3062 | { | |
4268f798 | 3063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3064 | _result = (int )wxCursor_GetDepth(_arg0); |
3065 | ||
4268f798 | 3066 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3067 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3068 | } _resultobj = Py_BuildValue("i",_result); |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3073 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject * _resultobj; | |
3075 | wxCursor * _arg0; | |
3076 | int _arg1; | |
3077 | PyObject * _argo0 = 0; | |
3078 | char *_kwnames[] = { "self","w", NULL }; | |
3079 | ||
3080 | self = self; | |
3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3082 | return NULL; | |
3083 | if (_argo0) { | |
3084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
3087 | return NULL; | |
3088 | } | |
3089 | } | |
3090 | { | |
4268f798 | 3091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3092 | wxCursor_SetWidth(_arg0,_arg1); |
3093 | ||
4268f798 | 3094 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3095 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3096 | } Py_INCREF(Py_None); |
3097 | _resultobj = Py_None; | |
3098 | return _resultobj; | |
3099 | } | |
3100 | ||
3101 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3102 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject * _resultobj; | |
3104 | wxCursor * _arg0; | |
3105 | int _arg1; | |
3106 | PyObject * _argo0 = 0; | |
3107 | char *_kwnames[] = { "self","h", NULL }; | |
3108 | ||
3109 | self = self; | |
3110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
3111 | return NULL; | |
3112 | if (_argo0) { | |
3113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
3116 | return NULL; | |
3117 | } | |
3118 | } | |
3119 | { | |
4268f798 | 3120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3121 | wxCursor_SetHeight(_arg0,_arg1); |
3122 | ||
4268f798 | 3123 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3124 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3125 | } Py_INCREF(Py_None); |
3126 | _resultobj = Py_None; | |
3127 | return _resultobj; | |
3128 | } | |
3129 | ||
3130 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3131 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3132 | PyObject * _resultobj; | |
3133 | wxCursor * _arg0; | |
3134 | int _arg1; | |
3135 | PyObject * _argo0 = 0; | |
3136 | char *_kwnames[] = { "self","d", NULL }; | |
3137 | ||
3138 | self = self; | |
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
3140 | return NULL; | |
3141 | if (_argo0) { | |
3142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
3145 | return NULL; | |
3146 | } | |
3147 | } | |
3148 | { | |
4268f798 | 3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3150 | wxCursor_SetDepth(_arg0,_arg1); |
3151 | ||
4268f798 | 3152 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3153 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3154 | } Py_INCREF(Py_None); |
3155 | _resultobj = Py_None; | |
3156 | return _resultobj; | |
3157 | } | |
3158 | ||
3159 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3160 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject * _resultobj; | |
3162 | wxCursor * _arg0; | |
3163 | wxSize * _arg1; | |
3164 | PyObject * _argo0 = 0; | |
3165 | wxSize temp; | |
3166 | PyObject * _obj1 = 0; | |
3167 | char *_kwnames[] = { "self","size", NULL }; | |
3168 | ||
3169 | self = self; | |
3170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3171 | return NULL; | |
3172 | if (_argo0) { | |
3173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3176 | return NULL; | |
3177 | } | |
3178 | } | |
3179 | { | |
3180 | _arg1 = &temp; | |
3181 | if (! wxSize_helper(_obj1, &_arg1)) | |
3182 | return NULL; | |
3183 | } | |
3184 | { | |
4268f798 | 3185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 3186 | wxCursor_SetSize(_arg0,*_arg1); |
cf694132 | 3187 | |
4268f798 | 3188 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3191 | _resultobj = Py_None; |
3192 | return _resultobj; | |
3193 | } | |
3194 | ||
b5a5d647 RD |
3195 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) |
3196 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3197 | PyObject * _resultobj; | |
3198 | wxNativeFontInfo * _result; | |
3199 | char *_kwnames[] = { NULL }; | |
3200 | char _ptemp[128]; | |
3201 | ||
3202 | self = self; | |
3203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
3204 | return NULL; | |
3205 | { | |
3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3207 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); | |
3208 | ||
3209 | wxPyEndAllowThreads(__tstate); | |
3210 | if (PyErr_Occurred()) return NULL; | |
3211 | } if (_result) { | |
3212 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3213 | _resultobj = Py_BuildValue("s",_ptemp); | |
3214 | } else { | |
3215 | Py_INCREF(Py_None); | |
3216 | _resultobj = Py_None; | |
3217 | } | |
3218 | return _resultobj; | |
3219 | } | |
3220 | ||
3221 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
3222 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3223 | PyObject * _resultobj; | |
3224 | wxNativeFontInfo * _arg0; | |
3225 | PyObject * _argo0 = 0; | |
3226 | char *_kwnames[] = { "self", NULL }; | |
3227 | ||
3228 | self = self; | |
3229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
3230 | return NULL; | |
3231 | if (_argo0) { | |
3232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
3235 | return NULL; | |
3236 | } | |
3237 | } | |
3238 | { | |
3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3240 | wxNativeFontInfo_Init(_arg0); | |
3241 | ||
3242 | wxPyEndAllowThreads(__tstate); | |
3243 | if (PyErr_Occurred()) return NULL; | |
3244 | } Py_INCREF(Py_None); | |
3245 | _resultobj = Py_None; | |
3246 | return _resultobj; | |
3247 | } | |
3248 | ||
3249 | #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3250 | static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3251 | PyObject * _resultobj; | |
3252 | int _result; | |
3253 | wxNativeFontInfo * _arg0; | |
3254 | PyObject * _argo0 = 0; | |
3255 | char *_kwnames[] = { "self", NULL }; | |
3256 | ||
3257 | self = self; | |
3258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0)) | |
3259 | return NULL; | |
3260 | if (_argo0) { | |
3261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p."); | |
3264 | return NULL; | |
3265 | } | |
3266 | } | |
3267 | { | |
3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3269 | _result = (int )wxNativeFontInfo_GetPointSize(_arg0); | |
3270 | ||
3271 | wxPyEndAllowThreads(__tstate); | |
3272 | if (PyErr_Occurred()) return NULL; | |
3273 | } _resultobj = Py_BuildValue("i",_result); | |
3274 | return _resultobj; | |
3275 | } | |
3276 | ||
3277 | #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3278 | static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3279 | PyObject * _resultobj; | |
3280 | wxFontStyle _result; | |
3281 | wxNativeFontInfo * _arg0; | |
3282 | PyObject * _argo0 = 0; | |
3283 | char *_kwnames[] = { "self", NULL }; | |
3284 | ||
3285 | self = self; | |
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0)) | |
3287 | return NULL; | |
3288 | if (_argo0) { | |
3289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p."); | |
3292 | return NULL; | |
3293 | } | |
3294 | } | |
3295 | { | |
3296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3297 | _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0); | |
3298 | ||
3299 | wxPyEndAllowThreads(__tstate); | |
3300 | if (PyErr_Occurred()) return NULL; | |
3301 | } _resultobj = Py_BuildValue("i",_result); | |
3302 | return _resultobj; | |
3303 | } | |
3304 | ||
3305 | #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3306 | static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3307 | PyObject * _resultobj; | |
3308 | wxFontWeight _result; | |
3309 | wxNativeFontInfo * _arg0; | |
3310 | PyObject * _argo0 = 0; | |
3311 | char *_kwnames[] = { "self", NULL }; | |
3312 | ||
3313 | self = self; | |
3314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0)) | |
3315 | return NULL; | |
3316 | if (_argo0) { | |
3317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p."); | |
3320 | return NULL; | |
3321 | } | |
3322 | } | |
3323 | { | |
3324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3325 | _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0); | |
3326 | ||
3327 | wxPyEndAllowThreads(__tstate); | |
3328 | if (PyErr_Occurred()) return NULL; | |
3329 | } _resultobj = Py_BuildValue("i",_result); | |
3330 | return _resultobj; | |
3331 | } | |
3332 | ||
3333 | #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3334 | static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3335 | PyObject * _resultobj; | |
3336 | bool _result; | |
3337 | wxNativeFontInfo * _arg0; | |
3338 | PyObject * _argo0 = 0; | |
3339 | char *_kwnames[] = { "self", NULL }; | |
3340 | ||
3341 | self = self; | |
3342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0)) | |
3343 | return NULL; | |
3344 | if (_argo0) { | |
3345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p."); | |
3348 | return NULL; | |
3349 | } | |
3350 | } | |
3351 | { | |
3352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3353 | _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0); | |
3354 | ||
3355 | wxPyEndAllowThreads(__tstate); | |
3356 | if (PyErr_Occurred()) return NULL; | |
3357 | } _resultobj = Py_BuildValue("i",_result); | |
3358 | return _resultobj; | |
3359 | } | |
3360 | ||
3361 | #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3362 | static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3363 | PyObject * _resultobj; | |
3364 | wxString * _result; | |
3365 | wxNativeFontInfo * _arg0; | |
3366 | PyObject * _argo0 = 0; | |
3367 | char *_kwnames[] = { "self", NULL }; | |
3368 | ||
3369 | self = self; | |
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0)) | |
3371 | return NULL; | |
3372 | if (_argo0) { | |
3373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p."); | |
3376 | return NULL; | |
3377 | } | |
3378 | } | |
3379 | { | |
3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3381 | _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0)); | |
3382 | ||
3383 | wxPyEndAllowThreads(__tstate); | |
3384 | if (PyErr_Occurred()) return NULL; | |
3385 | }{ | |
3386 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3387 | } | |
3388 | { | |
3389 | delete _result; | |
3390 | } | |
3391 | return _resultobj; | |
3392 | } | |
3393 | ||
3394 | #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3395 | static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject * _resultobj; | |
3397 | wxFontFamily _result; | |
3398 | wxNativeFontInfo * _arg0; | |
3399 | PyObject * _argo0 = 0; | |
3400 | char *_kwnames[] = { "self", NULL }; | |
3401 | ||
3402 | self = self; | |
3403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0)) | |
3404 | return NULL; | |
3405 | if (_argo0) { | |
3406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p."); | |
3409 | return NULL; | |
3410 | } | |
3411 | } | |
3412 | { | |
3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3414 | _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0); | |
3415 | ||
3416 | wxPyEndAllowThreads(__tstate); | |
3417 | if (PyErr_Occurred()) return NULL; | |
3418 | } _resultobj = Py_BuildValue("i",_result); | |
3419 | return _resultobj; | |
3420 | } | |
3421 | ||
3422 | #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3423 | static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3424 | PyObject * _resultobj; | |
3425 | wxFontEncoding _result; | |
3426 | wxNativeFontInfo * _arg0; | |
3427 | PyObject * _argo0 = 0; | |
3428 | char *_kwnames[] = { "self", NULL }; | |
3429 | ||
3430 | self = self; | |
3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0)) | |
3432 | return NULL; | |
3433 | if (_argo0) { | |
3434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p."); | |
3437 | return NULL; | |
3438 | } | |
3439 | } | |
3440 | { | |
3441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3442 | _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0); | |
3443 | ||
3444 | wxPyEndAllowThreads(__tstate); | |
3445 | if (PyErr_Occurred()) return NULL; | |
3446 | } _resultobj = Py_BuildValue("i",_result); | |
3447 | return _resultobj; | |
3448 | } | |
3449 | ||
3450 | #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
3451 | static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3452 | PyObject * _resultobj; | |
3453 | wxNativeFontInfo * _arg0; | |
3454 | int _arg1; | |
3455 | PyObject * _argo0 = 0; | |
3456 | char *_kwnames[] = { "self","pointsize", NULL }; | |
3457 | ||
3458 | self = self; | |
3459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
3460 | return NULL; | |
3461 | if (_argo0) { | |
3462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p."); | |
3465 | return NULL; | |
3466 | } | |
3467 | } | |
3468 | { | |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | wxNativeFontInfo_SetPointSize(_arg0,_arg1); | |
3471 | ||
3472 | wxPyEndAllowThreads(__tstate); | |
3473 | if (PyErr_Occurred()) return NULL; | |
3474 | } Py_INCREF(Py_None); | |
3475 | _resultobj = Py_None; | |
3476 | return _resultobj; | |
3477 | } | |
3478 | ||
3479 | #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
3480 | static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3481 | PyObject * _resultobj; | |
3482 | wxNativeFontInfo * _arg0; | |
3483 | wxFontStyle _arg1; | |
3484 | PyObject * _argo0 = 0; | |
3485 | char *_kwnames[] = { "self","style", NULL }; | |
3486 | ||
3487 | self = self; | |
3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1)) | |
3489 | return NULL; | |
3490 | if (_argo0) { | |
3491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p."); | |
3494 | return NULL; | |
3495 | } | |
3496 | } | |
3497 | { | |
3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3499 | wxNativeFontInfo_SetStyle(_arg0,_arg1); | |
3500 | ||
3501 | wxPyEndAllowThreads(__tstate); | |
3502 | if (PyErr_Occurred()) return NULL; | |
3503 | } Py_INCREF(Py_None); | |
3504 | _resultobj = Py_None; | |
3505 | return _resultobj; | |
3506 | } | |
3507 | ||
3508 | #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
3509 | static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3510 | PyObject * _resultobj; | |
3511 | wxNativeFontInfo * _arg0; | |
3512 | wxFontWeight _arg1; | |
3513 | PyObject * _argo0 = 0; | |
3514 | char *_kwnames[] = { "self","weight", NULL }; | |
3515 | ||
3516 | self = self; | |
3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1)) | |
3518 | return NULL; | |
3519 | if (_argo0) { | |
3520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p."); | |
3523 | return NULL; | |
3524 | } | |
3525 | } | |
3526 | { | |
3527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3528 | wxNativeFontInfo_SetWeight(_arg0,_arg1); | |
3529 | ||
3530 | wxPyEndAllowThreads(__tstate); | |
3531 | if (PyErr_Occurred()) return NULL; | |
3532 | } Py_INCREF(Py_None); | |
3533 | _resultobj = Py_None; | |
3534 | return _resultobj; | |
3535 | } | |
3536 | ||
3537 | #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
3538 | static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3539 | PyObject * _resultobj; | |
3540 | wxNativeFontInfo * _arg0; | |
3541 | bool _arg1; | |
3542 | PyObject * _argo0 = 0; | |
3543 | int tempbool1; | |
3544 | char *_kwnames[] = { "self","underlined", NULL }; | |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
3548 | return NULL; | |
3549 | if (_argo0) { | |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p."); | |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
3556 | _arg1 = (bool ) tempbool1; | |
3557 | { | |
3558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3559 | wxNativeFontInfo_SetUnderlined(_arg0,_arg1); | |
3560 | ||
3561 | wxPyEndAllowThreads(__tstate); | |
3562 | if (PyErr_Occurred()) return NULL; | |
3563 | } Py_INCREF(Py_None); | |
3564 | _resultobj = Py_None; | |
3565 | return _resultobj; | |
3566 | } | |
3567 | ||
3568 | #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
3569 | static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3570 | PyObject * _resultobj; | |
3571 | wxNativeFontInfo * _arg0; | |
3572 | wxString * _arg1; | |
3573 | PyObject * _argo0 = 0; | |
3574 | PyObject * _obj1 = 0; | |
3575 | char *_kwnames[] = { "self","facename", NULL }; | |
3576 | ||
3577 | self = self; | |
3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
3579 | return NULL; | |
3580 | if (_argo0) { | |
3581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p."); | |
3584 | return NULL; | |
3585 | } | |
3586 | } | |
3587 | { | |
3588 | #if PYTHON_API_VERSION >= 1009 | |
3589 | char* tmpPtr; int tmpSize; | |
3590 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3591 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3592 | return NULL; | |
3593 | } | |
3594 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3595 | return NULL; | |
3596 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3597 | #else | |
3598 | if (!PyString_Check(_obj1)) { | |
3599 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3600 | return NULL; | |
3601 | } | |
3602 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3603 | #endif | |
3604 | } | |
3605 | { | |
3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3607 | wxNativeFontInfo_SetFaceName(_arg0,*_arg1); | |
3608 | ||
3609 | wxPyEndAllowThreads(__tstate); | |
3610 | if (PyErr_Occurred()) return NULL; | |
3611 | } Py_INCREF(Py_None); | |
3612 | _resultobj = Py_None; | |
3613 | { | |
3614 | if (_obj1) | |
3615 | delete _arg1; | |
3616 | } | |
3617 | return _resultobj; | |
3618 | } | |
3619 | ||
3620 | #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
3621 | static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3622 | PyObject * _resultobj; | |
3623 | wxNativeFontInfo * _arg0; | |
3624 | wxFontFamily _arg1; | |
3625 | PyObject * _argo0 = 0; | |
3626 | char *_kwnames[] = { "self","family", NULL }; | |
3627 | ||
3628 | self = self; | |
3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1)) | |
3630 | return NULL; | |
3631 | if (_argo0) { | |
3632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p."); | |
3635 | return NULL; | |
3636 | } | |
3637 | } | |
3638 | { | |
3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3640 | wxNativeFontInfo_SetFamily(_arg0,_arg1); | |
3641 | ||
3642 | wxPyEndAllowThreads(__tstate); | |
3643 | if (PyErr_Occurred()) return NULL; | |
3644 | } Py_INCREF(Py_None); | |
3645 | _resultobj = Py_None; | |
3646 | return _resultobj; | |
3647 | } | |
3648 | ||
3649 | #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
3650 | static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3651 | PyObject * _resultobj; | |
3652 | wxNativeFontInfo * _arg0; | |
3653 | wxFontEncoding _arg1; | |
3654 | PyObject * _argo0 = 0; | |
3655 | char *_kwnames[] = { "self","encoding", NULL }; | |
3656 | ||
3657 | self = self; | |
3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3659 | return NULL; | |
3660 | if (_argo0) { | |
3661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p."); | |
3664 | return NULL; | |
3665 | } | |
3666 | } | |
3667 | { | |
3668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3669 | wxNativeFontInfo_SetEncoding(_arg0,_arg1); | |
3670 | ||
3671 | wxPyEndAllowThreads(__tstate); | |
3672 | if (PyErr_Occurred()) return NULL; | |
3673 | } Py_INCREF(Py_None); | |
3674 | _resultobj = Py_None; | |
3675 | return _resultobj; | |
3676 | } | |
3677 | ||
6d8b4f8d RD |
3678 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
3679 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3680 | PyObject * _resultobj; | |
3681 | bool _result; | |
3682 | wxNativeFontInfo * _arg0; | |
3683 | wxString * _arg1; | |
3684 | PyObject * _argo0 = 0; | |
3685 | PyObject * _obj1 = 0; | |
3686 | char *_kwnames[] = { "self","s", NULL }; | |
3687 | ||
3688 | self = self; | |
3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
3690 | return NULL; | |
3691 | if (_argo0) { | |
3692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
3695 | return NULL; | |
3696 | } | |
3697 | } | |
3698 | { | |
3699 | #if PYTHON_API_VERSION >= 1009 | |
3700 | char* tmpPtr; int tmpSize; | |
3701 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3702 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3703 | return NULL; | |
3704 | } | |
3705 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3706 | return NULL; | |
3707 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3708 | #else | |
3709 | if (!PyString_Check(_obj1)) { | |
3710 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3711 | return NULL; | |
3712 | } | |
3713 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3714 | #endif | |
9416aa89 | 3715 | } |
6d8b4f8d | 3716 | { |
4268f798 | 3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3718 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
9416aa89 | 3719 | |
4268f798 | 3720 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3721 | if (PyErr_Occurred()) return NULL; |
3722 | } _resultobj = Py_BuildValue("i",_result); | |
3723 | { | |
3724 | if (_obj1) | |
3725 | delete _arg1; | |
3726 | } | |
3727 | return _resultobj; | |
9416aa89 RD |
3728 | } |
3729 | ||
6d8b4f8d RD |
3730 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
3731 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3732 | PyObject * _resultobj; |
6d8b4f8d RD |
3733 | wxString * _result; |
3734 | wxNativeFontInfo * _arg0; | |
3735 | PyObject * _argo0 = 0; | |
3736 | char *_kwnames[] = { "self", NULL }; | |
3737 | ||
3738 | self = self; | |
3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3740 | return NULL; | |
3741 | if (_argo0) { | |
3742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3745 | return NULL; | |
3746 | } | |
3747 | } | |
3748 | { | |
4268f798 | 3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
3750 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
3751 | ||
4268f798 | 3752 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3753 | if (PyErr_Occurred()) return NULL; |
3754 | }{ | |
3755 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3756 | } | |
3757 | { | |
3758 | delete _result; | |
3759 | } | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
3763 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3764 | return self->ToString(); | |
3765 | } | |
3766 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3767 | PyObject * _resultobj; | |
3768 | wxString * _result; | |
3769 | wxNativeFontInfo * _arg0; | |
3770 | PyObject * _argo0 = 0; | |
3771 | char *_kwnames[] = { "self", NULL }; | |
3772 | ||
3773 | self = self; | |
3774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3775 | return NULL; | |
3776 | if (_argo0) { | |
3777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3780 | return NULL; | |
3781 | } | |
3782 | } | |
3783 | { | |
4268f798 | 3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
3785 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
3786 | ||
4268f798 | 3787 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3788 | if (PyErr_Occurred()) return NULL; |
3789 | }{ | |
3790 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3791 | } | |
3792 | { | |
3793 | delete _result; | |
3794 | } | |
3795 | return _resultobj; | |
3796 | } | |
3797 | ||
b5a5d647 RD |
3798 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
3799 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3800 | PyObject * _resultobj; | |
3801 | bool _result; | |
3802 | wxNativeFontInfo * _arg0; | |
3803 | wxString * _arg1; | |
3804 | PyObject * _argo0 = 0; | |
3805 | PyObject * _obj1 = 0; | |
3806 | char *_kwnames[] = { "self","s", NULL }; | |
3807 | ||
3808 | self = self; | |
3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
3810 | return NULL; | |
3811 | if (_argo0) { | |
3812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
3815 | return NULL; | |
3816 | } | |
3817 | } | |
3818 | { | |
3819 | #if PYTHON_API_VERSION >= 1009 | |
3820 | char* tmpPtr; int tmpSize; | |
3821 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3822 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3823 | return NULL; | |
3824 | } | |
3825 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3826 | return NULL; | |
3827 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3828 | #else | |
3829 | if (!PyString_Check(_obj1)) { | |
3830 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3831 | return NULL; | |
3832 | } | |
3833 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3834 | #endif | |
3835 | } | |
3836 | { | |
3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3838 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); | |
3839 | ||
3840 | wxPyEndAllowThreads(__tstate); | |
3841 | if (PyErr_Occurred()) return NULL; | |
3842 | } _resultobj = Py_BuildValue("i",_result); | |
3843 | { | |
3844 | if (_obj1) | |
3845 | delete _arg1; | |
3846 | } | |
3847 | return _resultobj; | |
3848 | } | |
3849 | ||
3850 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
3851 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3852 | PyObject * _resultobj; | |
3853 | wxString * _result; | |
3854 | wxNativeFontInfo * _arg0; | |
3855 | PyObject * _argo0 = 0; | |
3856 | char *_kwnames[] = { "self", NULL }; | |
3857 | ||
3858 | self = self; | |
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
3860 | return NULL; | |
3861 | if (_argo0) { | |
3862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
3865 | return NULL; | |
3866 | } | |
3867 | } | |
3868 | { | |
3869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3870 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); | |
3871 | ||
3872 | wxPyEndAllowThreads(__tstate); | |
3873 | if (PyErr_Occurred()) return NULL; | |
3874 | }{ | |
3875 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3876 | } | |
3877 | { | |
3878 | delete _result; | |
3879 | } | |
3880 | return _resultobj; | |
3881 | } | |
3882 | ||
6d8b4f8d RD |
3883 | #define new_wxFontMapper() (new wxFontMapper()) |
3884 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3885 | PyObject * _resultobj; | |
3886 | wxFontMapper * _result; | |
3887 | char *_kwnames[] = { NULL }; | |
8ab979d7 RD |
3888 | char _ptemp[128]; |
3889 | ||
3890 | self = self; | |
6d8b4f8d | 3891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) |
8ab979d7 | 3892 | return NULL; |
cf694132 | 3893 | { |
4268f798 | 3894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3895 | _result = (wxFontMapper *)new_wxFontMapper(); |
cf694132 | 3896 | |
4268f798 | 3897 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3898 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3899 | } if (_result) { |
6d8b4f8d | 3900 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); |
1d99702e RD |
3901 | _resultobj = Py_BuildValue("s",_ptemp); |
3902 | } else { | |
3903 | Py_INCREF(Py_None); | |
3904 | _resultobj = Py_None; | |
3905 | } | |
8ab979d7 RD |
3906 | return _resultobj; |
3907 | } | |
3908 | ||
6d8b4f8d RD |
3909 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) |
3910 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0569df0f | 3911 | PyObject * _resultobj; |
6d8b4f8d | 3912 | wxFontMapper * _arg0; |
0569df0f RD |
3913 | PyObject * _argo0 = 0; |
3914 | char *_kwnames[] = { "self", NULL }; | |
3915 | ||
3916 | self = self; | |
6d8b4f8d | 3917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
0569df0f RD |
3918 | return NULL; |
3919 | if (_argo0) { | |
3920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
0569df0f RD |
3923 | return NULL; |
3924 | } | |
3925 | } | |
3926 | { | |
4268f798 | 3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3928 | delete_wxFontMapper(_arg0); |
0569df0f | 3929 | |
4268f798 | 3930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3931 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3932 | } Py_INCREF(Py_None); |
3933 | _resultobj = Py_None; | |
3934 | return _resultobj; | |
3935 | } | |
3936 | ||
6d8b4f8d RD |
3937 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
3938 | wxFontEncoding alt_enc; | |
3939 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3940 | return PyInt_FromLong(alt_enc); | |
3941 | else { | |
3942 | Py_INCREF(Py_None); | |
3943 | return Py_None; | |
3944 | } | |
3945 | } | |
3946 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
694759cf | 3947 | PyObject * _resultobj; |
6d8b4f8d RD |
3948 | PyObject * _result; |
3949 | wxFontMapper * _arg0; | |
3950 | wxFontEncoding _arg1; | |
3951 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3952 | bool _arg3 = (bool ) TRUE; | |
694759cf | 3953 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3954 | PyObject * _obj2 = 0; |
3955 | int tempbool3 = (int) TRUE; | |
3956 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
694759cf RD |
3957 | |
3958 | self = self; | |
6d8b4f8d | 3959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
694759cf RD |
3960 | return NULL; |
3961 | if (_argo0) { | |
3962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
694759cf RD |
3965 | return NULL; |
3966 | } | |
3967 | } | |
6d8b4f8d RD |
3968 | if (_obj2) |
3969 | { | |
3970 | #if PYTHON_API_VERSION >= 1009 | |
3971 | char* tmpPtr; int tmpSize; | |
3972 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3973 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3974 | return NULL; | |
3975 | } | |
3976 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3977 | return NULL; | |
3978 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3979 | #else | |
3980 | if (!PyString_Check(_obj2)) { | |
3981 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3982 | return NULL; | |
3983 | } | |
3984 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3985 | #endif | |
3986 | } | |
3987 | _arg3 = (bool ) tempbool3; | |
694759cf | 3988 | { |
4268f798 | 3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3990 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
694759cf | 3991 | |
4268f798 | 3992 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3993 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
3994 | }{ |
3995 | _resultobj = _result; | |
3996 | } | |
3997 | { | |
3998 | if (_obj2) | |
3999 | delete _arg2; | |
4000 | } | |
694759cf RD |
4001 | return _resultobj; |
4002 | } | |
4003 | ||
6d8b4f8d RD |
4004 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
4005 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4006 | PyObject * _resultobj; |
6d8b4f8d RD |
4007 | bool _result; |
4008 | wxFontMapper * _arg0; | |
4009 | wxFontEncoding _arg1; | |
4010 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1d99702e | 4011 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4012 | PyObject * _obj2 = 0; |
4013 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
8ab979d7 RD |
4014 | |
4015 | self = self; | |
6d8b4f8d | 4016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4017 | return NULL; |
1d99702e RD |
4018 | if (_argo0) { |
4019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
4020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
4021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
8ab979d7 RD |
4022 | return NULL; |
4023 | } | |
4024 | } | |
6d8b4f8d RD |
4025 | if (_obj2) |
4026 | { | |
4027 | #if PYTHON_API_VERSION >= 1009 | |
4028 | char* tmpPtr; int tmpSize; | |
4029 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4030 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4031 | return NULL; | |
4032 | } | |
4033 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4034 | return NULL; | |
4035 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4036 | #else | |
4037 | if (!PyString_Check(_obj2)) { | |
4038 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4039 | return NULL; | |
4040 | } | |
4041 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4042 | #endif | |
4043 | } | |
8ab979d7 | 4044 | { |
4268f798 | 4045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4046 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
cf694132 | 4047 | |
4268f798 | 4048 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4049 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 4050 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 4051 | { |
6d8b4f8d RD |
4052 | if (_obj2) |
4053 | delete _arg2; | |
8ab979d7 RD |
4054 | } |
4055 | return _resultobj; | |
4056 | } | |
4057 | ||
6d8b4f8d RD |
4058 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
4059 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4060 | PyObject * _resultobj; |
6d8b4f8d RD |
4061 | wxFontEncoding _result; |
4062 | wxFontMapper * _arg0; | |
4063 | wxString * _arg1; | |
4064 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4065 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4066 | PyObject * _obj1 = 0; |
4067 | int tempbool2 = (int) TRUE; | |
4068 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
8ab979d7 RD |
4069 | |
4070 | self = self; | |
6d8b4f8d | 4071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 4072 | return NULL; |
1d99702e RD |
4073 | if (_argo0) { |
4074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
4075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
4076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
4077 | return NULL; | |
4078 | } | |
4079 | } | |
4080 | { | |
4081 | #if PYTHON_API_VERSION >= 1009 | |
4082 | char* tmpPtr; int tmpSize; | |
4083 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4084 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4085 | return NULL; | |
4086 | } | |
4087 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4088 | return NULL; | |
4089 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4090 | #else | |
4091 | if (!PyString_Check(_obj1)) { | |
4092 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4093 | return NULL; | |
4094 | } | |
4095 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4096 | #endif | |
4097 | } | |
4098 | _arg2 = (bool ) tempbool2; | |
4099 | { | |
4268f798 | 4100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4101 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
4102 | ||
4268f798 | 4103 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4104 | if (PyErr_Occurred()) return NULL; |
4105 | } _resultobj = Py_BuildValue("i",_result); | |
4106 | { | |
4107 | if (_obj1) | |
4108 | delete _arg1; | |
4109 | } | |
4110 | return _resultobj; | |
4111 | } | |
4112 | ||
4113 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4114 | PyObject * _resultobj; | |
4115 | wxString * _result; | |
4116 | wxFontEncoding _arg0; | |
4117 | char *_kwnames[] = { "encoding", NULL }; | |
4118 | ||
4119 | self = self; | |
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
4121 | return NULL; | |
4122 | { | |
4268f798 | 4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4124 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
4125 | ||
4268f798 | 4126 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4127 | if (PyErr_Occurred()) return NULL; |
4128 | }{ | |
4129 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4130 | } | |
4131 | { | |
4132 | delete _result; | |
4133 | } | |
4134 | return _resultobj; | |
4135 | } | |
4136 | ||
4137 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4138 | PyObject * _resultobj; | |
4139 | wxString * _result; | |
4140 | wxFontEncoding _arg0; | |
4141 | char *_kwnames[] = { "encoding", NULL }; | |
4142 | ||
4143 | self = self; | |
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
4145 | return NULL; | |
4146 | { | |
4268f798 | 4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4148 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
4149 | ||
4268f798 | 4150 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4151 | if (PyErr_Occurred()) return NULL; |
4152 | }{ | |
4153 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4154 | } | |
4155 | { | |
4156 | delete _result; | |
4157 | } | |
4158 | return _resultobj; | |
4159 | } | |
4160 | ||
4161 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
4162 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4163 | PyObject * _resultobj; | |
4164 | wxFontMapper * _arg0; | |
4165 | wxWindow * _arg1; | |
4166 | PyObject * _argo0 = 0; | |
4167 | PyObject * _argo1 = 0; | |
4168 | char *_kwnames[] = { "self","parent", NULL }; | |
4169 | ||
4170 | self = self; | |
4171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
4172 | return NULL; | |
4173 | if (_argo0) { | |
4174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
4177 | return NULL; | |
4178 | } | |
4179 | } | |
4180 | if (_argo1) { | |
4181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
4184 | return NULL; | |
4185 | } | |
4186 | } | |
4187 | { | |
4268f798 | 4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4189 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
4190 | ||
4268f798 | 4191 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4192 | if (PyErr_Occurred()) return NULL; |
4193 | } Py_INCREF(Py_None); | |
4194 | _resultobj = Py_None; | |
4195 | return _resultobj; | |
4196 | } | |
4197 | ||
4198 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
4199 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject * _resultobj; | |
4201 | wxFontMapper * _arg0; | |
4202 | wxString * _arg1; | |
4203 | PyObject * _argo0 = 0; | |
4204 | PyObject * _obj1 = 0; | |
4205 | char *_kwnames[] = { "self","title", NULL }; | |
4206 | ||
4207 | self = self; | |
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
4209 | return NULL; | |
4210 | if (_argo0) { | |
4211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
4214 | return NULL; | |
4215 | } | |
4216 | } | |
4217 | { | |
4218 | #if PYTHON_API_VERSION >= 1009 | |
4219 | char* tmpPtr; int tmpSize; | |
4220 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4221 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4222 | return NULL; | |
4223 | } | |
4224 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4225 | return NULL; | |
4226 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4227 | #else | |
4228 | if (!PyString_Check(_obj1)) { | |
4229 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4230 | return NULL; | |
4231 | } | |
4232 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4233 | #endif | |
4234 | } | |
4235 | { | |
4268f798 | 4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4237 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
4238 | ||
4268f798 | 4239 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4240 | if (PyErr_Occurred()) return NULL; |
4241 | } Py_INCREF(Py_None); | |
4242 | _resultobj = Py_None; | |
4243 | { | |
4244 | if (_obj1) | |
4245 | delete _arg1; | |
4246 | } | |
4247 | return _resultobj; | |
4248 | } | |
4249 | ||
4250 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
4251 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4252 | PyObject * _resultobj; | |
4253 | wxFontMapper * _arg0; | |
4254 | wxConfigBase * _arg1; | |
4255 | PyObject * _argo0 = 0; | |
4256 | PyObject * _argo1 = 0; | |
4257 | char *_kwnames[] = { "self","config", NULL }; | |
4258 | ||
4259 | self = self; | |
4260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
4261 | return NULL; | |
4262 | if (_argo0) { | |
4263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
4266 | return NULL; | |
4267 | } | |
4268 | } | |
4269 | if (_argo1) { | |
4270 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4271 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
4272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
4273 | return NULL; | |
4274 | } | |
4275 | } | |
4276 | { | |
4268f798 | 4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4278 | wxFontMapper_SetConfig(_arg0,_arg1); |
4279 | ||
4268f798 | 4280 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4281 | if (PyErr_Occurred()) return NULL; |
4282 | } Py_INCREF(Py_None); | |
4283 | _resultobj = Py_None; | |
4284 | return _resultobj; | |
4285 | } | |
4286 | ||
4287 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
4288 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject * _resultobj; | |
4290 | wxFontMapper * _arg0; | |
4291 | wxString * _arg1; | |
4292 | PyObject * _argo0 = 0; | |
4293 | PyObject * _obj1 = 0; | |
4294 | char *_kwnames[] = { "self","prefix", NULL }; | |
4295 | ||
4296 | self = self; | |
4297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
4298 | return NULL; | |
4299 | if (_argo0) { | |
4300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
4303 | return NULL; | |
4304 | } | |
4305 | } | |
4306 | { | |
4307 | #if PYTHON_API_VERSION >= 1009 | |
4308 | char* tmpPtr; int tmpSize; | |
4309 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4310 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4311 | return NULL; | |
4312 | } | |
4313 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4314 | return NULL; | |
4315 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4316 | #else | |
4317 | if (!PyString_Check(_obj1)) { | |
4318 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4319 | return NULL; | |
4320 | } | |
4321 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4322 | #endif | |
4323 | } | |
4324 | { | |
4268f798 | 4325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4326 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
4327 | ||
4268f798 | 4328 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4329 | if (PyErr_Occurred()) return NULL; |
4330 | } Py_INCREF(Py_None); | |
4331 | _resultobj = Py_None; | |
4332 | { | |
4333 | if (_obj1) | |
4334 | delete _arg1; | |
4335 | } | |
4336 | return _resultobj; | |
4337 | } | |
4338 | ||
4339 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4340 | PyObject * _resultobj; | |
4341 | wxChar * _result; | |
4342 | char *_kwnames[] = { NULL }; | |
4343 | ||
4344 | self = self; | |
4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
4346 | return NULL; | |
4347 | { | |
4268f798 | 4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4349 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); |
4350 | ||
4268f798 | 4351 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4352 | if (PyErr_Occurred()) return NULL; |
4353 | } _resultobj = Py_BuildValue("s", _result); | |
4354 | return _resultobj; | |
4355 | } | |
4356 | ||
4357 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
4358 | wxFont *src; | |
4359 | wxGDIObject *dest; | |
4360 | src = (wxFont *) ptr; | |
4361 | dest = (wxGDIObject *) src; | |
4362 | return (void *) dest; | |
4363 | } | |
4364 | ||
4365 | static void *SwigwxFontTowxObject(void *ptr) { | |
4366 | wxFont *src; | |
4367 | wxObject *dest; | |
4368 | src = (wxFont *) ptr; | |
4369 | dest = (wxObject *) src; | |
4370 | return (void *) dest; | |
4371 | } | |
4372 | ||
4373 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4374 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject * _resultobj; | |
4376 | wxFont * _result; | |
4377 | int _arg0; | |
4378 | int _arg1; | |
4379 | int _arg2; | |
4380 | int _arg3; | |
4381 | int _arg4 = (int ) FALSE; | |
4382 | char * _arg5 = (char *) ""; | |
4383 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4384 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
4385 | char _ptemp[128]; | |
4386 | ||
4387 | self = self; | |
4388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4389 | return NULL; | |
4390 | { | |
4268f798 | 4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4392 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
4393 | ||
4268f798 | 4394 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4395 | if (PyErr_Occurred()) return NULL; |
4396 | } if (_result) { | |
4397 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4398 | _resultobj = Py_BuildValue("s",_ptemp); | |
4399 | } else { | |
4400 | Py_INCREF(Py_None); | |
4401 | _resultobj = Py_None; | |
4402 | } | |
4403 | return _resultobj; | |
4404 | } | |
4405 | ||
4406 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
4407 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4408 | PyObject * _resultobj; | |
4409 | wxFont * _result; | |
4410 | wxNativeFontInfo * _arg0; | |
4411 | PyObject * _argo0 = 0; | |
4412 | char *_kwnames[] = { "info", NULL }; | |
4413 | char _ptemp[128]; | |
4414 | ||
4415 | self = self; | |
4416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
4417 | return NULL; | |
4418 | if (_argo0) { | |
4419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
4421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
4422 | return NULL; | |
4423 | } | |
4424 | } | |
4425 | { | |
4268f798 | 4426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4427 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
4428 | ||
4268f798 | 4429 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4430 | if (PyErr_Occurred()) return NULL; |
4431 | } if (_result) { | |
4432 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4433 | _resultobj = Py_BuildValue("s",_ptemp); | |
4434 | } else { | |
4435 | Py_INCREF(Py_None); | |
4436 | _resultobj = Py_None; | |
4437 | } | |
4438 | return _resultobj; | |
4439 | } | |
4440 | ||
4441 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
4442 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4443 | PyObject * _resultobj; | |
4444 | wxFont * _arg0; | |
4445 | PyObject * _argo0 = 0; | |
4446 | char *_kwnames[] = { "self", NULL }; | |
4447 | ||
4448 | self = self; | |
4449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
4450 | return NULL; | |
4451 | if (_argo0) { | |
4452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
4455 | return NULL; | |
4456 | } | |
4457 | } | |
4458 | { | |
4268f798 | 4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4460 | delete_wxFont(_arg0); |
4461 | ||
4268f798 | 4462 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4463 | if (PyErr_Occurred()) return NULL; |
4464 | } Py_INCREF(Py_None); | |
4465 | _resultobj = Py_None; | |
4466 | return _resultobj; | |
4467 | } | |
4468 | ||
4469 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
4470 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject * _resultobj; | |
4472 | bool _result; | |
4473 | wxFont * _arg0; | |
4474 | PyObject * _argo0 = 0; | |
4475 | char *_kwnames[] = { "self", NULL }; | |
4476 | ||
4477 | self = self; | |
4478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
4479 | return NULL; | |
4480 | if (_argo0) { | |
4481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
4484 | return NULL; | |
4485 | } | |
4486 | } | |
4487 | { | |
4268f798 | 4488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4489 | _result = (bool )wxFont_Ok(_arg0); |
4490 | ||
4268f798 | 4491 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4492 | if (PyErr_Occurred()) return NULL; |
4493 | } _resultobj = Py_BuildValue("i",_result); | |
4494 | return _resultobj; | |
4495 | } | |
4496 | ||
4497 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
4498 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4499 | PyObject * _resultobj; | |
4500 | int _result; | |
4501 | wxFont * _arg0; | |
4502 | PyObject * _argo0 = 0; | |
4503 | char *_kwnames[] = { "self", NULL }; | |
4504 | ||
4505 | self = self; | |
4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
4507 | return NULL; | |
4508 | if (_argo0) { | |
4509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
8ab979d7 RD |
4512 | return NULL; |
4513 | } | |
4514 | } | |
cf694132 | 4515 | { |
4268f798 | 4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4517 | _result = (int )wxFont_GetPointSize(_arg0); |
cf694132 | 4518 | |
4268f798 | 4519 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4520 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4521 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4522 | return _resultobj; |
4523 | } | |
4524 | ||
6d8b4f8d RD |
4525 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) |
4526 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4527 | PyObject * _resultobj; |
4528 | int _result; | |
4529 | wxFont * _arg0; | |
1d99702e | 4530 | PyObject * _argo0 = 0; |
1afc06c2 | 4531 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4532 | |
4533 | self = self; | |
6d8b4f8d | 4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 4535 | return NULL; |
1d99702e RD |
4536 | if (_argo0) { |
4537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
8ab979d7 RD |
4540 | return NULL; |
4541 | } | |
4542 | } | |
cf694132 | 4543 | { |
4268f798 | 4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4545 | _result = (int )wxFont_GetFamily(_arg0); |
cf694132 | 4546 | |
4268f798 | 4547 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4548 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4549 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4550 | return _resultobj; |
4551 | } | |
4552 | ||
6d8b4f8d RD |
4553 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) |
4554 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4555 | PyObject * _resultobj; |
4556 | int _result; | |
4557 | wxFont * _arg0; | |
1d99702e | 4558 | PyObject * _argo0 = 0; |
1afc06c2 | 4559 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4560 | |
4561 | self = self; | |
6d8b4f8d | 4562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4563 | return NULL; |
1d99702e RD |
4564 | if (_argo0) { |
4565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4568 | return NULL; |
4569 | } | |
4570 | } | |
cf694132 | 4571 | { |
4268f798 | 4572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4573 | _result = (int )wxFont_GetStyle(_arg0); |
cf694132 | 4574 | |
4268f798 | 4575 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4576 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4577 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4578 | return _resultobj; |
4579 | } | |
4580 | ||
6d8b4f8d RD |
4581 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) |
4582 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4583 | PyObject * _resultobj; |
4584 | int _result; | |
4585 | wxFont * _arg0; | |
1d99702e | 4586 | PyObject * _argo0 = 0; |
1afc06c2 | 4587 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4588 | |
4589 | self = self; | |
6d8b4f8d | 4590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 4591 | return NULL; |
1d99702e RD |
4592 | if (_argo0) { |
4593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4596 | return NULL; |
4597 | } | |
4598 | } | |
cf694132 | 4599 | { |
4268f798 | 4600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4601 | _result = (int )wxFont_GetWeight(_arg0); |
cf694132 | 4602 | |
4268f798 | 4603 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4604 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4605 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4606 | return _resultobj; |
4607 | } | |
4608 | ||
4609 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 4610 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4611 | PyObject * _resultobj; |
4612 | bool _result; | |
4613 | wxFont * _arg0; | |
1d99702e | 4614 | PyObject * _argo0 = 0; |
1afc06c2 | 4615 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4616 | |
4617 | self = self; | |
1afc06c2 | 4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 4619 | return NULL; |
1d99702e RD |
4620 | if (_argo0) { |
4621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
4624 | return NULL; | |
4625 | } | |
4626 | } | |
cf694132 | 4627 | { |
4268f798 | 4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4629 | _result = (bool )wxFont_GetUnderlined(_arg0); |
4630 | ||
4268f798 | 4631 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4632 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4633 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4634 | return _resultobj; |
4635 | } | |
4636 | ||
6d8b4f8d RD |
4637 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
4638 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4639 | PyObject * _resultobj; |
6d8b4f8d | 4640 | wxString * _result; |
8ab979d7 | 4641 | wxFont * _arg0; |
1d99702e | 4642 | PyObject * _argo0 = 0; |
1afc06c2 | 4643 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4644 | |
4645 | self = self; | |
6d8b4f8d | 4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 4647 | return NULL; |
1d99702e RD |
4648 | if (_argo0) { |
4649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
8ab979d7 RD |
4652 | return NULL; |
4653 | } | |
4654 | } | |
cf694132 | 4655 | { |
4268f798 | 4656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4657 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
cf694132 | 4658 | |
4268f798 | 4659 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4660 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
4661 | }{ |
4662 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4663 | } | |
4664 | { | |
4665 | delete _result; | |
4666 | } | |
8ab979d7 RD |
4667 | return _resultobj; |
4668 | } | |
4669 | ||
f0261a72 RD |
4670 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
4671 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4672 | PyObject * _resultobj; | |
4673 | wxFontEncoding _result; | |
4674 | wxFont * _arg0; | |
4675 | PyObject * _argo0 = 0; | |
4676 | char *_kwnames[] = { "self", NULL }; | |
4677 | ||
4678 | self = self; | |
4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
4680 | return NULL; | |
4681 | if (_argo0) { | |
4682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
4685 | return NULL; | |
4686 | } | |
4687 | } | |
4688 | { | |
4268f798 | 4689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
4690 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
4691 | ||
4268f798 | 4692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4693 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4694 | } _resultobj = Py_BuildValue("i",_result); |
4695 | return _resultobj; | |
4696 | } | |
4697 | ||
6d8b4f8d RD |
4698 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
4699 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4700 | PyObject * _resultobj; |
6d8b4f8d | 4701 | wxNativeFontInfo * _result; |
8ab979d7 | 4702 | wxFont * _arg0; |
1d99702e | 4703 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4704 | char *_kwnames[] = { "self", NULL }; |
4705 | char _ptemp[128]; | |
8ab979d7 RD |
4706 | |
4707 | self = self; | |
6d8b4f8d | 4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
8ab979d7 | 4709 | return NULL; |
1d99702e RD |
4710 | if (_argo0) { |
4711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
8ab979d7 RD |
4714 | return NULL; |
4715 | } | |
4716 | } | |
4717 | { | |
4268f798 | 4718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4719 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
4720 | ||
4268f798 | 4721 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4722 | if (PyErr_Occurred()) return NULL; |
4723 | } if (_result) { | |
4724 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
4725 | _resultobj = Py_BuildValue("s",_ptemp); | |
4726 | } else { | |
4727 | Py_INCREF(Py_None); | |
4728 | _resultobj = Py_None; | |
185d7c3e | 4729 | } |
6d8b4f8d RD |
4730 | return _resultobj; |
4731 | } | |
4732 | ||
b5a5d647 RD |
4733 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
4734 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4735 | PyObject * _resultobj; | |
4736 | wxString * _result; | |
4737 | wxFont * _arg0; | |
4738 | PyObject * _argo0 = 0; | |
4739 | char *_kwnames[] = { "self", NULL }; | |
4740 | ||
4741 | self = self; | |
4742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
4743 | return NULL; | |
4744 | if (_argo0) { | |
4745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
4748 | return NULL; | |
4749 | } | |
4750 | } | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) return NULL; | |
4757 | }{ | |
4758 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4759 | } | |
4760 | { | |
4761 | delete _result; | |
4762 | } | |
4763 | return _resultobj; | |
4764 | } | |
4765 | ||
4766 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
4767 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4768 | PyObject * _resultobj; | |
4769 | wxString * _result; | |
4770 | wxFont * _arg0; | |
4771 | PyObject * _argo0 = 0; | |
4772 | char *_kwnames[] = { "self", NULL }; | |
4773 | ||
4774 | self = self; | |
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
4776 | return NULL; | |
4777 | if (_argo0) { | |
4778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4781 | return NULL; | |
4782 | } | |
4783 | } | |
4784 | { | |
4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4786 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); | |
4787 | ||
4788 | wxPyEndAllowThreads(__tstate); | |
4789 | if (PyErr_Occurred()) return NULL; | |
4790 | }{ | |
4791 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4792 | } | |
4793 | { | |
4794 | delete _result; | |
4795 | } | |
4796 | return _resultobj; | |
4797 | } | |
4798 | ||
6d8b4f8d RD |
4799 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
4800 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject * _resultobj; | |
4802 | wxFont * _arg0; | |
4803 | int _arg1; | |
4804 | PyObject * _argo0 = 0; | |
4805 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4806 | ||
4807 | self = self; | |
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4809 | return NULL; |
6d8b4f8d RD |
4810 | if (_argo0) { |
4811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
8ab979d7 | 4814 | return NULL; |
6d8b4f8d | 4815 | } |
8ab979d7 | 4816 | } |
cf694132 | 4817 | { |
4268f798 | 4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4819 | wxFont_SetPointSize(_arg0,_arg1); |
cf694132 | 4820 | |
4268f798 | 4821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4822 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4823 | } Py_INCREF(Py_None); |
8ab979d7 | 4824 | _resultobj = Py_None; |
8ab979d7 RD |
4825 | return _resultobj; |
4826 | } | |
4827 | ||
4828 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 4829 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4830 | PyObject * _resultobj; |
4831 | wxFont * _arg0; | |
4832 | int _arg1; | |
1d99702e | 4833 | PyObject * _argo0 = 0; |
1afc06c2 | 4834 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
4835 | |
4836 | self = self; | |
1afc06c2 | 4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4838 | return NULL; |
1d99702e RD |
4839 | if (_argo0) { |
4840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
4843 | return NULL; | |
4844 | } | |
4845 | } | |
cf694132 | 4846 | { |
4268f798 | 4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4848 | wxFont_SetFamily(_arg0,_arg1); |
4849 | ||
4268f798 | 4850 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4851 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4852 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4853 | _resultobj = Py_None; |
4854 | return _resultobj; | |
4855 | } | |
4856 | ||
6d8b4f8d RD |
4857 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
4858 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4859 | PyObject * _resultobj; |
4860 | wxFont * _arg0; | |
4861 | int _arg1; | |
1d99702e | 4862 | PyObject * _argo0 = 0; |
6d8b4f8d | 4863 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4864 | |
4865 | self = self; | |
6d8b4f8d | 4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4867 | return NULL; |
1d99702e RD |
4868 | if (_argo0) { |
4869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4872 | return NULL; |
4873 | } | |
4874 | } | |
cf694132 | 4875 | { |
4268f798 | 4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4877 | wxFont_SetStyle(_arg0,_arg1); |
cf694132 | 4878 | |
4268f798 | 4879 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4880 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4881 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4882 | _resultobj = Py_None; |
4883 | return _resultobj; | |
4884 | } | |
4885 | ||
6d8b4f8d RD |
4886 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
4887 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4888 | PyObject * _resultobj; |
4889 | wxFont * _arg0; | |
4890 | int _arg1; | |
1d99702e | 4891 | PyObject * _argo0 = 0; |
6d8b4f8d | 4892 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
4893 | |
4894 | self = self; | |
6d8b4f8d | 4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4896 | return NULL; |
1d99702e RD |
4897 | if (_argo0) { |
4898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4901 | return NULL; |
4902 | } | |
4903 | } | |
cf694132 | 4904 | { |
4268f798 | 4905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4906 | wxFont_SetWeight(_arg0,_arg1); |
4907 | ||
4268f798 | 4908 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4909 | if (PyErr_Occurred()) return NULL; |
4910 | } Py_INCREF(Py_None); | |
4911 | _resultobj = Py_None; | |
4912 | return _resultobj; | |
4913 | } | |
4914 | ||
4915 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4916 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4917 | PyObject * _resultobj; | |
4918 | wxFont * _arg0; | |
4919 | wxString * _arg1; | |
4920 | PyObject * _argo0 = 0; | |
4921 | PyObject * _obj1 = 0; | |
4922 | char *_kwnames[] = { "self","faceName", NULL }; | |
4923 | ||
4924 | self = self; | |
4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4926 | return NULL; | |
4927 | if (_argo0) { | |
4928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4931 | return NULL; | |
4932 | } | |
4933 | } | |
4934 | { | |
4935 | #if PYTHON_API_VERSION >= 1009 | |
4936 | char* tmpPtr; int tmpSize; | |
4937 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4938 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4939 | return NULL; | |
4940 | } | |
4941 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4942 | return NULL; | |
4943 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4944 | #else | |
4945 | if (!PyString_Check(_obj1)) { | |
4946 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4947 | return NULL; | |
4948 | } | |
4949 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4950 | #endif | |
4951 | } | |
4952 | { | |
4268f798 | 4953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4954 | wxFont_SetFaceName(_arg0,*_arg1); |
cf694132 | 4955 | |
4268f798 | 4956 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4957 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4958 | } Py_INCREF(Py_None); |
8ab979d7 | 4959 | _resultobj = Py_None; |
6d8b4f8d RD |
4960 | { |
4961 | if (_obj1) | |
4962 | delete _arg1; | |
4963 | } | |
8ab979d7 RD |
4964 | return _resultobj; |
4965 | } | |
4966 | ||
4967 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 4968 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4969 | PyObject * _resultobj; |
4970 | wxFont * _arg0; | |
4971 | bool _arg1; | |
1d99702e | 4972 | PyObject * _argo0 = 0; |
8ab979d7 | 4973 | int tempbool1; |
1afc06c2 | 4974 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
4975 | |
4976 | self = self; | |
1afc06c2 | 4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4978 | return NULL; |
1d99702e RD |
4979 | if (_argo0) { |
4980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
4983 | return NULL; | |
4984 | } | |
4985 | } | |
4986 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4987 | { |
4268f798 | 4988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4989 | wxFont_SetUnderlined(_arg0,_arg1); |
4990 | ||
4268f798 | 4991 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4993 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4994 | _resultobj = Py_None; |
4995 | return _resultobj; | |
4996 | } | |
4997 | ||
6d8b4f8d RD |
4998 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
4999 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
5000 | PyObject * _resultobj; |
5001 | wxFont * _arg0; | |
6d8b4f8d | 5002 | wxFontEncoding _arg1; |
1d99702e | 5003 | PyObject * _argo0 = 0; |
6d8b4f8d | 5004 | char *_kwnames[] = { "self","encoding", NULL }; |
8ab979d7 RD |
5005 | |
5006 | self = self; | |
6d8b4f8d | 5007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5008 | return NULL; |
1d99702e RD |
5009 | if (_argo0) { |
5010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 5012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
8ab979d7 RD |
5013 | return NULL; |
5014 | } | |
5015 | } | |
cf694132 | 5016 | { |
4268f798 | 5017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 5018 | wxFont_SetEncoding(_arg0,_arg1); |
cf694132 | 5019 | |
4268f798 | 5020 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5022 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5023 | _resultobj = Py_None; |
5024 | return _resultobj; | |
5025 | } | |
5026 | ||
6d8b4f8d RD |
5027 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
5028 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 RD |
5029 | PyObject * _resultobj; |
5030 | wxFont * _arg0; | |
6d8b4f8d | 5031 | wxNativeFontInfo * _arg1; |
f0261a72 | 5032 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
5033 | PyObject * _argo1 = 0; |
5034 | char *_kwnames[] = { "self","info", NULL }; | |
f0261a72 RD |
5035 | |
5036 | self = self; | |
6d8b4f8d | 5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
f0261a72 RD |
5038 | return NULL; |
5039 | if (_argo0) { | |
5040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d RD |
5042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
5043 | return NULL; | |
5044 | } | |
5045 | } | |
5046 | if (_argo1) { | |
5047 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5048 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
5049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
f0261a72 RD |
5050 | return NULL; |
5051 | } | |
5052 | } | |
5053 | { | |
4268f798 | 5054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 5055 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
f0261a72 | 5056 | |
4268f798 | 5057 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5058 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
5059 | } Py_INCREF(Py_None); |
5060 | _resultobj = Py_None; | |
5061 | return _resultobj; | |
5062 | } | |
5063 | ||
b5a5d647 RD |
5064 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
5065 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5066 | PyObject * _resultobj; | |
5067 | wxFont * _arg0; | |
5068 | wxString * _arg1; | |
5069 | PyObject * _argo0 = 0; | |
5070 | PyObject * _obj1 = 0; | |
5071 | char *_kwnames[] = { "self","info", NULL }; | |
5072 | ||
5073 | self = self; | |
5074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
5075 | return NULL; | |
5076 | if (_argo0) { | |
5077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | { | |
5084 | #if PYTHON_API_VERSION >= 1009 | |
5085 | char* tmpPtr; int tmpSize; | |
5086 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5087 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5088 | return NULL; | |
5089 | } | |
5090 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5091 | return NULL; | |
5092 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5093 | #else | |
5094 | if (!PyString_Check(_obj1)) { | |
5095 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5096 | return NULL; | |
5097 | } | |
5098 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5099 | #endif | |
5100 | } | |
5101 | { | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); | |
5104 | ||
5105 | wxPyEndAllowThreads(__tstate); | |
5106 | if (PyErr_Occurred()) return NULL; | |
5107 | } Py_INCREF(Py_None); | |
5108 | _resultobj = Py_None; | |
5109 | { | |
5110 | if (_obj1) | |
5111 | delete _arg1; | |
5112 | } | |
5113 | return _resultobj; | |
5114 | } | |
5115 | ||
f0261a72 RD |
5116 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
5117 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5118 | PyObject * _resultobj; | |
5119 | wxString * _result; | |
5120 | wxFont * _arg0; | |
5121 | PyObject * _argo0 = 0; | |
5122 | char *_kwnames[] = { "self", NULL }; | |
5123 | ||
5124 | self = self; | |
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
5126 | return NULL; | |
5127 | if (_argo0) { | |
5128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
5131 | return NULL; | |
5132 | } | |
5133 | } | |
5134 | { | |
4268f798 | 5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
5136 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
5137 | ||
4268f798 | 5138 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5139 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5140 | }{ |
eec92d76 | 5141 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
5142 | } |
5143 | { | |
5144 | delete _result; | |
5145 | } | |
5146 | return _resultobj; | |
5147 | } | |
5148 | ||
5149 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
5150 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5151 | PyObject * _resultobj; | |
5152 | wxString * _result; | |
5153 | wxFont * _arg0; | |
5154 | PyObject * _argo0 = 0; | |
5155 | char *_kwnames[] = { "self", NULL }; | |
5156 | ||
5157 | self = self; | |
5158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
5159 | return NULL; | |
5160 | if (_argo0) { | |
5161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
5164 | return NULL; | |
5165 | } | |
5166 | } | |
5167 | { | |
4268f798 | 5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
5169 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
5170 | ||
4268f798 | 5171 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5172 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5173 | }{ |
eec92d76 | 5174 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
5175 | } |
5176 | { | |
5177 | delete _result; | |
5178 | } | |
5179 | return _resultobj; | |
5180 | } | |
5181 | ||
5182 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
5183 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5184 | PyObject * _resultobj; | |
5185 | wxString * _result; | |
5186 | wxFont * _arg0; | |
5187 | PyObject * _argo0 = 0; | |
5188 | char *_kwnames[] = { "self", NULL }; | |
5189 | ||
5190 | self = self; | |
5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
5192 | return NULL; | |
5193 | if (_argo0) { | |
5194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
5197 | return NULL; | |
5198 | } | |
5199 | } | |
5200 | { | |
4268f798 | 5201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
5202 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
5203 | ||
4268f798 | 5204 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5205 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5206 | }{ |
eec92d76 | 5207 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
5208 | } |
5209 | { | |
5210 | delete _result; | |
5211 | } | |
5212 | return _resultobj; | |
5213 | } | |
5214 | ||
6d8b4f8d RD |
5215 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
5216 | PyObject * _resultobj; | |
5217 | wxFontEncoding _result; | |
5218 | char *_kwnames[] = { NULL }; | |
5219 | ||
5220 | self = self; | |
5221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
5222 | return NULL; | |
5223 | { | |
4268f798 | 5224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
5225 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
5226 | ||
4268f798 | 5227 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5228 | if (PyErr_Occurred()) return NULL; |
5229 | } _resultobj = Py_BuildValue("i",_result); | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
5233 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5234 | PyObject * _resultobj; | |
5235 | wxFontEncoding _arg0; | |
5236 | char *_kwnames[] = { "encoding", NULL }; | |
5237 | ||
5238 | self = self; | |
5239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
5240 | return NULL; | |
5241 | { | |
4268f798 | 5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
5243 | wxFont::SetDefaultEncoding(_arg0); |
5244 | ||
4268f798 | 5245 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5246 | if (PyErr_Occurred()) return NULL; |
5247 | } Py_INCREF(Py_None); | |
5248 | _resultobj = Py_None; | |
5249 | return _resultobj; | |
5250 | } | |
5251 | ||
9416aa89 RD |
5252 | static void *SwigwxFontListTowxObject(void *ptr) { |
5253 | wxFontList *src; | |
5254 | wxObject *dest; | |
5255 | src = (wxFontList *) ptr; | |
5256 | dest = (wxObject *) src; | |
5257 | return (void *) dest; | |
5258 | } | |
5259 | ||
0569df0f RD |
5260 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
5261 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5262 | PyObject * _resultobj; | |
5263 | wxFontList * _arg0; | |
5264 | wxFont * _arg1; | |
5265 | PyObject * _argo0 = 0; | |
5266 | PyObject * _argo1 = 0; | |
5267 | char *_kwnames[] = { "self","font", NULL }; | |
5268 | ||
5269 | self = self; | |
5270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
5271 | return NULL; | |
5272 | if (_argo0) { | |
5273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
5276 | return NULL; | |
5277 | } | |
5278 | } | |
5279 | if (_argo1) { | |
5280 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5281 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
5283 | return NULL; | |
5284 | } | |
5285 | } | |
5286 | { | |
4268f798 | 5287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5288 | wxFontList_AddFont(_arg0,_arg1); |
5289 | ||
4268f798 | 5290 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5291 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5292 | } Py_INCREF(Py_None); |
5293 | _resultobj = Py_None; | |
5294 | return _resultobj; | |
5295 | } | |
5296 | ||
5297 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5298 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5299 | PyObject * _resultobj; | |
5300 | wxFont * _result; | |
5301 | wxFontList * _arg0; | |
5302 | int _arg1; | |
5303 | int _arg2; | |
5304 | int _arg3; | |
5305 | int _arg4; | |
5306 | bool _arg5 = (bool ) FALSE; | |
5307 | char * _arg6 = (char *) NULL; | |
5308 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
5309 | PyObject * _argo0 = 0; | |
5310 | int tempbool5 = (int) FALSE; | |
5311 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
5312 | char _ptemp[128]; | |
5313 | ||
5314 | self = self; | |
5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
5316 | return NULL; | |
5317 | if (_argo0) { | |
5318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
5321 | return NULL; | |
5322 | } | |
5323 | } | |
5324 | _arg5 = (bool ) tempbool5; | |
5325 | { | |
4268f798 | 5326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5327 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
5328 | ||
4268f798 | 5329 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5330 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5331 | } if (_result) { |
5332 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5333 | _resultobj = Py_BuildValue("s",_ptemp); | |
5334 | } else { | |
5335 | Py_INCREF(Py_None); | |
5336 | _resultobj = Py_None; | |
5337 | } | |
5338 | return _resultobj; | |
5339 | } | |
5340 | ||
5341 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
5342 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5343 | PyObject * _resultobj; | |
5344 | wxFontList * _arg0; | |
5345 | wxFont * _arg1; | |
5346 | PyObject * _argo0 = 0; | |
5347 | PyObject * _argo1 = 0; | |
5348 | char *_kwnames[] = { "self","font", NULL }; | |
5349 | ||
5350 | self = self; | |
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
5352 | return NULL; | |
5353 | if (_argo0) { | |
5354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
5357 | return NULL; | |
5358 | } | |
5359 | } | |
5360 | if (_argo1) { | |
5361 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5362 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
5364 | return NULL; | |
5365 | } | |
5366 | } | |
5367 | { | |
4268f798 | 5368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5369 | wxFontList_RemoveFont(_arg0,_arg1); |
5370 | ||
4268f798 | 5371 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5372 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5373 | } Py_INCREF(Py_None); |
5374 | _resultobj = Py_None; | |
5375 | return _resultobj; | |
5376 | } | |
5377 | ||
2f4e9287 RD |
5378 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
5379 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5380 | PyObject * _resultobj; | |
5381 | int _result; | |
5382 | wxFontList * _arg0; | |
5383 | PyObject * _argo0 = 0; | |
5384 | char *_kwnames[] = { "self", NULL }; | |
5385 | ||
5386 | self = self; | |
5387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
5388 | return NULL; | |
5389 | if (_argo0) { | |
5390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
5393 | return NULL; | |
5394 | } | |
5395 | } | |
5396 | { | |
4268f798 | 5397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
5398 | _result = (int )wxFontList_GetCount(_arg0); |
5399 | ||
4268f798 | 5400 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
5401 | if (PyErr_Occurred()) return NULL; |
5402 | } _resultobj = Py_BuildValue("i",_result); | |
5403 | return _resultobj; | |
5404 | } | |
5405 | ||
9416aa89 RD |
5406 | static void *SwigwxColourTowxObject(void *ptr) { |
5407 | wxColour *src; | |
5408 | wxObject *dest; | |
5409 | src = (wxColour *) ptr; | |
5410 | dest = (wxObject *) src; | |
5411 | return (void *) dest; | |
5412 | } | |
5413 | ||
8ab979d7 | 5414 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5415 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5416 | PyObject * _resultobj; |
5417 | wxColour * _result; | |
1d99702e RD |
5418 | unsigned char _arg0 = (unsigned char ) 0; |
5419 | unsigned char _arg1 = (unsigned char ) 0; | |
5420 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 5421 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
5422 | char _ptemp[128]; |
5423 | ||
5424 | self = self; | |
1afc06c2 | 5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 5426 | return NULL; |
cf694132 | 5427 | { |
4268f798 | 5428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5429 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
5430 | ||
4268f798 | 5431 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5432 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5433 | } if (_result) { |
5434 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5435 | _resultobj = Py_BuildValue("s",_ptemp); | |
5436 | } else { | |
5437 | Py_INCREF(Py_None); | |
5438 | _resultobj = Py_None; | |
5439 | } | |
8ab979d7 RD |
5440 | return _resultobj; |
5441 | } | |
5442 | ||
5443 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 5444 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5445 | PyObject * _resultobj; |
5446 | wxColour * _arg0; | |
f6bcfd97 BP |
5447 | wxColour temp; |
5448 | PyObject * _obj0 = 0; | |
1afc06c2 | 5449 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5450 | |
5451 | self = self; | |
f6bcfd97 | 5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 5453 | return NULL; |
f6bcfd97 BP |
5454 | { |
5455 | _arg0 = &temp; | |
5456 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5457 | return NULL; |
f6bcfd97 | 5458 | } |
cf694132 | 5459 | { |
4268f798 | 5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5461 | delete_wxColour(_arg0); |
5462 | ||
4268f798 | 5463 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5464 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5465 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5466 | _resultobj = Py_None; |
5467 | return _resultobj; | |
5468 | } | |
5469 | ||
5470 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 5471 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5472 | PyObject * _resultobj; |
5473 | unsigned char _result; | |
5474 | wxColour * _arg0; | |
f6bcfd97 BP |
5475 | wxColour temp; |
5476 | PyObject * _obj0 = 0; | |
1afc06c2 | 5477 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5478 | |
5479 | self = self; | |
f6bcfd97 | 5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 5481 | return NULL; |
f6bcfd97 BP |
5482 | { |
5483 | _arg0 = &temp; | |
5484 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5485 | return NULL; |
f6bcfd97 | 5486 | } |
cf694132 | 5487 | { |
4268f798 | 5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5489 | _result = (unsigned char )wxColour_Red(_arg0); |
5490 | ||
4268f798 | 5491 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5492 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5493 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5494 | return _resultobj; |
5495 | } | |
5496 | ||
5497 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 5498 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5499 | PyObject * _resultobj; |
5500 | unsigned char _result; | |
5501 | wxColour * _arg0; | |
f6bcfd97 BP |
5502 | wxColour temp; |
5503 | PyObject * _obj0 = 0; | |
1afc06c2 | 5504 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5505 | |
5506 | self = self; | |
f6bcfd97 | 5507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 5508 | return NULL; |
f6bcfd97 BP |
5509 | { |
5510 | _arg0 = &temp; | |
5511 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5512 | return NULL; |
f6bcfd97 | 5513 | } |
cf694132 | 5514 | { |
4268f798 | 5515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5516 | _result = (unsigned char )wxColour_Green(_arg0); |
5517 | ||
4268f798 | 5518 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5519 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5520 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5521 | return _resultobj; |
5522 | } | |
5523 | ||
5524 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 5525 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5526 | PyObject * _resultobj; |
5527 | unsigned char _result; | |
5528 | wxColour * _arg0; | |
f6bcfd97 BP |
5529 | wxColour temp; |
5530 | PyObject * _obj0 = 0; | |
1afc06c2 | 5531 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5532 | |
5533 | self = self; | |
f6bcfd97 | 5534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 5535 | return NULL; |
f6bcfd97 BP |
5536 | { |
5537 | _arg0 = &temp; | |
5538 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5539 | return NULL; |
f6bcfd97 | 5540 | } |
cf694132 | 5541 | { |
4268f798 | 5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5543 | _result = (unsigned char )wxColour_Blue(_arg0); |
5544 | ||
4268f798 | 5545 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5546 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5547 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5548 | return _resultobj; |
5549 | } | |
5550 | ||
5551 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5552 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5553 | PyObject * _resultobj; |
5554 | bool _result; | |
5555 | wxColour * _arg0; | |
f6bcfd97 BP |
5556 | wxColour temp; |
5557 | PyObject * _obj0 = 0; | |
1afc06c2 | 5558 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5559 | |
5560 | self = self; | |
f6bcfd97 | 5561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 5562 | return NULL; |
f6bcfd97 BP |
5563 | { |
5564 | _arg0 = &temp; | |
5565 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5566 | return NULL; |
f6bcfd97 | 5567 | } |
cf694132 | 5568 | { |
4268f798 | 5569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5570 | _result = (bool )wxColour_Ok(_arg0); |
5571 | ||
4268f798 | 5572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5573 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5574 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5575 | return _resultobj; |
5576 | } | |
5577 | ||
5578 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5579 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5580 | PyObject * _resultobj; |
5581 | wxColour * _arg0; | |
5582 | unsigned char _arg1; | |
5583 | unsigned char _arg2; | |
5584 | unsigned char _arg3; | |
f6bcfd97 BP |
5585 | wxColour temp; |
5586 | PyObject * _obj0 = 0; | |
1afc06c2 | 5587 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
5588 | |
5589 | self = self; | |
f6bcfd97 | 5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 5591 | return NULL; |
f6bcfd97 BP |
5592 | { |
5593 | _arg0 = &temp; | |
5594 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5595 | return NULL; |
f6bcfd97 | 5596 | } |
cf694132 | 5597 | { |
4268f798 | 5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5599 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
5600 | ||
4268f798 | 5601 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5602 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5603 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5604 | _resultobj = Py_None; |
5605 | return _resultobj; | |
5606 | } | |
5607 | ||
5608 | static PyObject * wxColour_Get(wxColour *self) { | |
5609 | PyObject* rv = PyTuple_New(3); | |
5610 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
5611 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
5612 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
5613 | return rv; | |
5614 | } | |
1afc06c2 | 5615 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5616 | PyObject * _resultobj; |
5617 | PyObject * _result; | |
5618 | wxColour * _arg0; | |
f6bcfd97 BP |
5619 | wxColour temp; |
5620 | PyObject * _obj0 = 0; | |
1afc06c2 | 5621 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5622 | |
5623 | self = self; | |
f6bcfd97 | 5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 5625 | return NULL; |
f6bcfd97 BP |
5626 | { |
5627 | _arg0 = &temp; | |
5628 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5629 | return NULL; |
f6bcfd97 | 5630 | } |
8ab979d7 | 5631 | { |
4268f798 | 5632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5633 | _result = (PyObject *)wxColour_Get(_arg0); |
5634 | ||
4268f798 | 5635 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5636 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5637 | }{ |
8ab979d7 RD |
5638 | _resultobj = _result; |
5639 | } | |
5640 | return _resultobj; | |
5641 | } | |
5642 | ||
9416aa89 RD |
5643 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
5644 | wxColourDatabase *src; | |
5645 | wxObject *dest; | |
5646 | src = (wxColourDatabase *) ptr; | |
5647 | dest = (wxObject *) src; | |
5648 | return (void *) dest; | |
5649 | } | |
5650 | ||
0569df0f RD |
5651 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
5652 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5653 | PyObject * _resultobj; | |
5654 | wxColour * _result; | |
5655 | wxColourDatabase * _arg0; | |
5656 | wxString * _arg1; | |
5657 | PyObject * _argo0 = 0; | |
5658 | PyObject * _obj1 = 0; | |
5659 | char *_kwnames[] = { "self","colour", NULL }; | |
5660 | char _ptemp[128]; | |
5661 | ||
5662 | self = self; | |
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
5664 | return NULL; | |
5665 | if (_argo0) { | |
5666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
5669 | return NULL; | |
8ab979d7 | 5670 | } |
0569df0f RD |
5671 | } |
5672 | { | |
5673 | #if PYTHON_API_VERSION >= 1009 | |
5674 | char* tmpPtr; int tmpSize; | |
5675 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5676 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
5677 | return NULL; |
5678 | } | |
5679 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5680 | return NULL; | |
5681 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5682 | #else | |
5683 | if (!PyString_Check(_obj1)) { | |
5684 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5685 | return NULL; | |
5686 | } | |
5687 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5688 | #endif | |
5689 | } | |
5690 | { | |
4268f798 | 5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 5692 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
8ab979d7 | 5693 | |
4268f798 | 5694 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5695 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5696 | } if (_result) { |
5697 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5698 | _resultobj = Py_BuildValue("s",_ptemp); | |
5699 | } else { | |
5700 | Py_INCREF(Py_None); | |
5701 | _resultobj = Py_None; | |
5702 | } | |
5703 | { | |
5704 | if (_obj1) | |
5705 | delete _arg1; | |
5706 | } | |
5707 | return _resultobj; | |
5708 | } | |
5709 | ||
5710 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
5711 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5712 | PyObject * _resultobj; | |
5713 | wxString * _result; | |
5714 | wxColourDatabase * _arg0; | |
5715 | wxColour * _arg1; | |
5716 | PyObject * _argo0 = 0; | |
5717 | wxColour temp; | |
5718 | PyObject * _obj1 = 0; | |
5719 | char *_kwnames[] = { "self","colour", NULL }; | |
5720 | ||
5721 | self = self; | |
5722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
5723 | return NULL; | |
5724 | if (_argo0) { | |
5725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
5728 | return NULL; | |
5729 | } | |
5730 | } | |
5731 | { | |
5732 | _arg1 = &temp; | |
5733 | if (! wxColour_helper(_obj1, &_arg1)) | |
5734 | return NULL; | |
5735 | } | |
5736 | { | |
4268f798 | 5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5738 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
5739 | ||
4268f798 | 5740 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5741 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5742 | }{ |
5743 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5744 | } | |
5745 | { | |
5746 | delete _result; | |
5747 | } | |
5748 | return _resultobj; | |
5749 | } | |
5750 | ||
5751 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
5752 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
5753 | } | |
5754 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5755 | PyObject * _resultobj; | |
5756 | wxColourDatabase * _arg0; | |
5757 | wxString * _arg1; | |
5758 | int _arg2; | |
5759 | int _arg3; | |
5760 | int _arg4; | |
5761 | PyObject * _argo0 = 0; | |
5762 | PyObject * _obj1 = 0; | |
5763 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5764 | ||
5765 | self = self; | |
5766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5767 | return NULL; | |
5768 | if (_argo0) { | |
5769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5772 | return NULL; | |
5773 | } | |
5774 | } | |
5775 | { | |
5776 | #if PYTHON_API_VERSION >= 1009 | |
5777 | char* tmpPtr; int tmpSize; | |
5778 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5779 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
5780 | return NULL; |
5781 | } | |
5782 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5783 | return NULL; | |
5784 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5785 | #else | |
5786 | if (!PyString_Check(_obj1)) { | |
5787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5788 | return NULL; | |
5789 | } | |
5790 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5791 | #endif | |
5792 | } | |
5793 | { | |
4268f798 | 5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5795 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
5796 | ||
4268f798 | 5797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5798 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5799 | } Py_INCREF(Py_None); |
5800 | _resultobj = Py_None; | |
5801 | { | |
5802 | if (_obj1) | |
5803 | delete _arg1; | |
5804 | } | |
5805 | return _resultobj; | |
5806 | } | |
5807 | ||
9416aa89 RD |
5808 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
5809 | wxPen *src; | |
5810 | wxGDIObject *dest; | |
5811 | src = (wxPen *) ptr; | |
5812 | dest = (wxGDIObject *) src; | |
5813 | return (void *) dest; | |
5814 | } | |
5815 | ||
5816 | static void *SwigwxPenTowxObject(void *ptr) { | |
5817 | wxPen *src; | |
5818 | wxObject *dest; | |
5819 | src = (wxPen *) ptr; | |
5820 | dest = (wxObject *) src; | |
5821 | return (void *) dest; | |
5822 | } | |
5823 | ||
0569df0f | 5824 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5825 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5826 | PyObject * _resultobj; |
5827 | wxPen * _result; | |
5828 | wxColour * _arg0; | |
1d99702e RD |
5829 | int _arg1 = (int ) 1; |
5830 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
5831 | wxColour temp; |
5832 | PyObject * _obj0 = 0; | |
1afc06c2 | 5833 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
5834 | char _ptemp[128]; |
5835 | ||
5836 | self = self; | |
f6bcfd97 | 5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 5838 | return NULL; |
f6bcfd97 BP |
5839 | { |
5840 | _arg0 = &temp; | |
5841 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5842 | return NULL; |
f6bcfd97 | 5843 | } |
cf694132 | 5844 | { |
4268f798 | 5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 5846 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 | 5847 | |
4268f798 | 5848 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5849 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5850 | } if (_result) { |
5851 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5852 | _resultobj = Py_BuildValue("s",_ptemp); | |
5853 | } else { | |
5854 | Py_INCREF(Py_None); | |
5855 | _resultobj = Py_None; | |
5856 | } | |
8ab979d7 RD |
5857 | return _resultobj; |
5858 | } | |
5859 | ||
0569df0f RD |
5860 | #define delete_wxPen(_swigobj) (delete _swigobj) |
5861 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5862 | PyObject * _resultobj; | |
5863 | wxPen * _arg0; | |
5864 | PyObject * _argo0 = 0; | |
5865 | char *_kwnames[] = { "self", NULL }; | |
5866 | ||
5867 | self = self; | |
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5869 | return NULL; | |
5870 | if (_argo0) { | |
5871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5874 | return NULL; | |
5875 | } | |
5876 | } | |
5877 | { | |
4268f798 | 5878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5879 | delete_wxPen(_arg0); |
5880 | ||
4268f798 | 5881 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5882 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5883 | } Py_INCREF(Py_None); |
5884 | _resultobj = Py_None; | |
5885 | return _resultobj; | |
5886 | } | |
5887 | ||
8ab979d7 | 5888 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 5889 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5890 | PyObject * _resultobj; |
5891 | int _result; | |
5892 | wxPen * _arg0; | |
1d99702e | 5893 | PyObject * _argo0 = 0; |
1afc06c2 | 5894 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5895 | |
5896 | self = self; | |
1afc06c2 | 5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 5898 | return NULL; |
1d99702e RD |
5899 | if (_argo0) { |
5900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
5903 | return NULL; | |
5904 | } | |
5905 | } | |
cf694132 | 5906 | { |
4268f798 | 5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5908 | _result = (int )wxPen_GetCap(_arg0); |
5909 | ||
4268f798 | 5910 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5911 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5912 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5913 | return _resultobj; |
5914 | } | |
5915 | ||
5916 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 5917 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5918 | PyObject * _resultobj; |
5919 | wxColour * _result; | |
5920 | wxPen * _arg0; | |
1d99702e | 5921 | PyObject * _argo0 = 0; |
1afc06c2 | 5922 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5923 | char _ptemp[128]; |
5924 | ||
5925 | self = self; | |
1afc06c2 | 5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 5927 | return NULL; |
1d99702e RD |
5928 | if (_argo0) { |
5929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
5932 | return NULL; | |
5933 | } | |
5934 | } | |
cf694132 | 5935 | { |
4268f798 | 5936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 5937 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 | 5938 | |
4268f798 | 5939 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5940 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5941 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5942 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5943 | return _resultobj; |
5944 | } | |
5945 | ||
8ab979d7 | 5946 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 5947 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5948 | PyObject * _resultobj; |
5949 | int _result; | |
5950 | wxPen * _arg0; | |
1d99702e | 5951 | PyObject * _argo0 = 0; |
1afc06c2 | 5952 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5953 | |
5954 | self = self; | |
1afc06c2 | 5955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 5956 | return NULL; |
1d99702e RD |
5957 | if (_argo0) { |
5958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
5961 | return NULL; | |
5962 | } | |
5963 | } | |
cf694132 | 5964 | { |
4268f798 | 5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5966 | _result = (int )wxPen_GetJoin(_arg0); |
5967 | ||
4268f798 | 5968 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5969 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5970 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5971 | return _resultobj; |
5972 | } | |
5973 | ||
5974 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 5975 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5976 | PyObject * _resultobj; |
5977 | int _result; | |
5978 | wxPen * _arg0; | |
1d99702e | 5979 | PyObject * _argo0 = 0; |
1afc06c2 | 5980 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5981 | |
5982 | self = self; | |
1afc06c2 | 5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 5984 | return NULL; |
1d99702e RD |
5985 | if (_argo0) { |
5986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
5989 | return NULL; | |
5990 | } | |
5991 | } | |
cf694132 | 5992 | { |
4268f798 | 5993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5994 | _result = (int )wxPen_GetStyle(_arg0); |
5995 | ||
4268f798 | 5996 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5997 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5998 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5999 | return _resultobj; |
6000 | } | |
6001 | ||
6002 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 6003 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6004 | PyObject * _resultobj; |
6005 | int _result; | |
6006 | wxPen * _arg0; | |
1d99702e | 6007 | PyObject * _argo0 = 0; |
1afc06c2 | 6008 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6009 | |
6010 | self = self; | |
1afc06c2 | 6011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 6012 | return NULL; |
1d99702e RD |
6013 | if (_argo0) { |
6014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
6017 | return NULL; | |
6018 | } | |
6019 | } | |
cf694132 | 6020 | { |
4268f798 | 6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6022 | _result = (int )wxPen_GetWidth(_arg0); |
6023 | ||
4268f798 | 6024 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6026 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6027 | return _resultobj; |
6028 | } | |
6029 | ||
6030 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6031 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6032 | PyObject * _resultobj; |
6033 | bool _result; | |
6034 | wxPen * _arg0; | |
1d99702e | 6035 | PyObject * _argo0 = 0; |
1afc06c2 | 6036 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6037 | |
6038 | self = self; | |
1afc06c2 | 6039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6040 | return NULL; |
1d99702e RD |
6041 | if (_argo0) { |
6042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
6045 | return NULL; | |
6046 | } | |
6047 | } | |
cf694132 | 6048 | { |
4268f798 | 6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6050 | _result = (bool )wxPen_Ok(_arg0); |
6051 | ||
4268f798 | 6052 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6053 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6054 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6055 | return _resultobj; |
6056 | } | |
6057 | ||
6058 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 6059 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6060 | PyObject * _resultobj; |
6061 | wxPen * _arg0; | |
6062 | int _arg1; | |
1d99702e | 6063 | PyObject * _argo0 = 0; |
1afc06c2 | 6064 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
6065 | |
6066 | self = self; | |
1afc06c2 | 6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6068 | return NULL; |
1d99702e RD |
6069 | if (_argo0) { |
6070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
6073 | return NULL; | |
6074 | } | |
6075 | } | |
cf694132 | 6076 | { |
4268f798 | 6077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6078 | wxPen_SetCap(_arg0,_arg1); |
6079 | ||
4268f798 | 6080 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6081 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6082 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6083 | _resultobj = Py_None; |
6084 | return _resultobj; | |
6085 | } | |
6086 | ||
6087 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 6088 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6089 | PyObject * _resultobj; |
6090 | wxPen * _arg0; | |
6091 | wxColour * _arg1; | |
1d99702e | 6092 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6093 | wxColour temp; |
6094 | PyObject * _obj1 = 0; | |
1afc06c2 | 6095 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
6096 | |
6097 | self = self; | |
f6bcfd97 | 6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6099 | return NULL; |
1d99702e RD |
6100 | if (_argo0) { |
6101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
6104 | return NULL; | |
6105 | } | |
6106 | } | |
f6bcfd97 BP |
6107 | { |
6108 | _arg1 = &temp; | |
6109 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 6110 | return NULL; |
f6bcfd97 | 6111 | } |
cf694132 | 6112 | { |
4268f798 | 6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6114 | wxPen_SetColour(_arg0,*_arg1); |
6115 | ||
4268f798 | 6116 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6117 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6118 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6119 | _resultobj = Py_None; |
6120 | return _resultobj; | |
6121 | } | |
6122 | ||
2ea09579 | 6123 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 6124 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6125 | PyObject * _resultobj; |
6126 | wxPen * _arg0; | |
6127 | int _arg1; | |
1d99702e | 6128 | PyObject * _argo0 = 0; |
1afc06c2 | 6129 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
6130 | |
6131 | self = self; | |
1afc06c2 | 6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6133 | return NULL; |
1d99702e RD |
6134 | if (_argo0) { |
6135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
6138 | return NULL; |
6139 | } | |
6140 | } | |
cf694132 | 6141 | { |
4268f798 | 6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6143 | wxPen_SetJoin(_arg0,_arg1); |
6144 | ||
4268f798 | 6145 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6146 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6147 | } Py_INCREF(Py_None); |
2ea09579 RD |
6148 | _resultobj = Py_None; |
6149 | return _resultobj; | |
6150 | } | |
6151 | ||
6152 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6153 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6154 | PyObject * _resultobj; |
6155 | wxPen * _arg0; | |
6156 | int _arg1; | |
1d99702e | 6157 | PyObject * _argo0 = 0; |
1afc06c2 | 6158 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
6159 | |
6160 | self = self; | |
1afc06c2 | 6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6162 | return NULL; |
1d99702e RD |
6163 | if (_argo0) { |
6164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
6167 | return NULL; | |
6168 | } | |
8ab979d7 | 6169 | } |
cf694132 | 6170 | { |
4268f798 | 6171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6172 | wxPen_SetStyle(_arg0,_arg1); |
6173 | ||
4268f798 | 6174 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6175 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6176 | } Py_INCREF(Py_None); |
8ab979d7 | 6177 | _resultobj = Py_None; |
2ea09579 | 6178 | return _resultobj; |
8ab979d7 | 6179 | } |
2ea09579 RD |
6180 | |
6181 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 6182 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6183 | PyObject * _resultobj; |
6184 | wxPen * _arg0; | |
6185 | int _arg1; | |
1d99702e | 6186 | PyObject * _argo0 = 0; |
1afc06c2 | 6187 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
6188 | |
6189 | self = self; | |
1afc06c2 | 6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 6191 | return NULL; |
1d99702e RD |
6192 | if (_argo0) { |
6193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
6196 | return NULL; | |
6197 | } | |
6198 | } | |
cf694132 | 6199 | { |
4268f798 | 6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6201 | wxPen_SetWidth(_arg0,_arg1); |
6202 | ||
4268f798 | 6203 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6204 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6205 | } Py_INCREF(Py_None); |
2ea09579 | 6206 | _resultobj = Py_None; |
8ab979d7 RD |
6207 | return _resultobj; |
6208 | } | |
6209 | ||
2ea09579 | 6210 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 6211 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6212 | PyObject * _resultobj; |
6213 | wxPen * _arg0; | |
6214 | int _arg1; | |
2ea09579 | 6215 | wxDash * _arg2; |
1d99702e | 6216 | PyObject * _argo0 = 0; |
2ea09579 | 6217 | PyObject * _obj2 = 0; |
eec92d76 | 6218 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
6219 | |
6220 | self = self; | |
1afc06c2 | 6221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 6222 | return NULL; |
1d99702e RD |
6223 | if (_argo0) { |
6224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
6227 | return NULL; |
6228 | } | |
6229 | } | |
2ea09579 RD |
6230 | if (_obj2) |
6231 | { | |
f6bcfd97 | 6232 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
6233 | if (_arg2 == NULL) { |
6234 | return NULL; | |
6235 | } | |
6236 | } | |
6237 | { | |
cf694132 RD |
6238 | if (_obj2) { |
6239 | _arg1 = PyList_Size(_obj2); | |
6240 | } | |
6241 | else { | |
6242 | _arg1 = 0; | |
6243 | } | |
2ea09579 | 6244 | } |
cf694132 | 6245 | { |
4268f798 | 6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6247 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
6248 | ||
4268f798 | 6249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6250 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6251 | } Py_INCREF(Py_None); |
8ab979d7 | 6252 | _resultobj = Py_None; |
2ea09579 RD |
6253 | { |
6254 | delete [] _arg2; | |
6255 | } | |
8ab979d7 RD |
6256 | return _resultobj; |
6257 | } | |
6258 | ||
6999b0d8 RD |
6259 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
6260 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6261 | PyObject * _resultobj; | |
6262 | wxBitmap * _result; | |
6263 | wxPen * _arg0; | |
6264 | PyObject * _argo0 = 0; | |
6265 | char *_kwnames[] = { "self", NULL }; | |
6266 | char _ptemp[128]; | |
6267 | ||
6268 | self = self; | |
6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
6270 | return NULL; | |
6271 | if (_argo0) { | |
6272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
6275 | return NULL; | |
6276 | } | |
6277 | } | |
6278 | { | |
4268f798 | 6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 RD |
6280 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); |
6281 | ||
4268f798 | 6282 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6283 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
6284 | } if (_result) { |
6285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6286 | _resultobj = Py_BuildValue("s",_ptemp); | |
6287 | } else { | |
6288 | Py_INCREF(Py_None); | |
6289 | _resultobj = Py_None; | |
6290 | } | |
6291 | return _resultobj; | |
6292 | } | |
6293 | ||
2ea09579 | 6294 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 6295 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6296 | PyObject * _resultobj; |
6297 | wxPen * _arg0; | |
2ea09579 | 6298 | wxBitmap * _arg1; |
1d99702e RD |
6299 | PyObject * _argo0 = 0; |
6300 | PyObject * _argo1 = 0; | |
1afc06c2 | 6301 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
6302 | |
6303 | self = self; | |
1afc06c2 | 6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6305 | return NULL; |
1d99702e RD |
6306 | if (_argo0) { |
6307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
6310 | return NULL; |
6311 | } | |
6312 | } | |
1d99702e RD |
6313 | if (_argo1) { |
6314 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6315 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
6316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
6317 | return NULL; | |
6318 | } | |
6319 | } | |
cf694132 | 6320 | { |
4268f798 | 6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6322 | wxPen_SetStipple(_arg0,*_arg1); |
6323 | ||
4268f798 | 6324 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6325 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6326 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6327 | _resultobj = Py_None; |
6328 | return _resultobj; | |
6329 | } | |
6330 | ||
ecc08ead RD |
6331 | static void *SwigwxPyPenTowxPen(void *ptr) { |
6332 | wxPyPen *src; | |
6333 | wxPen *dest; | |
6334 | src = (wxPyPen *) ptr; | |
6335 | dest = (wxPen *) src; | |
6336 | return (void *) dest; | |
6337 | } | |
6338 | ||
6339 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
6340 | wxPyPen *src; | |
6341 | wxGDIObject *dest; | |
6342 | src = (wxPyPen *) ptr; | |
6343 | dest = (wxGDIObject *) src; | |
6344 | return (void *) dest; | |
6345 | } | |
6346 | ||
6347 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
6348 | wxPyPen *src; | |
6349 | wxObject *dest; | |
6350 | src = (wxPyPen *) ptr; | |
6351 | dest = (wxObject *) src; | |
6352 | return (void *) dest; | |
6353 | } | |
6354 | ||
6355 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
6356 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6357 | PyObject * _resultobj; | |
6358 | wxPyPen * _result; | |
6359 | wxColour * _arg0; | |
6360 | int _arg1 = (int ) 1; | |
6361 | int _arg2 = (int ) wxSOLID; | |
6362 | wxColour temp; | |
6363 | PyObject * _obj0 = 0; | |
6364 | char *_kwnames[] = { "colour","width","style", NULL }; | |
6365 | char _ptemp[128]; | |
6366 | ||
6367 | self = self; | |
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
6369 | return NULL; | |
6370 | { | |
6371 | _arg0 = &temp; | |
6372 | if (! wxColour_helper(_obj0, &_arg0)) | |
6373 | return NULL; | |
6374 | } | |
6375 | { | |
4268f798 | 6376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ecc08ead RD |
6377 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
6378 | ||
4268f798 | 6379 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6380 | if (PyErr_Occurred()) return NULL; |
6381 | } if (_result) { | |
6382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
6383 | _resultobj = Py_BuildValue("s",_ptemp); | |
6384 | } else { | |
6385 | Py_INCREF(Py_None); | |
6386 | _resultobj = Py_None; | |
6387 | } | |
6388 | return _resultobj; | |
6389 | } | |
6390 | ||
6391 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
6392 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6393 | PyObject * _resultobj; | |
6394 | wxPyPen * _arg0; | |
6395 | PyObject * _argo0 = 0; | |
6396 | char *_kwnames[] = { "self", NULL }; | |
6397 | ||
6398 | self = self; | |
6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
6400 | return NULL; | |
6401 | if (_argo0) { | |
6402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
6405 | return NULL; | |
6406 | } | |
6407 | } | |
6408 | { | |
4268f798 | 6409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ecc08ead RD |
6410 | delete_wxPyPen(_arg0); |
6411 | ||
4268f798 | 6412 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6413 | if (PyErr_Occurred()) return NULL; |
6414 | } Py_INCREF(Py_None); | |
6415 | _resultobj = Py_None; | |
6416 | return _resultobj; | |
6417 | } | |
6418 | ||
6419 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
6420 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6421 | PyObject * _resultobj; | |
6422 | wxPyPen * _arg0; | |
6423 | int _arg1; | |
6424 | wxDash * _arg2; | |
6425 | PyObject * _argo0 = 0; | |
6426 | PyObject * _obj2 = 0; | |
6427 | char *_kwnames[] = { "self","choices", NULL }; | |
6428 | ||
6429 | self = self; | |
6430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
6431 | return NULL; | |
6432 | if (_argo0) { | |
6433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
6436 | return NULL; | |
6437 | } | |
6438 | } | |
6439 | if (_obj2) | |
6440 | { | |
6441 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
6442 | if (_arg2 == NULL) { | |
6443 | return NULL; | |
6444 | } | |
6445 | } | |
6446 | { | |
6447 | if (_obj2) { | |
6448 | _arg1 = PyList_Size(_obj2); | |
6449 | } | |
6450 | else { | |
6451 | _arg1 = 0; | |
6452 | } | |
6453 | } | |
6454 | { | |
4268f798 | 6455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ecc08ead RD |
6456 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
6457 | ||
4268f798 | 6458 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6459 | if (PyErr_Occurred()) return NULL; |
6460 | } Py_INCREF(Py_None); | |
6461 | _resultobj = Py_None; | |
6462 | { | |
6463 | delete [] _arg2; | |
6464 | } | |
6465 | return _resultobj; | |
6466 | } | |
6467 | ||
9416aa89 RD |
6468 | static void *SwigwxPenListTowxObject(void *ptr) { |
6469 | wxPenList *src; | |
6470 | wxObject *dest; | |
6471 | src = (wxPenList *) ptr; | |
6472 | dest = (wxObject *) src; | |
6473 | return (void *) dest; | |
6474 | } | |
6475 | ||
0569df0f RD |
6476 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
6477 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6478 | PyObject * _resultobj; | |
6479 | wxPenList * _arg0; | |
6480 | wxPen * _arg1; | |
6481 | PyObject * _argo0 = 0; | |
6482 | PyObject * _argo1 = 0; | |
6483 | char *_kwnames[] = { "self","pen", NULL }; | |
6484 | ||
6485 | self = self; | |
6486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
6487 | return NULL; | |
6488 | if (_argo0) { | |
6489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
6492 | return NULL; | |
6493 | } | |
6494 | } | |
6495 | if (_argo1) { | |
6496 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6497 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
6499 | return NULL; | |
6500 | } | |
6501 | } | |
6502 | { | |
4268f798 | 6503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6504 | wxPenList_AddPen(_arg0,_arg1); |
6505 | ||
4268f798 | 6506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6507 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6508 | } Py_INCREF(Py_None); |
6509 | _resultobj = Py_None; | |
6510 | return _resultobj; | |
6511 | } | |
6512 | ||
6513 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
6514 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6515 | PyObject * _resultobj; | |
6516 | wxPen * _result; | |
6517 | wxPenList * _arg0; | |
6518 | wxColour * _arg1; | |
6519 | int _arg2; | |
6520 | int _arg3; | |
6521 | PyObject * _argo0 = 0; | |
6522 | wxColour temp; | |
6523 | PyObject * _obj1 = 0; | |
6524 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
6525 | char _ptemp[128]; | |
6526 | ||
6527 | self = self; | |
6528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
6529 | return NULL; | |
6530 | if (_argo0) { | |
6531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
6534 | return NULL; | |
6535 | } | |
6536 | } | |
6537 | { | |
6538 | _arg1 = &temp; | |
6539 | if (! wxColour_helper(_obj1, &_arg1)) | |
6540 | return NULL; | |
6541 | } | |
6542 | { | |
4268f798 | 6543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6544 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
6545 | ||
4268f798 | 6546 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6547 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6548 | } if (_result) { |
6549 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6550 | _resultobj = Py_BuildValue("s",_ptemp); | |
6551 | } else { | |
6552 | Py_INCREF(Py_None); | |
6553 | _resultobj = Py_None; | |
6554 | } | |
6555 | return _resultobj; | |
6556 | } | |
6557 | ||
6558 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
6559 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6560 | PyObject * _resultobj; | |
6561 | wxPenList * _arg0; | |
6562 | wxPen * _arg1; | |
6563 | PyObject * _argo0 = 0; | |
6564 | PyObject * _argo1 = 0; | |
6565 | char *_kwnames[] = { "self","pen", NULL }; | |
6566 | ||
6567 | self = self; | |
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
6569 | return NULL; | |
6570 | if (_argo0) { | |
6571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
6574 | return NULL; | |
6575 | } | |
6576 | } | |
6577 | if (_argo1) { | |
6578 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6579 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
6581 | return NULL; | |
8ab979d7 | 6582 | } |
0569df0f RD |
6583 | } |
6584 | { | |
4268f798 | 6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 6586 | wxPenList_RemovePen(_arg0,_arg1); |
8ab979d7 | 6587 | |
4268f798 | 6588 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6589 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6590 | } Py_INCREF(Py_None); |
6591 | _resultobj = Py_None; | |
6592 | return _resultobj; | |
6593 | } | |
6594 | ||
2f4e9287 RD |
6595 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
6596 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6597 | PyObject * _resultobj; | |
6598 | int _result; | |
6599 | wxPenList * _arg0; | |
6600 | PyObject * _argo0 = 0; | |
6601 | char *_kwnames[] = { "self", NULL }; | |
6602 | ||
6603 | self = self; | |
6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
6605 | return NULL; | |
6606 | if (_argo0) { | |
6607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
6610 | return NULL; | |
6611 | } | |
6612 | } | |
6613 | { | |
4268f798 | 6614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
6615 | _result = (int )wxPenList_GetCount(_arg0); |
6616 | ||
4268f798 | 6617 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
6618 | if (PyErr_Occurred()) return NULL; |
6619 | } _resultobj = Py_BuildValue("i",_result); | |
6620 | return _resultobj; | |
6621 | } | |
6622 | ||
9416aa89 RD |
6623 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
6624 | wxBrush *src; | |
6625 | wxGDIObject *dest; | |
6626 | src = (wxBrush *) ptr; | |
6627 | dest = (wxGDIObject *) src; | |
6628 | return (void *) dest; | |
6629 | } | |
6630 | ||
6631 | static void *SwigwxBrushTowxObject(void *ptr) { | |
6632 | wxBrush *src; | |
6633 | wxObject *dest; | |
6634 | src = (wxBrush *) ptr; | |
6635 | dest = (wxObject *) src; | |
6636 | return (void *) dest; | |
6637 | } | |
6638 | ||
0569df0f | 6639 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 6640 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6641 | PyObject * _resultobj; |
6642 | wxBrush * _result; | |
6643 | wxColour * _arg0; | |
1d99702e | 6644 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
6645 | wxColour temp; |
6646 | PyObject * _obj0 = 0; | |
1afc06c2 | 6647 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
6648 | char _ptemp[128]; |
6649 | ||
6650 | self = self; | |
f6bcfd97 | 6651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 6652 | return NULL; |
f6bcfd97 BP |
6653 | { |
6654 | _arg0 = &temp; | |
6655 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 6656 | return NULL; |
f6bcfd97 | 6657 | } |
cf694132 | 6658 | { |
4268f798 | 6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 6660 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 | 6661 | |
4268f798 | 6662 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6663 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6664 | } if (_result) { |
6665 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6666 | _resultobj = Py_BuildValue("s",_ptemp); | |
6667 | } else { | |
6668 | Py_INCREF(Py_None); | |
6669 | _resultobj = Py_None; | |
6670 | } | |
8ab979d7 RD |
6671 | return _resultobj; |
6672 | } | |
6673 | ||
0569df0f RD |
6674 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
6675 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6676 | PyObject * _resultobj; | |
6677 | wxBrush * _arg0; | |
6678 | PyObject * _argo0 = 0; | |
6679 | char *_kwnames[] = { "self", NULL }; | |
6680 | ||
6681 | self = self; | |
6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
6683 | return NULL; | |
6684 | if (_argo0) { | |
6685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
6688 | return NULL; | |
6689 | } | |
6690 | } | |
6691 | { | |
4268f798 | 6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6693 | delete_wxBrush(_arg0); |
6694 | ||
4268f798 | 6695 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6696 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6697 | } Py_INCREF(Py_None); |
6698 | _resultobj = Py_None; | |
6699 | return _resultobj; | |
6700 | } | |
6701 | ||
8ab979d7 | 6702 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 6703 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6704 | PyObject * _resultobj; |
6705 | wxColour * _result; | |
6706 | wxBrush * _arg0; | |
1d99702e | 6707 | PyObject * _argo0 = 0; |
1afc06c2 | 6708 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6709 | char _ptemp[128]; |
6710 | ||
6711 | self = self; | |
1afc06c2 | 6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 6713 | return NULL; |
1d99702e RD |
6714 | if (_argo0) { |
6715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
6718 | return NULL; | |
6719 | } | |
6720 | } | |
cf694132 | 6721 | { |
4268f798 | 6722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 6723 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 | 6724 | |
4268f798 | 6725 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6726 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
6727 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6728 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6729 | return _resultobj; |
6730 | } | |
6731 | ||
6732 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 6733 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6734 | PyObject * _resultobj; |
6735 | wxBitmap * _result; | |
6736 | wxBrush * _arg0; | |
1d99702e | 6737 | PyObject * _argo0 = 0; |
1afc06c2 | 6738 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6739 | char _ptemp[128]; |
6740 | ||
6741 | self = self; | |
1afc06c2 | 6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 6743 | return NULL; |
1d99702e RD |
6744 | if (_argo0) { |
6745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
6748 | return NULL; | |
6749 | } | |
6750 | } | |
cf694132 | 6751 | { |
4268f798 | 6752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6753 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
6754 | ||
4268f798 | 6755 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6756 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6757 | } if (_result) { |
6758 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6759 | _resultobj = Py_BuildValue("s",_ptemp); | |
6760 | } else { | |
6761 | Py_INCREF(Py_None); | |
6762 | _resultobj = Py_None; | |
6763 | } | |
8ab979d7 RD |
6764 | return _resultobj; |
6765 | } | |
6766 | ||
6767 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 6768 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6769 | PyObject * _resultobj; |
6770 | int _result; | |
6771 | wxBrush * _arg0; | |
1d99702e | 6772 | PyObject * _argo0 = 0; |
1afc06c2 | 6773 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6774 | |
6775 | self = self; | |
1afc06c2 | 6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 6777 | return NULL; |
1d99702e RD |
6778 | if (_argo0) { |
6779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
6782 | return NULL; | |
6783 | } | |
6784 | } | |
cf694132 | 6785 | { |
4268f798 | 6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6787 | _result = (int )wxBrush_GetStyle(_arg0); |
6788 | ||
4268f798 | 6789 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6790 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6791 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6792 | return _resultobj; |
6793 | } | |
6794 | ||
6795 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6796 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6797 | PyObject * _resultobj; |
6798 | bool _result; | |
6799 | wxBrush * _arg0; | |
1d99702e | 6800 | PyObject * _argo0 = 0; |
1afc06c2 | 6801 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6802 | |
6803 | self = self; | |
1afc06c2 | 6804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6805 | return NULL; |
1d99702e RD |
6806 | if (_argo0) { |
6807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
cf694132 | 6813 | { |
4268f798 | 6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6815 | _result = (bool )wxBrush_Ok(_arg0); |
6816 | ||
4268f798 | 6817 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6818 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6819 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6820 | return _resultobj; |
6821 | } | |
6822 | ||
6823 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 6824 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6825 | PyObject * _resultobj; |
6826 | wxBrush * _arg0; | |
6827 | wxColour * _arg1; | |
1d99702e | 6828 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6829 | wxColour temp; |
6830 | PyObject * _obj1 = 0; | |
1afc06c2 | 6831 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
6832 | |
6833 | self = self; | |
f6bcfd97 | 6834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6835 | return NULL; |
1d99702e RD |
6836 | if (_argo0) { |
6837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
6840 | return NULL; | |
6841 | } | |
6842 | } | |
f6bcfd97 BP |
6843 | { |
6844 | _arg1 = &temp; | |
6845 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 6846 | return NULL; |
f6bcfd97 | 6847 | } |
cf694132 | 6848 | { |
4268f798 | 6849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6850 | wxBrush_SetColour(_arg0,*_arg1); |
6851 | ||
4268f798 | 6852 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6853 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6854 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6855 | _resultobj = Py_None; |
6856 | return _resultobj; | |
6857 | } | |
6858 | ||
6859 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 6860 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6861 | PyObject * _resultobj; |
6862 | wxBrush * _arg0; | |
6863 | wxBitmap * _arg1; | |
1d99702e RD |
6864 | PyObject * _argo0 = 0; |
6865 | PyObject * _argo1 = 0; | |
1afc06c2 | 6866 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
6867 | |
6868 | self = self; | |
1afc06c2 | 6869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6870 | return NULL; |
1d99702e RD |
6871 | if (_argo0) { |
6872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
6875 | return NULL; | |
6876 | } | |
6877 | } | |
1d99702e RD |
6878 | if (_argo1) { |
6879 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6880 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
6882 | return NULL; | |
6883 | } | |
6884 | } | |
cf694132 | 6885 | { |
4268f798 | 6886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6887 | wxBrush_SetStipple(_arg0,*_arg1); |
6888 | ||
4268f798 | 6889 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6890 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6891 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6892 | _resultobj = Py_None; |
6893 | return _resultobj; | |
6894 | } | |
6895 | ||
6896 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6897 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6898 | PyObject * _resultobj; |
6899 | wxBrush * _arg0; | |
6900 | int _arg1; | |
1d99702e | 6901 | PyObject * _argo0 = 0; |
1afc06c2 | 6902 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
6903 | |
6904 | self = self; | |
1afc06c2 | 6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6906 | return NULL; |
1d99702e RD |
6907 | if (_argo0) { |
6908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
6911 | return NULL; | |
6912 | } | |
6913 | } | |
cf694132 | 6914 | { |
4268f798 | 6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6916 | wxBrush_SetStyle(_arg0,_arg1); |
6917 | ||
4268f798 | 6918 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6919 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6920 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6921 | _resultobj = Py_None; |
6922 | return _resultobj; | |
6923 | } | |
6924 | ||
6ee2116b RD |
6925 | static void *SwigwxBrushListTowxObject(void *ptr) { |
6926 | wxBrushList *src; | |
6927 | wxObject *dest; | |
6928 | src = (wxBrushList *) ptr; | |
6929 | dest = (wxObject *) src; | |
6930 | return (void *) dest; | |
6931 | } | |
6932 | ||
0569df0f RD |
6933 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
6934 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6935 | PyObject * _resultobj; | |
6936 | wxBrushList * _arg0; | |
6937 | wxBrush * _arg1; | |
6938 | PyObject * _argo0 = 0; | |
6939 | PyObject * _argo1 = 0; | |
6940 | char *_kwnames[] = { "self","brush", NULL }; | |
6941 | ||
6942 | self = self; | |
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6944 | return NULL; | |
6945 | if (_argo0) { | |
6946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6949 | return NULL; | |
6950 | } | |
6951 | } | |
6952 | if (_argo1) { | |
6953 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6954 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6956 | return NULL; | |
6957 | } | |
6958 | } | |
6959 | { | |
4268f798 | 6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6961 | wxBrushList_AddBrush(_arg0,_arg1); |
6962 | ||
4268f798 | 6963 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6964 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6965 | } Py_INCREF(Py_None); |
6966 | _resultobj = Py_None; | |
6967 | return _resultobj; | |
6968 | } | |
6969 | ||
6970 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6971 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6972 | PyObject * _resultobj; | |
6973 | wxBrush * _result; | |
6974 | wxBrushList * _arg0; | |
6975 | wxColour * _arg1; | |
6976 | int _arg2; | |
6977 | PyObject * _argo0 = 0; | |
6978 | wxColour temp; | |
6979 | PyObject * _obj1 = 0; | |
6980 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6981 | char _ptemp[128]; | |
6982 | ||
6983 | self = self; | |
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6985 | return NULL; | |
6986 | if (_argo0) { | |
6987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6990 | return NULL; | |
6991 | } | |
6992 | } | |
6993 | { | |
6994 | _arg1 = &temp; | |
6995 | if (! wxColour_helper(_obj1, &_arg1)) | |
6996 | return NULL; | |
6997 | } | |
6998 | { | |
4268f798 | 6999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
7000 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
7001 | ||
4268f798 | 7002 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7003 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
7004 | } if (_result) { |
7005 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
7006 | _resultobj = Py_BuildValue("s",_ptemp); | |
7007 | } else { | |
7008 | Py_INCREF(Py_None); | |
7009 | _resultobj = Py_None; | |
7010 | } | |
7011 | return _resultobj; | |
7012 | } | |
7013 | ||
7014 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
7015 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject * _resultobj; | |
7017 | wxBrushList * _arg0; | |
7018 | wxBrush * _arg1; | |
7019 | PyObject * _argo0 = 0; | |
7020 | PyObject * _argo1 = 0; | |
7021 | char *_kwnames[] = { "self","brush", NULL }; | |
7022 | ||
7023 | self = self; | |
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
7025 | return NULL; | |
7026 | if (_argo0) { | |
7027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
7029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
7030 | return NULL; | |
7031 | } | |
7032 | } | |
7033 | if (_argo1) { | |
7034 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7035 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
7036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
7037 | return NULL; | |
7038 | } | |
7039 | } | |
7040 | { | |
4268f798 | 7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
7042 | wxBrushList_RemoveBrush(_arg0,_arg1); |
7043 | ||
4268f798 | 7044 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7045 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
7046 | } Py_INCREF(Py_None); |
7047 | _resultobj = Py_None; | |
7048 | return _resultobj; | |
7049 | } | |
7050 | ||
2f4e9287 RD |
7051 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
7052 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7053 | PyObject * _resultobj; | |
7054 | int _result; | |
7055 | wxBrushList * _arg0; | |
7056 | PyObject * _argo0 = 0; | |
7057 | char *_kwnames[] = { "self", NULL }; | |
7058 | ||
7059 | self = self; | |
7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
7061 | return NULL; | |
7062 | if (_argo0) { | |
7063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
7065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
7066 | return NULL; | |
7067 | } | |
7068 | } | |
7069 | { | |
4268f798 | 7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
7071 | _result = (int )wxBrushList_GetCount(_arg0); |
7072 | ||
4268f798 | 7073 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
7074 | if (PyErr_Occurred()) return NULL; |
7075 | } _resultobj = Py_BuildValue("i",_result); | |
7076 | return _resultobj; | |
7077 | } | |
7078 | ||
9416aa89 RD |
7079 | static void *SwigwxDCTowxObject(void *ptr) { |
7080 | wxDC *src; | |
7081 | wxObject *dest; | |
7082 | src = (wxDC *) ptr; | |
7083 | dest = (wxObject *) src; | |
7084 | return (void *) dest; | |
7085 | } | |
7086 | ||
8ab979d7 | 7087 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 7088 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7089 | PyObject * _resultobj; |
7090 | wxDC * _arg0; | |
1d99702e | 7091 | PyObject * _argo0 = 0; |
1afc06c2 | 7092 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7093 | |
7094 | self = self; | |
1afc06c2 | 7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 7096 | return NULL; |
1d99702e RD |
7097 | if (_argo0) { |
7098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
7101 | return NULL; | |
7102 | } | |
7103 | } | |
cf694132 | 7104 | { |
4268f798 | 7105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7106 | delete_wxDC(_arg0); |
7107 | ||
4268f798 | 7108 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7109 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7110 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7111 | _resultobj = Py_None; |
7112 | return _resultobj; | |
7113 | } | |
7114 | ||
7115 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 7116 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7117 | PyObject * _resultobj; |
7118 | wxDC * _arg0; | |
1d99702e | 7119 | PyObject * _argo0 = 0; |
1afc06c2 | 7120 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7121 | |
7122 | self = self; | |
1afc06c2 | 7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7124 | return NULL; |
1d99702e RD |
7125 | if (_argo0) { |
7126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
7129 | return NULL; | |
7130 | } | |
7131 | } | |
cf694132 | 7132 | { |
4268f798 | 7133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7134 | wxDC_BeginDrawing(_arg0); |
7135 | ||
4268f798 | 7136 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7137 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7138 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7139 | _resultobj = Py_None; |
7140 | return _resultobj; | |
7141 | } | |
7142 | ||
efc5f224 | 7143 | #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 | 7144 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7145 | PyObject * _resultobj; |
7146 | bool _result; | |
7147 | wxDC * _arg0; | |
7148 | long _arg1; | |
7149 | long _arg2; | |
7150 | long _arg3; | |
7151 | long _arg4; | |
7152 | wxDC * _arg5; | |
7153 | long _arg6; | |
7154 | long _arg7; | |
efc5f224 RD |
7155 | int _arg8 = (int ) wxCOPY; |
7156 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
7157 | PyObject * _argo0 = 0; |
7158 | PyObject * _argo5 = 0; | |
1afc06c2 | 7159 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
7160 | |
7161 | self = self; | |
1afc06c2 | 7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 7163 | return NULL; |
1d99702e RD |
7164 | if (_argo0) { |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
7168 | return NULL; | |
7169 | } | |
7170 | } | |
1d99702e RD |
7171 | if (_argo5) { |
7172 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7173 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
7174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
7175 | return NULL; | |
7176 | } | |
7177 | } | |
cf694132 | 7178 | { |
4268f798 | 7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
efc5f224 | 7180 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 | 7181 | |
4268f798 | 7182 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7183 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7184 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7185 | return _resultobj; |
7186 | } | |
7187 | ||
7188 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 7189 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7190 | PyObject * _resultobj; |
7191 | wxDC * _arg0; | |
1d99702e | 7192 | PyObject * _argo0 = 0; |
1afc06c2 | 7193 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7194 | |
7195 | self = self; | |
1afc06c2 | 7196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 7197 | return NULL; |
1d99702e RD |
7198 | if (_argo0) { |
7199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
7202 | return NULL; | |
7203 | } | |
7204 | } | |
cf694132 | 7205 | { |
4268f798 | 7206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7207 | wxDC_Clear(_arg0); |
7208 | ||
4268f798 | 7209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7211 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7212 | _resultobj = Py_None; |
7213 | return _resultobj; | |
7214 | } | |
7215 | ||
7216 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 7217 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7218 | PyObject * _resultobj; |
7219 | wxDC * _arg0; | |
7220 | long _arg1; | |
7221 | long _arg2; | |
1d99702e | 7222 | PyObject * _argo0 = 0; |
1afc06c2 | 7223 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7224 | |
7225 | self = self; | |
1afc06c2 | 7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7227 | return NULL; |
1d99702e RD |
7228 | if (_argo0) { |
7229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
7232 | return NULL; | |
7233 | } | |
7234 | } | |
cf694132 | 7235 | { |
4268f798 | 7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7237 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
7238 | ||
4268f798 | 7239 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7240 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7241 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7242 | _resultobj = Py_None; |
7243 | return _resultobj; | |
7244 | } | |
7245 | ||
7246 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 7247 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7248 | PyObject * _resultobj; |
7249 | wxDC * _arg0; | |
1d99702e | 7250 | PyObject * _argo0 = 0; |
1afc06c2 | 7251 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7252 | |
7253 | self = self; | |
1afc06c2 | 7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 7255 | return NULL; |
1d99702e RD |
7256 | if (_argo0) { |
7257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
7260 | return NULL; | |
7261 | } | |
7262 | } | |
cf694132 | 7263 | { |
4268f798 | 7264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7265 | wxDC_DestroyClippingRegion(_arg0); |
7266 | ||
4268f798 | 7267 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7268 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7269 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7270 | _resultobj = Py_None; |
7271 | return _resultobj; | |
7272 | } | |
7273 | ||
7274 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 7275 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7276 | PyObject * _resultobj; |
7277 | long _result; | |
7278 | wxDC * _arg0; | |
7279 | long _arg1; | |
1d99702e | 7280 | PyObject * _argo0 = 0; |
1afc06c2 | 7281 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7282 | |
7283 | self = self; | |
1afc06c2 | 7284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7285 | return NULL; |
1d99702e RD |
7286 | if (_argo0) { |
7287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
7290 | return NULL; | |
7291 | } | |
7292 | } | |
cf694132 | 7293 | { |
4268f798 | 7294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7295 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
7296 | ||
4268f798 | 7297 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7298 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7299 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7300 | return _resultobj; |
7301 | } | |
7302 | ||
7303 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 7304 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7305 | PyObject * _resultobj; |
7306 | long _result; | |
7307 | wxDC * _arg0; | |
7308 | long _arg1; | |
1d99702e | 7309 | PyObject * _argo0 = 0; |
1afc06c2 | 7310 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7311 | |
7312 | self = self; | |
1afc06c2 | 7313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7314 | return NULL; |
1d99702e RD |
7315 | if (_argo0) { |
7316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
7319 | return NULL; | |
7320 | } | |
7321 | } | |
cf694132 | 7322 | { |
4268f798 | 7323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7324 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
7325 | ||
4268f798 | 7326 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7327 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7328 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7329 | return _resultobj; |
7330 | } | |
7331 | ||
7332 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 7333 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7334 | PyObject * _resultobj; |
7335 | long _result; | |
7336 | wxDC * _arg0; | |
7337 | long _arg1; | |
1d99702e | 7338 | PyObject * _argo0 = 0; |
1afc06c2 | 7339 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7340 | |
7341 | self = self; | |
1afc06c2 | 7342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7343 | return NULL; |
1d99702e RD |
7344 | if (_argo0) { |
7345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
7348 | return NULL; | |
7349 | } | |
7350 | } | |
cf694132 | 7351 | { |
4268f798 | 7352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7353 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
7354 | ||
4268f798 | 7355 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7356 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7357 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7358 | return _resultobj; |
7359 | } | |
7360 | ||
7361 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 7362 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7363 | PyObject * _resultobj; |
7364 | long _result; | |
7365 | wxDC * _arg0; | |
7366 | long _arg1; | |
1d99702e | 7367 | PyObject * _argo0 = 0; |
1afc06c2 | 7368 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7369 | |
7370 | self = self; | |
1afc06c2 | 7371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7372 | return NULL; |
1d99702e RD |
7373 | if (_argo0) { |
7374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
7377 | return NULL; | |
7378 | } | |
7379 | } | |
cf694132 | 7380 | { |
4268f798 | 7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7382 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
7383 | ||
4268f798 | 7384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7386 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7387 | return _resultobj; |
7388 | } | |
7389 | ||
7390 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7391 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7392 | PyObject * _resultobj; |
7393 | wxDC * _arg0; | |
7394 | long _arg1; | |
7395 | long _arg2; | |
7396 | long _arg3; | |
7397 | long _arg4; | |
7398 | long _arg5; | |
7399 | long _arg6; | |
1d99702e | 7400 | PyObject * _argo0 = 0; |
1afc06c2 | 7401 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
7402 | |
7403 | self = self; | |
1afc06c2 | 7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7405 | return NULL; |
1d99702e RD |
7406 | if (_argo0) { |
7407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
7410 | return NULL; | |
7411 | } | |
7412 | } | |
cf694132 | 7413 | { |
4268f798 | 7414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7415 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
7416 | ||
4268f798 | 7417 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7418 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7419 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7420 | _resultobj = Py_None; |
7421 | return _resultobj; | |
7422 | } | |
7423 | ||
bb0054cd | 7424 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 7425 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7426 | PyObject * _resultobj; |
7427 | wxDC * _arg0; | |
7428 | long _arg1; | |
7429 | long _arg2; | |
7430 | long _arg3; | |
1d99702e | 7431 | PyObject * _argo0 = 0; |
1afc06c2 | 7432 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
7433 | |
7434 | self = self; | |
1afc06c2 | 7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 7436 | return NULL; |
1d99702e RD |
7437 | if (_argo0) { |
7438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
7440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
7441 | return NULL; | |
7442 | } | |
7443 | } | |
7444 | { | |
4268f798 | 7445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
7446 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
7447 | ||
4268f798 | 7448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7449 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7450 | } Py_INCREF(Py_None); |
7451 | _resultobj = Py_None; | |
7452 | return _resultobj; | |
7453 | } | |
7454 | ||
8ab979d7 | 7455 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7456 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7457 | PyObject * _resultobj; |
7458 | wxDC * _arg0; | |
7459 | long _arg1; | |
7460 | long _arg2; | |
7461 | long _arg3; | |
7462 | long _arg4; | |
1d99702e | 7463 | PyObject * _argo0 = 0; |
1afc06c2 | 7464 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7465 | |
7466 | self = self; | |
1afc06c2 | 7467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7468 | return NULL; |
1d99702e RD |
7469 | if (_argo0) { |
7470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
7473 | return NULL; | |
7474 | } | |
7475 | } | |
cf694132 | 7476 | { |
4268f798 | 7477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7478 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
7479 | ||
4268f798 | 7480 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7481 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7482 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7483 | _resultobj = Py_None; |
7484 | return _resultobj; | |
7485 | } | |
7486 | ||
7487 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7488 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7489 | PyObject * _resultobj; |
7490 | wxDC * _arg0; | |
7491 | long _arg1; | |
7492 | long _arg2; | |
7493 | long _arg3; | |
7494 | long _arg4; | |
7495 | long _arg5; | |
7496 | long _arg6; | |
1d99702e | 7497 | PyObject * _argo0 = 0; |
1afc06c2 | 7498 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
7499 | |
7500 | self = self; | |
1afc06c2 | 7501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7502 | return NULL; |
1d99702e RD |
7503 | if (_argo0) { |
7504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
7507 | return NULL; | |
7508 | } | |
7509 | } | |
cf694132 | 7510 | { |
4268f798 | 7511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7512 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
7513 | ||
4268f798 | 7514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7515 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7516 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7517 | _resultobj = Py_None; |
7518 | return _resultobj; | |
7519 | } | |
7520 | ||
7521 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7522 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7523 | PyObject * _resultobj; |
7524 | wxDC * _arg0; | |
7525 | wxIcon * _arg1; | |
7526 | long _arg2; | |
7527 | long _arg3; | |
1d99702e RD |
7528 | PyObject * _argo0 = 0; |
7529 | PyObject * _argo1 = 0; | |
1afc06c2 | 7530 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
7531 | |
7532 | self = self; | |
1afc06c2 | 7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7534 | return NULL; |
1d99702e RD |
7535 | if (_argo0) { |
7536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
7539 | return NULL; | |
7540 | } | |
7541 | } | |
1d99702e RD |
7542 | if (_argo1) { |
7543 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7544 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
7545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
7546 | return NULL; | |
7547 | } | |
7548 | } | |
cf694132 | 7549 | { |
4268f798 | 7550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7551 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
7552 | ||
4268f798 | 7553 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7555 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7556 | _resultobj = Py_None; |
7557 | return _resultobj; | |
7558 | } | |
7559 | ||
7560 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7561 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7562 | PyObject * _resultobj; |
7563 | wxDC * _arg0; | |
7564 | long _arg1; | |
7565 | long _arg2; | |
7566 | long _arg3; | |
7567 | long _arg4; | |
1d99702e | 7568 | PyObject * _argo0 = 0; |
1afc06c2 | 7569 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
7570 | |
7571 | self = self; | |
1afc06c2 | 7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7573 | return NULL; |
1d99702e RD |
7574 | if (_argo0) { |
7575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
7578 | return NULL; | |
7579 | } | |
7580 | } | |
cf694132 | 7581 | { |
4268f798 | 7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7583 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
7584 | ||
4268f798 | 7585 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7586 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7587 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7588 | _resultobj = Py_None; |
7589 | return _resultobj; | |
7590 | } | |
7591 | ||
7592 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7593 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7594 | PyObject * _resultobj; |
7595 | wxDC * _arg0; | |
7596 | int _arg1; | |
7597 | wxPoint * _arg2; | |
1d99702e RD |
7598 | long _arg3 = (long ) 0; |
7599 | long _arg4 = (long ) 0; | |
7600 | PyObject * _argo0 = 0; | |
e0672e2f | 7601 | int NPOINTS; |
8ab979d7 | 7602 | PyObject * _obj2 = 0; |
eec92d76 | 7603 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
7604 | |
7605 | self = self; | |
1afc06c2 | 7606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 7607 | return NULL; |
1d99702e RD |
7608 | if (_argo0) { |
7609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
7612 | return NULL; | |
7613 | } | |
7614 | } | |
7615 | if (_obj2) | |
7616 | { | |
e0672e2f RD |
7617 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7618 | if (_arg2 == NULL) { | |
7619 | return NULL; | |
7620 | } | |
8ab979d7 RD |
7621 | } |
7622 | { | |
e0672e2f | 7623 | _arg1 = NPOINTS; |
8ab979d7 | 7624 | } |
cf694132 | 7625 | { |
4268f798 | 7626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7627 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
7628 | ||
4268f798 | 7629 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7630 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7631 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7632 | _resultobj = Py_None; |
7633 | { | |
7634 | delete [] _arg2; | |
7635 | } | |
7636 | return _resultobj; | |
7637 | } | |
7638 | ||
7639 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 7640 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7641 | PyObject * _resultobj; |
7642 | wxDC * _arg0; | |
7643 | int _arg1; | |
7644 | wxPoint * _arg2; | |
1d99702e RD |
7645 | long _arg3 = (long ) 0; |
7646 | long _arg4 = (long ) 0; | |
7647 | int _arg5 = (int ) wxODDEVEN_RULE; | |
7648 | PyObject * _argo0 = 0; | |
e0672e2f | 7649 | int NPOINTS; |
8ab979d7 | 7650 | PyObject * _obj2 = 0; |
eec92d76 | 7651 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
7652 | |
7653 | self = self; | |
1afc06c2 | 7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7655 | return NULL; |
1d99702e RD |
7656 | if (_argo0) { |
7657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
7660 | return NULL; | |
7661 | } | |
7662 | } | |
7663 | if (_obj2) | |
7664 | { | |
e0672e2f RD |
7665 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7666 | if (_arg2 == NULL) { | |
7667 | return NULL; | |
7668 | } | |
8ab979d7 RD |
7669 | } |
7670 | { | |
e0672e2f | 7671 | _arg1 = NPOINTS; |
8ab979d7 | 7672 | } |
cf694132 | 7673 | { |
4268f798 | 7674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7675 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
7676 | ||
4268f798 | 7677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7678 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7679 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7680 | _resultobj = Py_None; |
7681 | { | |
7682 | delete [] _arg2; | |
7683 | } | |
7684 | return _resultobj; | |
7685 | } | |
7686 | ||
7687 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 7688 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7689 | PyObject * _resultobj; |
7690 | wxDC * _arg0; | |
7691 | long _arg1; | |
7692 | long _arg2; | |
1d99702e | 7693 | PyObject * _argo0 = 0; |
1afc06c2 | 7694 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7695 | |
7696 | self = self; | |
1afc06c2 | 7697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7698 | return NULL; |
1d99702e RD |
7699 | if (_argo0) { |
7700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
7703 | return NULL; | |
7704 | } | |
7705 | } | |
cf694132 | 7706 | { |
4268f798 | 7707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7708 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
7709 | ||
4268f798 | 7710 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7711 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7712 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7713 | _resultobj = Py_None; |
7714 | return _resultobj; | |
7715 | } | |
7716 | ||
7717 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7718 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7719 | PyObject * _resultobj; |
7720 | wxDC * _arg0; | |
7721 | long _arg1; | |
7722 | long _arg2; | |
7723 | long _arg3; | |
7724 | long _arg4; | |
1d99702e | 7725 | PyObject * _argo0 = 0; |
1afc06c2 | 7726 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7727 | |
7728 | self = self; | |
1afc06c2 | 7729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7730 | return NULL; |
1d99702e RD |
7731 | if (_argo0) { |
7732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
7735 | return NULL; | |
7736 | } | |
7737 | } | |
cf694132 | 7738 | { |
4268f798 | 7739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7740 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
7741 | ||
4268f798 | 7742 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7743 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7744 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7745 | _resultobj = Py_None; |
7746 | return _resultobj; | |
7747 | } | |
7748 | ||
6999b0d8 RD |
7749 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7750 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7751 | PyObject * _resultobj; | |
7752 | wxDC * _arg0; | |
7753 | wxString * _arg1; | |
7754 | wxCoord _arg2; | |
7755 | wxCoord _arg3; | |
7756 | double _arg4; | |
7757 | PyObject * _argo0 = 0; | |
7758 | PyObject * _obj1 = 0; | |
7759 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
7760 | ||
7761 | self = self; | |
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
7763 | return NULL; | |
7764 | if (_argo0) { | |
7765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
7768 | return NULL; | |
7769 | } | |
7770 | } | |
7771 | { | |
185d7c3e RD |
7772 | #if PYTHON_API_VERSION >= 1009 |
7773 | char* tmpPtr; int tmpSize; | |
7774 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7775 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7776 | return NULL; |
7777 | } | |
7778 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7779 | return NULL; | |
7780 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7781 | #else | |
6999b0d8 RD |
7782 | if (!PyString_Check(_obj1)) { |
7783 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7784 | return NULL; | |
7785 | } | |
185d7c3e RD |
7786 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7787 | #endif | |
6999b0d8 RD |
7788 | } |
7789 | { | |
4268f798 | 7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 RD |
7791 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
7792 | ||
4268f798 | 7793 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7794 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
7795 | } Py_INCREF(Py_None); |
7796 | _resultobj = Py_None; | |
7797 | { | |
7798 | if (_obj1) | |
7799 | delete _arg1; | |
7800 | } | |
7801 | return _resultobj; | |
7802 | } | |
7803 | ||
8ab979d7 | 7804 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 7805 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7806 | PyObject * _resultobj; |
7807 | wxDC * _arg0; | |
7808 | long _arg1; | |
7809 | long _arg2; | |
7810 | long _arg3; | |
7811 | long _arg4; | |
1d99702e RD |
7812 | long _arg5 = (long ) 20; |
7813 | PyObject * _argo0 = 0; | |
1afc06c2 | 7814 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
7815 | |
7816 | self = self; | |
1afc06c2 | 7817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7818 | return NULL; |
1d99702e RD |
7819 | if (_argo0) { |
7820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
7823 | return NULL; | |
7824 | } | |
7825 | } | |
cf694132 | 7826 | { |
4268f798 | 7827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7828 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
7829 | ||
4268f798 | 7830 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7831 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7832 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7833 | _resultobj = Py_None; |
7834 | return _resultobj; | |
7835 | } | |
7836 | ||
7837 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 7838 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7839 | PyObject * _resultobj; |
7840 | wxDC * _arg0; | |
7841 | int _arg1; | |
7842 | wxPoint * _arg2; | |
1d99702e | 7843 | PyObject * _argo0 = 0; |
e0672e2f | 7844 | int NPOINTS; |
8ab979d7 | 7845 | PyObject * _obj2 = 0; |
eec92d76 | 7846 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
7847 | |
7848 | self = self; | |
1afc06c2 | 7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 7850 | return NULL; |
1d99702e RD |
7851 | if (_argo0) { |
7852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
7855 | return NULL; | |
7856 | } | |
7857 | } | |
7858 | if (_obj2) | |
7859 | { | |
e0672e2f RD |
7860 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7861 | if (_arg2 == NULL) { | |
7862 | return NULL; | |
7863 | } | |
8ab979d7 RD |
7864 | } |
7865 | { | |
e0672e2f | 7866 | _arg1 = NPOINTS; |
8ab979d7 | 7867 | } |
cf694132 | 7868 | { |
4268f798 | 7869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7870 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
7871 | ||
4268f798 | 7872 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7874 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7875 | _resultobj = Py_None; |
7876 | { | |
7877 | delete [] _arg2; | |
7878 | } | |
7879 | return _resultobj; | |
7880 | } | |
7881 | ||
7882 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7883 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7884 | PyObject * _resultobj; |
7885 | wxDC * _arg0; | |
7886 | wxString * _arg1; | |
7887 | long _arg2; | |
7888 | long _arg3; | |
1d99702e | 7889 | PyObject * _argo0 = 0; |
8ab979d7 | 7890 | PyObject * _obj1 = 0; |
1afc06c2 | 7891 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
7892 | |
7893 | self = self; | |
1afc06c2 | 7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
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_DrawText. Expected _wxDC_p."); |
7900 | return NULL; | |
7901 | } | |
7902 | } | |
7903 | { | |
185d7c3e RD |
7904 | #if PYTHON_API_VERSION >= 1009 |
7905 | char* tmpPtr; int tmpSize; | |
7906 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7907 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7908 | return NULL; |
7909 | } | |
7910 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7911 | return NULL; | |
7912 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7913 | #else | |
8ab979d7 RD |
7914 | if (!PyString_Check(_obj1)) { |
7915 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7916 | return NULL; | |
7917 | } | |
185d7c3e RD |
7918 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7919 | #endif | |
8ab979d7 | 7920 | } |
cf694132 | 7921 | { |
4268f798 | 7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7923 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
7924 | ||
4268f798 | 7925 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7926 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7927 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7928 | _resultobj = Py_None; |
7929 | { | |
7930 | if (_obj1) | |
7931 | delete _arg1; | |
7932 | } | |
7933 | return _resultobj; | |
7934 | } | |
7935 | ||
7936 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 7937 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7938 | PyObject * _resultobj; |
7939 | wxDC * _arg0; | |
1d99702e | 7940 | PyObject * _argo0 = 0; |
1afc06c2 | 7941 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7942 | |
7943 | self = self; | |
1afc06c2 | 7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 7945 | return NULL; |
1d99702e RD |
7946 | if (_argo0) { |
7947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
7950 | return NULL; | |
7951 | } | |
7952 | } | |
cf694132 | 7953 | { |
4268f798 | 7954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7955 | wxDC_EndDoc(_arg0); |
7956 | ||
4268f798 | 7957 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7958 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7959 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7960 | _resultobj = Py_None; |
7961 | return _resultobj; | |
7962 | } | |
7963 | ||
7964 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 7965 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7966 | PyObject * _resultobj; |
7967 | wxDC * _arg0; | |
1d99702e | 7968 | PyObject * _argo0 = 0; |
1afc06c2 | 7969 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7970 | |
7971 | self = self; | |
1afc06c2 | 7972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7973 | return NULL; |
1d99702e RD |
7974 | if (_argo0) { |
7975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
7978 | return NULL; | |
7979 | } | |
7980 | } | |
cf694132 | 7981 | { |
4268f798 | 7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7983 | wxDC_EndDrawing(_arg0); |
7984 | ||
4268f798 | 7985 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7986 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7987 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7988 | _resultobj = Py_None; |
7989 | return _resultobj; | |
7990 | } | |
7991 | ||
7992 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 7993 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7994 | PyObject * _resultobj; |
7995 | wxDC * _arg0; | |
1d99702e | 7996 | PyObject * _argo0 = 0; |
1afc06c2 | 7997 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7998 | |
7999 | self = self; | |
1afc06c2 | 8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 8001 | return NULL; |
1d99702e RD |
8002 | if (_argo0) { |
8003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
8006 | return NULL; | |
8007 | } | |
8008 | } | |
cf694132 | 8009 | { |
4268f798 | 8010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8011 | wxDC_EndPage(_arg0); |
8012 | ||
4268f798 | 8013 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8015 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8016 | _resultobj = Py_None; |
8017 | return _resultobj; | |
8018 | } | |
8019 | ||
be4d9c1f | 8020 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 8021 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
8022 | PyObject * _resultobj; |
8023 | wxDC * _arg0; | |
8024 | long _arg1; | |
8025 | long _arg2; | |
8026 | wxColour * _arg3; | |
1d99702e RD |
8027 | int _arg4 = (int ) wxFLOOD_SURFACE; |
8028 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
8029 | wxColour temp; |
8030 | PyObject * _obj3 = 0; | |
1afc06c2 | 8031 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
8032 | |
8033 | self = self; | |
f6bcfd97 | 8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 8035 | return NULL; |
1d99702e RD |
8036 | if (_argo0) { |
8037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
8039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
8040 | return NULL; | |
8041 | } | |
8042 | } | |
f6bcfd97 BP |
8043 | { |
8044 | _arg3 = &temp; | |
8045 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 8046 | return NULL; |
f6bcfd97 | 8047 | } |
cf694132 | 8048 | { |
4268f798 | 8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8050 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
8051 | ||
4268f798 | 8052 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8053 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8054 | } Py_INCREF(Py_None); |
be4d9c1f RD |
8055 | _resultobj = Py_None; |
8056 | return _resultobj; | |
8057 | } | |
8058 | ||
8ab979d7 | 8059 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 8060 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8061 | PyObject * _resultobj; |
8062 | wxBrush * _result; | |
8063 | wxDC * _arg0; | |
1d99702e | 8064 | PyObject * _argo0 = 0; |
1afc06c2 | 8065 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8066 | char _ptemp[128]; |
8067 | ||
8068 | self = self; | |
1afc06c2 | 8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 8070 | return NULL; |
1d99702e RD |
8071 | if (_argo0) { |
8072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
8075 | return NULL; | |
8076 | } | |
8077 | } | |
cf694132 | 8078 | { |
4268f798 | 8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8080 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
cf694132 | 8081 | |
4268f798 | 8082 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8083 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8084 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8085 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8086 | return _resultobj; |
8087 | } | |
8088 | ||
8089 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 8090 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8091 | PyObject * _resultobj; |
8092 | wxBrush * _result; | |
8093 | wxDC * _arg0; | |
1d99702e | 8094 | PyObject * _argo0 = 0; |
1afc06c2 | 8095 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8096 | char _ptemp[128]; |
8097 | ||
8098 | self = self; | |
1afc06c2 | 8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 8100 | return NULL; |
1d99702e RD |
8101 | if (_argo0) { |
8102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
8105 | return NULL; | |
8106 | } | |
8107 | } | |
cf694132 | 8108 | { |
4268f798 | 8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8110 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
cf694132 | 8111 | |
4268f798 | 8112 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8113 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8114 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8115 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8116 | return _resultobj; |
8117 | } | |
8118 | ||
8119 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 8120 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8121 | PyObject * _resultobj; |
8122 | long _result; | |
8123 | wxDC * _arg0; | |
1d99702e | 8124 | PyObject * _argo0 = 0; |
1afc06c2 | 8125 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8126 | |
8127 | self = self; | |
1afc06c2 | 8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 8129 | return NULL; |
1d99702e RD |
8130 | if (_argo0) { |
8131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
8134 | return NULL; | |
8135 | } | |
8136 | } | |
cf694132 | 8137 | { |
4268f798 | 8138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8139 | _result = (long )wxDC_GetCharHeight(_arg0); |
8140 | ||
4268f798 | 8141 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8142 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8143 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8144 | return _resultobj; |
8145 | } | |
8146 | ||
8147 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 8148 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8149 | PyObject * _resultobj; |
8150 | long _result; | |
8151 | wxDC * _arg0; | |
1d99702e | 8152 | PyObject * _argo0 = 0; |
1afc06c2 | 8153 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8154 | |
8155 | self = self; | |
1afc06c2 | 8156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 8157 | return NULL; |
1d99702e RD |
8158 | if (_argo0) { |
8159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
8162 | return NULL; | |
8163 | } | |
8164 | } | |
cf694132 | 8165 | { |
4268f798 | 8166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8167 | _result = (long )wxDC_GetCharWidth(_arg0); |
8168 | ||
4268f798 | 8169 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8170 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8171 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8172 | return _resultobj; |
8173 | } | |
8174 | ||
8175 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 8176 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8177 | PyObject * _resultobj; |
8178 | wxDC * _arg0; | |
8179 | long * _arg1; | |
8180 | long temp; | |
8181 | long * _arg2; | |
8182 | long temp0; | |
8183 | long * _arg3; | |
8184 | long temp1; | |
8185 | long * _arg4; | |
8186 | long temp2; | |
1d99702e | 8187 | PyObject * _argo0 = 0; |
1afc06c2 | 8188 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8189 | |
8190 | self = self; | |
8191 | { | |
8192 | _arg1 = &temp; | |
8193 | } | |
8194 | { | |
8195 | _arg2 = &temp0; | |
8196 | } | |
8197 | { | |
8198 | _arg3 = &temp1; | |
8199 | } | |
8200 | { | |
8201 | _arg4 = &temp2; | |
8202 | } | |
1afc06c2 | 8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 8204 | return NULL; |
1d99702e RD |
8205 | if (_argo0) { |
8206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
8209 | return NULL; | |
8210 | } | |
8211 | } | |
cf694132 | 8212 | { |
4268f798 | 8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8214 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
8215 | ||
4268f798 | 8216 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8218 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8219 | _resultobj = Py_None; |
8220 | { | |
8221 | PyObject *o; | |
8222 | o = PyInt_FromLong((long) (*_arg1)); | |
8223 | _resultobj = t_output_helper(_resultobj, o); | |
8224 | } | |
8225 | { | |
8226 | PyObject *o; | |
8227 | o = PyInt_FromLong((long) (*_arg2)); | |
8228 | _resultobj = t_output_helper(_resultobj, o); | |
8229 | } | |
8230 | { | |
8231 | PyObject *o; | |
8232 | o = PyInt_FromLong((long) (*_arg3)); | |
8233 | _resultobj = t_output_helper(_resultobj, o); | |
8234 | } | |
8235 | { | |
8236 | PyObject *o; | |
8237 | o = PyInt_FromLong((long) (*_arg4)); | |
8238 | _resultobj = t_output_helper(_resultobj, o); | |
8239 | } | |
8240 | return _resultobj; | |
8241 | } | |
8242 | ||
8243 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 8244 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8245 | PyObject * _resultobj; |
8246 | wxFont * _result; | |
8247 | wxDC * _arg0; | |
1d99702e | 8248 | PyObject * _argo0 = 0; |
1afc06c2 | 8249 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8250 | char _ptemp[128]; |
8251 | ||
8252 | self = self; | |
1afc06c2 | 8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 8254 | return NULL; |
1d99702e RD |
8255 | if (_argo0) { |
8256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
8259 | return NULL; | |
8260 | } | |
8261 | } | |
cf694132 | 8262 | { |
4268f798 | 8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8264 | _result = new wxFont (wxDC_GetFont(_arg0)); |
cf694132 | 8265 | |
4268f798 | 8266 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8267 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8268 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8269 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8270 | return _resultobj; |
8271 | } | |
8272 | ||
8273 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 8274 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8275 | PyObject * _resultobj; |
8276 | int _result; | |
8277 | wxDC * _arg0; | |
1d99702e | 8278 | PyObject * _argo0 = 0; |
1afc06c2 | 8279 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8280 | |
8281 | self = self; | |
1afc06c2 | 8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 8283 | return NULL; |
1d99702e RD |
8284 | if (_argo0) { |
8285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
8288 | return NULL; | |
8289 | } | |
8290 | } | |
cf694132 | 8291 | { |
4268f798 | 8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8293 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
8294 | ||
4268f798 | 8295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8296 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8297 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8298 | return _resultobj; |
8299 | } | |
8300 | ||
eec92d76 RD |
8301 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
8302 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8303 | PyObject * _resultobj; | |
8304 | wxDC * _arg0; | |
8305 | double * _arg1; | |
8306 | double temp; | |
8307 | double * _arg2; | |
8308 | double temp0; | |
8309 | PyObject * _argo0 = 0; | |
8310 | char *_kwnames[] = { "self", NULL }; | |
8311 | ||
8312 | self = self; | |
8313 | { | |
8314 | _arg1 = &temp; | |
8315 | } | |
8316 | { | |
8317 | _arg2 = &temp0; | |
8318 | } | |
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
8320 | return NULL; | |
8321 | if (_argo0) { | |
8322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
8325 | return NULL; | |
8326 | } | |
8327 | } | |
8328 | { | |
4268f798 | 8329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
8330 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
8331 | ||
4268f798 | 8332 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8333 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8334 | } Py_INCREF(Py_None); |
8335 | _resultobj = Py_None; | |
8336 | { | |
8337 | PyObject *o; | |
8338 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8339 | _resultobj = t_output_helper(_resultobj, o); | |
8340 | } | |
8341 | { | |
8342 | PyObject *o; | |
8343 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8344 | _resultobj = t_output_helper(_resultobj, o); | |
8345 | } | |
8346 | return _resultobj; | |
8347 | } | |
8348 | ||
8ab979d7 | 8349 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 8350 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8351 | PyObject * _resultobj; |
8352 | int _result; | |
8353 | wxDC * _arg0; | |
1d99702e | 8354 | PyObject * _argo0 = 0; |
1afc06c2 | 8355 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8356 | |
8357 | self = self; | |
1afc06c2 | 8358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 8359 | return NULL; |
1d99702e RD |
8360 | if (_argo0) { |
8361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
8364 | return NULL; | |
8365 | } | |
8366 | } | |
cf694132 | 8367 | { |
4268f798 | 8368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8369 | _result = (int )wxDC_GetMapMode(_arg0); |
8370 | ||
4268f798 | 8371 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8372 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8373 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8374 | return _resultobj; |
8375 | } | |
8376 | ||
8377 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 8378 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8379 | PyObject * _resultobj; |
8380 | bool _result; | |
8381 | wxDC * _arg0; | |
1d99702e | 8382 | PyObject * _argo0 = 0; |
1afc06c2 | 8383 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8384 | |
8385 | self = self; | |
1afc06c2 | 8386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 8387 | return NULL; |
1d99702e RD |
8388 | if (_argo0) { |
8389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
8392 | return NULL; | |
8393 | } | |
8394 | } | |
cf694132 | 8395 | { |
4268f798 | 8396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8397 | _result = (bool )wxDC_GetOptimization(_arg0); |
8398 | ||
4268f798 | 8399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8400 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8401 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8402 | return _resultobj; |
8403 | } | |
8404 | ||
8405 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 8406 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8407 | PyObject * _resultobj; |
8408 | wxPen * _result; | |
8409 | wxDC * _arg0; | |
1d99702e | 8410 | PyObject * _argo0 = 0; |
1afc06c2 | 8411 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8412 | char _ptemp[128]; |
8413 | ||
8414 | self = self; | |
1afc06c2 | 8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 8416 | return NULL; |
1d99702e RD |
8417 | if (_argo0) { |
8418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
8421 | return NULL; | |
8422 | } | |
8423 | } | |
cf694132 | 8424 | { |
4268f798 | 8425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8426 | _result = new wxPen (wxDC_GetPen(_arg0)); |
cf694132 | 8427 | |
4268f798 | 8428 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8429 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8430 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
8431 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8432 | return _resultobj; |
8433 | } | |
8434 | ||
8435 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
8436 | wxColour* wc = new wxColour(); | |
8437 | self->GetPixel(x, y, wc); | |
8438 | return wc; | |
8439 | } | |
1afc06c2 | 8440 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8441 | PyObject * _resultobj; |
8442 | wxColour * _result; | |
8443 | wxDC * _arg0; | |
8444 | long _arg1; | |
8445 | long _arg2; | |
1d99702e | 8446 | PyObject * _argo0 = 0; |
1afc06c2 | 8447 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
8448 | char _ptemp[128]; |
8449 | ||
8450 | self = self; | |
1afc06c2 | 8451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8452 | return NULL; |
1d99702e RD |
8453 | if (_argo0) { |
8454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
8457 | return NULL; | |
8458 | } | |
8459 | } | |
cf694132 | 8460 | { |
4268f798 | 8461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8462 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
8463 | ||
4268f798 | 8464 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8465 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8466 | } if (_result) { |
8467 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
8468 | _resultobj = Py_BuildValue("s",_ptemp); | |
8469 | } else { | |
8470 | Py_INCREF(Py_None); | |
8471 | _resultobj = Py_None; | |
8472 | } | |
8ab979d7 RD |
8473 | return _resultobj; |
8474 | } | |
8475 | ||
bb0054cd | 8476 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 8477 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8478 | PyObject * _resultobj; |
8479 | wxDC * _arg0; | |
8480 | int * _arg1; | |
8481 | int temp; | |
8482 | int * _arg2; | |
8483 | int temp0; | |
1d99702e | 8484 | PyObject * _argo0 = 0; |
1afc06c2 | 8485 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8486 | |
8487 | self = self; | |
8488 | { | |
8489 | _arg1 = &temp; | |
8490 | } | |
8491 | { | |
8492 | _arg2 = &temp0; | |
8493 | } | |
1afc06c2 | 8494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 8495 | return NULL; |
1d99702e RD |
8496 | if (_argo0) { |
8497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 8499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
8500 | return NULL; |
8501 | } | |
8502 | } | |
cf694132 | 8503 | { |
4268f798 | 8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd | 8505 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 8506 | |
4268f798 | 8507 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8508 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8509 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8510 | _resultobj = Py_None; |
8511 | { | |
8512 | PyObject *o; | |
8513 | o = PyInt_FromLong((long) (*_arg1)); | |
8514 | _resultobj = t_output_helper(_resultobj, o); | |
8515 | } | |
8516 | { | |
8517 | PyObject *o; | |
8518 | o = PyInt_FromLong((long) (*_arg2)); | |
8519 | _resultobj = t_output_helper(_resultobj, o); | |
8520 | } | |
8521 | return _resultobj; | |
8522 | } | |
8523 | ||
bb0054cd | 8524 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 8525 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8526 | PyObject * _resultobj; |
8527 | wxSize * _result; | |
8528 | wxDC * _arg0; | |
1d99702e | 8529 | PyObject * _argo0 = 0; |
1afc06c2 | 8530 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
8531 | char _ptemp[128]; |
8532 | ||
8533 | self = self; | |
1afc06c2 | 8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 8535 | return NULL; |
1d99702e RD |
8536 | if (_argo0) { |
8537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
8539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
8540 | return NULL; | |
8541 | } | |
8542 | } | |
8543 | { | |
4268f798 | 8544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
8545 | _result = new wxSize (wxDC_GetSize(_arg0)); |
8546 | ||
4268f798 | 8547 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8548 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8549 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8550 | _resultobj = Py_BuildValue("s",_ptemp); | |
8551 | return _resultobj; | |
8552 | } | |
8553 | ||
eec92d76 RD |
8554 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
8555 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8556 | PyObject * _resultobj; | |
8557 | wxSize * _result; | |
8558 | wxDC * _arg0; | |
8559 | PyObject * _argo0 = 0; | |
8560 | char *_kwnames[] = { "self", NULL }; | |
8561 | char _ptemp[128]; | |
8562 | ||
8563 | self = self; | |
8564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
8565 | return NULL; | |
8566 | if (_argo0) { | |
8567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
8570 | return NULL; | |
8571 | } | |
8572 | } | |
8573 | { | |
4268f798 | 8574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
8575 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
8576 | ||
4268f798 | 8577 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8578 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8579 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8580 | _resultobj = Py_BuildValue("s",_ptemp); | |
8581 | return _resultobj; | |
8582 | } | |
8583 | ||
8ab979d7 | 8584 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 8585 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8586 | PyObject * _resultobj; |
8587 | wxColour * _result; | |
8588 | wxDC * _arg0; | |
1d99702e | 8589 | PyObject * _argo0 = 0; |
1afc06c2 | 8590 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8591 | char _ptemp[128]; |
8592 | ||
8593 | self = self; | |
1afc06c2 | 8594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 8595 | return NULL; |
1d99702e RD |
8596 | if (_argo0) { |
8597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
8600 | return NULL; | |
8601 | } | |
8602 | } | |
cf694132 | 8603 | { |
4268f798 | 8604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 8605 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 | 8606 | |
4268f798 | 8607 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8608 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8609 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8610 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8611 | return _resultobj; |
8612 | } | |
8613 | ||
af309447 | 8614 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 8615 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8616 | PyObject * _resultobj; |
8617 | wxDC * _arg0; | |
8618 | wxString * _arg1; | |
8619 | long * _arg2; | |
8620 | long temp; | |
8621 | long * _arg3; | |
8622 | long temp0; | |
1d99702e | 8623 | PyObject * _argo0 = 0; |
af309447 | 8624 | PyObject * _obj1 = 0; |
1afc06c2 | 8625 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
8626 | |
8627 | self = self; | |
8628 | { | |
8629 | _arg2 = &temp; | |
8630 | } | |
8631 | { | |
8632 | _arg3 = &temp0; | |
8633 | } | |
1afc06c2 | 8634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 8635 | return NULL; |
1d99702e RD |
8636 | if (_argo0) { |
8637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
8639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
8640 | return NULL; | |
8641 | } | |
8642 | } | |
8643 | { | |
185d7c3e RD |
8644 | #if PYTHON_API_VERSION >= 1009 |
8645 | char* tmpPtr; int tmpSize; | |
8646 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8647 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8648 | return NULL; |
8649 | } | |
8650 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8651 | return NULL; | |
8652 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8653 | #else | |
af309447 RD |
8654 | if (!PyString_Check(_obj1)) { |
8655 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8656 | return NULL; | |
8657 | } | |
185d7c3e RD |
8658 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8659 | #endif | |
af309447 | 8660 | } |
cf694132 | 8661 | { |
4268f798 | 8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8663 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
8664 | ||
4268f798 | 8665 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8666 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8667 | } Py_INCREF(Py_None); |
af309447 RD |
8668 | _resultobj = Py_None; |
8669 | { | |
8670 | PyObject *o; | |
8671 | o = PyInt_FromLong((long) (*_arg2)); | |
8672 | _resultobj = t_output_helper(_resultobj, o); | |
8673 | } | |
8674 | { | |
8675 | PyObject *o; | |
8676 | o = PyInt_FromLong((long) (*_arg3)); | |
8677 | _resultobj = t_output_helper(_resultobj, o); | |
8678 | } | |
8679 | { | |
8680 | if (_obj1) | |
8681 | delete _arg1; | |
8682 | } | |
8683 | return _resultobj; | |
8684 | } | |
8685 | ||
8686 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 8687 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8688 | PyObject * _resultobj; |
8689 | wxDC * _arg0; | |
8690 | wxString * _arg1; | |
8691 | long * _arg2; | |
8692 | long temp; | |
8693 | long * _arg3; | |
8694 | long temp0; | |
8695 | long * _arg4; | |
8696 | long temp1; | |
8697 | long * _arg5; | |
8698 | long temp2; | |
1d99702e RD |
8699 | wxFont * _arg6 = (wxFont *) NULL; |
8700 | PyObject * _argo0 = 0; | |
8ab979d7 | 8701 | PyObject * _obj1 = 0; |
1d99702e | 8702 | PyObject * _argo6 = 0; |
1afc06c2 | 8703 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
8704 | |
8705 | self = self; | |
8706 | { | |
8707 | _arg2 = &temp; | |
8708 | } | |
8709 | { | |
8710 | _arg3 = &temp0; | |
8711 | } | |
8712 | { | |
8713 | _arg4 = &temp1; | |
8714 | } | |
8715 | { | |
8716 | _arg5 = &temp2; | |
8717 | } | |
1afc06c2 | 8718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 8719 | return NULL; |
1d99702e RD |
8720 | if (_argo0) { |
8721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 8723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
8724 | return NULL; |
8725 | } | |
8726 | } | |
8727 | { | |
185d7c3e RD |
8728 | #if PYTHON_API_VERSION >= 1009 |
8729 | char* tmpPtr; int tmpSize; | |
8730 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8731 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8732 | return NULL; |
8733 | } | |
8734 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8735 | return NULL; | |
8736 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8737 | #else | |
8ab979d7 RD |
8738 | if (!PyString_Check(_obj1)) { |
8739 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8740 | return NULL; | |
8741 | } | |
185d7c3e RD |
8742 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8743 | #endif | |
8ab979d7 | 8744 | } |
1d99702e RD |
8745 | if (_argo6) { |
8746 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8747 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
8748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
8749 | return NULL; | |
8750 | } | |
8751 | } | |
cf694132 | 8752 | { |
4268f798 | 8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8754 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
8755 | ||
4268f798 | 8756 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8757 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8758 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8759 | _resultobj = Py_None; |
8760 | { | |
8761 | PyObject *o; | |
8762 | o = PyInt_FromLong((long) (*_arg2)); | |
8763 | _resultobj = t_output_helper(_resultobj, o); | |
8764 | } | |
8765 | { | |
8766 | PyObject *o; | |
8767 | o = PyInt_FromLong((long) (*_arg3)); | |
8768 | _resultobj = t_output_helper(_resultobj, o); | |
8769 | } | |
8770 | { | |
8771 | PyObject *o; | |
8772 | o = PyInt_FromLong((long) (*_arg4)); | |
8773 | _resultobj = t_output_helper(_resultobj, o); | |
8774 | } | |
8775 | { | |
8776 | PyObject *o; | |
8777 | o = PyInt_FromLong((long) (*_arg5)); | |
8778 | _resultobj = t_output_helper(_resultobj, o); | |
8779 | } | |
8780 | { | |
8781 | if (_obj1) | |
8782 | delete _arg1; | |
8783 | } | |
8784 | return _resultobj; | |
8785 | } | |
8786 | ||
8787 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 8788 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8789 | PyObject * _resultobj; |
8790 | wxColour * _result; | |
8791 | wxDC * _arg0; | |
1d99702e | 8792 | PyObject * _argo0 = 0; |
1afc06c2 | 8793 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8794 | char _ptemp[128]; |
8795 | ||
8796 | self = self; | |
1afc06c2 | 8797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 8798 | return NULL; |
1d99702e RD |
8799 | if (_argo0) { |
8800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
8803 | return NULL; | |
8804 | } | |
8805 | } | |
cf694132 | 8806 | { |
4268f798 | 8807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 8808 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
cf694132 | 8809 | |
4268f798 | 8810 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8811 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8812 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8813 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8814 | return _resultobj; |
8815 | } | |
8816 | ||
eec92d76 RD |
8817 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
8818 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8819 | PyObject * _resultobj; | |
8820 | wxDC * _arg0; | |
8821 | double * _arg1; | |
8822 | double temp; | |
8823 | double * _arg2; | |
8824 | double temp0; | |
8825 | PyObject * _argo0 = 0; | |
8826 | char *_kwnames[] = { "self", NULL }; | |
8827 | ||
8828 | self = self; | |
8829 | { | |
8830 | _arg1 = &temp; | |
8831 | } | |
8832 | { | |
8833 | _arg2 = &temp0; | |
8834 | } | |
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
8836 | return NULL; | |
8837 | if (_argo0) { | |
8838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
8841 | return NULL; | |
8842 | } | |
8843 | } | |
8844 | { | |
4268f798 | 8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
8846 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
8847 | ||
4268f798 | 8848 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8849 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8850 | } Py_INCREF(Py_None); |
8851 | _resultobj = Py_None; | |
8852 | { | |
8853 | PyObject *o; | |
8854 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8855 | _resultobj = t_output_helper(_resultobj, o); | |
8856 | } | |
8857 | { | |
8858 | PyObject *o; | |
8859 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8860 | _resultobj = t_output_helper(_resultobj, o); | |
8861 | } | |
8862 | return _resultobj; | |
8863 | } | |
8864 | ||
8ab979d7 | 8865 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 8866 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8867 | PyObject * _resultobj; |
8868 | long _result; | |
8869 | wxDC * _arg0; | |
8870 | long _arg1; | |
1d99702e | 8871 | PyObject * _argo0 = 0; |
1afc06c2 | 8872 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8873 | |
8874 | self = self; | |
1afc06c2 | 8875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8876 | return NULL; |
1d99702e RD |
8877 | if (_argo0) { |
8878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
8881 | return NULL; | |
8882 | } | |
8883 | } | |
cf694132 | 8884 | { |
4268f798 | 8885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8886 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
8887 | ||
4268f798 | 8888 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8889 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8890 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8891 | return _resultobj; |
8892 | } | |
8893 | ||
8894 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 8895 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8896 | PyObject * _resultobj; |
8897 | long _result; | |
8898 | wxDC * _arg0; | |
8899 | long _arg1; | |
1d99702e | 8900 | PyObject * _argo0 = 0; |
1afc06c2 | 8901 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8902 | |
8903 | self = self; | |
1afc06c2 | 8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8905 | return NULL; |
1d99702e RD |
8906 | if (_argo0) { |
8907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
8910 | return NULL; | |
8911 | } | |
8912 | } | |
cf694132 | 8913 | { |
4268f798 | 8914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8915 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
8916 | ||
4268f798 | 8917 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8918 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8919 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8920 | return _resultobj; |
8921 | } | |
8922 | ||
8923 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 8924 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8925 | PyObject * _resultobj; |
8926 | long _result; | |
8927 | wxDC * _arg0; | |
8928 | long _arg1; | |
1d99702e | 8929 | PyObject * _argo0 = 0; |
1afc06c2 | 8930 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8931 | |
8932 | self = self; | |
1afc06c2 | 8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8934 | return NULL; |
1d99702e RD |
8935 | if (_argo0) { |
8936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
8939 | return NULL; | |
8940 | } | |
8941 | } | |
cf694132 | 8942 | { |
4268f798 | 8943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8944 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
8945 | ||
4268f798 | 8946 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8947 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8948 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8949 | return _resultobj; |
8950 | } | |
8951 | ||
8952 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 8953 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8954 | PyObject * _resultobj; |
8955 | long _result; | |
8956 | wxDC * _arg0; | |
8957 | long _arg1; | |
1d99702e | 8958 | PyObject * _argo0 = 0; |
1afc06c2 | 8959 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8960 | |
8961 | self = self; | |
1afc06c2 | 8962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
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_LogicalToDeviceYRel. Expected _wxDC_p."); |
8968 | return NULL; | |
8969 | } | |
8970 | } | |
cf694132 | 8971 | { |
4268f798 | 8972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8973 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
8974 | ||
4268f798 | 8975 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8976 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8977 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8978 | return _resultobj; |
8979 | } | |
8980 | ||
8981 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 8982 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8983 | PyObject * _resultobj; |
8984 | long _result; | |
8985 | wxDC * _arg0; | |
1d99702e | 8986 | PyObject * _argo0 = 0; |
1afc06c2 | 8987 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8988 | |
8989 | self = self; | |
1afc06c2 | 8990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 8991 | return NULL; |
1d99702e RD |
8992 | if (_argo0) { |
8993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
8996 | return NULL; | |
8997 | } | |
8998 | } | |
cf694132 | 8999 | { |
4268f798 | 9000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9001 | _result = (long )wxDC_MaxX(_arg0); |
9002 | ||
4268f798 | 9003 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9004 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9005 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9006 | return _resultobj; |
9007 | } | |
9008 | ||
9009 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 9010 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9011 | PyObject * _resultobj; |
9012 | long _result; | |
9013 | wxDC * _arg0; | |
1d99702e | 9014 | PyObject * _argo0 = 0; |
1afc06c2 | 9015 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9016 | |
9017 | self = self; | |
1afc06c2 | 9018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 9019 | return NULL; |
1d99702e RD |
9020 | if (_argo0) { |
9021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
9024 | return NULL; | |
9025 | } | |
9026 | } | |
cf694132 | 9027 | { |
4268f798 | 9028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9029 | _result = (long )wxDC_MaxY(_arg0); |
9030 | ||
4268f798 | 9031 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9032 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9033 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9034 | return _resultobj; |
9035 | } | |
9036 | ||
9037 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 9038 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9039 | PyObject * _resultobj; |
9040 | long _result; | |
9041 | wxDC * _arg0; | |
1d99702e | 9042 | PyObject * _argo0 = 0; |
1afc06c2 | 9043 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9044 | |
9045 | self = self; | |
1afc06c2 | 9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 9047 | return NULL; |
1d99702e RD |
9048 | if (_argo0) { |
9049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
9052 | return NULL; | |
9053 | } | |
9054 | } | |
cf694132 | 9055 | { |
4268f798 | 9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9057 | _result = (long )wxDC_MinX(_arg0); |
9058 | ||
4268f798 | 9059 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9060 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9061 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9062 | return _resultobj; |
9063 | } | |
9064 | ||
9065 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 9066 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9067 | PyObject * _resultobj; |
9068 | long _result; | |
9069 | wxDC * _arg0; | |
1d99702e | 9070 | PyObject * _argo0 = 0; |
1afc06c2 | 9071 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9072 | |
9073 | self = self; | |
1afc06c2 | 9074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 9075 | return NULL; |
1d99702e RD |
9076 | if (_argo0) { |
9077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
9080 | return NULL; | |
9081 | } | |
9082 | } | |
cf694132 | 9083 | { |
4268f798 | 9084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9085 | _result = (long )wxDC_MinY(_arg0); |
9086 | ||
4268f798 | 9087 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9088 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9089 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9090 | return _resultobj; |
9091 | } | |
9092 | ||
9093 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 9094 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9095 | PyObject * _resultobj; |
9096 | bool _result; | |
9097 | wxDC * _arg0; | |
1d99702e | 9098 | PyObject * _argo0 = 0; |
1afc06c2 | 9099 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9100 | |
9101 | self = self; | |
1afc06c2 | 9102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 9103 | return NULL; |
1d99702e RD |
9104 | if (_argo0) { |
9105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
9108 | return NULL; | |
9109 | } | |
9110 | } | |
cf694132 | 9111 | { |
4268f798 | 9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9113 | _result = (bool )wxDC_Ok(_arg0); |
9114 | ||
4268f798 | 9115 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9116 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9117 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9118 | return _resultobj; |
9119 | } | |
9120 | ||
9121 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 9122 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9123 | PyObject * _resultobj; |
9124 | wxDC * _arg0; | |
9125 | long _arg1; | |
9126 | long _arg2; | |
1d99702e | 9127 | PyObject * _argo0 = 0; |
1afc06c2 | 9128 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
9129 | |
9130 | self = self; | |
1afc06c2 | 9131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9132 | return NULL; |
1d99702e RD |
9133 | if (_argo0) { |
9134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
9137 | return NULL; | |
9138 | } | |
9139 | } | |
cf694132 | 9140 | { |
4268f798 | 9141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9142 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
9143 | ||
4268f798 | 9144 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9145 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9146 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9147 | _resultobj = Py_None; |
9148 | return _resultobj; | |
9149 | } | |
9150 | ||
9151 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 9152 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9153 | PyObject * _resultobj; |
9154 | wxDC * _arg0; | |
9155 | wxBrush * _arg1; | |
1d99702e RD |
9156 | PyObject * _argo0 = 0; |
9157 | PyObject * _argo1 = 0; | |
1afc06c2 | 9158 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9159 | |
9160 | self = self; | |
1afc06c2 | 9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9162 | return NULL; |
1d99702e RD |
9163 | if (_argo0) { |
9164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
9167 | return NULL; | |
9168 | } | |
9169 | } | |
1d99702e RD |
9170 | if (_argo1) { |
9171 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9172 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
9174 | return NULL; | |
9175 | } | |
9176 | } | |
cf694132 | 9177 | { |
4268f798 | 9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9179 | wxDC_SetBackground(_arg0,*_arg1); |
9180 | ||
4268f798 | 9181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9182 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9183 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9184 | _resultobj = Py_None; |
9185 | return _resultobj; | |
9186 | } | |
9187 | ||
9188 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 9189 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9190 | PyObject * _resultobj; |
9191 | wxDC * _arg0; | |
9192 | int _arg1; | |
1d99702e | 9193 | PyObject * _argo0 = 0; |
1afc06c2 | 9194 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9195 | |
9196 | self = self; | |
1afc06c2 | 9197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9198 | return NULL; |
1d99702e RD |
9199 | if (_argo0) { |
9200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
9203 | return NULL; | |
9204 | } | |
9205 | } | |
cf694132 | 9206 | { |
4268f798 | 9207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9208 | wxDC_SetBackgroundMode(_arg0,_arg1); |
9209 | ||
4268f798 | 9210 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9211 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9212 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9213 | _resultobj = Py_None; |
9214 | return _resultobj; | |
9215 | } | |
9216 | ||
9217 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 9218 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9219 | PyObject * _resultobj; |
9220 | wxDC * _arg0; | |
9221 | long _arg1; | |
9222 | long _arg2; | |
9223 | long _arg3; | |
9224 | long _arg4; | |
1d99702e | 9225 | PyObject * _argo0 = 0; |
1afc06c2 | 9226 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
9227 | |
9228 | self = self; | |
1afc06c2 | 9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9230 | return NULL; |
1d99702e RD |
9231 | if (_argo0) { |
9232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
9235 | return NULL; | |
9236 | } | |
9237 | } | |
cf694132 | 9238 | { |
4268f798 | 9239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9240 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
9241 | ||
4268f798 | 9242 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9243 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9244 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9245 | _resultobj = Py_None; |
9246 | return _resultobj; | |
9247 | } | |
9248 | ||
19a97bd6 RD |
9249 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
9250 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9251 | PyObject * _resultobj; | |
9252 | wxDC * _arg0; | |
9253 | wxRegion * _arg1; | |
9254 | PyObject * _argo0 = 0; | |
9255 | PyObject * _argo1 = 0; | |
9256 | char *_kwnames[] = { "self","region", NULL }; | |
9257 | ||
9258 | self = self; | |
9259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
9260 | return NULL; | |
9261 | if (_argo0) { | |
9262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
9265 | return NULL; | |
9266 | } | |
9267 | } | |
9268 | if (_argo1) { | |
9269 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9270 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
9272 | return NULL; | |
9273 | } | |
9274 | } | |
9275 | { | |
4268f798 | 9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19a97bd6 RD |
9277 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
9278 | ||
4268f798 | 9279 | wxPyEndAllowThreads(__tstate); |
19a97bd6 RD |
9280 | if (PyErr_Occurred()) return NULL; |
9281 | } Py_INCREF(Py_None); | |
9282 | _resultobj = Py_None; | |
9283 | return _resultobj; | |
9284 | } | |
9285 | ||
8ab979d7 | 9286 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1afc06c2 | 9287 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9288 | PyObject * _resultobj; |
9289 | wxDC * _arg0; | |
9290 | wxPalette * _arg1; | |
1d99702e RD |
9291 | PyObject * _argo0 = 0; |
9292 | PyObject * _argo1 = 0; | |
1afc06c2 | 9293 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
9294 | |
9295 | self = self; | |
1afc06c2 | 9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
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_SetPalette. Expected _wxDC_p."); |
9302 | return NULL; | |
9303 | } | |
9304 | } | |
1d99702e RD |
9305 | if (_argo1) { |
9306 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9307 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
9308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
9309 | return NULL; | |
9310 | } | |
9311 | } | |
cf694132 | 9312 | { |
4268f798 | 9313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9314 | wxDC_SetPalette(_arg0,*_arg1); |
9315 | ||
4268f798 | 9316 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9317 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9318 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9319 | _resultobj = Py_None; |
9320 | return _resultobj; | |
9321 | } | |
9322 | ||
9323 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 9324 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9325 | PyObject * _resultobj; |
9326 | wxDC * _arg0; | |
9327 | wxBrush * _arg1; | |
1d99702e RD |
9328 | PyObject * _argo0 = 0; |
9329 | PyObject * _argo1 = 0; | |
1afc06c2 | 9330 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9331 | |
9332 | self = self; | |
1afc06c2 | 9333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9334 | return NULL; |
1d99702e RD |
9335 | if (_argo0) { |
9336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
9339 | return NULL; | |
9340 | } | |
9341 | } | |
1d99702e RD |
9342 | if (_argo1) { |
9343 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9344 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
9346 | return NULL; | |
9347 | } | |
9348 | } | |
cf694132 | 9349 | { |
4268f798 | 9350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9351 | wxDC_SetBrush(_arg0,*_arg1); |
9352 | ||
4268f798 | 9353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9355 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9356 | _resultobj = Py_None; |
9357 | return _resultobj; | |
9358 | } | |
9359 | ||
9360 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 9361 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9362 | PyObject * _resultobj; |
9363 | wxDC * _arg0; | |
9364 | wxFont * _arg1; | |
1d99702e RD |
9365 | PyObject * _argo0 = 0; |
9366 | PyObject * _argo1 = 0; | |
1afc06c2 | 9367 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
9368 | |
9369 | self = self; | |
1afc06c2 | 9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9371 | return NULL; |
1d99702e RD |
9372 | if (_argo0) { |
9373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
9376 | return NULL; | |
9377 | } | |
9378 | } | |
1d99702e RD |
9379 | if (_argo1) { |
9380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
9382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
9383 | return NULL; | |
9384 | } | |
9385 | } | |
cf694132 | 9386 | { |
4268f798 | 9387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9388 | wxDC_SetFont(_arg0,*_arg1); |
9389 | ||
4268f798 | 9390 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9391 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9392 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9393 | _resultobj = Py_None; |
9394 | return _resultobj; | |
9395 | } | |
9396 | ||
9397 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 9398 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9399 | PyObject * _resultobj; |
9400 | wxDC * _arg0; | |
9401 | int _arg1; | |
1d99702e | 9402 | PyObject * _argo0 = 0; |
1afc06c2 | 9403 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
9404 | |
9405 | self = self; | |
1afc06c2 | 9406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9407 | return NULL; |
1d99702e RD |
9408 | if (_argo0) { |
9409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
9412 | return NULL; | |
9413 | } | |
9414 | } | |
cf694132 | 9415 | { |
4268f798 | 9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9417 | wxDC_SetLogicalFunction(_arg0,_arg1); |
9418 | ||
4268f798 | 9419 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9420 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9421 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9422 | _resultobj = Py_None; |
9423 | return _resultobj; | |
9424 | } | |
9425 | ||
eec92d76 RD |
9426 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
9427 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9428 | PyObject * _resultobj; | |
9429 | wxDC * _arg0; | |
9430 | double _arg1; | |
9431 | double _arg2; | |
9432 | PyObject * _argo0 = 0; | |
9433 | char *_kwnames[] = { "self","x","y", NULL }; | |
9434 | ||
9435 | self = self; | |
9436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9437 | return NULL; | |
9438 | if (_argo0) { | |
9439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
9442 | return NULL; | |
9443 | } | |
9444 | } | |
9445 | { | |
4268f798 | 9446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9447 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
9448 | ||
4268f798 | 9449 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9450 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9451 | } Py_INCREF(Py_None); |
9452 | _resultobj = Py_None; | |
9453 | return _resultobj; | |
9454 | } | |
9455 | ||
8ab979d7 | 9456 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 9457 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9458 | PyObject * _resultobj; |
9459 | wxDC * _arg0; | |
9460 | int _arg1; | |
1d99702e | 9461 | PyObject * _argo0 = 0; |
1afc06c2 | 9462 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9463 | |
9464 | self = self; | |
1afc06c2 | 9465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9466 | return NULL; |
1d99702e RD |
9467 | if (_argo0) { |
9468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
9471 | return NULL; | |
9472 | } | |
9473 | } | |
cf694132 | 9474 | { |
4268f798 | 9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9476 | wxDC_SetMapMode(_arg0,_arg1); |
9477 | ||
4268f798 | 9478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9480 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9481 | _resultobj = Py_None; |
9482 | return _resultobj; | |
9483 | } | |
9484 | ||
9485 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 9486 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9487 | PyObject * _resultobj; |
9488 | wxDC * _arg0; | |
9489 | bool _arg1; | |
1d99702e | 9490 | PyObject * _argo0 = 0; |
8ab979d7 | 9491 | int tempbool1; |
1afc06c2 | 9492 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
9493 | |
9494 | self = self; | |
1afc06c2 | 9495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9496 | return NULL; |
1d99702e RD |
9497 | if (_argo0) { |
9498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
9501 | return NULL; | |
9502 | } | |
9503 | } | |
9504 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9505 | { |
4268f798 | 9506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9507 | wxDC_SetOptimization(_arg0,_arg1); |
9508 | ||
4268f798 | 9509 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9510 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9511 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9512 | _resultobj = Py_None; |
9513 | return _resultobj; | |
9514 | } | |
9515 | ||
9516 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 9517 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9518 | PyObject * _resultobj; |
9519 | wxDC * _arg0; | |
9520 | wxPen * _arg1; | |
1d99702e RD |
9521 | PyObject * _argo0 = 0; |
9522 | PyObject * _argo1 = 0; | |
1afc06c2 | 9523 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
9524 | |
9525 | self = self; | |
1afc06c2 | 9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9527 | return NULL; |
1d99702e RD |
9528 | if (_argo0) { |
9529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
9532 | return NULL; | |
9533 | } | |
9534 | } | |
1d99702e RD |
9535 | if (_argo1) { |
9536 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9537 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
9538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
9539 | return NULL; | |
9540 | } | |
9541 | } | |
cf694132 | 9542 | { |
4268f798 | 9543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9544 | wxDC_SetPen(_arg0,*_arg1); |
9545 | ||
4268f798 | 9546 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9547 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9548 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9549 | _resultobj = Py_None; |
9550 | return _resultobj; | |
9551 | } | |
9552 | ||
9553 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 9554 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9555 | PyObject * _resultobj; |
9556 | wxDC * _arg0; | |
9557 | wxColour * _arg1; | |
1d99702e | 9558 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9559 | wxColour temp; |
9560 | PyObject * _obj1 = 0; | |
1afc06c2 | 9561 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9562 | |
9563 | self = self; | |
f6bcfd97 | 9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9565 | return NULL; |
1d99702e RD |
9566 | if (_argo0) { |
9567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
9570 | return NULL; | |
9571 | } | |
9572 | } | |
f6bcfd97 BP |
9573 | { |
9574 | _arg1 = &temp; | |
9575 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9576 | return NULL; |
f6bcfd97 | 9577 | } |
cf694132 | 9578 | { |
4268f798 | 9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9580 | wxDC_SetTextBackground(_arg0,*_arg1); |
9581 | ||
4268f798 | 9582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9584 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9585 | _resultobj = Py_None; |
9586 | return _resultobj; | |
9587 | } | |
9588 | ||
9589 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 9590 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9591 | PyObject * _resultobj; |
9592 | wxDC * _arg0; | |
9593 | wxColour * _arg1; | |
1d99702e | 9594 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9595 | wxColour temp; |
9596 | PyObject * _obj1 = 0; | |
1afc06c2 | 9597 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9598 | |
9599 | self = self; | |
f6bcfd97 | 9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9601 | return NULL; |
1d99702e RD |
9602 | if (_argo0) { |
9603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
9606 | return NULL; | |
9607 | } | |
9608 | } | |
f6bcfd97 BP |
9609 | { |
9610 | _arg1 = &temp; | |
9611 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9612 | return NULL; |
f6bcfd97 | 9613 | } |
cf694132 | 9614 | { |
4268f798 | 9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9616 | wxDC_SetTextForeground(_arg0,*_arg1); |
9617 | ||
4268f798 | 9618 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9619 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9620 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9621 | _resultobj = Py_None; |
9622 | return _resultobj; | |
9623 | } | |
9624 | ||
9625 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 9626 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9627 | PyObject * _resultobj; |
9628 | wxDC * _arg0; | |
9629 | double _arg1; | |
9630 | double _arg2; | |
1d99702e | 9631 | PyObject * _argo0 = 0; |
1afc06c2 | 9632 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
9633 | |
9634 | self = self; | |
1afc06c2 | 9635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9636 | return NULL; |
1d99702e RD |
9637 | if (_argo0) { |
9638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
9641 | return NULL; | |
9642 | } | |
9643 | } | |
cf694132 | 9644 | { |
4268f798 | 9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9646 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
9647 | ||
4268f798 | 9648 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9649 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9650 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9651 | _resultobj = Py_None; |
9652 | return _resultobj; | |
9653 | } | |
9654 | ||
9655 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 9656 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9657 | PyObject * _resultobj; |
9658 | bool _result; | |
9659 | wxDC * _arg0; | |
9660 | wxString * _arg1; | |
1d99702e | 9661 | PyObject * _argo0 = 0; |
8ab979d7 | 9662 | PyObject * _obj1 = 0; |
1afc06c2 | 9663 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
9664 | |
9665 | self = self; | |
1afc06c2 | 9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9667 | return NULL; |
1d99702e RD |
9668 | if (_argo0) { |
9669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
9672 | return NULL; | |
9673 | } | |
9674 | } | |
9675 | { | |
185d7c3e RD |
9676 | #if PYTHON_API_VERSION >= 1009 |
9677 | char* tmpPtr; int tmpSize; | |
9678 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9679 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9680 | return NULL; |
9681 | } | |
9682 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9683 | return NULL; | |
9684 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9685 | #else | |
8ab979d7 RD |
9686 | if (!PyString_Check(_obj1)) { |
9687 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9688 | return NULL; | |
9689 | } | |
185d7c3e RD |
9690 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9691 | #endif | |
8ab979d7 | 9692 | } |
cf694132 | 9693 | { |
4268f798 | 9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9695 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
9696 | ||
4268f798 | 9697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9698 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9699 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9700 | { |
9701 | if (_obj1) | |
9702 | delete _arg1; | |
9703 | } | |
9704 | return _resultobj; | |
9705 | } | |
9706 | ||
9707 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 9708 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9709 | PyObject * _resultobj; |
9710 | wxDC * _arg0; | |
1d99702e | 9711 | PyObject * _argo0 = 0; |
1afc06c2 | 9712 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9713 | |
9714 | self = self; | |
1afc06c2 | 9715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 9716 | return NULL; |
1d99702e RD |
9717 | if (_argo0) { |
9718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
9721 | return NULL; | |
9722 | } | |
9723 | } | |
cf694132 | 9724 | { |
4268f798 | 9725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9726 | wxDC_StartPage(_arg0); |
9727 | ||
4268f798 | 9728 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9730 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9731 | _resultobj = Py_None; |
9732 | return _resultobj; | |
9733 | } | |
9734 | ||
efc5f224 | 9735 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9736 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9737 | PyObject * _resultobj; |
9738 | wxDC * _arg0; | |
9739 | wxBitmap * _arg1; | |
9740 | long _arg2; | |
9741 | long _arg3; | |
efc5f224 | 9742 | int _arg4 = (int ) FALSE; |
1d99702e RD |
9743 | PyObject * _argo0 = 0; |
9744 | PyObject * _argo1 = 0; | |
1afc06c2 | 9745 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
9746 | |
9747 | self = self; | |
1afc06c2 | 9748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9749 | return NULL; |
1d99702e RD |
9750 | if (_argo0) { |
9751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
9754 | return NULL; | |
9755 | } | |
9756 | } | |
1d99702e RD |
9757 | if (_argo1) { |
9758 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9759 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
9760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
9761 | return NULL; | |
9762 | } | |
9763 | } | |
cf694132 | 9764 | { |
4268f798 | 9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9766 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
9767 | ||
4268f798 | 9768 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9769 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9770 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9771 | _resultobj = Py_None; |
9772 | return _resultobj; | |
9773 | } | |
9774 | ||
eec92d76 RD |
9775 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
9776 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject * _resultobj; | |
9778 | bool _result; | |
9779 | wxDC * _arg0; | |
9780 | PyObject * _argo0 = 0; | |
9781 | char *_kwnames[] = { "self", NULL }; | |
9782 | ||
9783 | self = self; | |
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
9785 | return NULL; | |
9786 | if (_argo0) { | |
9787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9790 | return NULL; | |
9791 | } | |
9792 | } | |
9793 | { | |
4268f798 | 9794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9795 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
9796 | ||
4268f798 | 9797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9798 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9799 | } _resultobj = Py_BuildValue("i",_result); |
9800 | return _resultobj; | |
9801 | } | |
9802 | ||
9803 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9804 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9805 | PyObject * _resultobj; | |
9806 | bool _result; | |
9807 | wxDC * _arg0; | |
9808 | PyObject * _argo0 = 0; | |
9809 | char *_kwnames[] = { "self", NULL }; | |
9810 | ||
9811 | self = self; | |
9812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9813 | return NULL; | |
9814 | if (_argo0) { | |
9815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9818 | return NULL; | |
9819 | } | |
9820 | } | |
9821 | { | |
4268f798 | 9822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9823 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
9824 | ||
4268f798 | 9825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9826 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9827 | } _resultobj = Py_BuildValue("i",_result); |
9828 | return _resultobj; | |
9829 | } | |
9830 | ||
9831 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9832 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9833 | PyObject * _resultobj; | |
9834 | int _result; | |
9835 | wxDC * _arg0; | |
9836 | PyObject * _argo0 = 0; | |
9837 | char *_kwnames[] = { "self", NULL }; | |
9838 | ||
9839 | self = self; | |
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
9841 | return NULL; | |
9842 | if (_argo0) { | |
9843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
9846 | return NULL; | |
9847 | } | |
9848 | } | |
9849 | { | |
4268f798 | 9850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9851 | _result = (int )wxDC_GetDepth(_arg0); |
9852 | ||
4268f798 | 9853 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9854 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9855 | } _resultobj = Py_BuildValue("i",_result); |
9856 | return _resultobj; | |
9857 | } | |
9858 | ||
9859 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
9860 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9861 | PyObject * _resultobj; | |
9862 | wxSize * _result; | |
9863 | wxDC * _arg0; | |
9864 | PyObject * _argo0 = 0; | |
9865 | char *_kwnames[] = { "self", NULL }; | |
9866 | char _ptemp[128]; | |
9867 | ||
9868 | self = self; | |
9869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
9870 | return NULL; | |
9871 | if (_argo0) { | |
9872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
9875 | return NULL; | |
9876 | } | |
9877 | } | |
9878 | { | |
4268f798 | 9879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9880 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
9881 | ||
4268f798 | 9882 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9883 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9884 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
9885 | _resultobj = Py_BuildValue("s",_ptemp); | |
9886 | return _resultobj; | |
9887 | } | |
9888 | ||
9889 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
9890 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9891 | PyObject * _resultobj; | |
9892 | wxDC * _arg0; | |
9893 | int * _arg1; | |
9894 | int temp; | |
9895 | int * _arg2; | |
9896 | int temp0; | |
9897 | PyObject * _argo0 = 0; | |
9898 | char *_kwnames[] = { "self", NULL }; | |
9899 | ||
9900 | self = self; | |
9901 | { | |
9902 | _arg1 = &temp; | |
9903 | } | |
9904 | { | |
9905 | _arg2 = &temp0; | |
9906 | } | |
9907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
9908 | return NULL; | |
9909 | if (_argo0) { | |
9910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
9913 | return NULL; | |
9914 | } | |
9915 | } | |
9916 | { | |
4268f798 | 9917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9918 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
9919 | ||
4268f798 | 9920 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9921 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9922 | } Py_INCREF(Py_None); |
9923 | _resultobj = Py_None; | |
9924 | { | |
9925 | PyObject *o; | |
9926 | o = PyInt_FromLong((long) (*_arg1)); | |
9927 | _resultobj = t_output_helper(_resultobj, o); | |
9928 | } | |
9929 | { | |
9930 | PyObject *o; | |
9931 | o = PyInt_FromLong((long) (*_arg2)); | |
9932 | _resultobj = t_output_helper(_resultobj, o); | |
9933 | } | |
9934 | return _resultobj; | |
9935 | } | |
9936 | ||
9937 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9938 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9939 | PyObject * _resultobj; | |
9940 | wxDC * _arg0; | |
9941 | int _arg1; | |
9942 | int _arg2; | |
9943 | PyObject * _argo0 = 0; | |
9944 | char *_kwnames[] = { "self","x","y", NULL }; | |
9945 | ||
9946 | self = self; | |
9947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9948 | return NULL; | |
9949 | if (_argo0) { | |
9950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9953 | return NULL; | |
9954 | } | |
9955 | } | |
9956 | { | |
4268f798 | 9957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9958 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
9959 | ||
4268f798 | 9960 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9961 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9962 | } Py_INCREF(Py_None); |
9963 | _resultobj = Py_None; | |
9964 | return _resultobj; | |
9965 | } | |
9966 | ||
9967 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9968 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject * _resultobj; | |
9970 | wxDC * _arg0; | |
9971 | int * _arg1; | |
9972 | int temp; | |
9973 | int * _arg2; | |
9974 | int temp0; | |
9975 | PyObject * _argo0 = 0; | |
9976 | char *_kwnames[] = { "self", NULL }; | |
9977 | ||
9978 | self = self; | |
9979 | { | |
9980 | _arg1 = &temp; | |
9981 | } | |
9982 | { | |
9983 | _arg2 = &temp0; | |
9984 | } | |
9985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9986 | return NULL; | |
9987 | if (_argo0) { | |
9988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9991 | return NULL; | |
9992 | } | |
9993 | } | |
9994 | { | |
4268f798 | 9995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9996 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
9997 | ||
4268f798 | 9998 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9999 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10000 | } Py_INCREF(Py_None); |
10001 | _resultobj = Py_None; | |
10002 | { | |
10003 | PyObject *o; | |
10004 | o = PyInt_FromLong((long) (*_arg1)); | |
10005 | _resultobj = t_output_helper(_resultobj, o); | |
10006 | } | |
10007 | { | |
10008 | PyObject *o; | |
10009 | o = PyInt_FromLong((long) (*_arg2)); | |
10010 | _resultobj = t_output_helper(_resultobj, o); | |
10011 | } | |
10012 | return _resultobj; | |
10013 | } | |
10014 | ||
10015 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
10016 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10017 | PyObject * _resultobj; | |
10018 | wxDC * _arg0; | |
10019 | bool _arg1; | |
10020 | bool _arg2; | |
10021 | PyObject * _argo0 = 0; | |
10022 | int tempbool1; | |
10023 | int tempbool2; | |
10024 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
10025 | ||
10026 | self = self; | |
10027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
10028 | return NULL; | |
10029 | if (_argo0) { | |
10030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
10033 | return NULL; | |
10034 | } | |
10035 | } | |
10036 | _arg1 = (bool ) tempbool1; | |
10037 | _arg2 = (bool ) tempbool2; | |
10038 | { | |
4268f798 | 10039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
10040 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
10041 | ||
4268f798 | 10042 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10043 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10044 | } Py_INCREF(Py_None); |
10045 | _resultobj = Py_None; | |
10046 | return _resultobj; | |
10047 | } | |
10048 | ||
f6bcfd97 BP |
10049 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
10050 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10051 | PyObject * _resultobj; | |
10052 | wxDC * _arg0; | |
10053 | int _arg1; | |
10054 | int _arg2; | |
10055 | PyObject * _argo0 = 0; | |
10056 | char *_kwnames[] = { "self","x","y", NULL }; | |
10057 | ||
10058 | self = self; | |
10059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10060 | return NULL; | |
10061 | if (_argo0) { | |
10062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
10065 | return NULL; | |
10066 | } | |
10067 | } | |
10068 | { | |
4268f798 | 10069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10070 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
10071 | ||
4268f798 | 10072 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10073 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10074 | } Py_INCREF(Py_None); |
10075 | _resultobj = Py_None; | |
10076 | return _resultobj; | |
10077 | } | |
10078 | ||
10079 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
10080 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10081 | PyObject * _resultobj; | |
10082 | wxDC * _arg0; | |
10083 | PyObject * _argo0 = 0; | |
10084 | char *_kwnames[] = { "self", NULL }; | |
10085 | ||
10086 | self = self; | |
10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
10088 | return NULL; | |
10089 | if (_argo0) { | |
10090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
10093 | return NULL; | |
10094 | } | |
10095 | } | |
10096 | { | |
4268f798 | 10097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10098 | wxDC_ResetBoundingBox(_arg0); |
10099 | ||
4268f798 | 10100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10101 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10102 | } Py_INCREF(Py_None); |
10103 | _resultobj = Py_None; | |
10104 | return _resultobj; | |
10105 | } | |
10106 | ||
9d37f964 RD |
10107 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10108 | PyObject * _resultobj; | |
10109 | wxDC * _arg0; | |
10110 | int * _arg1; | |
10111 | int temp; | |
10112 | int * _arg2; | |
10113 | int temp0; | |
10114 | int * _arg3; | |
10115 | int temp1; | |
10116 | int * _arg4; | |
10117 | int temp2; | |
10118 | PyObject * _argo0 = 0; | |
10119 | char *_kwnames[] = { "self", NULL }; | |
10120 | ||
10121 | self = self; | |
10122 | { | |
10123 | _arg1 = &temp; | |
10124 | } | |
10125 | { | |
10126 | _arg2 = &temp0; | |
10127 | } | |
10128 | { | |
10129 | _arg3 = &temp1; | |
10130 | } | |
10131 | { | |
10132 | _arg4 = &temp2; | |
10133 | } | |
10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
10135 | return NULL; | |
10136 | if (_argo0) { | |
10137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
10140 | return NULL; | |
10141 | } | |
10142 | } | |
10143 | { | |
4268f798 | 10144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d37f964 RD |
10145 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
10146 | ||
4268f798 | 10147 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10148 | if (PyErr_Occurred()) return NULL; |
10149 | } Py_INCREF(Py_None); | |
10150 | _resultobj = Py_None; | |
10151 | { | |
10152 | PyObject *o; | |
10153 | o = PyInt_FromLong((long) (*_arg1)); | |
10154 | _resultobj = t_output_helper(_resultobj, o); | |
10155 | } | |
10156 | { | |
10157 | PyObject *o; | |
10158 | o = PyInt_FromLong((long) (*_arg2)); | |
10159 | _resultobj = t_output_helper(_resultobj, o); | |
10160 | } | |
10161 | { | |
10162 | PyObject *o; | |
10163 | o = PyInt_FromLong((long) (*_arg3)); | |
10164 | _resultobj = t_output_helper(_resultobj, o); | |
10165 | } | |
10166 | { | |
10167 | PyObject *o; | |
10168 | o = PyInt_FromLong((long) (*_arg4)); | |
10169 | _resultobj = t_output_helper(_resultobj, o); | |
10170 | } | |
10171 | return _resultobj; | |
10172 | } | |
10173 | ||
c7e7022c RD |
10174 | #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC()) |
10175 | static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10176 | PyObject * _resultobj; | |
10177 | long _result; | |
10178 | wxDC * _arg0; | |
10179 | PyObject * _argo0 = 0; | |
10180 | char *_kwnames[] = { "self", NULL }; | |
10181 | ||
10182 | self = self; | |
10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0)) | |
10184 | return NULL; | |
10185 | if (_argo0) { | |
10186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p."); | |
10189 | return NULL; | |
10190 | } | |
10191 | } | |
10192 | { | |
4268f798 | 10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
10194 | _result = (long )wxDC_GetHDC(_arg0); |
10195 | ||
4268f798 | 10196 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
10197 | if (PyErr_Occurred()) return NULL; |
10198 | } _resultobj = Py_BuildValue("l",_result); | |
10199 | return _resultobj; | |
10200 | } | |
10201 | ||
9d37f964 RD |
10202 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { |
10203 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
10204 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10205 | int numObjs = 0; | |
10206 | int numPens = 0; | |
10207 | wxPen* pen; | |
10208 | PyObject* obj; | |
10209 | int x1, y1; | |
10210 | int i = 0; | |
10211 | ||
10212 | if (!PySequence_Check(pyPoints)) { | |
10213 | goto err0; | |
10214 | } | |
10215 | if (!PySequence_Check(pyPens)) { | |
10216 | goto err1; | |
10217 | } | |
10218 | numObjs = PySequence_Length(pyPoints); | |
10219 | numPens = PySequence_Length(pyPens); | |
10220 | ||
10221 | for (i = 0; i < numObjs; i++) { | |
10222 | // Use a new pen? | |
10223 | if (i < numPens) { | |
10224 | if (isFastPens) { | |
10225 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10226 | } | |
10227 | else { | |
10228 | obj = PySequence_GetItem(pyPens, i); | |
10229 | } | |
10230 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10231 | if (!isFastPens) |
10232 | Py_DECREF(obj); | |
9d37f964 RD |
10233 | goto err1; |
10234 | } | |
10235 | ||
10236 | self->SetPen(*pen); | |
10237 | if (!isFastPens) | |
10238 | Py_DECREF(obj); | |
10239 | } | |
10240 | ||
10241 | // Get the point coordinants | |
10242 | if (isFastSeq) { | |
10243 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
10244 | } | |
10245 | else { | |
10246 | obj = PySequence_GetItem(pyPoints, i); | |
10247 | } | |
10248 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
76e280e7 RD |
10249 | if (!isFastPens) |
10250 | Py_DECREF(obj); | |
9d37f964 RD |
10251 | goto err0; |
10252 | } | |
10253 | ||
10254 | // Now draw the point | |
10255 | self->DrawPoint(x1, y1); | |
10256 | ||
10257 | if (!isFastSeq) | |
10258 | Py_DECREF(obj); | |
10259 | } | |
10260 | ||
10261 | Py_INCREF(Py_None); | |
10262 | return Py_None; | |
10263 | ||
10264 | err1: | |
10265 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10266 | return NULL; | |
10267 | err0: | |
10268 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
10269 | return NULL; | |
10270 | } | |
10271 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10272 | PyObject * _resultobj; | |
10273 | PyObject * _result; | |
10274 | wxDC * _arg0; | |
10275 | PyObject * _arg1; | |
10276 | PyObject * _arg2; | |
10277 | PyObject * _argo0 = 0; | |
10278 | PyObject * _obj1 = 0; | |
10279 | PyObject * _obj2 = 0; | |
10280 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
10281 | ||
10282 | self = self; | |
10283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10284 | return NULL; | |
10285 | if (_argo0) { | |
10286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
10289 | return NULL; | |
10290 | } | |
10291 | } | |
10292 | { | |
10293 | _arg1 = _obj1; | |
10294 | } | |
10295 | { | |
10296 | _arg2 = _obj2; | |
10297 | } | |
10298 | { | |
4268f798 | 10299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d37f964 RD |
10300 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
10301 | ||
4268f798 | 10302 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10303 | if (PyErr_Occurred()) return NULL; |
10304 | }{ | |
10305 | _resultobj = _result; | |
10306 | } | |
10307 | return _resultobj; | |
10308 | } | |
10309 | ||
10310 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
10311 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
10312 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10313 | int numObjs = 0; | |
10314 | int numPens = 0; | |
10315 | wxPen* pen; | |
10316 | PyObject* obj; | |
10317 | int x1, y1, x2, y2; | |
10318 | int i = 0; | |
10319 | ||
10320 | if (!PySequence_Check(pyLines)) { | |
10321 | goto err0; | |
10322 | } | |
10323 | if (!PySequence_Check(pyPens)) { | |
10324 | goto err1; | |
10325 | } | |
10326 | numObjs = PySequence_Length(pyLines); | |
10327 | numPens = PySequence_Length(pyPens); | |
10328 | ||
10329 | for (i = 0; i < numObjs; i++) { | |
10330 | // Use a new pen? | |
10331 | if (i < numPens) { | |
10332 | if (isFastPens) { | |
10333 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10334 | } | |
10335 | else { | |
10336 | obj = PySequence_GetItem(pyPens, i); | |
10337 | } | |
10338 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10339 | if (!isFastPens) |
10340 | Py_DECREF(obj); | |
9d37f964 RD |
10341 | goto err1; |
10342 | } | |
10343 | ||
10344 | self->SetPen(*pen); | |
10345 | if (!isFastPens) | |
10346 | Py_DECREF(obj); | |
10347 | } | |
10348 | ||
10349 | // Get the line coordinants | |
10350 | if (isFastSeq) { | |
10351 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
10352 | } | |
10353 | else { | |
10354 | obj = PySequence_GetItem(pyLines, i); | |
10355 | } | |
10356 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
76e280e7 RD |
10357 | if (!isFastPens) |
10358 | Py_DECREF(obj); | |
9d37f964 RD |
10359 | goto err0; |
10360 | } | |
10361 | ||
10362 | // Now draw the line | |
10363 | self->DrawLine(x1, y1, x2, y2); | |
10364 | ||
10365 | if (!isFastSeq) | |
10366 | Py_DECREF(obj); | |
10367 | } | |
10368 | ||
10369 | Py_INCREF(Py_None); | |
10370 | return Py_None; | |
10371 | ||
10372 | err1: | |
10373 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10374 | return NULL; | |
10375 | err0: | |
10376 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
10377 | return NULL; | |
10378 | } | |
10379 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10380 | PyObject * _resultobj; | |
10381 | PyObject * _result; | |
10382 | wxDC * _arg0; | |
10383 | PyObject * _arg1; | |
10384 | PyObject * _arg2; | |
10385 | PyObject * _argo0 = 0; | |
10386 | PyObject * _obj1 = 0; | |
10387 | PyObject * _obj2 = 0; | |
10388 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
10389 | ||
10390 | self = self; | |
10391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10392 | return NULL; | |
10393 | if (_argo0) { | |
10394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
10397 | return NULL; | |
10398 | } | |
10399 | } | |
10400 | { | |
10401 | _arg1 = _obj1; | |
10402 | } | |
10403 | { | |
10404 | _arg2 = _obj2; | |
10405 | } | |
10406 | { | |
4268f798 | 10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d37f964 RD |
10408 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
10409 | ||
4268f798 | 10410 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10411 | if (PyErr_Occurred()) return NULL; |
10412 | }{ | |
10413 | _resultobj = _result; | |
10414 | } | |
10415 | return _resultobj; | |
10416 | } | |
10417 | ||
8ab979d7 RD |
10418 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
10419 | wxMemoryDC *src; | |
10420 | wxDC *dest; | |
10421 | src = (wxMemoryDC *) ptr; | |
10422 | dest = (wxDC *) src; | |
10423 | return (void *) dest; | |
10424 | } | |
10425 | ||
9416aa89 RD |
10426 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
10427 | wxMemoryDC *src; | |
10428 | wxObject *dest; | |
10429 | src = (wxMemoryDC *) ptr; | |
10430 | dest = (wxObject *) src; | |
10431 | return (void *) dest; | |
10432 | } | |
10433 | ||
8ab979d7 | 10434 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 10435 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10436 | PyObject * _resultobj; |
10437 | wxMemoryDC * _result; | |
1afc06c2 | 10438 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10439 | char _ptemp[128]; |
10440 | ||
10441 | self = self; | |
1afc06c2 | 10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 10443 | return NULL; |
cf694132 | 10444 | { |
4268f798 | 10445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10446 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
10447 | ||
4268f798 | 10448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10449 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10450 | } if (_result) { |
10451 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
10452 | _resultobj = Py_BuildValue("s",_ptemp); | |
10453 | } else { | |
10454 | Py_INCREF(Py_None); | |
10455 | _resultobj = Py_None; | |
10456 | } | |
8ab979d7 RD |
10457 | return _resultobj; |
10458 | } | |
10459 | ||
10460 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 10461 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10462 | PyObject * _resultobj; |
10463 | wxMemoryDC * _arg0; | |
10464 | wxBitmap * _arg1; | |
1d99702e RD |
10465 | PyObject * _argo0 = 0; |
10466 | PyObject * _argo1 = 0; | |
1afc06c2 | 10467 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
10468 | |
10469 | self = self; | |
1afc06c2 | 10470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10471 | return NULL; |
1d99702e RD |
10472 | if (_argo0) { |
10473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
10475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
10476 | return NULL; | |
10477 | } | |
10478 | } | |
1d99702e RD |
10479 | if (_argo1) { |
10480 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10481 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
10482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
10483 | return NULL; | |
10484 | } | |
10485 | } | |
cf694132 | 10486 | { |
4268f798 | 10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10488 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
10489 | ||
4268f798 | 10490 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10491 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10492 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10493 | _resultobj = Py_None; |
10494 | return _resultobj; | |
10495 | } | |
10496 | ||
10497 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
10498 | wxScreenDC *src; | |
10499 | wxDC *dest; | |
10500 | src = (wxScreenDC *) ptr; | |
10501 | dest = (wxDC *) src; | |
10502 | return (void *) dest; | |
10503 | } | |
10504 | ||
9416aa89 RD |
10505 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
10506 | wxScreenDC *src; | |
10507 | wxObject *dest; | |
10508 | src = (wxScreenDC *) ptr; | |
10509 | dest = (wxObject *) src; | |
10510 | return (void *) dest; | |
10511 | } | |
10512 | ||
8ab979d7 | 10513 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 10514 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10515 | PyObject * _resultobj; |
10516 | wxScreenDC * _result; | |
1afc06c2 | 10517 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10518 | char _ptemp[128]; |
10519 | ||
10520 | self = self; | |
1afc06c2 | 10521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 10522 | return NULL; |
cf694132 | 10523 | { |
4268f798 | 10524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10525 | _result = (wxScreenDC *)new_wxScreenDC(); |
10526 | ||
4268f798 | 10527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10528 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10529 | } if (_result) { |
10530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
10531 | _resultobj = Py_BuildValue("s",_ptemp); | |
10532 | } else { | |
10533 | Py_INCREF(Py_None); | |
10534 | _resultobj = Py_None; | |
10535 | } | |
8ab979d7 RD |
10536 | return _resultobj; |
10537 | } | |
10538 | ||
26b9cf27 RD |
10539 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10540 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10541 | PyObject * _resultobj; |
10542 | bool _result; | |
10543 | wxScreenDC * _arg0; | |
10544 | wxWindow * _arg1; | |
1d99702e RD |
10545 | PyObject * _argo0 = 0; |
10546 | PyObject * _argo1 = 0; | |
1afc06c2 | 10547 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
10548 | |
10549 | self = self; | |
26b9cf27 | 10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10551 | return NULL; |
1d99702e RD |
10552 | if (_argo0) { |
10553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10556 | return NULL; |
10557 | } | |
10558 | } | |
1d99702e RD |
10559 | if (_argo1) { |
10560 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10561 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 10562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
10563 | return NULL; |
10564 | } | |
10565 | } | |
cf694132 | 10566 | { |
4268f798 | 10567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26b9cf27 | 10568 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 | 10569 | |
4268f798 | 10570 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10571 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10572 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10573 | return _resultobj; |
10574 | } | |
10575 | ||
26b9cf27 RD |
10576 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10577 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10578 | PyObject * _resultobj; |
10579 | bool _result; | |
10580 | wxScreenDC * _arg0; | |
1d99702e RD |
10581 | wxRect * _arg1 = (wxRect *) NULL; |
10582 | PyObject * _argo0 = 0; | |
2f90df85 RD |
10583 | wxRect temp; |
10584 | PyObject * _obj1 = 0; | |
1afc06c2 | 10585 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
10586 | |
10587 | self = self; | |
26b9cf27 | 10588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10589 | return NULL; |
1d99702e RD |
10590 | if (_argo0) { |
10591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10594 | return NULL; |
10595 | } | |
10596 | } | |
2f90df85 RD |
10597 | if (_obj1) |
10598 | { | |
10599 | _arg1 = &temp; | |
10600 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 10601 | return NULL; |
2f90df85 | 10602 | } |
cf694132 | 10603 | { |
4268f798 | 10604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26b9cf27 | 10605 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 | 10606 | |
4268f798 | 10607 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10609 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10610 | return _resultobj; |
10611 | } | |
10612 | ||
10613 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 10614 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10615 | PyObject * _resultobj; |
10616 | bool _result; | |
10617 | wxScreenDC * _arg0; | |
1d99702e | 10618 | PyObject * _argo0 = 0; |
1afc06c2 | 10619 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10620 | |
10621 | self = self; | |
1afc06c2 | 10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 10623 | return NULL; |
1d99702e RD |
10624 | if (_argo0) { |
10625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
10627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
10628 | return NULL; | |
10629 | } | |
10630 | } | |
cf694132 | 10631 | { |
4268f798 | 10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10633 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
10634 | ||
4268f798 | 10635 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10636 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10637 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10638 | return _resultobj; |
10639 | } | |
10640 | ||
10641 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
10642 | wxClientDC *src; | |
10643 | wxDC *dest; | |
10644 | src = (wxClientDC *) ptr; | |
10645 | dest = (wxDC *) src; | |
10646 | return (void *) dest; | |
10647 | } | |
10648 | ||
9416aa89 RD |
10649 | static void *SwigwxClientDCTowxObject(void *ptr) { |
10650 | wxClientDC *src; | |
10651 | wxObject *dest; | |
10652 | src = (wxClientDC *) ptr; | |
10653 | dest = (wxObject *) src; | |
10654 | return (void *) dest; | |
10655 | } | |
10656 | ||
8ab979d7 | 10657 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 10658 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10659 | PyObject * _resultobj; |
10660 | wxClientDC * _result; | |
10661 | wxWindow * _arg0; | |
1d99702e | 10662 | PyObject * _argo0 = 0; |
1afc06c2 | 10663 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10664 | char _ptemp[128]; |
10665 | ||
10666 | self = self; | |
1afc06c2 | 10667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 10668 | return NULL; |
1d99702e RD |
10669 | if (_argo0) { |
10670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
10673 | return NULL; | |
10674 | } | |
10675 | } | |
cf694132 | 10676 | { |
4268f798 | 10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10678 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
10679 | ||
4268f798 | 10680 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10681 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10682 | } if (_result) { |
10683 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
10684 | _resultobj = Py_BuildValue("s",_ptemp); | |
10685 | } else { | |
10686 | Py_INCREF(Py_None); | |
10687 | _resultobj = Py_None; | |
10688 | } | |
8ab979d7 RD |
10689 | return _resultobj; |
10690 | } | |
10691 | ||
10692 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
10693 | wxPaintDC *src; | |
10694 | wxDC *dest; | |
10695 | src = (wxPaintDC *) ptr; | |
10696 | dest = (wxDC *) src; | |
10697 | return (void *) dest; | |
10698 | } | |
10699 | ||
9416aa89 RD |
10700 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
10701 | wxPaintDC *src; | |
10702 | wxObject *dest; | |
10703 | src = (wxPaintDC *) ptr; | |
10704 | dest = (wxObject *) src; | |
10705 | return (void *) dest; | |
10706 | } | |
10707 | ||
8ab979d7 | 10708 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 10709 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10710 | PyObject * _resultobj; |
10711 | wxPaintDC * _result; | |
10712 | wxWindow * _arg0; | |
1d99702e | 10713 | PyObject * _argo0 = 0; |
1afc06c2 | 10714 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10715 | char _ptemp[128]; |
10716 | ||
10717 | self = self; | |
1afc06c2 | 10718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 10719 | return NULL; |
1d99702e RD |
10720 | if (_argo0) { |
10721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
10724 | return NULL; | |
10725 | } | |
10726 | } | |
cf694132 | 10727 | { |
4268f798 | 10728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10729 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
10730 | ||
4268f798 | 10731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10732 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10733 | } if (_result) { |
10734 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
10735 | _resultobj = Py_BuildValue("s",_ptemp); | |
10736 | } else { | |
10737 | Py_INCREF(Py_None); | |
10738 | _resultobj = Py_None; | |
10739 | } | |
8ab979d7 RD |
10740 | return _resultobj; |
10741 | } | |
10742 | ||
b639c3c5 RD |
10743 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
10744 | wxWindowDC *src; | |
10745 | wxDC *dest; | |
10746 | src = (wxWindowDC *) ptr; | |
10747 | dest = (wxDC *) src; | |
10748 | return (void *) dest; | |
10749 | } | |
10750 | ||
9416aa89 RD |
10751 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
10752 | wxWindowDC *src; | |
10753 | wxObject *dest; | |
10754 | src = (wxWindowDC *) ptr; | |
10755 | dest = (wxObject *) src; | |
10756 | return (void *) dest; | |
10757 | } | |
10758 | ||
b639c3c5 | 10759 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 10760 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10761 | PyObject * _resultobj; |
10762 | wxWindowDC * _result; | |
10763 | wxWindow * _arg0; | |
1d99702e | 10764 | PyObject * _argo0 = 0; |
1afc06c2 | 10765 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
10766 | char _ptemp[128]; |
10767 | ||
10768 | self = self; | |
1afc06c2 | 10769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 10770 | return NULL; |
1d99702e RD |
10771 | if (_argo0) { |
10772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
10774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
10775 | return NULL; | |
10776 | } | |
10777 | } | |
cf694132 | 10778 | { |
4268f798 | 10779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10780 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
10781 | ||
4268f798 | 10782 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10783 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10784 | } if (_result) { |
10785 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
10786 | _resultobj = Py_BuildValue("s",_ptemp); | |
10787 | } else { | |
10788 | Py_INCREF(Py_None); | |
10789 | _resultobj = Py_None; | |
10790 | } | |
b639c3c5 RD |
10791 | return _resultobj; |
10792 | } | |
10793 | ||
17c0e08c RD |
10794 | static void *SwigwxMetaFileTowxObject(void *ptr) { |
10795 | wxMetaFile *src; | |
10796 | wxObject *dest; | |
10797 | src = (wxMetaFile *) ptr; | |
10798 | dest = (wxObject *) src; | |
10799 | return (void *) dest; | |
10800 | } | |
10801 | ||
10802 | #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0)) | |
10803 | static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10804 | PyObject * _resultobj; | |
10805 | wxMetaFile * _result; | |
10806 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
10807 | PyObject * _obj0 = 0; | |
10808 | char *_kwnames[] = { "filename", NULL }; | |
10809 | char _ptemp[128]; | |
10810 | ||
10811 | self = self; | |
10812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0)) | |
10813 | return NULL; | |
10814 | if (_obj0) | |
10815 | { | |
10816 | #if PYTHON_API_VERSION >= 1009 | |
10817 | char* tmpPtr; int tmpSize; | |
10818 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
10819 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10820 | return NULL; | |
10821 | } | |
10822 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10823 | return NULL; | |
10824 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10825 | #else | |
10826 | if (!PyString_Check(_obj0)) { | |
10827 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10828 | return NULL; | |
10829 | } | |
10830 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10831 | #endif | |
10832 | } | |
10833 | { | |
4268f798 | 10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
10835 | _result = (wxMetaFile *)new_wxMetaFile(*_arg0); |
10836 | ||
4268f798 | 10837 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10838 | if (PyErr_Occurred()) return NULL; |
10839 | } if (_result) { | |
10840 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
10841 | _resultobj = Py_BuildValue("s",_ptemp); | |
10842 | } else { | |
10843 | Py_INCREF(Py_None); | |
10844 | _resultobj = Py_None; | |
10845 | } | |
10846 | { | |
10847 | if (_obj0) | |
10848 | delete _arg0; | |
10849 | } | |
10850 | return _resultobj; | |
10851 | } | |
10852 | ||
10853 | #define delete_wxMetaFile(_swigobj) (delete _swigobj) | |
10854 | static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject * _resultobj; | |
10856 | wxMetaFile * _arg0; | |
10857 | PyObject * _argo0 = 0; | |
10858 | char *_kwnames[] = { "self", NULL }; | |
10859 | ||
10860 | self = self; | |
10861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0)) | |
10862 | return NULL; | |
10863 | if (_argo0) { | |
10864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p."); | |
10867 | return NULL; | |
10868 | } | |
10869 | } | |
10870 | { | |
4268f798 | 10871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
10872 | delete_wxMetaFile(_arg0); |
10873 | ||
4268f798 | 10874 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10875 | if (PyErr_Occurred()) return NULL; |
10876 | } Py_INCREF(Py_None); | |
10877 | _resultobj = Py_None; | |
10878 | return _resultobj; | |
10879 | } | |
10880 | ||
10881 | #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok()) | |
10882 | static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10883 | PyObject * _resultobj; | |
10884 | bool _result; | |
10885 | wxMetaFile * _arg0; | |
10886 | PyObject * _argo0 = 0; | |
10887 | char *_kwnames[] = { "self", NULL }; | |
10888 | ||
10889 | self = self; | |
10890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0)) | |
10891 | return NULL; | |
10892 | if (_argo0) { | |
10893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p."); | |
10896 | return NULL; | |
10897 | } | |
10898 | } | |
10899 | { | |
4268f798 | 10900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
10901 | _result = (bool )wxMetaFile_Ok(_arg0); |
10902 | ||
4268f798 | 10903 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10904 | if (PyErr_Occurred()) return NULL; |
10905 | } _resultobj = Py_BuildValue("i",_result); | |
10906 | return _resultobj; | |
10907 | } | |
10908 | ||
10909 | #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1)) | |
10910 | static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10911 | PyObject * _resultobj; | |
10912 | bool _result; | |
10913 | wxMetaFile * _arg0; | |
10914 | int _arg1 = (int ) 0; | |
10915 | int _arg2 = (int ) 0; | |
10916 | PyObject * _argo0 = 0; | |
10917 | char *_kwnames[] = { "self","width","height", NULL }; | |
10918 | ||
10919 | self = self; | |
10920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10921 | return NULL; | |
10922 | if (_argo0) { | |
10923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p."); | |
10926 | return NULL; | |
10927 | } | |
10928 | } | |
10929 | { | |
4268f798 | 10930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
10931 | _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2); |
10932 | ||
4268f798 | 10933 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10934 | if (PyErr_Occurred()) return NULL; |
10935 | } _resultobj = Py_BuildValue("i",_result); | |
10936 | return _resultobj; | |
10937 | } | |
10938 | ||
10939 | #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize()) | |
10940 | static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10941 | PyObject * _resultobj; | |
10942 | wxSize * _result; | |
10943 | wxMetaFile * _arg0; | |
10944 | PyObject * _argo0 = 0; | |
10945 | char *_kwnames[] = { "self", NULL }; | |
10946 | char _ptemp[128]; | |
10947 | ||
10948 | self = self; | |
10949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0)) | |
10950 | return NULL; | |
10951 | if (_argo0) { | |
10952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p."); | |
10955 | return NULL; | |
10956 | } | |
10957 | } | |
10958 | { | |
4268f798 | 10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
10960 | _result = new wxSize (wxMetaFile_GetSize(_arg0)); |
10961 | ||
4268f798 | 10962 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10963 | if (PyErr_Occurred()) return NULL; |
10964 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
10965 | _resultobj = Py_BuildValue("s",_ptemp); | |
10966 | return _resultobj; | |
10967 | } | |
10968 | ||
10969 | #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
10970 | static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject * _resultobj; | |
10972 | int _result; | |
10973 | wxMetaFile * _arg0; | |
10974 | PyObject * _argo0 = 0; | |
10975 | char *_kwnames[] = { "self", NULL }; | |
10976 | ||
10977 | self = self; | |
10978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0)) | |
10979 | return NULL; | |
10980 | if (_argo0) { | |
10981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p."); | |
10984 | return NULL; | |
10985 | } | |
10986 | } | |
10987 | { | |
4268f798 | 10988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
10989 | _result = (int )wxMetaFile_GetWidth(_arg0); |
10990 | ||
4268f798 | 10991 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10992 | if (PyErr_Occurred()) return NULL; |
10993 | } _resultobj = Py_BuildValue("i",_result); | |
10994 | return _resultobj; | |
10995 | } | |
10996 | ||
10997 | #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
10998 | static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10999 | PyObject * _resultobj; | |
11000 | int _result; | |
11001 | wxMetaFile * _arg0; | |
11002 | PyObject * _argo0 = 0; | |
11003 | char *_kwnames[] = { "self", NULL }; | |
11004 | ||
11005 | self = self; | |
11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0)) | |
11007 | return NULL; | |
11008 | if (_argo0) { | |
11009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p."); | |
11012 | return NULL; | |
11013 | } | |
11014 | } | |
11015 | { | |
4268f798 | 11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11017 | _result = (int )wxMetaFile_GetHeight(_arg0); |
11018 | ||
4268f798 | 11019 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11020 | if (PyErr_Occurred()) return NULL; |
11021 | } _resultobj = Py_BuildValue("i",_result); | |
11022 | return _resultobj; | |
11023 | } | |
11024 | ||
11025 | #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName()) | |
11026 | static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11027 | PyObject * _resultobj; | |
11028 | wxString * _result; | |
11029 | wxMetaFile * _arg0; | |
11030 | PyObject * _argo0 = 0; | |
11031 | char *_kwnames[] = { "self", NULL }; | |
11032 | ||
11033 | self = self; | |
11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0)) | |
11035 | return NULL; | |
11036 | if (_argo0) { | |
11037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p."); | |
11040 | return NULL; | |
11041 | } | |
11042 | } | |
11043 | { | |
4268f798 | 11044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11045 | const wxString & _result_ref = wxMetaFile_GetFileName(_arg0); |
11046 | _result = (wxString *) &_result_ref; | |
11047 | ||
4268f798 | 11048 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11049 | if (PyErr_Occurred()) return NULL; |
11050 | }{ | |
11051 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
11052 | } | |
11053 | return _resultobj; | |
11054 | } | |
11055 | ||
8ab979d7 RD |
11056 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
11057 | wxMetaFileDC *src; | |
11058 | wxDC *dest; | |
11059 | src = (wxMetaFileDC *) ptr; | |
11060 | dest = (wxDC *) src; | |
11061 | return (void *) dest; | |
11062 | } | |
11063 | ||
9416aa89 RD |
11064 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
11065 | wxMetaFileDC *src; | |
11066 | wxObject *dest; | |
11067 | src = (wxMetaFileDC *) ptr; | |
11068 | dest = (wxObject *) src; | |
11069 | return (void *) dest; | |
11070 | } | |
11071 | ||
17c0e08c | 11072 | #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11073 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
11074 | PyObject * _resultobj; |
11075 | wxMetaFileDC * _result; | |
1d99702e | 11076 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
17c0e08c RD |
11077 | int _arg1 = (int ) 0; |
11078 | int _arg2 = (int ) 0; | |
11079 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8ab979d7 | 11080 | PyObject * _obj0 = 0; |
17c0e08c RD |
11081 | PyObject * _obj3 = 0; |
11082 | char *_kwnames[] = { "filename","width","height","description", NULL }; | |
8ab979d7 RD |
11083 | char _ptemp[128]; |
11084 | ||
11085 | self = self; | |
17c0e08c | 11086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 RD |
11087 | return NULL; |
11088 | if (_obj0) | |
11089 | { | |
185d7c3e RD |
11090 | #if PYTHON_API_VERSION >= 1009 |
11091 | char* tmpPtr; int tmpSize; | |
11092 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 11093 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
11094 | return NULL; |
11095 | } | |
11096 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
11097 | return NULL; | |
11098 | _arg0 = new wxString(tmpPtr, tmpSize); | |
11099 | #else | |
8ab979d7 RD |
11100 | if (!PyString_Check(_obj0)) { |
11101 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11102 | return NULL; | |
11103 | } | |
185d7c3e RD |
11104 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
11105 | #endif | |
17c0e08c RD |
11106 | } |
11107 | if (_obj3) | |
11108 | { | |
11109 | #if PYTHON_API_VERSION >= 1009 | |
11110 | char* tmpPtr; int tmpSize; | |
11111 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
11112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11113 | return NULL; | |
11114 | } | |
11115 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
11116 | return NULL; | |
11117 | _arg3 = new wxString(tmpPtr, tmpSize); | |
11118 | #else | |
11119 | if (!PyString_Check(_obj3)) { | |
11120 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11121 | return NULL; | |
11122 | } | |
11123 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
11124 | #endif | |
8ab979d7 | 11125 | } |
cf694132 | 11126 | { |
4268f798 | 11127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c | 11128 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 11129 | |
4268f798 | 11130 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11131 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11132 | } if (_result) { |
11133 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
11134 | _resultobj = Py_BuildValue("s",_ptemp); | |
11135 | } else { | |
11136 | Py_INCREF(Py_None); | |
11137 | _resultobj = Py_None; | |
11138 | } | |
8ab979d7 RD |
11139 | { |
11140 | if (_obj0) | |
11141 | delete _arg0; | |
17c0e08c RD |
11142 | } |
11143 | { | |
11144 | if (_obj3) | |
11145 | delete _arg3; | |
8ab979d7 RD |
11146 | } |
11147 | return _resultobj; | |
11148 | } | |
11149 | ||
11150 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 11151 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
11152 | PyObject * _resultobj; |
11153 | wxMetaFile * _result; | |
11154 | wxMetaFileDC * _arg0; | |
1d99702e | 11155 | PyObject * _argo0 = 0; |
1afc06c2 | 11156 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
11157 | char _ptemp[128]; |
11158 | ||
11159 | self = self; | |
1afc06c2 | 11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 11161 | return NULL; |
1d99702e RD |
11162 | if (_argo0) { |
11163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
11165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
11166 | return NULL; | |
11167 | } | |
11168 | } | |
cf694132 | 11169 | { |
4268f798 | 11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11171 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); |
11172 | ||
4268f798 | 11173 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11174 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11175 | } if (_result) { |
11176 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
11177 | _resultobj = Py_BuildValue("s",_ptemp); | |
11178 | } else { | |
11179 | Py_INCREF(Py_None); | |
11180 | _resultobj = Py_None; | |
11181 | } | |
8ab979d7 RD |
11182 | return _resultobj; |
11183 | } | |
11184 | ||
9416aa89 RD |
11185 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
11186 | wxPalette *src; | |
11187 | wxGDIObject *dest; | |
11188 | src = (wxPalette *) ptr; | |
11189 | dest = (wxGDIObject *) src; | |
11190 | return (void *) dest; | |
11191 | } | |
11192 | ||
11193 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
11194 | wxPalette *src; | |
11195 | wxObject *dest; | |
11196 | src = (wxPalette *) ptr; | |
11197 | dest = (wxObject *) src; | |
11198 | return (void *) dest; | |
11199 | } | |
11200 | ||
b639c3c5 | 11201 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11202 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11203 | PyObject * _resultobj; |
11204 | wxPalette * _result; | |
11205 | int _arg0; | |
11206 | byte * _arg1; | |
11207 | byte * _arg2; | |
11208 | byte * _arg3; | |
11209 | PyObject * _obj1 = 0; | |
11210 | PyObject * _obj2 = 0; | |
11211 | PyObject * _obj3 = 0; | |
eec92d76 | 11212 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
11213 | char _ptemp[128]; |
11214 | ||
11215 | self = self; | |
1afc06c2 | 11216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
11217 | return NULL; |
11218 | { | |
11219 | _arg1 = byte_LIST_helper(_obj1); | |
11220 | if (_arg1 == NULL) { | |
11221 | return NULL; | |
11222 | } | |
11223 | } | |
11224 | { | |
11225 | _arg2 = byte_LIST_helper(_obj2); | |
11226 | if (_arg2 == NULL) { | |
11227 | return NULL; | |
11228 | } | |
11229 | } | |
11230 | if (_obj3) | |
11231 | { | |
11232 | _arg3 = byte_LIST_helper(_obj3); | |
11233 | if (_arg3 == NULL) { | |
11234 | return NULL; | |
11235 | } | |
11236 | } | |
11237 | { | |
cf694132 RD |
11238 | if (_obj1) { |
11239 | _arg0 = PyList_Size(_obj1); | |
11240 | } | |
11241 | else { | |
11242 | _arg0 = 0; | |
11243 | } | |
b639c3c5 | 11244 | } |
cf694132 | 11245 | { |
4268f798 | 11246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11247 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
11248 | ||
4268f798 | 11249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11250 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11251 | } if (_result) { |
11252 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
11253 | _resultobj = Py_BuildValue("s",_ptemp); | |
11254 | } else { | |
11255 | Py_INCREF(Py_None); | |
11256 | _resultobj = Py_None; | |
11257 | } | |
b639c3c5 RD |
11258 | { |
11259 | delete [] _arg1; | |
11260 | } | |
11261 | { | |
11262 | delete [] _arg2; | |
11263 | } | |
11264 | { | |
11265 | delete [] _arg3; | |
11266 | } | |
11267 | return _resultobj; | |
11268 | } | |
11269 | ||
11270 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 11271 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11272 | PyObject * _resultobj; |
11273 | wxPalette * _arg0; | |
1d99702e | 11274 | PyObject * _argo0 = 0; |
1afc06c2 | 11275 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11276 | |
11277 | self = self; | |
1afc06c2 | 11278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 11279 | return NULL; |
1d99702e RD |
11280 | if (_argo0) { |
11281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
11284 | return NULL; | |
11285 | } | |
11286 | } | |
cf694132 | 11287 | { |
4268f798 | 11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11289 | delete_wxPalette(_arg0); |
11290 | ||
4268f798 | 11291 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11292 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11293 | } Py_INCREF(Py_None); |
b639c3c5 RD |
11294 | _resultobj = Py_None; |
11295 | return _resultobj; | |
11296 | } | |
11297 | ||
11298 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 11299 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11300 | PyObject * _resultobj; |
11301 | int _result; | |
11302 | wxPalette * _arg0; | |
11303 | byte _arg1; | |
11304 | byte _arg2; | |
11305 | byte _arg3; | |
1d99702e | 11306 | PyObject * _argo0 = 0; |
1afc06c2 | 11307 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
11308 | |
11309 | self = self; | |
1afc06c2 | 11310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 11311 | return NULL; |
1d99702e RD |
11312 | if (_argo0) { |
11313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
11316 | return NULL; | |
11317 | } | |
11318 | } | |
cf694132 | 11319 | { |
4268f798 | 11320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11321 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
11322 | ||
4268f798 | 11323 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11325 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11326 | return _resultobj; |
11327 | } | |
11328 | ||
11329 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 11330 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11331 | PyObject * _resultobj; |
11332 | bool _result; | |
11333 | wxPalette * _arg0; | |
11334 | int _arg1; | |
11335 | byte * _arg2; | |
11336 | byte * _arg3; | |
11337 | byte * _arg4; | |
1d99702e RD |
11338 | PyObject * _argo0 = 0; |
11339 | PyObject * _argo2 = 0; | |
11340 | PyObject * _argo3 = 0; | |
11341 | PyObject * _argo4 = 0; | |
1afc06c2 | 11342 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
b639c3c5 RD |
11343 | |
11344 | self = self; | |
1afc06c2 | 11345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
b639c3c5 | 11346 | return NULL; |
1d99702e RD |
11347 | if (_argo0) { |
11348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
11351 | return NULL; | |
11352 | } | |
11353 | } | |
1d99702e RD |
11354 | if (_argo2) { |
11355 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11356 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
b639c3c5 RD |
11357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
11358 | return NULL; | |
11359 | } | |
11360 | } | |
1d99702e RD |
11361 | if (_argo3) { |
11362 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
11363 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
b639c3c5 RD |
11364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
11365 | return NULL; | |
11366 | } | |
11367 | } | |
1d99702e RD |
11368 | if (_argo4) { |
11369 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
11370 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
b639c3c5 RD |
11371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
11372 | return NULL; | |
11373 | } | |
11374 | } | |
cf694132 | 11375 | { |
4268f798 | 11376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11377 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
11378 | ||
4268f798 | 11379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11381 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11382 | return _resultobj; |
11383 | } | |
11384 | ||
11385 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 11386 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11387 | PyObject * _resultobj; |
11388 | bool _result; | |
11389 | wxPalette * _arg0; | |
1d99702e | 11390 | PyObject * _argo0 = 0; |
1afc06c2 | 11391 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11392 | |
11393 | self = self; | |
1afc06c2 | 11394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 11395 | return NULL; |
1d99702e RD |
11396 | if (_argo0) { |
11397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
11400 | return NULL; | |
11401 | } | |
11402 | } | |
cf694132 | 11403 | { |
4268f798 | 11404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11405 | _result = (bool )wxPalette_Ok(_arg0); |
11406 | ||
4268f798 | 11407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11408 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11409 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11410 | return _resultobj; |
11411 | } | |
11412 | ||
9416aa89 RD |
11413 | static void *SwigwxImageListTowxObject(void *ptr) { |
11414 | wxImageList *src; | |
11415 | wxObject *dest; | |
11416 | src = (wxImageList *) ptr; | |
11417 | dest = (wxObject *) src; | |
11418 | return (void *) dest; | |
11419 | } | |
11420 | ||
af309447 | 11421 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11422 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11423 | PyObject * _resultobj; |
11424 | wxImageList * _result; | |
11425 | int _arg0; | |
11426 | int _arg1; | |
dcd38683 | 11427 | int _arg2 = (int ) TRUE; |
1d99702e | 11428 | int _arg3 = (int ) 1; |
1afc06c2 | 11429 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
11430 | char _ptemp[128]; |
11431 | ||
11432 | self = self; | |
6999b0d8 | 11433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 11434 | return NULL; |
cf694132 | 11435 | { |
4268f798 | 11436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11437 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
11438 | ||
4268f798 | 11439 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11440 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11441 | } if (_result) { |
11442 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
11443 | _resultobj = Py_BuildValue("s",_ptemp); | |
11444 | } else { | |
11445 | Py_INCREF(Py_None); | |
11446 | _resultobj = Py_None; | |
11447 | } | |
af309447 RD |
11448 | return _resultobj; |
11449 | } | |
11450 | ||
11451 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 11452 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11453 | PyObject * _resultobj; |
11454 | wxImageList * _arg0; | |
1d99702e | 11455 | PyObject * _argo0 = 0; |
1afc06c2 | 11456 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11457 | |
11458 | self = self; | |
1afc06c2 | 11459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 11460 | return NULL; |
1d99702e RD |
11461 | if (_argo0) { |
11462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
11465 | return NULL; | |
11466 | } | |
11467 | } | |
cf694132 | 11468 | { |
4268f798 | 11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11470 | delete_wxImageList(_arg0); |
11471 | ||
4268f798 | 11472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11473 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11474 | } Py_INCREF(Py_None); |
af309447 RD |
11475 | _resultobj = Py_None; |
11476 | return _resultobj; | |
11477 | } | |
11478 | ||
11479 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11480 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11481 | PyObject * _resultobj; |
11482 | int _result; | |
11483 | wxImageList * _arg0; | |
11484 | wxBitmap * _arg1; | |
1d99702e RD |
11485 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
11486 | PyObject * _argo0 = 0; | |
11487 | PyObject * _argo1 = 0; | |
11488 | PyObject * _argo2 = 0; | |
1afc06c2 | 11489 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
11490 | |
11491 | self = self; | |
1afc06c2 | 11492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 11493 | return NULL; |
1d99702e RD |
11494 | if (_argo0) { |
11495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
11498 | return NULL; | |
11499 | } | |
11500 | } | |
1d99702e RD |
11501 | if (_argo1) { |
11502 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11503 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
11505 | return NULL; | |
11506 | } | |
11507 | } | |
1d99702e RD |
11508 | if (_argo2) { |
11509 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11510 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
11511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
11512 | return NULL; | |
11513 | } | |
11514 | } | |
cf694132 | 11515 | { |
4268f798 | 11516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11517 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
11518 | ||
4268f798 | 11519 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11520 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11521 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11522 | return _resultobj; |
11523 | } | |
11524 | ||
11525 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11526 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11527 | PyObject * _resultobj; |
11528 | int _result; | |
11529 | wxImageList * _arg0; | |
11530 | wxBitmap * _arg1; | |
11531 | wxColour * _arg2; | |
1d99702e RD |
11532 | PyObject * _argo0 = 0; |
11533 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
11534 | wxColour temp; |
11535 | PyObject * _obj2 = 0; | |
1afc06c2 | 11536 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
11537 | |
11538 | self = self; | |
f6bcfd97 | 11539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 11540 | return NULL; |
1d99702e RD |
11541 | if (_argo0) { |
11542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
11545 | return NULL; | |
11546 | } | |
11547 | } | |
1d99702e RD |
11548 | if (_argo1) { |
11549 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11550 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
11552 | return NULL; | |
11553 | } | |
11554 | } | |
f6bcfd97 BP |
11555 | { |
11556 | _arg2 = &temp; | |
11557 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 11558 | return NULL; |
f6bcfd97 | 11559 | } |
cf694132 | 11560 | { |
4268f798 | 11561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11562 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
11563 | ||
4268f798 | 11564 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11565 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11566 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11567 | return _resultobj; |
11568 | } | |
11569 | ||
11570 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 11571 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11572 | PyObject * _resultobj; |
11573 | int _result; | |
11574 | wxImageList * _arg0; | |
11575 | wxIcon * _arg1; | |
1d99702e RD |
11576 | PyObject * _argo0 = 0; |
11577 | PyObject * _argo1 = 0; | |
1afc06c2 | 11578 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
11579 | |
11580 | self = self; | |
1afc06c2 | 11581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 11582 | return NULL; |
1d99702e RD |
11583 | if (_argo0) { |
11584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
11587 | return NULL; | |
11588 | } | |
11589 | } | |
1d99702e RD |
11590 | if (_argo1) { |
11591 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11592 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
11593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
11594 | return NULL; | |
11595 | } | |
11596 | } | |
cf694132 | 11597 | { |
4268f798 | 11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11599 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
11600 | ||
4268f798 | 11601 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11602 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11603 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11604 | return _resultobj; |
11605 | } | |
11606 | ||
21f8d7ea | 11607 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 11608 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11609 | PyObject * _resultobj; |
11610 | bool _result; | |
11611 | wxImageList * _arg0; | |
11612 | int _arg1; | |
21f8d7ea | 11613 | wxBitmap * _arg2; |
1d99702e RD |
11614 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
11615 | PyObject * _argo0 = 0; | |
11616 | PyObject * _argo2 = 0; | |
11617 | PyObject * _argo3 = 0; | |
1afc06c2 | 11618 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
11619 | |
11620 | self = self; | |
1afc06c2 | 11621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 11622 | return NULL; |
1d99702e RD |
11623 | if (_argo0) { |
11624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
11627 | return NULL; |
11628 | } | |
11629 | } | |
1d99702e RD |
11630 | if (_argo2) { |
11631 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11632 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 11633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
11634 | return NULL; |
11635 | } | |
11636 | } | |
1d99702e RD |
11637 | if (_argo3) { |
11638 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
11639 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
11640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
11641 | return NULL; | |
11642 | } | |
11643 | } | |
cf694132 | 11644 | { |
4268f798 | 11645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11646 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); |
11647 | ||
4268f798 | 11648 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11649 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11650 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11651 | return _resultobj; |
11652 | } | |
11653 | ||
21f8d7ea | 11654 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 11655 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11656 | PyObject * _resultobj; |
11657 | bool _result; | |
11658 | wxImageList * _arg0; | |
11659 | int _arg1; | |
21f8d7ea RD |
11660 | wxDC * _arg2; |
11661 | int _arg3; | |
11662 | int _arg4; | |
1d99702e RD |
11663 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
11664 | bool _arg6 = (bool ) FALSE; | |
11665 | PyObject * _argo0 = 0; | |
11666 | PyObject * _argo2 = 0; | |
11667 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 11668 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
11669 | |
11670 | self = self; | |
1afc06c2 | 11671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 11672 | return NULL; |
1d99702e RD |
11673 | if (_argo0) { |
11674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
11677 | return NULL; |
11678 | } | |
11679 | } | |
1d99702e RD |
11680 | if (_argo2) { |
11681 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11682 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
11683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
11684 | return NULL; | |
11685 | } | |
11686 | } | |
11687 | _arg6 = (bool ) tempbool6; | |
cf694132 | 11688 | { |
4268f798 | 11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11690 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
11691 | ||
4268f798 | 11692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11694 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11695 | return _resultobj; |
11696 | } | |
11697 | ||
21f8d7ea | 11698 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 11699 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 11700 | PyObject * _resultobj; |
21f8d7ea | 11701 | int _result; |
af309447 | 11702 | wxImageList * _arg0; |
1d99702e | 11703 | PyObject * _argo0 = 0; |
1afc06c2 | 11704 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11705 | |
11706 | self = self; | |
1afc06c2 | 11707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 11708 | return NULL; |
1d99702e RD |
11709 | if (_argo0) { |
11710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
11713 | return NULL; |
11714 | } | |
11715 | } | |
cf694132 | 11716 | { |
4268f798 | 11717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11718 | _result = (int )wxImageList_GetImageCount(_arg0); |
11719 | ||
4268f798 | 11720 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11721 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11722 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11723 | return _resultobj; |
11724 | } | |
11725 | ||
21f8d7ea | 11726 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 11727 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11728 | PyObject * _resultobj; |
11729 | bool _result; | |
11730 | wxImageList * _arg0; | |
11731 | int _arg1; | |
1d99702e | 11732 | PyObject * _argo0 = 0; |
1afc06c2 | 11733 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
11734 | |
11735 | self = self; | |
1afc06c2 | 11736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 11737 | return NULL; |
1d99702e RD |
11738 | if (_argo0) { |
11739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
11742 | return NULL; |
11743 | } | |
11744 | } | |
cf694132 | 11745 | { |
4268f798 | 11746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11747 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
11748 | ||
4268f798 | 11749 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11750 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11751 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11752 | return _resultobj; |
11753 | } | |
11754 | ||
21f8d7ea | 11755 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 11756 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11757 | PyObject * _resultobj; |
11758 | bool _result; | |
11759 | wxImageList * _arg0; | |
1d99702e | 11760 | PyObject * _argo0 = 0; |
1afc06c2 | 11761 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11762 | |
11763 | self = self; | |
1afc06c2 | 11764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 11765 | return NULL; |
1d99702e RD |
11766 | if (_argo0) { |
11767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
11770 | return NULL; |
11771 | } | |
11772 | } | |
cf694132 | 11773 | { |
4268f798 | 11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11775 | _result = (bool )wxImageList_RemoveAll(_arg0); |
11776 | ||
4268f798 | 11777 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11778 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11779 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11780 | return _resultobj; |
11781 | } | |
11782 | ||
f6bcfd97 BP |
11783 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
11784 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11785 | PyObject * _resultobj; | |
11786 | wxImageList * _arg0; | |
11787 | int _arg1; | |
11788 | int * _arg2; | |
11789 | int temp; | |
11790 | int * _arg3; | |
11791 | int temp0; | |
11792 | PyObject * _argo0 = 0; | |
11793 | char *_kwnames[] = { "self","index", NULL }; | |
11794 | ||
11795 | self = self; | |
11796 | { | |
11797 | _arg2 = &temp; | |
11798 | } | |
11799 | { | |
11800 | _arg3 = &temp0; | |
11801 | } | |
11802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
11803 | return NULL; | |
11804 | if (_argo0) { | |
11805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
11807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
11808 | return NULL; | |
11809 | } | |
11810 | } | |
11811 | { | |
4268f798 | 11812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
11813 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
11814 | ||
4268f798 | 11815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11816 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
11817 | } Py_INCREF(Py_None); |
11818 | _resultobj = Py_None; | |
11819 | { | |
11820 | PyObject *o; | |
11821 | o = PyInt_FromLong((long) (*_arg2)); | |
11822 | _resultobj = t_output_helper(_resultobj, o); | |
11823 | } | |
11824 | { | |
11825 | PyObject *o; | |
11826 | o = PyInt_FromLong((long) (*_arg3)); | |
11827 | _resultobj = t_output_helper(_resultobj, o); | |
11828 | } | |
11829 | return _resultobj; | |
11830 | } | |
11831 | ||
9416aa89 RD |
11832 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
11833 | wxRegion *src; | |
11834 | wxGDIObject *dest; | |
11835 | src = (wxRegion *) ptr; | |
11836 | dest = (wxGDIObject *) src; | |
11837 | return (void *) dest; | |
11838 | } | |
11839 | ||
11840 | static void *SwigwxRegionTowxObject(void *ptr) { | |
11841 | wxRegion *src; | |
11842 | wxObject *dest; | |
11843 | src = (wxRegion *) ptr; | |
11844 | dest = (wxObject *) src; | |
11845 | return (void *) dest; | |
11846 | } | |
11847 | ||
11848 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11849 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11850 | PyObject * _resultobj; | |
11851 | wxRegion * _result; | |
11852 | long _arg0 = (long ) 0; | |
11853 | long _arg1 = (long ) 0; | |
11854 | long _arg2 = (long ) 0; | |
11855 | long _arg3 = (long ) 0; | |
11856 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
11857 | char _ptemp[128]; | |
11858 | ||
11859 | self = self; | |
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
11861 | return NULL; | |
11862 | { | |
4268f798 | 11863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
11864 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
11865 | ||
4268f798 | 11866 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11867 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11868 | } if (_result) { |
11869 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
11870 | _resultobj = Py_BuildValue("s",_ptemp); | |
11871 | } else { | |
11872 | Py_INCREF(Py_None); | |
11873 | _resultobj = Py_None; | |
11874 | } | |
11875 | return _resultobj; | |
11876 | } | |
11877 | ||
11878 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
11879 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11880 | PyObject * _resultobj; | |
11881 | wxRegion * _arg0; | |
11882 | PyObject * _argo0 = 0; | |
11883 | char *_kwnames[] = { "self", NULL }; | |
11884 | ||
11885 | self = self; | |
11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
11887 | return NULL; | |
11888 | if (_argo0) { | |
11889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
11892 | return NULL; | |
11893 | } | |
11894 | } | |
11895 | { | |
4268f798 | 11896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
11897 | delete_wxRegion(_arg0); |
11898 | ||
4268f798 | 11899 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11900 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11901 | } Py_INCREF(Py_None); |
11902 | _resultobj = Py_None; | |
11903 | return _resultobj; | |
11904 | } | |
11905 | ||
11906 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
11907 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11908 | PyObject * _resultobj; | |
11909 | wxRegion * _arg0; | |
11910 | PyObject * _argo0 = 0; | |
11911 | char *_kwnames[] = { "self", NULL }; | |
11912 | ||
11913 | self = self; | |
11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
11915 | return NULL; | |
11916 | if (_argo0) { | |
11917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
11920 | return NULL; | |
11921 | } | |
11922 | } | |
11923 | { | |
4268f798 | 11924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
11925 | wxRegion_Clear(_arg0); |
11926 | ||
4268f798 | 11927 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11928 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11929 | } Py_INCREF(Py_None); |
11930 | _resultobj = Py_None; | |
11931 | return _resultobj; | |
11932 | } | |
11933 | ||
11934 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
11935 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11936 | PyObject * _resultobj; | |
11937 | wxRegionContain _result; | |
11938 | wxRegion * _arg0; | |
11939 | long _arg1; | |
11940 | long _arg2; | |
11941 | PyObject * _argo0 = 0; | |
11942 | char *_kwnames[] = { "self","x","y", NULL }; | |
11943 | ||
11944 | self = self; | |
11945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11946 | return NULL; | |
11947 | if (_argo0) { | |
11948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
11951 | return NULL; | |
11952 | } | |
11953 | } | |
11954 | { | |
4268f798 | 11955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
11956 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
11957 | ||
4268f798 | 11958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11959 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11960 | } _resultobj = Py_BuildValue("i",_result); |
11961 | return _resultobj; | |
11962 | } | |
11963 | ||
11964 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
11965 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11966 | PyObject * _resultobj; | |
11967 | wxRegionContain _result; | |
11968 | wxRegion * _arg0; | |
11969 | wxPoint * _arg1; | |
11970 | PyObject * _argo0 = 0; | |
11971 | wxPoint temp; | |
11972 | PyObject * _obj1 = 0; | |
11973 | char *_kwnames[] = { "self","pt", NULL }; | |
11974 | ||
11975 | self = self; | |
11976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
11977 | return NULL; | |
11978 | if (_argo0) { | |
11979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
11982 | return NULL; | |
11983 | } | |
11984 | } | |
11985 | { | |
11986 | _arg1 = &temp; | |
11987 | if (! wxPoint_helper(_obj1, &_arg1)) | |
11988 | return NULL; | |
11989 | } | |
11990 | { | |
4268f798 | 11991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
11992 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
11993 | ||
4268f798 | 11994 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11995 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11996 | } _resultobj = Py_BuildValue("i",_result); |
11997 | return _resultobj; | |
11998 | } | |
11999 | ||
12000 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
12001 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12002 | PyObject * _resultobj; | |
12003 | wxRegionContain _result; | |
12004 | wxRegion * _arg0; | |
12005 | wxRect * _arg1; | |
12006 | PyObject * _argo0 = 0; | |
12007 | wxRect temp; | |
12008 | PyObject * _obj1 = 0; | |
12009 | char *_kwnames[] = { "self","rect", NULL }; | |
12010 | ||
12011 | self = self; | |
12012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
12013 | return NULL; | |
12014 | if (_argo0) { | |
12015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
12018 | return NULL; | |
12019 | } | |
12020 | } | |
12021 | { | |
12022 | _arg1 = &temp; | |
12023 | if (! wxRect_helper(_obj1, &_arg1)) | |
12024 | return NULL; | |
12025 | } | |
12026 | { | |
4268f798 | 12027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12028 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
12029 | ||
4268f798 | 12030 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12031 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12032 | } _resultobj = Py_BuildValue("i",_result); |
12033 | return _resultobj; | |
12034 | } | |
12035 | ||
12036 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12037 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12038 | PyObject * _resultobj; | |
12039 | wxRegionContain _result; | |
12040 | wxRegion * _arg0; | |
12041 | long _arg1; | |
12042 | long _arg2; | |
12043 | long _arg3; | |
12044 | long _arg4; | |
12045 | PyObject * _argo0 = 0; | |
12046 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
12047 | ||
12048 | self = self; | |
12049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12050 | return NULL; | |
12051 | if (_argo0) { | |
12052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
12055 | return NULL; | |
12056 | } | |
12057 | } | |
12058 | { | |
4268f798 | 12059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12060 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
12061 | ||
4268f798 | 12062 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12063 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12064 | } _resultobj = Py_BuildValue("i",_result); |
12065 | return _resultobj; | |
12066 | } | |
12067 | ||
12068 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
12069 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12070 | PyObject * _resultobj; | |
12071 | wxRect * _result; | |
12072 | wxRegion * _arg0; | |
12073 | PyObject * _argo0 = 0; | |
12074 | char *_kwnames[] = { "self", NULL }; | |
12075 | char _ptemp[128]; | |
12076 | ||
12077 | self = self; | |
12078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
12079 | return NULL; | |
12080 | if (_argo0) { | |
12081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
12084 | return NULL; | |
12085 | } | |
12086 | } | |
12087 | { | |
4268f798 | 12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12089 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
12090 | ||
4268f798 | 12091 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12092 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12093 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12094 | _resultobj = Py_BuildValue("s",_ptemp); | |
12095 | return _resultobj; | |
12096 | } | |
12097 | ||
12098 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12099 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12100 | PyObject * _resultobj; | |
12101 | bool _result; | |
12102 | wxRegion * _arg0; | |
12103 | long _arg1; | |
12104 | long _arg2; | |
12105 | long _arg3; | |
12106 | long _arg4; | |
12107 | PyObject * _argo0 = 0; | |
12108 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12109 | ||
12110 | self = self; | |
12111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12112 | return NULL; | |
12113 | if (_argo0) { | |
12114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
12117 | return NULL; | |
12118 | } | |
12119 | } | |
12120 | { | |
4268f798 | 12121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12122 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
12123 | ||
4268f798 | 12124 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12125 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12126 | } _resultobj = Py_BuildValue("i",_result); |
12127 | return _resultobj; | |
12128 | } | |
12129 | ||
12130 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12131 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12132 | PyObject * _resultobj; | |
12133 | bool _result; | |
12134 | wxRegion * _arg0; | |
12135 | wxRect * _arg1; | |
12136 | PyObject * _argo0 = 0; | |
12137 | wxRect temp; | |
12138 | PyObject * _obj1 = 0; | |
12139 | char *_kwnames[] = { "self","rect", NULL }; | |
12140 | ||
12141 | self = self; | |
12142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
12143 | return NULL; | |
12144 | if (_argo0) { | |
12145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
12148 | return NULL; | |
12149 | } | |
12150 | } | |
12151 | { | |
12152 | _arg1 = &temp; | |
12153 | if (! wxRect_helper(_obj1, &_arg1)) | |
12154 | return NULL; | |
12155 | } | |
12156 | { | |
4268f798 | 12157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12158 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
12159 | ||
4268f798 | 12160 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12161 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12162 | } _resultobj = Py_BuildValue("i",_result); |
12163 | return _resultobj; | |
12164 | } | |
12165 | ||
12166 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12167 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12168 | PyObject * _resultobj; | |
12169 | bool _result; | |
12170 | wxRegion * _arg0; | |
12171 | wxRegion * _arg1; | |
12172 | PyObject * _argo0 = 0; | |
12173 | PyObject * _argo1 = 0; | |
12174 | char *_kwnames[] = { "self","region", NULL }; | |
12175 | ||
12176 | self = self; | |
12177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
12178 | return NULL; | |
12179 | if (_argo0) { | |
12180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12183 | return NULL; | |
12184 | } | |
12185 | } | |
12186 | if (_argo1) { | |
12187 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12188 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12190 | return NULL; | |
12191 | } | |
12192 | } | |
12193 | { | |
4268f798 | 12194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12195 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
12196 | ||
4268f798 | 12197 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12198 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12199 | } _resultobj = Py_BuildValue("i",_result); |
12200 | return _resultobj; | |
12201 | } | |
12202 | ||
12203 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
12204 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject * _resultobj; | |
12206 | bool _result; | |
12207 | wxRegion * _arg0; | |
12208 | PyObject * _argo0 = 0; | |
12209 | char *_kwnames[] = { "self", NULL }; | |
12210 | ||
12211 | self = self; | |
12212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
12213 | return NULL; | |
12214 | if (_argo0) { | |
12215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
12218 | return NULL; | |
12219 | } | |
12220 | } | |
12221 | { | |
4268f798 | 12222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12223 | _result = (bool )wxRegion_IsEmpty(_arg0); |
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_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12232 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12233 | PyObject * _resultobj; | |
12234 | bool _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","width","height", NULL }; | |
12242 | ||
12243 | self = self; | |
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_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_Union. Expected _wxRegion_p."); | |
12250 | return NULL; | |
12251 | } | |
12252 | } | |
12253 | { | |
4268f798 | 12254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12255 | _result = (bool )wxRegion_Union(_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_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12264 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12265 | PyObject * _resultobj; | |
12266 | bool _result; | |
12267 | wxRegion * _arg0; | |
12268 | wxRect * _arg1; | |
12269 | PyObject * _argo0 = 0; | |
12270 | wxRect temp; | |
12271 | PyObject * _obj1 = 0; | |
12272 | char *_kwnames[] = { "self","rect", NULL }; | |
12273 | ||
12274 | self = self; | |
12275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
12276 | return NULL; | |
12277 | if (_argo0) { | |
12278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
12281 | return NULL; | |
12282 | } | |
12283 | } | |
12284 | { | |
12285 | _arg1 = &temp; | |
12286 | if (! wxRect_helper(_obj1, &_arg1)) | |
12287 | return NULL; | |
12288 | } | |
12289 | { | |
4268f798 | 12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12291 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
12292 | ||
4268f798 | 12293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12294 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12295 | } _resultobj = Py_BuildValue("i",_result); |
12296 | return _resultobj; | |
12297 | } | |
12298 | ||
12299 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12300 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12301 | PyObject * _resultobj; | |
12302 | bool _result; | |
12303 | wxRegion * _arg0; | |
12304 | wxRegion * _arg1; | |
12305 | PyObject * _argo0 = 0; | |
12306 | PyObject * _argo1 = 0; | |
12307 | char *_kwnames[] = { "self","region", NULL }; | |
12308 | ||
12309 | self = self; | |
12310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
12311 | return NULL; | |
12312 | if (_argo0) { | |
12313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12316 | return NULL; | |
12317 | } | |
12318 | } | |
12319 | if (_argo1) { | |
12320 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12321 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12323 | return NULL; | |
12324 | } | |
12325 | } | |
12326 | { | |
4268f798 | 12327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12328 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
12329 | ||
4268f798 | 12330 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12331 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12332 | } _resultobj = Py_BuildValue("i",_result); |
12333 | return _resultobj; | |
12334 | } | |
12335 | ||
12336 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12337 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12338 | PyObject * _resultobj; | |
12339 | bool _result; | |
12340 | wxRegion * _arg0; | |
12341 | long _arg1; | |
12342 | long _arg2; | |
12343 | long _arg3; | |
12344 | long _arg4; | |
12345 | PyObject * _argo0 = 0; | |
12346 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12347 | ||
12348 | self = self; | |
12349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12350 | return NULL; | |
12351 | if (_argo0) { | |
12352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
12355 | return NULL; | |
12356 | } | |
12357 | } | |
12358 | { | |
4268f798 | 12359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12360 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
12361 | ||
4268f798 | 12362 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12363 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12364 | } _resultobj = Py_BuildValue("i",_result); |
12365 | return _resultobj; | |
12366 | } | |
12367 | ||
12368 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12369 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12370 | PyObject * _resultobj; | |
12371 | bool _result; | |
12372 | wxRegion * _arg0; | |
12373 | wxRect * _arg1; | |
12374 | PyObject * _argo0 = 0; | |
12375 | wxRect temp; | |
12376 | PyObject * _obj1 = 0; | |
12377 | char *_kwnames[] = { "self","rect", NULL }; | |
12378 | ||
12379 | self = self; | |
12380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
12381 | return NULL; | |
12382 | if (_argo0) { | |
12383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
12386 | return NULL; | |
12387 | } | |
12388 | } | |
12389 | { | |
12390 | _arg1 = &temp; | |
12391 | if (! wxRect_helper(_obj1, &_arg1)) | |
12392 | return NULL; | |
12393 | } | |
12394 | { | |
4268f798 | 12395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12396 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
12397 | ||
4268f798 | 12398 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12399 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12400 | } _resultobj = Py_BuildValue("i",_result); |
12401 | return _resultobj; | |
12402 | } | |
12403 | ||
12404 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12405 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12406 | PyObject * _resultobj; | |
12407 | bool _result; | |
12408 | wxRegion * _arg0; | |
12409 | wxRegion * _arg1; | |
12410 | PyObject * _argo0 = 0; | |
12411 | PyObject * _argo1 = 0; | |
12412 | char *_kwnames[] = { "self","region", NULL }; | |
12413 | ||
12414 | self = self; | |
12415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
12416 | return NULL; | |
12417 | if (_argo0) { | |
12418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12421 | return NULL; | |
12422 | } | |
12423 | } | |
12424 | if (_argo1) { | |
12425 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12426 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12428 | return NULL; | |
12429 | } | |
12430 | } | |
12431 | { | |
4268f798 | 12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12433 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
12434 | ||
4268f798 | 12435 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12436 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12437 | } _resultobj = Py_BuildValue("i",_result); |
12438 | return _resultobj; | |
12439 | } | |
12440 | ||
12441 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12442 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12443 | PyObject * _resultobj; | |
12444 | bool _result; | |
12445 | wxRegion * _arg0; | |
12446 | long _arg1; | |
12447 | long _arg2; | |
12448 | long _arg3; | |
12449 | long _arg4; | |
12450 | PyObject * _argo0 = 0; | |
12451 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12452 | ||
12453 | self = self; | |
12454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12455 | return NULL; | |
12456 | if (_argo0) { | |
12457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
12460 | return NULL; | |
12461 | } | |
12462 | } | |
12463 | { | |
4268f798 | 12464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12465 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
12466 | ||
4268f798 | 12467 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12468 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12469 | } _resultobj = Py_BuildValue("i",_result); |
12470 | return _resultobj; | |
12471 | } | |
12472 | ||
12473 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12474 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12475 | PyObject * _resultobj; | |
12476 | bool _result; | |
12477 | wxRegion * _arg0; | |
12478 | wxRect * _arg1; | |
12479 | PyObject * _argo0 = 0; | |
12480 | wxRect temp; | |
12481 | PyObject * _obj1 = 0; | |
12482 | char *_kwnames[] = { "self","rect", NULL }; | |
12483 | ||
12484 | self = self; | |
12485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
12486 | return NULL; | |
12487 | if (_argo0) { | |
12488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
12491 | return NULL; | |
12492 | } | |
12493 | } | |
12494 | { | |
12495 | _arg1 = &temp; | |
12496 | if (! wxRect_helper(_obj1, &_arg1)) | |
12497 | return NULL; | |
12498 | } | |
12499 | { | |
4268f798 | 12500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12501 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
12502 | ||
4268f798 | 12503 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12504 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12505 | } _resultobj = Py_BuildValue("i",_result); |
12506 | return _resultobj; | |
12507 | } | |
12508 | ||
12509 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12510 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12511 | PyObject * _resultobj; | |
12512 | bool _result; | |
12513 | wxRegion * _arg0; | |
12514 | wxRegion * _arg1; | |
12515 | PyObject * _argo0 = 0; | |
12516 | PyObject * _argo1 = 0; | |
12517 | char *_kwnames[] = { "self","region", NULL }; | |
12518 | ||
12519 | self = self; | |
12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
12521 | return NULL; | |
12522 | if (_argo0) { | |
12523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12526 | return NULL; | |
12527 | } | |
12528 | } | |
12529 | if (_argo1) { | |
12530 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12531 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12533 | return NULL; | |
12534 | } | |
12535 | } | |
12536 | { | |
4268f798 | 12537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12538 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
12539 | ||
4268f798 | 12540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12541 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12542 | } _resultobj = Py_BuildValue("i",_result); |
12543 | return _resultobj; | |
12544 | } | |
12545 | ||
12546 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
12547 | wxRegionIterator *src; | |
12548 | wxObject *dest; | |
12549 | src = (wxRegionIterator *) ptr; | |
12550 | dest = (wxObject *) src; | |
12551 | return (void *) dest; | |
12552 | } | |
12553 | ||
12554 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
12555 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12556 | PyObject * _resultobj; | |
12557 | wxRegionIterator * _result; | |
12558 | wxRegion * _arg0; | |
12559 | PyObject * _argo0 = 0; | |
12560 | char *_kwnames[] = { "region", NULL }; | |
12561 | char _ptemp[128]; | |
12562 | ||
12563 | self = self; | |
12564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
12565 | return NULL; | |
12566 | if (_argo0) { | |
12567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
12570 | return NULL; | |
12571 | } | |
12572 | } | |
12573 | { | |
4268f798 | 12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12575 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
12576 | ||
4268f798 | 12577 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12578 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12579 | } if (_result) { |
12580 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
12581 | _resultobj = Py_BuildValue("s",_ptemp); | |
12582 | } else { | |
12583 | Py_INCREF(Py_None); | |
12584 | _resultobj = Py_None; | |
12585 | } | |
12586 | return _resultobj; | |
12587 | } | |
12588 | ||
12589 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
12590 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12591 | PyObject * _resultobj; | |
12592 | wxRegionIterator * _arg0; | |
12593 | PyObject * _argo0 = 0; | |
12594 | char *_kwnames[] = { "self", NULL }; | |
12595 | ||
12596 | self = self; | |
12597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
12598 | return NULL; | |
12599 | if (_argo0) { | |
12600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
12603 | return NULL; | |
12604 | } | |
12605 | } | |
12606 | { | |
4268f798 | 12607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12608 | delete_wxRegionIterator(_arg0); |
12609 | ||
4268f798 | 12610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12611 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12612 | } Py_INCREF(Py_None); |
12613 | _resultobj = Py_None; | |
12614 | return _resultobj; | |
12615 | } | |
12616 | ||
12617 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
12618 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12619 | PyObject * _resultobj; | |
12620 | long _result; | |
12621 | wxRegionIterator * _arg0; | |
12622 | PyObject * _argo0 = 0; | |
12623 | char *_kwnames[] = { "self", NULL }; | |
12624 | ||
12625 | self = self; | |
12626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
12627 | return NULL; | |
12628 | if (_argo0) { | |
12629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
12632 | return NULL; | |
12633 | } | |
12634 | } | |
12635 | { | |
4268f798 | 12636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12637 | _result = (long )wxRegionIterator_GetX(_arg0); |
12638 | ||
4268f798 | 12639 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12640 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12641 | } _resultobj = Py_BuildValue("l",_result); |
12642 | return _resultobj; | |
12643 | } | |
12644 | ||
12645 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
12646 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12647 | PyObject * _resultobj; | |
12648 | long _result; | |
12649 | wxRegionIterator * _arg0; | |
12650 | PyObject * _argo0 = 0; | |
12651 | char *_kwnames[] = { "self", NULL }; | |
12652 | ||
12653 | self = self; | |
12654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
12655 | return NULL; | |
12656 | if (_argo0) { | |
12657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
12660 | return NULL; | |
12661 | } | |
12662 | } | |
12663 | { | |
4268f798 | 12664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12665 | _result = (long )wxRegionIterator_GetY(_arg0); |
12666 | ||
4268f798 | 12667 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12668 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12669 | } _resultobj = Py_BuildValue("l",_result); |
12670 | return _resultobj; | |
12671 | } | |
12672 | ||
12673 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
12674 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12675 | PyObject * _resultobj; | |
12676 | long _result; | |
12677 | wxRegionIterator * _arg0; | |
12678 | PyObject * _argo0 = 0; | |
12679 | char *_kwnames[] = { "self", NULL }; | |
12680 | ||
12681 | self = self; | |
12682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
12683 | return NULL; | |
12684 | if (_argo0) { | |
12685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
12688 | return NULL; | |
12689 | } | |
12690 | } | |
12691 | { | |
4268f798 | 12692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12693 | _result = (long )wxRegionIterator_GetW(_arg0); |
12694 | ||
4268f798 | 12695 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12696 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12697 | } _resultobj = Py_BuildValue("l",_result); |
12698 | return _resultobj; | |
12699 | } | |
12700 | ||
12701 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
12702 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12703 | PyObject * _resultobj; | |
12704 | long _result; | |
12705 | wxRegionIterator * _arg0; | |
12706 | PyObject * _argo0 = 0; | |
12707 | char *_kwnames[] = { "self", NULL }; | |
12708 | ||
12709 | self = self; | |
12710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
12711 | return NULL; | |
12712 | if (_argo0) { | |
12713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
12716 | return NULL; | |
12717 | } | |
12718 | } | |
12719 | { | |
4268f798 | 12720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12721 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
12722 | ||
4268f798 | 12723 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12724 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12725 | } _resultobj = Py_BuildValue("l",_result); |
12726 | return _resultobj; | |
12727 | } | |
12728 | ||
12729 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
12730 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12731 | PyObject * _resultobj; | |
12732 | long _result; | |
12733 | wxRegionIterator * _arg0; | |
12734 | PyObject * _argo0 = 0; | |
12735 | char *_kwnames[] = { "self", NULL }; | |
12736 | ||
12737 | self = self; | |
12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
12739 | return NULL; | |
12740 | if (_argo0) { | |
12741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
12744 | return NULL; | |
12745 | } | |
12746 | } | |
12747 | { | |
4268f798 | 12748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12749 | _result = (long )wxRegionIterator_GetH(_arg0); |
12750 | ||
4268f798 | 12751 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12752 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12753 | } _resultobj = Py_BuildValue("l",_result); |
12754 | return _resultobj; | |
12755 | } | |
12756 | ||
12757 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
12758 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12759 | PyObject * _resultobj; | |
12760 | long _result; | |
12761 | wxRegionIterator * _arg0; | |
12762 | PyObject * _argo0 = 0; | |
12763 | char *_kwnames[] = { "self", NULL }; | |
12764 | ||
12765 | self = self; | |
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
12767 | return NULL; | |
12768 | if (_argo0) { | |
12769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
12772 | return NULL; | |
12773 | } | |
12774 | } | |
12775 | { | |
4268f798 | 12776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12777 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
12778 | ||
4268f798 | 12779 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12780 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12781 | } _resultobj = Py_BuildValue("l",_result); |
12782 | return _resultobj; | |
12783 | } | |
12784 | ||
12785 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
12786 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12787 | PyObject * _resultobj; | |
12788 | wxRect * _result; | |
12789 | wxRegionIterator * _arg0; | |
12790 | PyObject * _argo0 = 0; | |
12791 | char *_kwnames[] = { "self", NULL }; | |
12792 | char _ptemp[128]; | |
12793 | ||
12794 | self = self; | |
12795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
12796 | return NULL; | |
12797 | if (_argo0) { | |
12798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
12801 | return NULL; | |
12802 | } | |
12803 | } | |
12804 | { | |
4268f798 | 12805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12806 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
12807 | ||
4268f798 | 12808 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12809 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12810 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12811 | _resultobj = Py_BuildValue("s",_ptemp); | |
12812 | return _resultobj; | |
12813 | } | |
12814 | ||
12815 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
12816 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12817 | PyObject * _resultobj; | |
12818 | bool _result; | |
12819 | wxRegionIterator * _arg0; | |
12820 | PyObject * _argo0 = 0; | |
12821 | char *_kwnames[] = { "self", NULL }; | |
12822 | ||
12823 | self = self; | |
12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
12825 | return NULL; | |
12826 | if (_argo0) { | |
12827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
12830 | return NULL; | |
12831 | } | |
12832 | } | |
12833 | { | |
4268f798 | 12834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12835 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
12836 | ||
4268f798 | 12837 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12838 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12839 | } _resultobj = Py_BuildValue("i",_result); |
12840 | return _resultobj; | |
12841 | } | |
12842 | ||
12843 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
12844 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12845 | PyObject * _resultobj; | |
12846 | wxRegionIterator * _arg0; | |
12847 | PyObject * _argo0 = 0; | |
12848 | char *_kwnames[] = { "self", NULL }; | |
12849 | ||
12850 | self = self; | |
12851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
12852 | return NULL; | |
12853 | if (_argo0) { | |
12854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
12857 | return NULL; | |
12858 | } | |
12859 | } | |
12860 | { | |
4268f798 | 12861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12862 | wxRegionIterator_Reset(_arg0); |
12863 | ||
4268f798 | 12864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12865 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12866 | } Py_INCREF(Py_None); |
12867 | _resultobj = Py_None; | |
12868 | return _resultobj; | |
12869 | } | |
12870 | ||
12871 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
12872 | (*self) ++; | |
12873 | } | |
12874 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12875 | PyObject * _resultobj; | |
12876 | wxRegionIterator * _arg0; | |
12877 | PyObject * _argo0 = 0; | |
12878 | char *_kwnames[] = { "self", NULL }; | |
12879 | ||
12880 | self = self; | |
12881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
12882 | return NULL; | |
12883 | if (_argo0) { | |
12884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
12887 | return NULL; | |
12888 | } | |
12889 | } | |
12890 | { | |
4268f798 | 12891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12892 | wxRegionIterator_Next(_arg0); |
12893 | ||
4268f798 | 12894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12895 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12896 | } Py_INCREF(Py_None); |
12897 | _resultobj = Py_None; | |
12898 | return _resultobj; | |
12899 | } | |
12900 | ||
8ab979d7 | 12901 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
12902 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
12903 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
12904 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
12905 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
12906 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12907 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
12908 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12909 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
12910 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
12911 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
12912 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
12913 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
12914 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
12915 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
12916 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
12917 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
12918 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
12919 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
12920 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
12921 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
12922 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
12923 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
12924 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
12925 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
12926 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
12927 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
12928 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
12929 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
12930 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
12931 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
12932 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
12933 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
12934 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 12935 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12936 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
12937 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
12938 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
12939 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12940 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
12941 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
12942 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
12943 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
12944 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
12945 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
12946 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12947 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
12948 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
12949 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
12950 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
12951 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
12952 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17c0e08c RD |
12953 | { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, |
12954 | { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12955 | { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12956 | { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
12957 | { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
12958 | { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12959 | { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
12960 | { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12961 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
12962 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
12963 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
12964 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12965 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 12966 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12967 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
12968 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
12969 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
9d37f964 RD |
12970 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
12971 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c | 12972 | { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
9d37f964 | 12973 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
12974 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
12975 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
12976 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
12977 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12978 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12979 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12980 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
12981 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12982 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12983 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12984 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
12985 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
12986 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
12987 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
12988 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
12989 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
12990 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
12991 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
12992 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12993 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12994 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
12995 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
12996 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
12997 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
19a97bd6 | 12998 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12999 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
13000 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
13001 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
13002 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13003 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13004 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
13005 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
13006 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
13007 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
13008 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
13009 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
13010 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
13011 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13012 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13013 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
13014 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13015 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13016 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13017 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13018 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
13019 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
13020 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
13021 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
13022 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
13023 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13024 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13025 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
13026 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
13027 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
13028 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
13029 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
13030 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
13031 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
13032 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
13033 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
13034 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
13035 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
13036 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
13037 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
13038 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 13039 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13040 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
13041 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
13042 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
13043 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
13044 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
13045 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
13046 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
13047 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
13048 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
13049 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
13050 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
13051 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
13052 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
13053 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
13054 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
13055 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
13056 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
13057 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
13058 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
13059 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 13060 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13061 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
13062 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
13063 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13064 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
13065 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
13066 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13067 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13068 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13069 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
13070 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13071 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13072 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 13073 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13074 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
13075 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
13076 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead RD |
13077 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
13078 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
13079 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13080 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13081 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 13082 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13083 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
13084 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13085 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13086 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13087 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
13088 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13089 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13090 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13091 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13092 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
13093 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13094 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13095 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13096 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
13097 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
13098 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13099 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
13100 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
13101 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13102 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
13103 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
13104 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
13105 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
13106 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 13107 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13108 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
13109 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
13110 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13111 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
13112 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
13113 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
13114 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
13115 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 | 13116 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13117 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13118 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13119 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13120 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
13121 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13122 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13123 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13124 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
b5a5d647 RD |
13125 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
13126 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d | 13127 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13128 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13129 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13130 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13131 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13132 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13133 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13134 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 13135 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 13136 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13137 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13138 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13139 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
13140 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
13141 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
13142 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
13143 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
13144 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
13145 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
13146 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13147 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
13148 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13149 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
13150 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13151 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
13152 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13153 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
13154 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
13155 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13156 | { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
13157 | { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13158 | { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13159 | { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13160 | { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13161 | { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13162 | { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13163 | { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13164 | { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13165 | { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13166 | { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13167 | { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13168 | { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13169 | { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13170 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
13171 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13172 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13173 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13174 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13175 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13176 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13177 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13178 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13179 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13180 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13181 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13182 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
13183 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13184 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
13185 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13186 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13187 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13188 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13189 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13190 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13191 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13192 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13193 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13194 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13195 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13196 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
13197 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13198 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13199 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
13200 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
13201 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
13202 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
13203 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
13204 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13205 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13206 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13207 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13208 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13209 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13210 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13211 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13212 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13213 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13214 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13215 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
13216 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13217 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13218 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13219 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
13220 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13221 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
13222 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
13223 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
13224 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13225 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13226 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
13227 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13228 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
13229 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
13230 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 RD |
13231 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
13232 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13233 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 | 13234 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
13235 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
13236 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13237 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
13238 | { NULL, NULL } |
13239 | }; | |
1d99702e RD |
13240 | #ifdef __cplusplus |
13241 | } | |
13242 | #endif | |
13243 | /* | |
13244 | * This table is used by the pointer type-checker | |
13245 | */ | |
13246 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 13247 | { "_signed_long","_long",0}, |
b1462dfa | 13248 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
13249 | { "_wxPrintQuality","_int",0}, |
13250 | { "_wxPrintQuality","_signed_int",0}, | |
13251 | { "_wxPrintQuality","_unsigned_int",0}, | |
13252 | { "_wxPrintQuality","_wxWindowID",0}, | |
13253 | { "_wxPrintQuality","_uint",0}, | |
13254 | { "_wxPrintQuality","_EBool",0}, | |
13255 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 13256 | { "_wxPrintQuality","_time_t",0}, |
ecc08ead | 13257 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
1d99702e | 13258 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
13259 | { "_long","_unsigned_long",0}, |
13260 | { "_long","_signed_long",0}, | |
9416aa89 | 13261 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 13262 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 13263 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
ecc08ead | 13264 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9416aa89 | 13265 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 13266 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9416aa89 | 13267 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 13268 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 13269 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 13270 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 13271 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 13272 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 13273 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 13274 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
1d99702e | 13275 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 13276 | { "_size_t","_wxCoord",0}, |
1d99702e | 13277 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 13278 | { "_size_t","_time_t",0}, |
1d99702e RD |
13279 | { "_size_t","_unsigned_int",0}, |
13280 | { "_size_t","_int",0}, | |
13281 | { "_size_t","_wxWindowID",0}, | |
13282 | { "_size_t","_uint",0}, | |
b1462dfa | 13283 | { "_uint","_wxCoord",0}, |
1d99702e | 13284 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 13285 | { "_uint","_time_t",0}, |
1d99702e RD |
13286 | { "_uint","_size_t",0}, |
13287 | { "_uint","_unsigned_int",0}, | |
13288 | { "_uint","_int",0}, | |
13289 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 13290 | { "_wxChar","_char",0}, |
f6bcfd97 | 13291 | { "_char","_wxChar",0}, |
6d8b4f8d | 13292 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 13293 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
13294 | { "_EBool","_wxPrintQuality",0}, |
13295 | { "_EBool","_signed_int",0}, | |
13296 | { "_EBool","_int",0}, | |
13297 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 13298 | { "_unsigned_long","_long",0}, |
6d8b4f8d | 13299 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 13300 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
13301 | { "_signed_int","_wxPrintQuality",0}, |
13302 | { "_signed_int","_EBool",0}, | |
13303 | { "_signed_int","_wxWindowID",0}, | |
13304 | { "_signed_int","_int",0}, | |
1d99702e RD |
13305 | { "_WXTYPE","_short",0}, |
13306 | { "_WXTYPE","_signed_short",0}, | |
13307 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
13308 | { "_unsigned_short","_WXTYPE",0}, |
13309 | { "_unsigned_short","_short",0}, | |
9416aa89 | 13310 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 13311 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 13312 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 13313 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 13314 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
17c0e08c | 13315 | { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject}, |
9416aa89 | 13316 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 13317 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 13318 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 13319 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
9416aa89 | 13320 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 13321 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
6ee2116b | 13322 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9416aa89 | 13323 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 13324 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
ecc08ead | 13325 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9416aa89 | 13326 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 13327 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 13328 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 13329 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9416aa89 | 13330 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9416aa89 | 13331 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 13332 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 13333 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 13334 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 13335 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
13336 | { "_signed_short","_WXTYPE",0}, |
13337 | { "_signed_short","_short",0}, | |
1d99702e | 13338 | { "_unsigned_char","_byte",0}, |
b1462dfa | 13339 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 13340 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 13341 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
13342 | { "_unsigned_int","_size_t",0}, |
13343 | { "_unsigned_int","_uint",0}, | |
13344 | { "_unsigned_int","_wxWindowID",0}, | |
13345 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
13346 | { "_short","_WXTYPE",0}, |
13347 | { "_short","_unsigned_short",0}, | |
13348 | { "_short","_signed_short",0}, | |
b1462dfa | 13349 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 13350 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 13351 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
13352 | { "_wxWindowID","_size_t",0}, |
13353 | { "_wxWindowID","_EBool",0}, | |
13354 | { "_wxWindowID","_uint",0}, | |
13355 | { "_wxWindowID","_int",0}, | |
13356 | { "_wxWindowID","_signed_int",0}, | |
13357 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 13358 | { "_int","_wxCoord",0}, |
1d99702e | 13359 | { "_int","_wxPrintQuality",0}, |
c368d904 | 13360 | { "_int","_time_t",0}, |
1d99702e RD |
13361 | { "_int","_size_t",0}, |
13362 | { "_int","_EBool",0}, | |
13363 | { "_int","_uint",0}, | |
13364 | { "_int","_wxWindowID",0}, | |
13365 | { "_int","_unsigned_int",0}, | |
13366 | { "_int","_signed_int",0}, | |
c368d904 RD |
13367 | { "_time_t","_wxCoord",0}, |
13368 | { "_time_t","_wxPrintQuality",0}, | |
13369 | { "_time_t","_unsigned_int",0}, | |
13370 | { "_time_t","_int",0}, | |
13371 | { "_time_t","_wxWindowID",0}, | |
13372 | { "_time_t","_uint",0}, | |
13373 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
13374 | { "_wxCoord","_int",0}, |
13375 | { "_wxCoord","_signed_int",0}, | |
13376 | { "_wxCoord","_unsigned_int",0}, | |
13377 | { "_wxCoord","_wxWindowID",0}, | |
13378 | { "_wxCoord","_uint",0}, | |
13379 | { "_wxCoord","_EBool",0}, | |
13380 | { "_wxCoord","_size_t",0}, | |
c368d904 | 13381 | { "_wxCoord","_time_t",0}, |
b1462dfa | 13382 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
13383 | {0,0,0}}; |
13384 | ||
8ab979d7 RD |
13385 | static PyObject *SWIG_globals; |
13386 | #ifdef __cplusplus | |
13387 | extern "C" | |
13388 | #endif | |
1d99702e | 13389 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
13390 | PyObject *m, *d; |
13391 | SWIG_globals = SWIG_newvarlink(); | |
13392 | m = Py_InitModule("gdic", gdicMethods); | |
13393 | d = PyModule_GetDict(m); | |
6d8b4f8d RD |
13394 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
13395 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
13396 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
13397 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
13398 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
13399 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
13400 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
13401 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
13402 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); | |
13403 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
13404 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
13405 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
13406 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
13407 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
13408 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
13409 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
f0261a72 RD |
13410 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
13411 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
13412 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
13413 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
13414 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
13415 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
13416 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
13417 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
13418 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
13419 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
13420 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
13421 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
13422 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
13423 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
13424 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
13425 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
13426 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
6d8b4f8d | 13427 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
f0261a72 RD |
13428 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
13429 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
13430 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
13431 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
13432 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
13433 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
13434 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
13435 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
6d8b4f8d | 13436 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
98624b49 RD |
13437 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
13438 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
13439 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
13440 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
f0261a72 RD |
13441 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
13442 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
13443 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
6d8b4f8d RD |
13444 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
13445 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
13446 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
13447 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
13448 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
13449 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
13450 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
13451 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
13452 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
f0261a72 | 13453 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
c5943253 RD |
13454 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
13455 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
13456 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
13457 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
13458 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
13459 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
13460 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
13461 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
13462 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
13463 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
8ab979d7 RD |
13464 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
13465 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
13466 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
13467 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
13468 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
13469 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
13470 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
13471 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
13472 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
13473 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
13474 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
13475 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
13476 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
13477 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
13478 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
13479 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
13480 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
13481 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
13482 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
13483 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
13484 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
13485 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
13486 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
13487 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
13488 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
13489 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
13490 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
13491 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
13492 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
13493 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
13494 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
13495 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
13496 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
13497 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
13498 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
13499 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
13500 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
13501 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
13502 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
13503 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
13504 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
13505 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
13506 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
13507 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
13508 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
13509 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
13510 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
1d99702e RD |
13511 | { |
13512 | int i; | |
13513 | for (i = 0; _swig_mapping[i].n1; i++) | |
13514 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
13515 | } | |
8ab979d7 | 13516 | } |