]>
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> | |
e9159fe8 | 64 | #include <wx/dcbuffer.h> |
8ab979d7 | 65 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
f3d9dc1d | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
f3d9dc1d | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
f3d9dc1d | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
f3d9dc1d RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
f3d9dc1d RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
96bfd053 RD |
92 | // Implementations of some alternate "constructors" |
93 | ||
8ab979d7 RD |
94 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
95 | return new wxBitmap(width, height, depth); | |
96 | } | |
97 | ||
96bfd053 RD |
98 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
99 | char** cArray = NULL; | |
100 | int count; | |
101 | ||
102 | if (!PyList_Check(listOfStrings)) { | |
103 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
104 | return NULL; | |
105 | } | |
106 | count = PyList_Size(listOfStrings); | |
107 | cArray = new char*[count]; | |
108 | ||
109 | for(int x=0; x<count; x++) { | |
110 | // TODO: Need some validation and error checking here | |
111 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
112 | } | |
113 | return cArray; | |
114 | } | |
115 | ||
d56cebe7 | 116 | |
96bfd053 RD |
117 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
118 | char** cArray = NULL; | |
119 | wxBitmap* bmp; | |
120 | ||
121 | cArray = ConvertListOfStrings(listOfStrings); | |
122 | if (! cArray) | |
123 | return NULL; | |
124 | bmp = new wxBitmap(cArray); | |
125 | delete [] cArray; | |
126 | return bmp; | |
127 | } | |
128 | ||
129 | ||
130 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
131 | return new wxBitmap(icon); | |
132 | } | |
133 | ||
134 | ||
d56cebe7 RD |
135 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
136 | return new wxBitmap(bits, width, height, depth); | |
137 | } | |
926bb76c | 138 | |
4c9993c3 | 139 | |
d56cebe7 RD |
140 | // #ifdef __WXMSW__ |
141 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
142 | // int width, int height, int depth = 1) { | |
143 | // if (! PyString_Check(data)) { | |
144 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
145 | // return NULL; | |
146 | // } | |
147 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
148 | // } | |
149 | // #endif | |
8bf5d46e | 150 | |
8ab979d7 RD |
151 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
152 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
153 | } |
154 | // Implementations of some alternate "constructors" | |
155 | wxIcon* wxEmptyIcon() { | |
156 | return new wxIcon(); | |
157 | } | |
158 | ||
159 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
160 | char** cArray = NULL; | |
161 | wxIcon* icon; | |
162 | ||
163 | cArray = ConvertListOfStrings(listOfStrings); | |
164 | if (! cArray) | |
165 | return NULL; | |
166 | icon = new wxIcon(cArray); | |
167 | delete [] cArray; | |
168 | return icon; | |
8ab979d7 | 169 | } |
7248a051 RD |
170 | |
171 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
172 | wxIcon* icon = new wxIcon(); | |
173 | icon->CopyFromBitmap(bmp); | |
174 | return icon; | |
175 | } | |
8ab979d7 | 176 | // Alternate 'constructor' |
9c039d08 | 177 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
178 | return new wxCursor(id); |
179 | } | |
180 | // Alternate 'constructor' | |
181 | wxColour* wxNamedColour(const wxString& colorName) { | |
182 | return new wxColour(colorName); | |
183 | } | |
ecc08ead RD |
184 | |
185 | class wxPyPen : public wxPen { | |
186 | public: | |
187 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
188 | : wxPen(colour, width, style) | |
189 | { m_dash = NULL; } | |
190 | ~wxPyPen() { | |
191 | if (m_dash) | |
181526ac | 192 | delete [] m_dash; |
ecc08ead RD |
193 | } |
194 | ||
195 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
181526ac RD |
196 | if (m_dash) |
197 | delete [] m_dash; | |
ecc08ead | 198 | m_dash = new wxDash[nb_dashes]; |
181526ac | 199 | for (int i=0; i<nb_dashes; i++) { |
ecc08ead | 200 | m_dash[i] = dash[i]; |
181526ac | 201 | } |
ecc08ead RD |
202 | wxPen::SetDashes(nb_dashes, m_dash); |
203 | } | |
204 | ||
205 | private: | |
206 | wxDash* m_dash; | |
207 | }; | |
9d37f964 RD |
208 | |
209 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
210 | *x1 = dc->MinX(); | |
211 | *y1 = dc->MinY(); | |
212 | *x2 = dc->MaxX(); | |
213 | *y2 = dc->MaxY(); | |
214 | } | |
8ab979d7 RD |
215 | // Alternate 'constructor' |
216 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
217 | return new wxMemoryDC(oldDC); | |
218 | } | |
af309447 | 219 | |
17c0e08c RD |
220 | #include <wx/metafile.h> |
221 | ||
af309447 | 222 | #if 0 |
8ab979d7 RD |
223 | extern wxFont * wxNORMAL_FONT; |
224 | extern wxFont * wxSMALL_FONT; | |
225 | extern wxFont * wxITALIC_FONT; | |
226 | extern wxFont * wxSWISS_FONT; | |
227 | extern wxPen * wxRED_PEN; | |
228 | extern wxPen * wxCYAN_PEN; | |
229 | extern wxPen * wxGREEN_PEN; | |
230 | extern wxPen * wxBLACK_PEN; | |
231 | extern wxPen * wxWHITE_PEN; | |
232 | extern wxPen * wxTRANSPARENT_PEN; | |
233 | extern wxPen * wxBLACK_DASHED_PEN; | |
234 | extern wxPen * wxGREY_PEN; | |
235 | extern wxPen * wxMEDIUM_GREY_PEN; | |
236 | extern wxPen * wxLIGHT_GREY_PEN; | |
237 | extern wxBrush * wxBLUE_BRUSH; | |
238 | extern wxBrush * wxGREEN_BRUSH; | |
239 | extern wxBrush * wxWHITE_BRUSH; | |
240 | extern wxBrush * wxBLACK_BRUSH; | |
241 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
242 | extern wxBrush * wxCYAN_BRUSH; | |
243 | extern wxBrush * wxRED_BRUSH; | |
244 | extern wxBrush * wxGREY_BRUSH; | |
245 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
246 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
247 | extern wxColour * wxBLACK; | |
248 | extern wxColour * wxWHITE; | |
249 | extern wxColour * wxRED; | |
250 | extern wxColour * wxBLUE; | |
251 | extern wxColour * wxGREEN; | |
252 | extern wxColour * wxCYAN; | |
253 | extern wxColour * wxLIGHT_GREY; | |
254 | extern wxCursor * wxSTANDARD_CURSOR; | |
255 | extern wxCursor * wxHOURGLASS_CURSOR; | |
256 | extern wxCursor * wxCROSS_CURSOR; | |
257 | extern wxBitmap wxNullBitmap; | |
258 | extern wxIcon wxNullIcon; | |
259 | extern wxCursor wxNullCursor; | |
260 | extern wxPen wxNullPen; | |
261 | extern wxBrush wxNullBrush; | |
262 | extern wxPalette wxNullPalette; | |
263 | extern wxFont wxNullFont; | |
264 | extern wxColour wxNullColour; | |
0569df0f RD |
265 | extern wxFontList * wxTheFontList; |
266 | extern wxPenList * wxThePenList; | |
6ee2116b | 267 | extern wxBrushList * wxTheBrushList; |
0569df0f | 268 | extern wxColourDatabase * wxTheColourDatabase; |
af309447 | 269 | |
1d99702e RD |
270 | #endif |
271 | #ifdef __cplusplus | |
272 | extern "C" { | |
af309447 | 273 | #endif |
1afc06c2 | 274 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
275 | PyObject * _resultobj; |
276 | wxBitmap * _result; | |
277 | int _arg0; | |
278 | int _arg1; | |
1d99702e | 279 | int _arg2 = (int ) -1; |
1afc06c2 | 280 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
281 | char _ptemp[128]; |
282 | ||
283 | self = self; | |
1afc06c2 | 284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 285 | return NULL; |
cf694132 | 286 | { |
4268f798 | 287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 288 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
cf694132 | 289 | |
4268f798 | 290 | wxPyEndAllowThreads(__tstate); |
493f1553 | 291 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
292 | } if (_result) { |
293 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
294 | _resultobj = Py_BuildValue("s",_ptemp); | |
295 | } else { | |
296 | Py_INCREF(Py_None); | |
297 | _resultobj = Py_None; | |
298 | } | |
8ab979d7 RD |
299 | return _resultobj; |
300 | } | |
301 | ||
96bfd053 RD |
302 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
303 | PyObject * _resultobj; | |
304 | wxBitmap * _result; | |
305 | PyObject * _arg0; | |
306 | PyObject * _obj0 = 0; | |
307 | char *_kwnames[] = { "listOfStrings", NULL }; | |
308 | char _ptemp[128]; | |
309 | ||
310 | self = self; | |
311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
312 | return NULL; | |
313 | { | |
314 | _arg0 = _obj0; | |
315 | } | |
316 | { | |
4268f798 | 317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 318 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
96bfd053 | 319 | |
4268f798 | 320 | wxPyEndAllowThreads(__tstate); |
493f1553 | 321 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
322 | } if (_result) { |
323 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
324 | _resultobj = Py_BuildValue("s",_ptemp); | |
325 | } else { | |
326 | Py_INCREF(Py_None); | |
327 | _resultobj = Py_None; | |
328 | } | |
329 | return _resultobj; | |
330 | } | |
331 | ||
332 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
333 | PyObject * _resultobj; | |
334 | wxBitmap * _result; | |
335 | wxIcon * _arg0; | |
336 | PyObject * _argo0 = 0; | |
337 | char *_kwnames[] = { "icon", NULL }; | |
338 | char _ptemp[128]; | |
339 | ||
340 | self = self; | |
341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
342 | return NULL; | |
343 | if (_argo0) { | |
344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
347 | return NULL; | |
348 | } | |
349 | } | |
350 | { | |
4268f798 | 351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 352 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
96bfd053 | 353 | |
4268f798 | 354 | wxPyEndAllowThreads(__tstate); |
493f1553 | 355 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
356 | } if (_result) { |
357 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
358 | _resultobj = Py_BuildValue("s",_ptemp); | |
359 | } else { | |
360 | Py_INCREF(Py_None); | |
361 | _resultobj = Py_None; | |
362 | } | |
363 | return _resultobj; | |
364 | } | |
365 | ||
d56cebe7 | 366 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
367 | PyObject * _resultobj; |
368 | wxBitmap * _result; | |
d56cebe7 RD |
369 | char * _arg0; |
370 | int _arg1; | |
8bf5d46e | 371 | int _arg2; |
d56cebe7 RD |
372 | int _arg3 = (int ) 1; |
373 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
8bf5d46e RD |
374 | char _ptemp[128]; |
375 | ||
376 | self = self; | |
d56cebe7 | 377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
378 | return NULL; |
379 | { | |
4268f798 | 380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 381 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 382 | |
4268f798 | 383 | wxPyEndAllowThreads(__tstate); |
493f1553 | 384 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
385 | } if (_result) { |
386 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
387 | _resultobj = Py_BuildValue("s",_ptemp); | |
388 | } else { | |
389 | Py_INCREF(Py_None); | |
390 | _resultobj = Py_None; | |
391 | } | |
8bf5d46e RD |
392 | return _resultobj; |
393 | } | |
394 | ||
1afc06c2 | 395 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
396 | PyObject * _resultobj; |
397 | wxMask * _result; | |
398 | wxBitmap * _arg0; | |
399 | wxColour * _arg1; | |
1d99702e | 400 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
401 | wxColour temp; |
402 | PyObject * _obj1 = 0; | |
1afc06c2 | 403 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
404 | char _ptemp[128]; |
405 | ||
406 | self = self; | |
f6bcfd97 | 407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 408 | return NULL; |
1d99702e RD |
409 | if (_argo0) { |
410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
413 | return NULL; | |
414 | } | |
415 | } | |
f6bcfd97 BP |
416 | { |
417 | _arg1 = &temp; | |
418 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 419 | return NULL; |
f6bcfd97 | 420 | } |
cf694132 | 421 | { |
4268f798 | 422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 423 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
cf694132 | 424 | |
4268f798 | 425 | wxPyEndAllowThreads(__tstate); |
493f1553 | 426 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
427 | } if (_result) { |
428 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
429 | _resultobj = Py_BuildValue("s",_ptemp); | |
430 | } else { | |
431 | Py_INCREF(Py_None); | |
432 | _resultobj = Py_None; | |
433 | } | |
8ab979d7 RD |
434 | return _resultobj; |
435 | } | |
436 | ||
96bfd053 RD |
437 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
438 | PyObject * _resultobj; | |
439 | wxIcon * _result; | |
440 | char *_kwnames[] = { NULL }; | |
441 | char _ptemp[128]; | |
442 | ||
443 | self = self; | |
444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
445 | return NULL; | |
446 | { | |
4268f798 | 447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 448 | _result = (wxIcon *)wxEmptyIcon(); |
96bfd053 | 449 | |
4268f798 | 450 | wxPyEndAllowThreads(__tstate); |
493f1553 | 451 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
452 | } if (_result) { |
453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
454 | _resultobj = Py_BuildValue("s",_ptemp); | |
455 | } else { | |
456 | Py_INCREF(Py_None); | |
457 | _resultobj = Py_None; | |
458 | } | |
459 | return _resultobj; | |
460 | } | |
461 | ||
462 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
463 | PyObject * _resultobj; | |
464 | wxIcon * _result; | |
465 | PyObject * _arg0; | |
466 | PyObject * _obj0 = 0; | |
467 | char *_kwnames[] = { "listOfStrings", NULL }; | |
468 | char _ptemp[128]; | |
469 | ||
470 | self = self; | |
471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
472 | return NULL; | |
473 | { | |
474 | _arg0 = _obj0; | |
475 | } | |
476 | { | |
4268f798 | 477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 478 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
96bfd053 | 479 | |
4268f798 | 480 | wxPyEndAllowThreads(__tstate); |
493f1553 | 481 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
482 | } if (_result) { |
483 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
484 | _resultobj = Py_BuildValue("s",_ptemp); | |
485 | } else { | |
486 | Py_INCREF(Py_None); | |
487 | _resultobj = Py_None; | |
488 | } | |
489 | return _resultobj; | |
490 | } | |
491 | ||
7248a051 RD |
492 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
493 | PyObject * _resultobj; | |
494 | wxIcon * _result; | |
495 | wxBitmap * _arg0; | |
496 | PyObject * _argo0 = 0; | |
497 | char *_kwnames[] = { "bmp", NULL }; | |
498 | char _ptemp[128]; | |
499 | ||
500 | self = self; | |
501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
502 | return NULL; | |
503 | if (_argo0) { | |
504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
507 | return NULL; | |
508 | } | |
509 | } | |
510 | { | |
511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 512 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); |
7248a051 RD |
513 | |
514 | wxPyEndAllowThreads(__tstate); | |
515 | if (PyErr_Occurred()) return NULL; | |
516 | } if (_result) { | |
517 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
518 | _resultobj = Py_BuildValue("s",_ptemp); | |
519 | } else { | |
520 | Py_INCREF(Py_None); | |
521 | _resultobj = Py_None; | |
522 | } | |
523 | return _resultobj; | |
524 | } | |
525 | ||
1afc06c2 | 526 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
527 | PyObject * _resultobj; |
528 | wxCursor * _result; | |
529 | int _arg0; | |
1afc06c2 | 530 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
531 | char _ptemp[128]; |
532 | ||
533 | self = self; | |
1afc06c2 | 534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 535 | return NULL; |
cf694132 | 536 | { |
4268f798 | 537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 538 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
cf694132 | 539 | |
4268f798 | 540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 541 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
542 | } if (_result) { |
543 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
544 | _resultobj = Py_BuildValue("s",_ptemp); | |
545 | } else { | |
546 | Py_INCREF(Py_None); | |
547 | _resultobj = Py_None; | |
548 | } | |
8ab979d7 RD |
549 | return _resultobj; |
550 | } | |
551 | ||
1afc06c2 | 552 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
553 | PyObject * _resultobj; |
554 | wxColour * _result; | |
555 | wxString * _arg0; | |
556 | PyObject * _obj0 = 0; | |
1afc06c2 | 557 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
558 | char _ptemp[128]; |
559 | ||
560 | self = self; | |
1afc06c2 | 561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
562 | return NULL; |
563 | { | |
c8bc7bb8 RD |
564 | _arg0 = wxString_in_helper(_obj0); |
565 | if (_arg0 == NULL) | |
8ab979d7 | 566 | return NULL; |
8ab979d7 | 567 | } |
cf694132 | 568 | { |
4268f798 | 569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 570 | _result = (wxColour *)wxNamedColour(*_arg0); |
cf694132 | 571 | |
4268f798 | 572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 573 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
574 | } if (_result) { |
575 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
576 | _resultobj = Py_BuildValue("s",_ptemp); | |
577 | } else { | |
578 | Py_INCREF(Py_None); | |
579 | _resultobj = Py_None; | |
580 | } | |
8ab979d7 RD |
581 | { |
582 | if (_obj0) | |
583 | delete _arg0; | |
584 | } | |
585 | return _resultobj; | |
586 | } | |
587 | ||
1afc06c2 | 588 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
589 | PyObject * _resultobj; |
590 | wxMemoryDC * _result; | |
591 | wxDC * _arg0; | |
1d99702e | 592 | PyObject * _argo0 = 0; |
1afc06c2 | 593 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
594 | char _ptemp[128]; |
595 | ||
596 | self = self; | |
1afc06c2 | 597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 598 | return NULL; |
1d99702e RD |
599 | if (_argo0) { |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
603 | return NULL; | |
604 | } | |
605 | } | |
cf694132 | 606 | { |
4268f798 | 607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 608 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
cf694132 | 609 | |
4268f798 | 610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 611 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
612 | } if (_result) { |
613 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
614 | _resultobj = Py_BuildValue("s",_ptemp); | |
615 | } else { | |
616 | Py_INCREF(Py_None); | |
617 | _resultobj = Py_None; | |
618 | } | |
8ab979d7 RD |
619 | return _resultobj; |
620 | } | |
621 | ||
622 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
623 | ||
624 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
625 | return 1; | |
626 | } | |
627 | ||
628 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
629 | PyObject * pyobj; | |
630 | char ptemp[128]; | |
631 | ||
632 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
633 | pyobj = PyString_FromString(ptemp); | |
634 | return pyobj; | |
635 | } | |
636 | ||
637 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
638 | ||
639 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
640 | return 1; | |
641 | } | |
642 | ||
643 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
644 | PyObject * pyobj; | |
645 | char ptemp[128]; | |
646 | ||
647 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
648 | pyobj = PyString_FromString(ptemp); | |
649 | return pyobj; | |
650 | } | |
651 | ||
652 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
653 | ||
654 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
655 | return 1; | |
656 | } | |
657 | ||
658 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
659 | PyObject * pyobj; | |
660 | char ptemp[128]; | |
661 | ||
662 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
663 | pyobj = PyString_FromString(ptemp); | |
664 | return pyobj; | |
665 | } | |
666 | ||
667 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
668 | ||
669 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
670 | return 1; | |
671 | } | |
672 | ||
673 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
674 | PyObject * pyobj; | |
675 | char ptemp[128]; | |
676 | ||
677 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
678 | pyobj = PyString_FromString(ptemp); | |
679 | return pyobj; | |
680 | } | |
681 | ||
682 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
683 | ||
684 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
685 | return 1; | |
686 | } | |
687 | ||
688 | static PyObject *_wrap_wxRED_PEN_get() { | |
689 | PyObject * pyobj; | |
690 | char ptemp[128]; | |
691 | ||
692 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
693 | pyobj = PyString_FromString(ptemp); | |
694 | return pyobj; | |
695 | } | |
696 | ||
697 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
698 | ||
699 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
700 | return 1; | |
701 | } | |
702 | ||
703 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
704 | PyObject * pyobj; | |
705 | char ptemp[128]; | |
706 | ||
707 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
708 | pyobj = PyString_FromString(ptemp); | |
709 | return pyobj; | |
710 | } | |
711 | ||
712 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
713 | ||
714 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
715 | return 1; | |
716 | } | |
717 | ||
718 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
719 | PyObject * pyobj; | |
720 | char ptemp[128]; | |
721 | ||
722 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
723 | pyobj = PyString_FromString(ptemp); | |
724 | return pyobj; | |
725 | } | |
726 | ||
727 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
728 | ||
729 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
730 | return 1; | |
731 | } | |
732 | ||
733 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
734 | PyObject * pyobj; | |
735 | char ptemp[128]; | |
736 | ||
737 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
738 | pyobj = PyString_FromString(ptemp); | |
739 | return pyobj; | |
740 | } | |
741 | ||
742 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
743 | ||
744 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
745 | return 1; | |
746 | } | |
747 | ||
748 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
749 | PyObject * pyobj; | |
750 | char ptemp[128]; | |
751 | ||
752 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
753 | pyobj = PyString_FromString(ptemp); | |
754 | return pyobj; | |
755 | } | |
756 | ||
757 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
758 | ||
759 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
760 | return 1; | |
761 | } | |
762 | ||
763 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
764 | PyObject * pyobj; | |
765 | char ptemp[128]; | |
766 | ||
767 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
768 | pyobj = PyString_FromString(ptemp); | |
769 | return pyobj; | |
770 | } | |
771 | ||
772 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
773 | ||
774 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
775 | return 1; | |
776 | } | |
777 | ||
778 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
779 | PyObject * pyobj; | |
780 | char ptemp[128]; | |
781 | ||
782 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
783 | pyobj = PyString_FromString(ptemp); | |
784 | return pyobj; | |
785 | } | |
786 | ||
787 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
788 | ||
789 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
790 | return 1; | |
791 | } | |
792 | ||
793 | static PyObject *_wrap_wxGREY_PEN_get() { | |
794 | PyObject * pyobj; | |
795 | char ptemp[128]; | |
796 | ||
797 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
798 | pyobj = PyString_FromString(ptemp); | |
799 | return pyobj; | |
800 | } | |
801 | ||
802 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
803 | ||
804 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
805 | return 1; | |
806 | } | |
807 | ||
808 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
809 | PyObject * pyobj; | |
810 | char ptemp[128]; | |
811 | ||
812 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
813 | pyobj = PyString_FromString(ptemp); | |
814 | return pyobj; | |
815 | } | |
816 | ||
817 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
818 | ||
819 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
820 | return 1; | |
821 | } | |
822 | ||
823 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
824 | PyObject * pyobj; | |
825 | char ptemp[128]; | |
826 | ||
827 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
828 | pyobj = PyString_FromString(ptemp); | |
829 | return pyobj; | |
830 | } | |
831 | ||
832 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
833 | ||
834 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
835 | return 1; | |
836 | } | |
837 | ||
838 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
839 | PyObject * pyobj; | |
840 | char ptemp[128]; | |
841 | ||
842 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
843 | pyobj = PyString_FromString(ptemp); | |
844 | return pyobj; | |
845 | } | |
846 | ||
847 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
848 | ||
849 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
850 | return 1; | |
851 | } | |
852 | ||
853 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
854 | PyObject * pyobj; | |
855 | char ptemp[128]; | |
856 | ||
857 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
858 | pyobj = PyString_FromString(ptemp); | |
859 | return pyobj; | |
860 | } | |
861 | ||
862 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
863 | ||
864 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
865 | return 1; | |
866 | } | |
867 | ||
868 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
869 | PyObject * pyobj; | |
870 | char ptemp[128]; | |
871 | ||
872 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
873 | pyobj = PyString_FromString(ptemp); | |
874 | return pyobj; | |
875 | } | |
876 | ||
877 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
878 | ||
879 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
880 | return 1; | |
881 | } | |
882 | ||
883 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
884 | PyObject * pyobj; | |
885 | char ptemp[128]; | |
886 | ||
887 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
888 | pyobj = PyString_FromString(ptemp); | |
889 | return pyobj; | |
890 | } | |
891 | ||
892 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
893 | ||
894 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
895 | return 1; | |
896 | } | |
897 | ||
898 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
899 | PyObject * pyobj; | |
900 | char ptemp[128]; | |
901 | ||
902 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
903 | pyobj = PyString_FromString(ptemp); | |
904 | return pyobj; | |
905 | } | |
906 | ||
907 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
908 | ||
909 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
910 | return 1; | |
911 | } | |
912 | ||
913 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
914 | PyObject * pyobj; | |
915 | char ptemp[128]; | |
916 | ||
917 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
918 | pyobj = PyString_FromString(ptemp); | |
919 | return pyobj; | |
920 | } | |
921 | ||
922 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
923 | ||
924 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
925 | return 1; | |
926 | } | |
927 | ||
928 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
929 | PyObject * pyobj; | |
930 | char ptemp[128]; | |
931 | ||
932 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
933 | pyobj = PyString_FromString(ptemp); | |
934 | return pyobj; | |
935 | } | |
936 | ||
937 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
938 | ||
939 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
940 | return 1; | |
941 | } | |
942 | ||
943 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
944 | PyObject * pyobj; | |
945 | char ptemp[128]; | |
946 | ||
947 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
948 | pyobj = PyString_FromString(ptemp); | |
949 | return pyobj; | |
950 | } | |
951 | ||
952 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
953 | ||
954 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
955 | return 1; | |
956 | } | |
957 | ||
958 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
959 | PyObject * pyobj; | |
960 | char ptemp[128]; | |
961 | ||
962 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
963 | pyobj = PyString_FromString(ptemp); | |
964 | return pyobj; | |
965 | } | |
966 | ||
967 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
968 | ||
969 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
970 | return 1; | |
971 | } | |
972 | ||
973 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
974 | PyObject * pyobj; | |
975 | char ptemp[128]; | |
976 | ||
977 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
978 | pyobj = PyString_FromString(ptemp); | |
979 | return pyobj; | |
980 | } | |
981 | ||
982 | static int _wrap_wxBLACK_set(PyObject *val) { | |
983 | ||
984 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
985 | return 1; | |
986 | } | |
987 | ||
988 | static PyObject *_wrap_wxBLACK_get() { | |
989 | PyObject * pyobj; | |
990 | char ptemp[128]; | |
991 | ||
992 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
993 | pyobj = PyString_FromString(ptemp); | |
994 | return pyobj; | |
995 | } | |
996 | ||
997 | static int _wrap_wxWHITE_set(PyObject *val) { | |
998 | ||
999 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
1000 | return 1; | |
1001 | } | |
1002 | ||
1003 | static PyObject *_wrap_wxWHITE_get() { | |
1004 | PyObject * pyobj; | |
1005 | char ptemp[128]; | |
1006 | ||
1007 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1008 | pyobj = PyString_FromString(ptemp); | |
1009 | return pyobj; | |
1010 | } | |
1011 | ||
1012 | static int _wrap_wxRED_set(PyObject *val) { | |
1013 | ||
1014 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1015 | return 1; | |
1016 | } | |
1017 | ||
1018 | static PyObject *_wrap_wxRED_get() { | |
1019 | PyObject * pyobj; | |
1020 | char ptemp[128]; | |
1021 | ||
1022 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1023 | pyobj = PyString_FromString(ptemp); | |
1024 | return pyobj; | |
1025 | } | |
1026 | ||
1027 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1028 | ||
1029 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1030 | return 1; | |
1031 | } | |
1032 | ||
1033 | static PyObject *_wrap_wxBLUE_get() { | |
1034 | PyObject * pyobj; | |
1035 | char ptemp[128]; | |
1036 | ||
1037 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1038 | pyobj = PyString_FromString(ptemp); | |
1039 | return pyobj; | |
1040 | } | |
1041 | ||
1042 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1043 | ||
1044 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1045 | return 1; | |
1046 | } | |
1047 | ||
1048 | static PyObject *_wrap_wxGREEN_get() { | |
1049 | PyObject * pyobj; | |
1050 | char ptemp[128]; | |
1051 | ||
1052 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1053 | pyobj = PyString_FromString(ptemp); | |
1054 | return pyobj; | |
1055 | } | |
1056 | ||
1057 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1058 | ||
1059 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1060 | return 1; | |
1061 | } | |
1062 | ||
1063 | static PyObject *_wrap_wxCYAN_get() { | |
1064 | PyObject * pyobj; | |
1065 | char ptemp[128]; | |
1066 | ||
1067 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1068 | pyobj = PyString_FromString(ptemp); | |
1069 | return pyobj; | |
1070 | } | |
1071 | ||
1072 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1073 | ||
1074 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1075 | return 1; | |
1076 | } | |
1077 | ||
1078 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1079 | PyObject * pyobj; | |
1080 | char ptemp[128]; | |
1081 | ||
1082 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1083 | pyobj = PyString_FromString(ptemp); | |
1084 | return pyobj; | |
1085 | } | |
1086 | ||
1087 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1088 | ||
1089 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1090 | return 1; | |
1091 | } | |
1092 | ||
1093 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1094 | PyObject * pyobj; | |
1095 | char ptemp[128]; | |
1096 | ||
1097 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1098 | pyobj = PyString_FromString(ptemp); | |
1099 | return pyobj; | |
1100 | } | |
1101 | ||
1102 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1103 | ||
1104 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1105 | return 1; | |
1106 | } | |
1107 | ||
1108 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1109 | PyObject * pyobj; | |
1110 | char ptemp[128]; | |
1111 | ||
1112 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1113 | pyobj = PyString_FromString(ptemp); | |
1114 | return pyobj; | |
1115 | } | |
1116 | ||
1117 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1118 | ||
1119 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1120 | return 1; | |
1121 | } | |
1122 | ||
1123 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1124 | PyObject * pyobj; | |
1125 | char ptemp[128]; | |
1126 | ||
1127 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1128 | pyobj = PyString_FromString(ptemp); | |
1129 | return pyobj; | |
1130 | } | |
1131 | ||
1132 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1133 | ||
1134 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1135 | return 1; | |
1136 | } | |
1137 | ||
1138 | static PyObject *_wrap_wxNullBitmap_get() { | |
1139 | PyObject * pyobj; | |
1140 | char ptemp[128]; | |
1141 | ||
1142 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1143 | pyobj = PyString_FromString(ptemp); | |
1144 | return pyobj; | |
1145 | } | |
1146 | ||
1147 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1148 | ||
1149 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1150 | return 1; | |
1151 | } | |
1152 | ||
1153 | static PyObject *_wrap_wxNullIcon_get() { | |
1154 | PyObject * pyobj; | |
1155 | char ptemp[128]; | |
1156 | ||
1157 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1158 | pyobj = PyString_FromString(ptemp); | |
1159 | return pyobj; | |
1160 | } | |
1161 | ||
1162 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1163 | ||
1164 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1165 | return 1; | |
1166 | } | |
1167 | ||
1168 | static PyObject *_wrap_wxNullCursor_get() { | |
1169 | PyObject * pyobj; | |
1170 | char ptemp[128]; | |
1171 | ||
1172 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1173 | pyobj = PyString_FromString(ptemp); | |
1174 | return pyobj; | |
1175 | } | |
1176 | ||
1177 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1178 | ||
1179 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1180 | return 1; | |
1181 | } | |
1182 | ||
1183 | static PyObject *_wrap_wxNullPen_get() { | |
1184 | PyObject * pyobj; | |
1185 | char ptemp[128]; | |
1186 | ||
1187 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1188 | pyobj = PyString_FromString(ptemp); | |
1189 | return pyobj; | |
1190 | } | |
1191 | ||
1192 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1193 | ||
1194 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1195 | return 1; | |
1196 | } | |
1197 | ||
1198 | static PyObject *_wrap_wxNullBrush_get() { | |
1199 | PyObject * pyobj; | |
1200 | char ptemp[128]; | |
1201 | ||
1202 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1203 | pyobj = PyString_FromString(ptemp); | |
1204 | return pyobj; | |
1205 | } | |
1206 | ||
1207 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1208 | ||
1209 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1210 | return 1; | |
1211 | } | |
1212 | ||
1213 | static PyObject *_wrap_wxNullPalette_get() { | |
1214 | PyObject * pyobj; | |
1215 | char ptemp[128]; | |
1216 | ||
1217 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1218 | pyobj = PyString_FromString(ptemp); | |
1219 | return pyobj; | |
1220 | } | |
1221 | ||
1222 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1223 | ||
1224 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1225 | return 1; | |
1226 | } | |
1227 | ||
1228 | static PyObject *_wrap_wxNullFont_get() { | |
1229 | PyObject * pyobj; | |
1230 | char ptemp[128]; | |
1231 | ||
1232 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1233 | pyobj = PyString_FromString(ptemp); | |
1234 | return pyobj; | |
1235 | } | |
1236 | ||
1237 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1238 | ||
1239 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1240 | return 1; | |
1241 | } | |
1242 | ||
1243 | static PyObject *_wrap_wxNullColour_get() { | |
1244 | PyObject * pyobj; | |
1245 | char ptemp[128]; | |
1246 | ||
1247 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1248 | pyobj = PyString_FromString(ptemp); | |
1249 | return pyobj; | |
1250 | } | |
1251 | ||
0569df0f RD |
1252 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1253 | ||
1254 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1255 | return 1; | |
1256 | } | |
1257 | ||
1258 | static PyObject *_wrap_wxTheFontList_get() { | |
1259 | PyObject * pyobj; | |
1260 | char ptemp[128]; | |
1261 | ||
1262 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1263 | pyobj = PyString_FromString(ptemp); | |
1264 | return pyobj; | |
1265 | } | |
1266 | ||
1267 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1268 | ||
1269 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1270 | return 1; | |
1271 | } | |
1272 | ||
1273 | static PyObject *_wrap_wxThePenList_get() { | |
1274 | PyObject * pyobj; | |
1275 | char ptemp[128]; | |
1276 | ||
1277 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1278 | pyobj = PyString_FromString(ptemp); | |
1279 | return pyobj; | |
1280 | } | |
1281 | ||
1282 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1283 | ||
1284 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1285 | return 1; | |
1286 | } | |
1287 | ||
1288 | static PyObject *_wrap_wxTheBrushList_get() { | |
1289 | PyObject * pyobj; | |
1290 | char ptemp[128]; | |
1291 | ||
6ee2116b | 1292 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
0569df0f RD |
1293 | pyobj = PyString_FromString(ptemp); |
1294 | return pyobj; | |
1295 | } | |
1296 | ||
1297 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1298 | ||
1299 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1300 | return 1; | |
1301 | } | |
1302 | ||
1303 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1304 | PyObject * pyobj; | |
1305 | char ptemp[128]; | |
1306 | ||
1307 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1308 | pyobj = PyString_FromString(ptemp); | |
1309 | return pyobj; | |
1310 | } | |
1311 | ||
9416aa89 RD |
1312 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1313 | wxGDIObject *src; | |
1314 | wxObject *dest; | |
1315 | src = (wxGDIObject *) ptr; | |
1316 | dest = (wxObject *) src; | |
1317 | return (void *) dest; | |
1318 | } | |
1319 | ||
1320 | #define new_wxGDIObject() (new wxGDIObject()) | |
1321 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1322 | PyObject * _resultobj; | |
1323 | wxGDIObject * _result; | |
1324 | char *_kwnames[] = { NULL }; | |
1325 | char _ptemp[128]; | |
1326 | ||
1327 | self = self; | |
1328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1329 | return NULL; | |
1330 | { | |
4268f798 | 1331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1332 | _result = (wxGDIObject *)new_wxGDIObject(); |
9416aa89 | 1333 | |
4268f798 | 1334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1335 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1336 | } if (_result) { |
1337 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1338 | _resultobj = Py_BuildValue("s",_ptemp); | |
1339 | } else { | |
1340 | Py_INCREF(Py_None); | |
1341 | _resultobj = Py_None; | |
1342 | } | |
1343 | return _resultobj; | |
1344 | } | |
1345 | ||
1346 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1347 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1348 | PyObject * _resultobj; | |
1349 | wxGDIObject * _arg0; | |
1350 | PyObject * _argo0 = 0; | |
1351 | char *_kwnames[] = { "self", NULL }; | |
1352 | ||
1353 | self = self; | |
1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1355 | return NULL; | |
1356 | if (_argo0) { | |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
1363 | { | |
4268f798 | 1364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1365 | delete_wxGDIObject(_arg0); |
9416aa89 | 1366 | |
4268f798 | 1367 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1368 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1369 | } Py_INCREF(Py_None); |
1370 | _resultobj = Py_None; | |
1371 | return _resultobj; | |
1372 | } | |
1373 | ||
1374 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1375 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1376 | PyObject * _resultobj; | |
1377 | bool _result; | |
1378 | wxGDIObject * _arg0; | |
1379 | PyObject * _argo0 = 0; | |
1380 | char *_kwnames[] = { "self", NULL }; | |
1381 | ||
1382 | self = self; | |
1383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1384 | return NULL; | |
1385 | if (_argo0) { | |
1386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1389 | return NULL; | |
1390 | } | |
1391 | } | |
1392 | { | |
4268f798 | 1393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1394 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
9416aa89 | 1395 | |
4268f798 | 1396 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1397 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1398 | } _resultobj = Py_BuildValue("i",_result); |
1399 | return _resultobj; | |
1400 | } | |
1401 | ||
1402 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1403 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1404 | PyObject * _resultobj; | |
1405 | wxGDIObject * _arg0; | |
1406 | bool _arg1; | |
1407 | PyObject * _argo0 = 0; | |
1408 | int tempbool1; | |
1409 | char *_kwnames[] = { "self","visible", NULL }; | |
1410 | ||
1411 | self = self; | |
1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1413 | return NULL; | |
1414 | if (_argo0) { | |
1415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1418 | return NULL; | |
1419 | } | |
1420 | } | |
1421 | _arg1 = (bool ) tempbool1; | |
1422 | { | |
4268f798 | 1423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1424 | wxGDIObject_SetVisible(_arg0,_arg1); |
9416aa89 | 1425 | |
4268f798 | 1426 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1427 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1428 | } Py_INCREF(Py_None); |
1429 | _resultobj = Py_None; | |
1430 | return _resultobj; | |
1431 | } | |
1432 | ||
1433 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1434 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1435 | PyObject * _resultobj; | |
1436 | bool _result; | |
1437 | wxGDIObject * _arg0; | |
1438 | PyObject * _argo0 = 0; | |
1439 | char *_kwnames[] = { "self", NULL }; | |
1440 | ||
1441 | self = self; | |
1442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1443 | return NULL; | |
1444 | if (_argo0) { | |
1445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1448 | return NULL; | |
1449 | } | |
1450 | } | |
1451 | { | |
4268f798 | 1452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1453 | _result = (bool )wxGDIObject_IsNull(_arg0); |
9416aa89 | 1454 | |
4268f798 | 1455 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1456 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1457 | } _resultobj = Py_BuildValue("i",_result); |
1458 | return _resultobj; | |
1459 | } | |
1460 | ||
1461 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1462 | wxBitmap *src; | |
1463 | wxGDIObject *dest; | |
1464 | src = (wxBitmap *) ptr; | |
1465 | dest = (wxGDIObject *) src; | |
1466 | return (void *) dest; | |
1467 | } | |
1468 | ||
1469 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1470 | wxBitmap *src; | |
1471 | wxObject *dest; | |
1472 | src = (wxBitmap *) ptr; | |
1473 | dest = (wxObject *) src; | |
1474 | return (void *) dest; | |
1475 | } | |
1476 | ||
6999b0d8 RD |
1477 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1478 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1479 | PyObject * _resultobj; |
6999b0d8 RD |
1480 | wxBitmap * _result; |
1481 | wxString * _arg0; | |
7d0180d4 | 1482 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
6999b0d8 RD |
1483 | PyObject * _obj0 = 0; |
1484 | char *_kwnames[] = { "name","type", NULL }; | |
1485 | char _ptemp[128]; | |
8ab979d7 RD |
1486 | |
1487 | self = self; | |
b37c7e1d | 1488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1489 | return NULL; |
6999b0d8 | 1490 | { |
c8bc7bb8 RD |
1491 | _arg0 = wxString_in_helper(_obj0); |
1492 | if (_arg0 == NULL) | |
8ab979d7 | 1493 | return NULL; |
6999b0d8 | 1494 | } |
cf694132 | 1495 | { |
4268f798 | 1496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1497 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 | 1498 | |
4268f798 | 1499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1500 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1501 | } if (_result) { |
1502 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1503 | _resultobj = Py_BuildValue("s",_ptemp); | |
1504 | } else { | |
1505 | Py_INCREF(Py_None); | |
1506 | _resultobj = Py_None; | |
1507 | } | |
1508 | { | |
1509 | if (_obj0) | |
1510 | delete _arg0; | |
1511 | } | |
8ab979d7 RD |
1512 | return _resultobj; |
1513 | } | |
1514 | ||
6999b0d8 RD |
1515 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1516 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1517 | PyObject * _resultobj; |
1518 | wxBitmap * _arg0; | |
1d99702e | 1519 | PyObject * _argo0 = 0; |
6999b0d8 | 1520 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1521 | |
1522 | self = self; | |
6999b0d8 | 1523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1524 | return NULL; |
1d99702e RD |
1525 | if (_argo0) { |
1526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1529 | return NULL; |
1530 | } | |
1531 | } | |
cf694132 | 1532 | { |
4268f798 | 1533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1534 | delete_wxBitmap(_arg0); |
cf694132 | 1535 | |
4268f798 | 1536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1537 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1538 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1539 | _resultobj = Py_None; |
1540 | return _resultobj; | |
1541 | } | |
1542 | ||
6999b0d8 RD |
1543 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1544 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1545 | PyObject * _resultobj; |
6999b0d8 | 1546 | wxPalette * _result; |
8ab979d7 | 1547 | wxBitmap * _arg0; |
1d99702e | 1548 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1549 | char *_kwnames[] = { "self", NULL }; |
1550 | char _ptemp[128]; | |
8ab979d7 RD |
1551 | |
1552 | self = self; | |
6999b0d8 | 1553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1554 | return NULL; |
1d99702e RD |
1555 | if (_argo0) { |
1556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1559 | return NULL; |
1560 | } | |
1561 | } | |
cf694132 | 1562 | { |
4268f798 | 1563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1564 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 | 1565 | |
4268f798 | 1566 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1567 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1568 | } if (_result) { |
1569 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1570 | _resultobj = Py_BuildValue("s",_ptemp); | |
1571 | } else { | |
1572 | Py_INCREF(Py_None); | |
1573 | _resultobj = Py_None; | |
1574 | } | |
8ab979d7 RD |
1575 | return _resultobj; |
1576 | } | |
1577 | ||
6999b0d8 RD |
1578 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1579 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1580 | PyObject * _resultobj; |
1581 | wxMask * _result; | |
1582 | wxBitmap * _arg0; | |
1d99702e | 1583 | PyObject * _argo0 = 0; |
6999b0d8 | 1584 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1585 | char _ptemp[128]; |
1586 | ||
1587 | self = self; | |
6999b0d8 | 1588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1589 | return NULL; |
1d99702e RD |
1590 | if (_argo0) { |
1591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1594 | return NULL; |
1595 | } | |
1596 | } | |
cf694132 | 1597 | { |
4268f798 | 1598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1599 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 | 1600 | |
4268f798 | 1601 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1602 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1603 | } if (_result) { |
1604 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1605 | _resultobj = Py_BuildValue("s",_ptemp); | |
1606 | } else { | |
1607 | Py_INCREF(Py_None); | |
1608 | _resultobj = Py_None; | |
1609 | } | |
8ab979d7 RD |
1610 | return _resultobj; |
1611 | } | |
1612 | ||
6999b0d8 RD |
1613 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1614 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1615 | PyObject * _resultobj; |
6999b0d8 RD |
1616 | bool _result; |
1617 | wxBitmap * _arg0; | |
1618 | wxString * _arg1; | |
7d0180d4 | 1619 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
6999b0d8 RD |
1620 | PyObject * _argo0 = 0; |
1621 | PyObject * _obj1 = 0; | |
b37c7e1d | 1622 | char *_kwnames[] = { "self","name","type", NULL }; |
8ab979d7 RD |
1623 | |
1624 | self = self; | |
b37c7e1d | 1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
6999b0d8 RD |
1626 | return NULL; |
1627 | if (_argo0) { | |
1628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1631 | return NULL; |
6999b0d8 RD |
1632 | } |
1633 | } | |
8ab979d7 | 1634 | { |
c8bc7bb8 RD |
1635 | _arg1 = wxString_in_helper(_obj1); |
1636 | if (_arg1 == NULL) | |
185d7c3e | 1637 | return NULL; |
8ab979d7 | 1638 | } |
cf694132 | 1639 | { |
4268f798 | 1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1641 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 | 1642 | |
4268f798 | 1643 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1644 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1645 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1646 | { |
6999b0d8 RD |
1647 | if (_obj1) |
1648 | delete _arg1; | |
8ab979d7 RD |
1649 | } |
1650 | return _resultobj; | |
1651 | } | |
1652 | ||
6999b0d8 RD |
1653 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1654 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1655 | PyObject * _resultobj; |
6999b0d8 RD |
1656 | bool _result; |
1657 | wxBitmap * _arg0; | |
1658 | wxString * _arg1; | |
b37c7e1d | 1659 | wxBitmapType _arg2; |
6999b0d8 | 1660 | wxPalette * _arg3 = (wxPalette *) NULL; |
1d99702e | 1661 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1662 | PyObject * _obj1 = 0; |
1663 | PyObject * _argo3 = 0; | |
1664 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1665 | |
1666 | self = self; | |
6999b0d8 | 1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1668 | return NULL; |
1d99702e RD |
1669 | if (_argo0) { |
1670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1673 | return NULL; |
1674 | } | |
1675 | } | |
cf694132 | 1676 | { |
c8bc7bb8 RD |
1677 | _arg1 = wxString_in_helper(_obj1); |
1678 | if (_arg1 == NULL) | |
185d7c3e | 1679 | return NULL; |
6999b0d8 RD |
1680 | } |
1681 | if (_argo3) { | |
1682 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1683 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1685 | return NULL; |
1686 | } | |
1687 | } | |
cf694132 | 1688 | { |
4268f798 | 1689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1690 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 1691 | |
4268f798 | 1692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1694 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1695 | { |
1696 | if (_obj1) | |
1697 | delete _arg1; | |
1698 | } | |
8ab979d7 RD |
1699 | return _resultobj; |
1700 | } | |
1701 | ||
6999b0d8 RD |
1702 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1703 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1704 | PyObject * _resultobj; |
6999b0d8 RD |
1705 | wxBitmap * _arg0; |
1706 | wxMask * _arg1; | |
1d99702e | 1707 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1708 | PyObject * _argo1 = 0; |
1709 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1710 | |
1711 | self = self; | |
6999b0d8 | 1712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1713 | return NULL; |
1d99702e RD |
1714 | if (_argo0) { |
1715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1718 | return NULL; |
1719 | } | |
1720 | } | |
6999b0d8 RD |
1721 | if (_argo1) { |
1722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1725 | return NULL; |
1726 | } | |
1727 | } | |
cf694132 | 1728 | { |
4268f798 | 1729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1730 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 | 1731 | |
4268f798 | 1732 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1733 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1734 | } Py_INCREF(Py_None); |
1735 | _resultobj = Py_None; | |
8ab979d7 RD |
1736 | return _resultobj; |
1737 | } | |
1738 | ||
6999b0d8 RD |
1739 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1740 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1741 | PyObject * _resultobj; | |
1742 | wxBitmap * _arg0; | |
1743 | wxPalette * _arg1; | |
1d99702e | 1744 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1745 | PyObject * _argo1 = 0; |
1746 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1747 | |
1748 | self = self; | |
6999b0d8 | 1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1750 | return NULL; |
1d99702e RD |
1751 | if (_argo0) { |
1752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1755 | return NULL; |
1756 | } | |
1757 | } | |
6999b0d8 RD |
1758 | if (_argo1) { |
1759 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1760 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1762 | return NULL; |
6999b0d8 | 1763 | } |
8ab979d7 | 1764 | } |
cf694132 | 1765 | { |
4268f798 | 1766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1767 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 | 1768 | |
4268f798 | 1769 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1770 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1771 | } Py_INCREF(Py_None); |
1772 | _resultobj = Py_None; | |
8ab979d7 RD |
1773 | return _resultobj; |
1774 | } | |
1775 | ||
9b3d3bc4 RD |
1776 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1777 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1778 | PyObject * _resultobj; |
9b3d3bc4 | 1779 | long _result; |
6999b0d8 | 1780 | wxBitmap * _arg0; |
1d99702e | 1781 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1782 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1783 | |
1784 | self = self; | |
9b3d3bc4 | 1785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1786 | return NULL; |
1d99702e RD |
1787 | if (_argo0) { |
1788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1791 | return NULL; |
1792 | } | |
1793 | } | |
cf694132 | 1794 | { |
4268f798 | 1795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1796 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 | 1797 | |
4268f798 | 1798 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1799 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1800 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1801 | return _resultobj; |
1802 | } | |
1803 | ||
9b3d3bc4 RD |
1804 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1805 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1806 | PyObject * _resultobj; |
9b3d3bc4 | 1807 | wxBitmap * _arg0; |
6999b0d8 | 1808 | long _arg1; |
9b3d3bc4 RD |
1809 | PyObject * _argo0 = 0; |
1810 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1811 | |
1812 | self = self; | |
9b3d3bc4 | 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1814 | return NULL; |
9b3d3bc4 RD |
1815 | if (_argo0) { |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1819 | return NULL; |
9b3d3bc4 | 1820 | } |
8ab979d7 | 1821 | } |
9b3d3bc4 | 1822 | { |
4268f798 | 1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1824 | wxBitmap_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 1825 | |
4268f798 | 1826 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1827 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1828 | } Py_INCREF(Py_None); |
1829 | _resultobj = Py_None; | |
1830 | return _resultobj; | |
6999b0d8 | 1831 | } |
9b3d3bc4 RD |
1832 | |
1833 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1834 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1835 | PyObject * _resultobj; | |
1836 | bool _result; | |
1837 | wxBitmap * _arg0; | |
1838 | PyObject * _argo0 = 0; | |
1839 | char *_kwnames[] = { "self", NULL }; | |
1840 | ||
1841 | self = self; | |
1842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1843 | return NULL; | |
1844 | if (_argo0) { | |
1845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1848 | return NULL; | |
1849 | } | |
1850 | } | |
cf694132 | 1851 | { |
4268f798 | 1852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1853 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 | 1854 | |
4268f798 | 1855 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1856 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1857 | } _resultobj = Py_BuildValue("i",_result); |
1858 | return _resultobj; | |
1859 | } | |
1860 | ||
1861 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1862 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject * _resultobj; | |
1864 | int _result; | |
1865 | wxBitmap * _arg0; | |
1866 | PyObject * _argo0 = 0; | |
1867 | char *_kwnames[] = { "self", NULL }; | |
1868 | ||
1869 | self = self; | |
1870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1871 | return NULL; | |
1872 | if (_argo0) { | |
1873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1876 | return NULL; | |
1877 | } | |
6999b0d8 RD |
1878 | } |
1879 | { | |
4268f798 | 1880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1881 | _result = (int )wxBitmap_GetWidth(_arg0); |
9b3d3bc4 | 1882 | |
4268f798 | 1883 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1884 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1885 | } _resultobj = Py_BuildValue("i",_result); |
1886 | return _resultobj; | |
6999b0d8 | 1887 | } |
9b3d3bc4 RD |
1888 | |
1889 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1890 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1891 | PyObject * _resultobj; | |
1892 | int _result; | |
1893 | wxBitmap * _arg0; | |
1894 | PyObject * _argo0 = 0; | |
1895 | char *_kwnames[] = { "self", NULL }; | |
1896 | ||
1897 | self = self; | |
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1899 | return NULL; | |
1900 | if (_argo0) { | |
1901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1904 | return NULL; | |
1905 | } | |
1906 | } | |
1907 | { | |
4268f798 | 1908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1909 | _result = (int )wxBitmap_GetHeight(_arg0); |
9b3d3bc4 | 1910 | |
4268f798 | 1911 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1912 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1913 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1914 | return _resultobj; |
1915 | } | |
1916 | ||
9b3d3bc4 RD |
1917 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1918 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1919 | PyObject * _resultobj; |
9b3d3bc4 RD |
1920 | int _result; |
1921 | wxBitmap * _arg0; | |
1d99702e | 1922 | PyObject * _argo0 = 0; |
6999b0d8 | 1923 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1924 | |
1925 | self = self; | |
9b3d3bc4 | 1926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1927 | return NULL; |
1d99702e RD |
1928 | if (_argo0) { |
1929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1932 | return NULL; |
1933 | } | |
1934 | } | |
cf694132 | 1935 | { |
4268f798 | 1936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1937 | _result = (int )wxBitmap_GetDepth(_arg0); |
9b3d3bc4 | 1938 | |
4268f798 | 1939 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1940 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1941 | } _resultobj = Py_BuildValue("i",_result); |
1942 | return _resultobj; | |
1943 | } | |
1944 | ||
1945 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1946 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1947 | PyObject * _resultobj; | |
1948 | wxBitmap * _arg0; | |
1949 | int _arg1; | |
1950 | PyObject * _argo0 = 0; | |
1951 | char *_kwnames[] = { "self","w", NULL }; | |
1952 | ||
1953 | self = self; | |
1954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1955 | return NULL; | |
1956 | if (_argo0) { | |
1957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1960 | return NULL; | |
1961 | } | |
1962 | } | |
1963 | { | |
4268f798 | 1964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1965 | wxBitmap_SetWidth(_arg0,_arg1); |
cf694132 | 1966 | |
4268f798 | 1967 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1968 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1969 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1970 | _resultobj = Py_None; |
1971 | return _resultobj; | |
1972 | } | |
1973 | ||
9b3d3bc4 RD |
1974 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1975 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1976 | PyObject * _resultobj; |
9b3d3bc4 RD |
1977 | wxBitmap * _arg0; |
1978 | int _arg1; | |
1d99702e | 1979 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1980 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
1981 | |
1982 | self = self; | |
9b3d3bc4 | 1983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1984 | return NULL; |
1d99702e RD |
1985 | if (_argo0) { |
1986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1989 | return NULL; |
1990 | } | |
1991 | } | |
6999b0d8 | 1992 | { |
4268f798 | 1993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1994 | wxBitmap_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 1995 | |
4268f798 | 1996 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1997 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1998 | } Py_INCREF(Py_None); |
1999 | _resultobj = Py_None; | |
2000 | return _resultobj; | |
2001 | } | |
2002 | ||
2003 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2004 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2005 | PyObject * _resultobj; | |
2006 | wxBitmap * _arg0; | |
2007 | int _arg1; | |
2008 | PyObject * _argo0 = 0; | |
2009 | char *_kwnames[] = { "self","d", NULL }; | |
2010 | ||
2011 | self = self; | |
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2013 | return NULL; | |
2014 | if (_argo0) { | |
2015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2018 | return NULL; |
9b3d3bc4 | 2019 | } |
6999b0d8 | 2020 | } |
cf694132 | 2021 | { |
4268f798 | 2022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2023 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 | 2024 | |
4268f798 | 2025 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2026 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2027 | } Py_INCREF(Py_None); |
2028 | _resultobj = Py_None; | |
2029 | return _resultobj; | |
2030 | } | |
2031 | ||
2032 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2033 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2034 | PyObject * _resultobj; | |
2035 | wxBitmap * _arg0; | |
2036 | wxSize * _arg1; | |
2037 | PyObject * _argo0 = 0; | |
2038 | wxSize temp; | |
2039 | PyObject * _obj1 = 0; | |
2040 | char *_kwnames[] = { "self","size", NULL }; | |
2041 | ||
2042 | self = self; | |
2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2044 | return NULL; | |
2045 | if (_argo0) { | |
2046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2049 | return NULL; | |
2050 | } | |
2051 | } | |
6999b0d8 | 2052 | { |
9b3d3bc4 RD |
2053 | _arg1 = &temp; |
2054 | if (! wxSize_helper(_obj1, &_arg1)) | |
2055 | return NULL; | |
6999b0d8 | 2056 | } |
9b3d3bc4 | 2057 | { |
4268f798 | 2058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2059 | wxBitmap_SetSize(_arg0,*_arg1); |
9b3d3bc4 | 2060 | |
4268f798 | 2061 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2062 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2063 | } Py_INCREF(Py_None); |
2064 | _resultobj = Py_None; | |
8ab979d7 RD |
2065 | return _resultobj; |
2066 | } | |
2067 | ||
f6bcfd97 BP |
2068 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2069 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2070 | PyObject * _resultobj; | |
2071 | wxBitmap * _result; | |
2072 | wxBitmap * _arg0; | |
2073 | wxRect * _arg1; | |
2074 | PyObject * _argo0 = 0; | |
2075 | wxRect temp; | |
2076 | PyObject * _obj1 = 0; | |
2077 | char *_kwnames[] = { "self","rect", NULL }; | |
2078 | char _ptemp[128]; | |
2079 | ||
2080 | self = self; | |
2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2082 | return NULL; | |
2083 | if (_argo0) { | |
2084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2087 | return NULL; | |
2088 | } | |
2089 | } | |
2090 | { | |
2091 | _arg1 = &temp; | |
2092 | if (! wxRect_helper(_obj1, &_arg1)) | |
2093 | return NULL; | |
2094 | } | |
2095 | { | |
4268f798 | 2096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2097 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
f6bcfd97 | 2098 | |
4268f798 | 2099 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2100 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2101 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2102 | _resultobj = Py_BuildValue("s",_ptemp); | |
2103 | return _resultobj; | |
2104 | } | |
2105 | ||
2106 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2107 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2108 | PyObject * _resultobj; | |
2109 | bool _result; | |
2110 | wxBitmap * _arg0; | |
2111 | wxIcon * _arg1; | |
2112 | PyObject * _argo0 = 0; | |
2113 | PyObject * _argo1 = 0; | |
2114 | char *_kwnames[] = { "self","icon", NULL }; | |
2115 | ||
2116 | self = self; | |
2117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2118 | return NULL; | |
2119 | if (_argo0) { | |
2120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2123 | return NULL; | |
2124 | } | |
2125 | } | |
2126 | if (_argo1) { | |
2127 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2128 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2130 | return NULL; | |
2131 | } | |
2132 | } | |
2133 | { | |
4268f798 | 2134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2135 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
f6bcfd97 | 2136 | |
4268f798 | 2137 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2138 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2139 | } _resultobj = Py_BuildValue("i",_result); |
2140 | return _resultobj; | |
2141 | } | |
2142 | ||
2143 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2144 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2145 | PyObject * _resultobj; | |
2146 | bool _result; | |
2147 | wxBitmap * _arg0; | |
2148 | wxCursor * _arg1; | |
2149 | PyObject * _argo0 = 0; | |
2150 | PyObject * _argo1 = 0; | |
2151 | char *_kwnames[] = { "self","cursor", NULL }; | |
2152 | ||
2153 | self = self; | |
2154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2155 | return NULL; | |
2156 | if (_argo0) { | |
2157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2160 | return NULL; | |
2161 | } | |
2162 | } | |
2163 | if (_argo1) { | |
2164 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2165 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
2167 | return NULL; | |
2168 | } | |
2169 | } | |
2170 | { | |
4268f798 | 2171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2172 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); |
f6bcfd97 | 2173 | |
4268f798 | 2174 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2175 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2176 | } _resultobj = Py_BuildValue("i",_result); |
2177 | return _resultobj; | |
2178 | } | |
2179 | ||
2180 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2181 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2182 | PyObject * _resultobj; | |
2183 | int _result; | |
2184 | wxBitmap * _arg0; | |
2185 | PyObject * _argo0 = 0; | |
2186 | char *_kwnames[] = { "self", NULL }; | |
2187 | ||
2188 | self = self; | |
2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2190 | return NULL; | |
2191 | if (_argo0) { | |
2192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2195 | return NULL; | |
2196 | } | |
2197 | } | |
2198 | { | |
4268f798 | 2199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2200 | _result = (int )wxBitmap_GetQuality(_arg0); |
f6bcfd97 | 2201 | |
4268f798 | 2202 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2203 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2204 | } _resultobj = Py_BuildValue("i",_result); |
2205 | return _resultobj; | |
2206 | } | |
2207 | ||
2208 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2209 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2210 | PyObject * _resultobj; | |
2211 | wxBitmap * _arg0; | |
2212 | int _arg1; | |
2213 | PyObject * _argo0 = 0; | |
2214 | char *_kwnames[] = { "self","q", NULL }; | |
2215 | ||
2216 | self = self; | |
2217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2218 | return NULL; | |
2219 | if (_argo0) { | |
2220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2223 | return NULL; | |
2224 | } | |
2225 | } | |
2226 | { | |
4268f798 | 2227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2228 | wxBitmap_SetQuality(_arg0,_arg1); |
f6bcfd97 | 2229 | |
4268f798 | 2230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2231 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2232 | } Py_INCREF(Py_None); |
2233 | _resultobj = Py_None; | |
2234 | return _resultobj; | |
2235 | } | |
2236 | ||
9416aa89 RD |
2237 | static void *SwigwxMaskTowxObject(void *ptr) { |
2238 | wxMask *src; | |
2239 | wxObject *dest; | |
2240 | src = (wxMask *) ptr; | |
2241 | dest = (wxObject *) src; | |
2242 | return (void *) dest; | |
2243 | } | |
2244 | ||
9b3d3bc4 RD |
2245 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2246 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2247 | PyObject * _resultobj; | |
2248 | wxMask * _result; | |
2249 | wxBitmap * _arg0; | |
2250 | PyObject * _argo0 = 0; | |
2251 | char *_kwnames[] = { "bitmap", NULL }; | |
2252 | char _ptemp[128]; | |
2253 | ||
2254 | self = self; | |
2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2256 | return NULL; | |
2257 | if (_argo0) { | |
2258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2261 | return NULL; | |
2262 | } | |
2263 | } | |
2264 | { | |
4268f798 | 2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2266 | _result = (wxMask *)new_wxMask(*_arg0); |
9b3d3bc4 | 2267 | |
4268f798 | 2268 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2269 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2270 | } if (_result) { |
2271 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2272 | _resultobj = Py_BuildValue("s",_ptemp); | |
2273 | } else { | |
2274 | Py_INCREF(Py_None); | |
2275 | _resultobj = Py_None; | |
2276 | } | |
2277 | return _resultobj; | |
8ab979d7 RD |
2278 | } |
2279 | ||
96bfd053 RD |
2280 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2281 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2282 | PyObject * _resultobj; | |
2283 | wxMask * _arg0; | |
2284 | PyObject * _argo0 = 0; | |
2285 | char *_kwnames[] = { "self", NULL }; | |
2286 | ||
2287 | self = self; | |
2288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2289 | return NULL; | |
2290 | if (_argo0) { | |
2291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2294 | return NULL; | |
2295 | } | |
2296 | } | |
2297 | { | |
4268f798 | 2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2299 | wxMask_Destroy(_arg0); |
96bfd053 | 2300 | |
4268f798 | 2301 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2302 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2303 | } Py_INCREF(Py_None); |
2304 | _resultobj = Py_None; | |
2305 | return _resultobj; | |
2306 | } | |
2307 | ||
9416aa89 RD |
2308 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2309 | wxIcon *src; | |
2310 | wxGDIObject *dest; | |
2311 | src = (wxIcon *) ptr; | |
2312 | dest = (wxGDIObject *) src; | |
2313 | return (void *) dest; | |
2314 | } | |
2315 | ||
2316 | static void *SwigwxIconTowxObject(void *ptr) { | |
2317 | wxIcon *src; | |
2318 | wxObject *dest; | |
2319 | src = (wxIcon *) ptr; | |
2320 | dest = (wxObject *) src; | |
2321 | return (void *) dest; | |
2322 | } | |
2323 | ||
9b3d3bc4 RD |
2324 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2325 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2326 | PyObject * _resultobj; |
9b3d3bc4 | 2327 | wxIcon * _result; |
8ab979d7 RD |
2328 | wxString * _arg0; |
2329 | long _arg1; | |
9b3d3bc4 RD |
2330 | int _arg2 = (int ) -1; |
2331 | int _arg3 = (int ) -1; | |
8ab979d7 | 2332 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2333 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2334 | char _ptemp[128]; |
2335 | ||
2336 | self = self; | |
9b3d3bc4 | 2337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2338 | return NULL; |
2339 | { | |
c8bc7bb8 RD |
2340 | _arg0 = wxString_in_helper(_obj0); |
2341 | if (_arg0 == NULL) | |
185d7c3e | 2342 | return NULL; |
8ab979d7 | 2343 | } |
cf694132 | 2344 | { |
4268f798 | 2345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2346 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 | 2347 | |
4268f798 | 2348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2349 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2350 | } if (_result) { |
9b3d3bc4 | 2351 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2352 | _resultobj = Py_BuildValue("s",_ptemp); |
2353 | } else { | |
2354 | Py_INCREF(Py_None); | |
2355 | _resultobj = Py_None; | |
2356 | } | |
8ab979d7 RD |
2357 | { |
2358 | if (_obj0) | |
2359 | delete _arg0; | |
2360 | } | |
2361 | return _resultobj; | |
2362 | } | |
2363 | ||
9b3d3bc4 RD |
2364 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2365 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2366 | PyObject * _resultobj; |
9b3d3bc4 | 2367 | wxIcon * _arg0; |
1d99702e | 2368 | PyObject * _argo0 = 0; |
1afc06c2 | 2369 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2370 | |
2371 | self = self; | |
9b3d3bc4 | 2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2373 | return NULL; |
1d99702e RD |
2374 | if (_argo0) { |
2375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2378 | return NULL; |
2379 | } | |
2380 | } | |
cf694132 | 2381 | { |
4268f798 | 2382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2383 | delete_wxIcon(_arg0); |
9b3d3bc4 | 2384 | |
4268f798 | 2385 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2386 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2387 | } Py_INCREF(Py_None); |
2388 | _resultobj = Py_None; | |
2389 | return _resultobj; | |
2390 | } | |
2391 | ||
2392 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2393 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2394 | PyObject * _resultobj; | |
2395 | bool _result; | |
2396 | wxIcon * _arg0; | |
2397 | wxString * _arg1; | |
2398 | long _arg2; | |
2399 | PyObject * _argo0 = 0; | |
2400 | PyObject * _obj1 = 0; | |
2401 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2402 | ||
2403 | self = self; | |
2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2405 | return NULL; | |
2406 | if (_argo0) { | |
2407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2410 | return NULL; | |
2411 | } | |
2412 | } | |
2413 | { | |
c8bc7bb8 RD |
2414 | _arg1 = wxString_in_helper(_obj1); |
2415 | if (_arg1 == NULL) | |
185d7c3e | 2416 | return NULL; |
9b3d3bc4 RD |
2417 | } |
2418 | { | |
4268f798 | 2419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2420 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
9b3d3bc4 | 2421 | |
4268f798 | 2422 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2423 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2424 | } _resultobj = Py_BuildValue("i",_result); |
2425 | { | |
2426 | if (_obj1) | |
2427 | delete _arg1; | |
2428 | } | |
2429 | return _resultobj; | |
2430 | } | |
2431 | ||
2432 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2433 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2434 | PyObject * _resultobj; | |
2435 | long _result; | |
2436 | wxIcon * _arg0; | |
2437 | PyObject * _argo0 = 0; | |
2438 | char *_kwnames[] = { "self", NULL }; | |
2439 | ||
2440 | self = self; | |
2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2442 | return NULL; | |
2443 | if (_argo0) { | |
2444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2447 | return NULL; | |
2448 | } | |
2449 | } | |
2450 | { | |
4268f798 | 2451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2452 | _result = (long )wxIcon_GetHandle(_arg0); |
9b3d3bc4 | 2453 | |
4268f798 | 2454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2455 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2456 | } _resultobj = Py_BuildValue("l",_result); |
2457 | return _resultobj; | |
2458 | } | |
2459 | ||
2460 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2461 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2462 | PyObject * _resultobj; | |
2463 | wxIcon * _arg0; | |
2464 | long _arg1; | |
2465 | PyObject * _argo0 = 0; | |
2466 | char *_kwnames[] = { "self","handle", NULL }; | |
2467 | ||
2468 | self = self; | |
2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2470 | return NULL; | |
2471 | if (_argo0) { | |
2472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2475 | return NULL; | |
2476 | } | |
2477 | } | |
2478 | { | |
4268f798 | 2479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2480 | wxIcon_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 2481 | |
4268f798 | 2482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2483 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2484 | } Py_INCREF(Py_None); |
2485 | _resultobj = Py_None; | |
2486 | return _resultobj; | |
2487 | } | |
2488 | ||
2489 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2490 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2491 | PyObject * _resultobj; | |
2492 | bool _result; | |
2493 | wxIcon * _arg0; | |
2494 | PyObject * _argo0 = 0; | |
2495 | char *_kwnames[] = { "self", NULL }; | |
2496 | ||
2497 | self = self; | |
2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2499 | return NULL; | |
2500 | if (_argo0) { | |
2501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2504 | return NULL; | |
2505 | } | |
2506 | } | |
2507 | { | |
4268f798 | 2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2509 | _result = (bool )wxIcon_Ok(_arg0); |
9b3d3bc4 | 2510 | |
4268f798 | 2511 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2512 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2513 | } _resultobj = Py_BuildValue("i",_result); |
2514 | return _resultobj; | |
2515 | } | |
2516 | ||
2517 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2518 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2519 | PyObject * _resultobj; | |
2520 | int _result; | |
2521 | wxIcon * _arg0; | |
2522 | PyObject * _argo0 = 0; | |
2523 | char *_kwnames[] = { "self", NULL }; | |
2524 | ||
2525 | self = self; | |
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2527 | return NULL; | |
2528 | if (_argo0) { | |
2529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2532 | return NULL; | |
2533 | } | |
2534 | } | |
2535 | { | |
4268f798 | 2536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2537 | _result = (int )wxIcon_GetWidth(_arg0); |
9b3d3bc4 | 2538 | |
4268f798 | 2539 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2540 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2541 | } _resultobj = Py_BuildValue("i",_result); |
2542 | return _resultobj; | |
2543 | } | |
2544 | ||
2545 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2546 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2547 | PyObject * _resultobj; | |
2548 | int _result; | |
2549 | wxIcon * _arg0; | |
2550 | PyObject * _argo0 = 0; | |
2551 | char *_kwnames[] = { "self", NULL }; | |
2552 | ||
2553 | self = self; | |
2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2555 | return NULL; | |
2556 | if (_argo0) { | |
2557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2560 | return NULL; | |
2561 | } | |
2562 | } | |
2563 | { | |
4268f798 | 2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2565 | _result = (int )wxIcon_GetHeight(_arg0); |
9b3d3bc4 | 2566 | |
4268f798 | 2567 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2568 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2569 | } _resultobj = Py_BuildValue("i",_result); |
2570 | return _resultobj; | |
2571 | } | |
2572 | ||
2573 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2574 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2575 | PyObject * _resultobj; | |
2576 | int _result; | |
2577 | wxIcon * _arg0; | |
2578 | PyObject * _argo0 = 0; | |
2579 | char *_kwnames[] = { "self", NULL }; | |
2580 | ||
2581 | self = self; | |
2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2583 | return NULL; | |
2584 | if (_argo0) { | |
2585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2588 | return NULL; | |
2589 | } | |
2590 | } | |
2591 | { | |
4268f798 | 2592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2593 | _result = (int )wxIcon_GetDepth(_arg0); |
9b3d3bc4 | 2594 | |
4268f798 | 2595 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2596 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2597 | } _resultobj = Py_BuildValue("i",_result); |
2598 | return _resultobj; | |
2599 | } | |
2600 | ||
2601 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2602 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2603 | PyObject * _resultobj; | |
2604 | wxIcon * _arg0; | |
2605 | int _arg1; | |
2606 | PyObject * _argo0 = 0; | |
2607 | char *_kwnames[] = { "self","w", NULL }; | |
2608 | ||
2609 | self = self; | |
2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2611 | return NULL; | |
2612 | if (_argo0) { | |
2613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2616 | return NULL; | |
2617 | } | |
2618 | } | |
2619 | { | |
4268f798 | 2620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2621 | wxIcon_SetWidth(_arg0,_arg1); |
9b3d3bc4 | 2622 | |
4268f798 | 2623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2624 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2625 | } Py_INCREF(Py_None); |
2626 | _resultobj = Py_None; | |
2627 | return _resultobj; | |
2628 | } | |
2629 | ||
2630 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2631 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2632 | PyObject * _resultobj; | |
2633 | wxIcon * _arg0; | |
2634 | int _arg1; | |
2635 | PyObject * _argo0 = 0; | |
2636 | char *_kwnames[] = { "self","h", NULL }; | |
2637 | ||
2638 | self = self; | |
2639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2640 | return NULL; | |
2641 | if (_argo0) { | |
2642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2645 | return NULL; | |
2646 | } | |
2647 | } | |
2648 | { | |
4268f798 | 2649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2650 | wxIcon_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 2651 | |
4268f798 | 2652 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2653 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2654 | } Py_INCREF(Py_None); |
2655 | _resultobj = Py_None; | |
2656 | return _resultobj; | |
2657 | } | |
2658 | ||
2659 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2660 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2661 | PyObject * _resultobj; | |
2662 | wxIcon * _arg0; | |
2663 | int _arg1; | |
2664 | PyObject * _argo0 = 0; | |
2665 | char *_kwnames[] = { "self","d", NULL }; | |
2666 | ||
2667 | self = self; | |
2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2669 | return NULL; | |
2670 | if (_argo0) { | |
2671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
2677 | { | |
4268f798 | 2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2679 | wxIcon_SetDepth(_arg0,_arg1); |
9b3d3bc4 | 2680 | |
4268f798 | 2681 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2682 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2683 | } Py_INCREF(Py_None); |
2684 | _resultobj = Py_None; | |
2685 | return _resultobj; | |
2686 | } | |
2687 | ||
2688 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2689 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2690 | PyObject * _resultobj; | |
2691 | wxIcon * _arg0; | |
2692 | wxSize * _arg1; | |
2693 | PyObject * _argo0 = 0; | |
2694 | wxSize temp; | |
2695 | PyObject * _obj1 = 0; | |
2696 | char *_kwnames[] = { "self","size", NULL }; | |
2697 | ||
2698 | self = self; | |
2699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2700 | return NULL; | |
2701 | if (_argo0) { | |
2702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2705 | return NULL; | |
2706 | } | |
2707 | } | |
2708 | { | |
2709 | _arg1 = &temp; | |
2710 | if (! wxSize_helper(_obj1, &_arg1)) | |
2711 | return NULL; | |
2712 | } | |
2713 | { | |
4268f798 | 2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2715 | wxIcon_SetSize(_arg0,*_arg1); |
9b3d3bc4 | 2716 | |
4268f798 | 2717 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2718 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2719 | } Py_INCREF(Py_None); |
2720 | _resultobj = Py_None; | |
2721 | return _resultobj; | |
2722 | } | |
2723 | ||
96bfd053 RD |
2724 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2725 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2726 | PyObject * _resultobj; | |
2727 | wxIcon * _arg0; | |
2728 | wxBitmap * _arg1; | |
2729 | PyObject * _argo0 = 0; | |
2730 | PyObject * _argo1 = 0; | |
2731 | char *_kwnames[] = { "self","bmp", NULL }; | |
2732 | ||
2733 | self = self; | |
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2735 | return NULL; | |
2736 | if (_argo0) { | |
2737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2740 | return NULL; | |
2741 | } | |
2742 | } | |
2743 | if (_argo1) { | |
2744 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2745 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2747 | return NULL; | |
2748 | } | |
2749 | } | |
2750 | { | |
4268f798 | 2751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2752 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
96bfd053 | 2753 | |
4268f798 | 2754 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2755 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2756 | } Py_INCREF(Py_None); |
2757 | _resultobj = Py_None; | |
2758 | return _resultobj; | |
2759 | } | |
2760 | ||
9416aa89 RD |
2761 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2762 | wxCursor *src; | |
2763 | wxGDIObject *dest; | |
2764 | src = (wxCursor *) ptr; | |
2765 | dest = (wxGDIObject *) src; | |
2766 | return (void *) dest; | |
2767 | } | |
2768 | ||
2769 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2770 | wxCursor *src; | |
2771 | wxObject *dest; | |
2772 | src = (wxCursor *) ptr; | |
2773 | dest = (wxObject *) src; | |
2774 | return (void *) dest; | |
2775 | } | |
2776 | ||
9b3d3bc4 RD |
2777 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2778 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2779 | PyObject * _resultobj; | |
2780 | wxCursor * _result; | |
2781 | wxString * _arg0; | |
2782 | long _arg1; | |
2783 | int _arg2 = (int ) 0; | |
2784 | int _arg3 = (int ) 0; | |
2785 | PyObject * _obj0 = 0; | |
2786 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2787 | char _ptemp[128]; | |
2788 | ||
2789 | self = self; | |
2790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2791 | return NULL; | |
2792 | { | |
c8bc7bb8 RD |
2793 | _arg0 = wxString_in_helper(_obj0); |
2794 | if (_arg0 == NULL) | |
185d7c3e | 2795 | return NULL; |
9b3d3bc4 RD |
2796 | } |
2797 | { | |
4268f798 | 2798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2799 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); |
9b3d3bc4 | 2800 | |
4268f798 | 2801 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2802 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2803 | } if (_result) { |
2804 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2805 | _resultobj = Py_BuildValue("s",_ptemp); | |
2806 | } else { | |
2807 | Py_INCREF(Py_None); | |
2808 | _resultobj = Py_None; | |
2809 | } | |
2810 | { | |
2811 | if (_obj0) | |
2812 | delete _arg0; | |
2813 | } | |
2814 | return _resultobj; | |
2815 | } | |
2816 | ||
2817 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2818 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2819 | PyObject * _resultobj; | |
2820 | wxCursor * _arg0; | |
2821 | PyObject * _argo0 = 0; | |
2822 | char *_kwnames[] = { "self", NULL }; | |
2823 | ||
2824 | self = self; | |
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2826 | return NULL; | |
2827 | if (_argo0) { | |
2828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2831 | return NULL; | |
2832 | } | |
2833 | } | |
2834 | { | |
4268f798 | 2835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2836 | delete_wxCursor(_arg0); |
9b3d3bc4 | 2837 | |
4268f798 | 2838 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2839 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2840 | } Py_INCREF(Py_None); |
2841 | _resultobj = Py_None; | |
2842 | return _resultobj; | |
2843 | } | |
2844 | ||
2845 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2846 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2847 | PyObject * _resultobj; | |
2848 | long _result; | |
2849 | wxCursor * _arg0; | |
2850 | PyObject * _argo0 = 0; | |
2851 | char *_kwnames[] = { "self", NULL }; | |
2852 | ||
2853 | self = self; | |
2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2855 | return NULL; | |
2856 | if (_argo0) { | |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2860 | return NULL; | |
2861 | } | |
2862 | } | |
2863 | { | |
4268f798 | 2864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2865 | _result = (long )wxCursor_GetHandle(_arg0); |
9b3d3bc4 | 2866 | |
4268f798 | 2867 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2868 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2869 | } _resultobj = Py_BuildValue("l",_result); |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
2873 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2874 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject * _resultobj; | |
2876 | wxCursor * _arg0; | |
2877 | long _arg1; | |
2878 | PyObject * _argo0 = 0; | |
2879 | char *_kwnames[] = { "self","handle", NULL }; | |
2880 | ||
2881 | self = self; | |
2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2883 | return NULL; | |
2884 | if (_argo0) { | |
2885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
2888 | return NULL; | |
2889 | } | |
2890 | } | |
2891 | { | |
4268f798 | 2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2893 | wxCursor_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 2894 | |
4268f798 | 2895 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2896 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2897 | } Py_INCREF(Py_None); |
2898 | _resultobj = Py_None; | |
2899 | return _resultobj; | |
2900 | } | |
2901 | ||
2902 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2903 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2904 | PyObject * _resultobj; | |
2905 | bool _result; | |
2906 | wxCursor * _arg0; | |
2907 | PyObject * _argo0 = 0; | |
2908 | char *_kwnames[] = { "self", NULL }; | |
2909 | ||
2910 | self = self; | |
2911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2912 | return NULL; | |
2913 | if (_argo0) { | |
2914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2917 | return NULL; | |
2918 | } | |
2919 | } | |
2920 | { | |
4268f798 | 2921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2922 | _result = (bool )wxCursor_Ok(_arg0); |
9b3d3bc4 | 2923 | |
4268f798 | 2924 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2925 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2926 | } _resultobj = Py_BuildValue("i",_result); |
2927 | return _resultobj; | |
2928 | } | |
2929 | ||
2930 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2931 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2932 | PyObject * _resultobj; | |
2933 | int _result; | |
2934 | wxCursor * _arg0; | |
2935 | PyObject * _argo0 = 0; | |
2936 | char *_kwnames[] = { "self", NULL }; | |
2937 | ||
2938 | self = self; | |
2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
2940 | return NULL; | |
2941 | if (_argo0) { | |
2942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
2945 | return NULL; | |
2946 | } | |
2947 | } | |
2948 | { | |
4268f798 | 2949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2950 | _result = (int )wxCursor_GetWidth(_arg0); |
9b3d3bc4 | 2951 | |
4268f798 | 2952 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2953 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2954 | } _resultobj = Py_BuildValue("i",_result); |
2955 | return _resultobj; | |
2956 | } | |
2957 | ||
2958 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2959 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2960 | PyObject * _resultobj; | |
2961 | int _result; | |
2962 | wxCursor * _arg0; | |
2963 | PyObject * _argo0 = 0; | |
2964 | char *_kwnames[] = { "self", NULL }; | |
2965 | ||
2966 | self = self; | |
2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
2968 | return NULL; | |
2969 | if (_argo0) { | |
2970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
2973 | return NULL; | |
2974 | } | |
2975 | } | |
2976 | { | |
4268f798 | 2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2978 | _result = (int )wxCursor_GetHeight(_arg0); |
9b3d3bc4 | 2979 | |
4268f798 | 2980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2981 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2982 | } _resultobj = Py_BuildValue("i",_result); |
2983 | return _resultobj; | |
2984 | } | |
2985 | ||
2986 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2987 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2988 | PyObject * _resultobj; | |
2989 | int _result; | |
2990 | wxCursor * _arg0; | |
2991 | PyObject * _argo0 = 0; | |
2992 | char *_kwnames[] = { "self", NULL }; | |
2993 | ||
2994 | self = self; | |
2995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
2996 | return NULL; | |
2997 | if (_argo0) { | |
2998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3001 | return NULL; | |
3002 | } | |
3003 | } | |
3004 | { | |
4268f798 | 3005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3006 | _result = (int )wxCursor_GetDepth(_arg0); |
9b3d3bc4 | 3007 | |
4268f798 | 3008 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3009 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3010 | } _resultobj = Py_BuildValue("i",_result); |
3011 | return _resultobj; | |
3012 | } | |
3013 | ||
3014 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3015 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject * _resultobj; | |
3017 | wxCursor * _arg0; | |
3018 | int _arg1; | |
3019 | PyObject * _argo0 = 0; | |
3020 | char *_kwnames[] = { "self","w", NULL }; | |
3021 | ||
3022 | self = self; | |
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3024 | return NULL; | |
3025 | if (_argo0) { | |
3026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
3029 | return NULL; | |
3030 | } | |
3031 | } | |
3032 | { | |
4268f798 | 3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3034 | wxCursor_SetWidth(_arg0,_arg1); |
9b3d3bc4 | 3035 | |
4268f798 | 3036 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3037 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3038 | } Py_INCREF(Py_None); |
3039 | _resultobj = Py_None; | |
3040 | return _resultobj; | |
3041 | } | |
3042 | ||
3043 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3044 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3045 | PyObject * _resultobj; | |
3046 | wxCursor * _arg0; | |
3047 | int _arg1; | |
3048 | PyObject * _argo0 = 0; | |
3049 | char *_kwnames[] = { "self","h", NULL }; | |
3050 | ||
3051 | self = self; | |
3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
3053 | return NULL; | |
3054 | if (_argo0) { | |
3055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
3058 | return NULL; | |
3059 | } | |
3060 | } | |
3061 | { | |
4268f798 | 3062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3063 | wxCursor_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 3064 | |
4268f798 | 3065 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3066 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3067 | } Py_INCREF(Py_None); |
3068 | _resultobj = Py_None; | |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3073 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject * _resultobj; | |
3075 | wxCursor * _arg0; | |
3076 | int _arg1; | |
3077 | PyObject * _argo0 = 0; | |
3078 | char *_kwnames[] = { "self","d", NULL }; | |
3079 | ||
3080 | self = self; | |
3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_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_SetDepth. Expected _wxCursor_p."); | |
3087 | return NULL; | |
3088 | } | |
3089 | } | |
3090 | { | |
4268f798 | 3091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3092 | wxCursor_SetDepth(_arg0,_arg1); |
9b3d3bc4 | 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_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3102 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject * _resultobj; | |
3104 | wxCursor * _arg0; | |
3105 | wxSize * _arg1; | |
3106 | PyObject * _argo0 = 0; | |
3107 | wxSize temp; | |
3108 | PyObject * _obj1 = 0; | |
3109 | char *_kwnames[] = { "self","size", NULL }; | |
3110 | ||
3111 | self = self; | |
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3113 | return NULL; | |
3114 | if (_argo0) { | |
3115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3118 | return NULL; | |
3119 | } | |
3120 | } | |
3121 | { | |
3122 | _arg1 = &temp; | |
3123 | if (! wxSize_helper(_obj1, &_arg1)) | |
3124 | return NULL; | |
3125 | } | |
3126 | { | |
4268f798 | 3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3128 | wxCursor_SetSize(_arg0,*_arg1); |
cf694132 | 3129 | |
4268f798 | 3130 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3131 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3132 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3133 | _resultobj = Py_None; |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
b5a5d647 RD |
3137 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) |
3138 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject * _resultobj; | |
3140 | wxNativeFontInfo * _result; | |
3141 | char *_kwnames[] = { NULL }; | |
3142 | char _ptemp[128]; | |
3143 | ||
3144 | self = self; | |
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
3146 | return NULL; | |
3147 | { | |
3148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3149 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); |
b5a5d647 RD |
3150 | |
3151 | wxPyEndAllowThreads(__tstate); | |
3152 | if (PyErr_Occurred()) return NULL; | |
3153 | } if (_result) { | |
3154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3155 | _resultobj = Py_BuildValue("s",_ptemp); | |
3156 | } else { | |
3157 | Py_INCREF(Py_None); | |
3158 | _resultobj = Py_None; | |
3159 | } | |
3160 | return _resultobj; | |
3161 | } | |
3162 | ||
3163 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
3164 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3165 | PyObject * _resultobj; | |
3166 | wxNativeFontInfo * _arg0; | |
3167 | PyObject * _argo0 = 0; | |
3168 | char *_kwnames[] = { "self", NULL }; | |
3169 | ||
3170 | self = self; | |
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
3172 | return NULL; | |
3173 | if (_argo0) { | |
3174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
3177 | return NULL; | |
3178 | } | |
3179 | } | |
3180 | { | |
3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3182 | wxNativeFontInfo_Init(_arg0); |
b5a5d647 RD |
3183 | |
3184 | wxPyEndAllowThreads(__tstate); | |
3185 | if (PyErr_Occurred()) return NULL; | |
3186 | } Py_INCREF(Py_None); | |
3187 | _resultobj = Py_None; | |
3188 | return _resultobj; | |
3189 | } | |
3190 | ||
3191 | #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3192 | static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3193 | PyObject * _resultobj; | |
3194 | int _result; | |
3195 | wxNativeFontInfo * _arg0; | |
3196 | PyObject * _argo0 = 0; | |
3197 | char *_kwnames[] = { "self", NULL }; | |
3198 | ||
3199 | self = self; | |
3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0)) | |
3201 | return NULL; | |
3202 | if (_argo0) { | |
3203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p."); | |
3206 | return NULL; | |
3207 | } | |
3208 | } | |
3209 | { | |
3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3211 | _result = (int )wxNativeFontInfo_GetPointSize(_arg0); |
b5a5d647 RD |
3212 | |
3213 | wxPyEndAllowThreads(__tstate); | |
3214 | if (PyErr_Occurred()) return NULL; | |
3215 | } _resultobj = Py_BuildValue("i",_result); | |
3216 | return _resultobj; | |
3217 | } | |
3218 | ||
3219 | #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3220 | static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3221 | PyObject * _resultobj; | |
3222 | wxFontStyle _result; | |
3223 | wxNativeFontInfo * _arg0; | |
3224 | PyObject * _argo0 = 0; | |
3225 | char *_kwnames[] = { "self", NULL }; | |
3226 | ||
3227 | self = self; | |
3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0)) | |
3229 | return NULL; | |
3230 | if (_argo0) { | |
3231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p."); | |
3234 | return NULL; | |
3235 | } | |
3236 | } | |
3237 | { | |
3238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3239 | _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0); |
b5a5d647 RD |
3240 | |
3241 | wxPyEndAllowThreads(__tstate); | |
3242 | if (PyErr_Occurred()) return NULL; | |
3243 | } _resultobj = Py_BuildValue("i",_result); | |
3244 | return _resultobj; | |
3245 | } | |
3246 | ||
3247 | #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3248 | static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3249 | PyObject * _resultobj; | |
3250 | wxFontWeight _result; | |
3251 | wxNativeFontInfo * _arg0; | |
3252 | PyObject * _argo0 = 0; | |
3253 | char *_kwnames[] = { "self", NULL }; | |
3254 | ||
3255 | self = self; | |
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0)) | |
3257 | return NULL; | |
3258 | if (_argo0) { | |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | { | |
3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3267 | _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0); |
b5a5d647 RD |
3268 | |
3269 | wxPyEndAllowThreads(__tstate); | |
3270 | if (PyErr_Occurred()) return NULL; | |
3271 | } _resultobj = Py_BuildValue("i",_result); | |
3272 | return _resultobj; | |
3273 | } | |
3274 | ||
3275 | #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3276 | static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3277 | PyObject * _resultobj; | |
3278 | bool _result; | |
3279 | wxNativeFontInfo * _arg0; | |
3280 | PyObject * _argo0 = 0; | |
3281 | char *_kwnames[] = { "self", NULL }; | |
3282 | ||
3283 | self = self; | |
3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0)) | |
3285 | return NULL; | |
3286 | if (_argo0) { | |
3287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p."); | |
3290 | return NULL; | |
3291 | } | |
3292 | } | |
3293 | { | |
3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3295 | _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0); |
b5a5d647 RD |
3296 | |
3297 | wxPyEndAllowThreads(__tstate); | |
3298 | if (PyErr_Occurred()) return NULL; | |
3299 | } _resultobj = Py_BuildValue("i",_result); | |
3300 | return _resultobj; | |
3301 | } | |
3302 | ||
3303 | #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3304 | static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject * _resultobj; | |
3306 | wxString * _result; | |
3307 | wxNativeFontInfo * _arg0; | |
3308 | PyObject * _argo0 = 0; | |
3309 | char *_kwnames[] = { "self", NULL }; | |
3310 | ||
3311 | self = self; | |
3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0)) | |
3313 | return NULL; | |
3314 | if (_argo0) { | |
3315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p."); | |
3318 | return NULL; | |
3319 | } | |
3320 | } | |
3321 | { | |
3322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3323 | _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0)); |
b5a5d647 RD |
3324 | |
3325 | wxPyEndAllowThreads(__tstate); | |
3326 | if (PyErr_Occurred()) return NULL; | |
3327 | }{ | |
c8bc7bb8 RD |
3328 | #if wxUSE_UNICODE |
3329 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3330 | #else | |
b5a5d647 | 3331 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3332 | #endif |
b5a5d647 RD |
3333 | } |
3334 | { | |
3335 | delete _result; | |
3336 | } | |
3337 | return _resultobj; | |
3338 | } | |
3339 | ||
3340 | #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3341 | static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3342 | PyObject * _resultobj; | |
3343 | wxFontFamily _result; | |
3344 | wxNativeFontInfo * _arg0; | |
3345 | PyObject * _argo0 = 0; | |
3346 | char *_kwnames[] = { "self", NULL }; | |
3347 | ||
3348 | self = self; | |
3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0)) | |
3350 | return NULL; | |
3351 | if (_argo0) { | |
3352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p."); | |
3355 | return NULL; | |
3356 | } | |
3357 | } | |
3358 | { | |
3359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3360 | _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0); |
b5a5d647 RD |
3361 | |
3362 | wxPyEndAllowThreads(__tstate); | |
3363 | if (PyErr_Occurred()) return NULL; | |
3364 | } _resultobj = Py_BuildValue("i",_result); | |
3365 | return _resultobj; | |
3366 | } | |
3367 | ||
3368 | #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3369 | static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3370 | PyObject * _resultobj; | |
3371 | wxFontEncoding _result; | |
3372 | wxNativeFontInfo * _arg0; | |
3373 | PyObject * _argo0 = 0; | |
3374 | char *_kwnames[] = { "self", NULL }; | |
3375 | ||
3376 | self = self; | |
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0)) | |
3378 | return NULL; | |
3379 | if (_argo0) { | |
3380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p."); | |
3383 | return NULL; | |
3384 | } | |
3385 | } | |
3386 | { | |
3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3388 | _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0); |
b5a5d647 RD |
3389 | |
3390 | wxPyEndAllowThreads(__tstate); | |
3391 | if (PyErr_Occurred()) return NULL; | |
3392 | } _resultobj = Py_BuildValue("i",_result); | |
3393 | return _resultobj; | |
3394 | } | |
3395 | ||
3396 | #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
3397 | static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3398 | PyObject * _resultobj; | |
3399 | wxNativeFontInfo * _arg0; | |
3400 | int _arg1; | |
3401 | PyObject * _argo0 = 0; | |
3402 | char *_kwnames[] = { "self","pointsize", NULL }; | |
3403 | ||
3404 | self = self; | |
3405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
3406 | return NULL; | |
3407 | if (_argo0) { | |
3408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p."); | |
3411 | return NULL; | |
3412 | } | |
3413 | } | |
3414 | { | |
3415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3416 | wxNativeFontInfo_SetPointSize(_arg0,_arg1); |
b5a5d647 RD |
3417 | |
3418 | wxPyEndAllowThreads(__tstate); | |
3419 | if (PyErr_Occurred()) return NULL; | |
3420 | } Py_INCREF(Py_None); | |
3421 | _resultobj = Py_None; | |
3422 | return _resultobj; | |
3423 | } | |
3424 | ||
3425 | #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
3426 | static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject * _resultobj; | |
3428 | wxNativeFontInfo * _arg0; | |
3429 | wxFontStyle _arg1; | |
3430 | PyObject * _argo0 = 0; | |
3431 | char *_kwnames[] = { "self","style", NULL }; | |
3432 | ||
3433 | self = self; | |
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1)) | |
3435 | return NULL; | |
3436 | if (_argo0) { | |
3437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p."); | |
3440 | return NULL; | |
3441 | } | |
3442 | } | |
3443 | { | |
3444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3445 | wxNativeFontInfo_SetStyle(_arg0,_arg1); |
b5a5d647 RD |
3446 | |
3447 | wxPyEndAllowThreads(__tstate); | |
3448 | if (PyErr_Occurred()) return NULL; | |
3449 | } Py_INCREF(Py_None); | |
3450 | _resultobj = Py_None; | |
3451 | return _resultobj; | |
3452 | } | |
3453 | ||
3454 | #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
3455 | static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3456 | PyObject * _resultobj; | |
3457 | wxNativeFontInfo * _arg0; | |
3458 | wxFontWeight _arg1; | |
3459 | PyObject * _argo0 = 0; | |
3460 | char *_kwnames[] = { "self","weight", NULL }; | |
3461 | ||
3462 | self = self; | |
3463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1)) | |
3464 | return NULL; | |
3465 | if (_argo0) { | |
3466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p."); | |
3469 | return NULL; | |
3470 | } | |
3471 | } | |
3472 | { | |
3473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3474 | wxNativeFontInfo_SetWeight(_arg0,_arg1); |
b5a5d647 RD |
3475 | |
3476 | wxPyEndAllowThreads(__tstate); | |
3477 | if (PyErr_Occurred()) return NULL; | |
3478 | } Py_INCREF(Py_None); | |
3479 | _resultobj = Py_None; | |
3480 | return _resultobj; | |
3481 | } | |
3482 | ||
3483 | #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
3484 | static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3485 | PyObject * _resultobj; | |
3486 | wxNativeFontInfo * _arg0; | |
3487 | bool _arg1; | |
3488 | PyObject * _argo0 = 0; | |
3489 | int tempbool1; | |
3490 | char *_kwnames[] = { "self","underlined", NULL }; | |
3491 | ||
3492 | self = self; | |
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
3494 | return NULL; | |
3495 | if (_argo0) { | |
3496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p."); | |
3499 | return NULL; | |
3500 | } | |
3501 | } | |
3502 | _arg1 = (bool ) tempbool1; | |
3503 | { | |
3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3505 | wxNativeFontInfo_SetUnderlined(_arg0,_arg1); |
b5a5d647 RD |
3506 | |
3507 | wxPyEndAllowThreads(__tstate); | |
3508 | if (PyErr_Occurred()) return NULL; | |
3509 | } Py_INCREF(Py_None); | |
3510 | _resultobj = Py_None; | |
3511 | return _resultobj; | |
3512 | } | |
3513 | ||
3514 | #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
3515 | static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject * _resultobj; | |
3517 | wxNativeFontInfo * _arg0; | |
3518 | wxString * _arg1; | |
3519 | PyObject * _argo0 = 0; | |
3520 | PyObject * _obj1 = 0; | |
3521 | char *_kwnames[] = { "self","facename", NULL }; | |
3522 | ||
3523 | self = self; | |
3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
3525 | return NULL; | |
3526 | if (_argo0) { | |
3527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p."); | |
3530 | return NULL; | |
3531 | } | |
3532 | } | |
3533 | { | |
c8bc7bb8 RD |
3534 | _arg1 = wxString_in_helper(_obj1); |
3535 | if (_arg1 == NULL) | |
b5a5d647 | 3536 | return NULL; |
b5a5d647 RD |
3537 | } |
3538 | { | |
3539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3540 | wxNativeFontInfo_SetFaceName(_arg0,*_arg1); |
b5a5d647 RD |
3541 | |
3542 | wxPyEndAllowThreads(__tstate); | |
3543 | if (PyErr_Occurred()) return NULL; | |
3544 | } Py_INCREF(Py_None); | |
3545 | _resultobj = Py_None; | |
3546 | { | |
3547 | if (_obj1) | |
3548 | delete _arg1; | |
3549 | } | |
3550 | return _resultobj; | |
3551 | } | |
3552 | ||
3553 | #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
3554 | static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3555 | PyObject * _resultobj; | |
3556 | wxNativeFontInfo * _arg0; | |
3557 | wxFontFamily _arg1; | |
3558 | PyObject * _argo0 = 0; | |
3559 | char *_kwnames[] = { "self","family", NULL }; | |
3560 | ||
3561 | self = self; | |
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1)) | |
3563 | return NULL; | |
3564 | if (_argo0) { | |
3565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p."); | |
3568 | return NULL; | |
3569 | } | |
3570 | } | |
3571 | { | |
3572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3573 | wxNativeFontInfo_SetFamily(_arg0,_arg1); |
b5a5d647 RD |
3574 | |
3575 | wxPyEndAllowThreads(__tstate); | |
3576 | if (PyErr_Occurred()) return NULL; | |
3577 | } Py_INCREF(Py_None); | |
3578 | _resultobj = Py_None; | |
3579 | return _resultobj; | |
3580 | } | |
3581 | ||
3582 | #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
3583 | static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject * _resultobj; | |
3585 | wxNativeFontInfo * _arg0; | |
3586 | wxFontEncoding _arg1; | |
3587 | PyObject * _argo0 = 0; | |
3588 | char *_kwnames[] = { "self","encoding", NULL }; | |
3589 | ||
3590 | self = self; | |
3591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3592 | return NULL; | |
3593 | if (_argo0) { | |
3594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p."); | |
3597 | return NULL; | |
3598 | } | |
3599 | } | |
3600 | { | |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3602 | wxNativeFontInfo_SetEncoding(_arg0,_arg1); |
b5a5d647 RD |
3603 | |
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) return NULL; | |
3606 | } Py_INCREF(Py_None); | |
3607 | _resultobj = Py_None; | |
3608 | return _resultobj; | |
3609 | } | |
3610 | ||
6d8b4f8d RD |
3611 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
3612 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject * _resultobj; | |
3614 | bool _result; | |
3615 | wxNativeFontInfo * _arg0; | |
3616 | wxString * _arg1; | |
3617 | PyObject * _argo0 = 0; | |
3618 | PyObject * _obj1 = 0; | |
3619 | char *_kwnames[] = { "self","s", NULL }; | |
3620 | ||
3621 | self = self; | |
3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
3623 | return NULL; | |
3624 | if (_argo0) { | |
3625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
3628 | return NULL; | |
3629 | } | |
3630 | } | |
3631 | { | |
c8bc7bb8 RD |
3632 | _arg1 = wxString_in_helper(_obj1); |
3633 | if (_arg1 == NULL) | |
6d8b4f8d | 3634 | return NULL; |
9416aa89 | 3635 | } |
6d8b4f8d | 3636 | { |
4268f798 | 3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3638 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
9416aa89 | 3639 | |
4268f798 | 3640 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3641 | if (PyErr_Occurred()) return NULL; |
3642 | } _resultobj = Py_BuildValue("i",_result); | |
3643 | { | |
3644 | if (_obj1) | |
3645 | delete _arg1; | |
3646 | } | |
3647 | return _resultobj; | |
9416aa89 RD |
3648 | } |
3649 | ||
6d8b4f8d RD |
3650 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
3651 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3652 | PyObject * _resultobj; |
6d8b4f8d RD |
3653 | wxString * _result; |
3654 | wxNativeFontInfo * _arg0; | |
3655 | PyObject * _argo0 = 0; | |
3656 | char *_kwnames[] = { "self", NULL }; | |
3657 | ||
3658 | self = self; | |
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3660 | return NULL; | |
3661 | if (_argo0) { | |
3662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3665 | return NULL; | |
3666 | } | |
3667 | } | |
3668 | { | |
4268f798 | 3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3670 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
6d8b4f8d | 3671 | |
4268f798 | 3672 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3673 | if (PyErr_Occurred()) return NULL; |
3674 | }{ | |
c8bc7bb8 RD |
3675 | #if wxUSE_UNICODE |
3676 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3677 | #else | |
6d8b4f8d | 3678 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3679 | #endif |
6d8b4f8d RD |
3680 | } |
3681 | { | |
3682 | delete _result; | |
3683 | } | |
3684 | return _resultobj; | |
3685 | } | |
3686 | ||
3687 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3688 | return self->ToString(); | |
3689 | } | |
3690 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3691 | PyObject * _resultobj; | |
3692 | wxString * _result; | |
3693 | wxNativeFontInfo * _arg0; | |
3694 | PyObject * _argo0 = 0; | |
3695 | char *_kwnames[] = { "self", NULL }; | |
3696 | ||
3697 | self = self; | |
3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3699 | return NULL; | |
3700 | if (_argo0) { | |
3701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3704 | return NULL; | |
3705 | } | |
3706 | } | |
3707 | { | |
4268f798 | 3708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3709 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
6d8b4f8d | 3710 | |
4268f798 | 3711 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3712 | if (PyErr_Occurred()) return NULL; |
3713 | }{ | |
c8bc7bb8 RD |
3714 | #if wxUSE_UNICODE |
3715 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3716 | #else | |
6d8b4f8d | 3717 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3718 | #endif |
6d8b4f8d RD |
3719 | } |
3720 | { | |
3721 | delete _result; | |
3722 | } | |
3723 | return _resultobj; | |
3724 | } | |
3725 | ||
b5a5d647 RD |
3726 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
3727 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3728 | PyObject * _resultobj; | |
3729 | bool _result; | |
3730 | wxNativeFontInfo * _arg0; | |
3731 | wxString * _arg1; | |
3732 | PyObject * _argo0 = 0; | |
3733 | PyObject * _obj1 = 0; | |
3734 | char *_kwnames[] = { "self","s", NULL }; | |
3735 | ||
3736 | self = self; | |
3737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
3738 | return NULL; | |
3739 | if (_argo0) { | |
3740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
3743 | return NULL; | |
3744 | } | |
3745 | } | |
3746 | { | |
c8bc7bb8 RD |
3747 | _arg1 = wxString_in_helper(_obj1); |
3748 | if (_arg1 == NULL) | |
b5a5d647 | 3749 | return NULL; |
b5a5d647 RD |
3750 | } |
3751 | { | |
3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3753 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); |
b5a5d647 RD |
3754 | |
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) return NULL; | |
3757 | } _resultobj = Py_BuildValue("i",_result); | |
3758 | { | |
3759 | if (_obj1) | |
3760 | delete _arg1; | |
3761 | } | |
3762 | return _resultobj; | |
3763 | } | |
3764 | ||
3765 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
3766 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(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_ToUserString",_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_ToUserString. Expected _wxNativeFontInfo_p."); | |
3780 | return NULL; | |
3781 | } | |
3782 | } | |
3783 | { | |
3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3785 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); |
b5a5d647 RD |
3786 | |
3787 | wxPyEndAllowThreads(__tstate); | |
3788 | if (PyErr_Occurred()) return NULL; | |
3789 | }{ | |
c8bc7bb8 RD |
3790 | #if wxUSE_UNICODE |
3791 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3792 | #else | |
b5a5d647 | 3793 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3794 | #endif |
b5a5d647 RD |
3795 | } |
3796 | { | |
3797 | delete _result; | |
3798 | } | |
3799 | return _resultobj; | |
3800 | } | |
3801 | ||
6d8b4f8d RD |
3802 | #define new_wxFontMapper() (new wxFontMapper()) |
3803 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3804 | PyObject * _resultobj; | |
3805 | wxFontMapper * _result; | |
3806 | char *_kwnames[] = { NULL }; | |
8ab979d7 RD |
3807 | char _ptemp[128]; |
3808 | ||
3809 | self = self; | |
6d8b4f8d | 3810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) |
8ab979d7 | 3811 | return NULL; |
cf694132 | 3812 | { |
4268f798 | 3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3814 | _result = (wxFontMapper *)new_wxFontMapper(); |
cf694132 | 3815 | |
4268f798 | 3816 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3817 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3818 | } if (_result) { |
6d8b4f8d | 3819 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); |
1d99702e RD |
3820 | _resultobj = Py_BuildValue("s",_ptemp); |
3821 | } else { | |
3822 | Py_INCREF(Py_None); | |
3823 | _resultobj = Py_None; | |
3824 | } | |
8ab979d7 RD |
3825 | return _resultobj; |
3826 | } | |
3827 | ||
6d8b4f8d RD |
3828 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) |
3829 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0569df0f | 3830 | PyObject * _resultobj; |
6d8b4f8d | 3831 | wxFontMapper * _arg0; |
0569df0f RD |
3832 | PyObject * _argo0 = 0; |
3833 | char *_kwnames[] = { "self", NULL }; | |
3834 | ||
3835 | self = self; | |
6d8b4f8d | 3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
0569df0f RD |
3837 | return NULL; |
3838 | if (_argo0) { | |
3839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
0569df0f RD |
3842 | return NULL; |
3843 | } | |
3844 | } | |
3845 | { | |
4268f798 | 3846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3847 | delete_wxFontMapper(_arg0); |
0569df0f | 3848 | |
4268f798 | 3849 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3850 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3851 | } Py_INCREF(Py_None); |
3852 | _resultobj = Py_None; | |
3853 | return _resultobj; | |
3854 | } | |
3855 | ||
6d8b4f8d RD |
3856 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
3857 | wxFontEncoding alt_enc; | |
3858 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3859 | return PyInt_FromLong(alt_enc); | |
3860 | else { | |
3861 | Py_INCREF(Py_None); | |
3862 | return Py_None; | |
3863 | } | |
3864 | } | |
3865 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
694759cf | 3866 | PyObject * _resultobj; |
6d8b4f8d RD |
3867 | PyObject * _result; |
3868 | wxFontMapper * _arg0; | |
3869 | wxFontEncoding _arg1; | |
3870 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3871 | bool _arg3 = (bool ) TRUE; | |
694759cf | 3872 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3873 | PyObject * _obj2 = 0; |
3874 | int tempbool3 = (int) TRUE; | |
3875 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
694759cf RD |
3876 | |
3877 | self = self; | |
6d8b4f8d | 3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
694759cf RD |
3879 | return NULL; |
3880 | if (_argo0) { | |
3881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
694759cf RD |
3884 | return NULL; |
3885 | } | |
3886 | } | |
6d8b4f8d RD |
3887 | if (_obj2) |
3888 | { | |
c8bc7bb8 RD |
3889 | _arg2 = wxString_in_helper(_obj2); |
3890 | if (_arg2 == NULL) | |
6d8b4f8d | 3891 | return NULL; |
6d8b4f8d RD |
3892 | } |
3893 | _arg3 = (bool ) tempbool3; | |
694759cf | 3894 | { |
4268f798 | 3895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3896 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
694759cf | 3897 | |
4268f798 | 3898 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3899 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
3900 | }{ |
3901 | _resultobj = _result; | |
3902 | } | |
3903 | { | |
3904 | if (_obj2) | |
3905 | delete _arg2; | |
3906 | } | |
694759cf RD |
3907 | return _resultobj; |
3908 | } | |
3909 | ||
6d8b4f8d RD |
3910 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
3911 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3912 | PyObject * _resultobj; |
6d8b4f8d RD |
3913 | bool _result; |
3914 | wxFontMapper * _arg0; | |
3915 | wxFontEncoding _arg1; | |
3916 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1d99702e | 3917 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3918 | PyObject * _obj2 = 0; |
3919 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
8ab979d7 RD |
3920 | |
3921 | self = self; | |
6d8b4f8d | 3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3923 | return NULL; |
1d99702e RD |
3924 | if (_argo0) { |
3925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
8ab979d7 RD |
3928 | return NULL; |
3929 | } | |
3930 | } | |
6d8b4f8d RD |
3931 | if (_obj2) |
3932 | { | |
c8bc7bb8 RD |
3933 | _arg2 = wxString_in_helper(_obj2); |
3934 | if (_arg2 == NULL) | |
6d8b4f8d | 3935 | return NULL; |
6d8b4f8d | 3936 | } |
8ab979d7 | 3937 | { |
4268f798 | 3938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3939 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
cf694132 | 3940 | |
4268f798 | 3941 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3942 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 3943 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 3944 | { |
6d8b4f8d RD |
3945 | if (_obj2) |
3946 | delete _arg2; | |
8ab979d7 RD |
3947 | } |
3948 | return _resultobj; | |
3949 | } | |
3950 | ||
6d8b4f8d RD |
3951 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
3952 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3953 | PyObject * _resultobj; |
6d8b4f8d RD |
3954 | wxFontEncoding _result; |
3955 | wxFontMapper * _arg0; | |
3956 | wxString * _arg1; | |
3957 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3958 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3959 | PyObject * _obj1 = 0; |
3960 | int tempbool2 = (int) TRUE; | |
3961 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
8ab979d7 RD |
3962 | |
3963 | self = self; | |
6d8b4f8d | 3964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 3965 | return NULL; |
1d99702e RD |
3966 | if (_argo0) { |
3967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
3970 | return NULL; | |
3971 | } | |
3972 | } | |
3973 | { | |
c8bc7bb8 RD |
3974 | _arg1 = wxString_in_helper(_obj1); |
3975 | if (_arg1 == NULL) | |
6d8b4f8d | 3976 | return NULL; |
6d8b4f8d RD |
3977 | } |
3978 | _arg2 = (bool ) tempbool2; | |
3979 | { | |
4268f798 | 3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3981 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
6d8b4f8d | 3982 | |
4268f798 | 3983 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3984 | if (PyErr_Occurred()) return NULL; |
3985 | } _resultobj = Py_BuildValue("i",_result); | |
3986 | { | |
3987 | if (_obj1) | |
3988 | delete _arg1; | |
3989 | } | |
3990 | return _resultobj; | |
3991 | } | |
3992 | ||
3993 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3994 | PyObject * _resultobj; | |
3995 | wxString * _result; | |
3996 | wxFontEncoding _arg0; | |
3997 | char *_kwnames[] = { "encoding", NULL }; | |
3998 | ||
3999 | self = self; | |
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
4001 | return NULL; | |
4002 | { | |
4268f798 | 4003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4004 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
6d8b4f8d | 4005 | |
4268f798 | 4006 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4007 | if (PyErr_Occurred()) return NULL; |
4008 | }{ | |
c8bc7bb8 RD |
4009 | #if wxUSE_UNICODE |
4010 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4011 | #else | |
6d8b4f8d | 4012 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4013 | #endif |
6d8b4f8d RD |
4014 | } |
4015 | { | |
4016 | delete _result; | |
4017 | } | |
4018 | return _resultobj; | |
4019 | } | |
4020 | ||
4021 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4022 | PyObject * _resultobj; | |
4023 | wxString * _result; | |
4024 | wxFontEncoding _arg0; | |
4025 | char *_kwnames[] = { "encoding", NULL }; | |
4026 | ||
4027 | self = self; | |
4028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
4029 | return NULL; | |
4030 | { | |
4268f798 | 4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4032 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
6d8b4f8d | 4033 | |
4268f798 | 4034 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4035 | if (PyErr_Occurred()) return NULL; |
4036 | }{ | |
c8bc7bb8 RD |
4037 | #if wxUSE_UNICODE |
4038 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4039 | #else | |
6d8b4f8d | 4040 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4041 | #endif |
6d8b4f8d RD |
4042 | } |
4043 | { | |
4044 | delete _result; | |
4045 | } | |
4046 | return _resultobj; | |
4047 | } | |
4048 | ||
4049 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
4050 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4051 | PyObject * _resultobj; | |
4052 | wxFontMapper * _arg0; | |
4053 | wxWindow * _arg1; | |
4054 | PyObject * _argo0 = 0; | |
4055 | PyObject * _argo1 = 0; | |
4056 | char *_kwnames[] = { "self","parent", NULL }; | |
4057 | ||
4058 | self = self; | |
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
4060 | return NULL; | |
4061 | if (_argo0) { | |
4062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
4065 | return NULL; | |
4066 | } | |
4067 | } | |
4068 | if (_argo1) { | |
4069 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4070 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
4072 | return NULL; | |
4073 | } | |
4074 | } | |
4075 | { | |
4268f798 | 4076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4077 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
6d8b4f8d | 4078 | |
4268f798 | 4079 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4080 | if (PyErr_Occurred()) return NULL; |
4081 | } Py_INCREF(Py_None); | |
4082 | _resultobj = Py_None; | |
4083 | return _resultobj; | |
4084 | } | |
4085 | ||
4086 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
4087 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4088 | PyObject * _resultobj; | |
4089 | wxFontMapper * _arg0; | |
4090 | wxString * _arg1; | |
4091 | PyObject * _argo0 = 0; | |
4092 | PyObject * _obj1 = 0; | |
4093 | char *_kwnames[] = { "self","title", NULL }; | |
4094 | ||
4095 | self = self; | |
4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
4097 | return NULL; | |
4098 | if (_argo0) { | |
4099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
4102 | return NULL; | |
4103 | } | |
4104 | } | |
4105 | { | |
c8bc7bb8 RD |
4106 | _arg1 = wxString_in_helper(_obj1); |
4107 | if (_arg1 == NULL) | |
6d8b4f8d | 4108 | return NULL; |
6d8b4f8d RD |
4109 | } |
4110 | { | |
4268f798 | 4111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4112 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
6d8b4f8d | 4113 | |
4268f798 | 4114 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4115 | if (PyErr_Occurred()) return NULL; |
4116 | } Py_INCREF(Py_None); | |
4117 | _resultobj = Py_None; | |
4118 | { | |
4119 | if (_obj1) | |
4120 | delete _arg1; | |
4121 | } | |
4122 | return _resultobj; | |
4123 | } | |
4124 | ||
4125 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
4126 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4127 | PyObject * _resultobj; | |
4128 | wxFontMapper * _arg0; | |
4129 | wxConfigBase * _arg1; | |
4130 | PyObject * _argo0 = 0; | |
4131 | PyObject * _argo1 = 0; | |
4132 | char *_kwnames[] = { "self","config", NULL }; | |
4133 | ||
4134 | self = self; | |
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
4136 | return NULL; | |
4137 | if (_argo0) { | |
4138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
4141 | return NULL; | |
4142 | } | |
4143 | } | |
4144 | if (_argo1) { | |
4145 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4146 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
4147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
4148 | return NULL; | |
4149 | } | |
4150 | } | |
4151 | { | |
4268f798 | 4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4153 | wxFontMapper_SetConfig(_arg0,_arg1); |
6d8b4f8d | 4154 | |
4268f798 | 4155 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4156 | if (PyErr_Occurred()) return NULL; |
4157 | } Py_INCREF(Py_None); | |
4158 | _resultobj = Py_None; | |
4159 | return _resultobj; | |
4160 | } | |
4161 | ||
4162 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
4163 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4164 | PyObject * _resultobj; | |
4165 | wxFontMapper * _arg0; | |
4166 | wxString * _arg1; | |
4167 | PyObject * _argo0 = 0; | |
4168 | PyObject * _obj1 = 0; | |
4169 | char *_kwnames[] = { "self","prefix", NULL }; | |
4170 | ||
4171 | self = self; | |
4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
4173 | return NULL; | |
4174 | if (_argo0) { | |
4175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
4178 | return NULL; | |
4179 | } | |
4180 | } | |
4181 | { | |
c8bc7bb8 RD |
4182 | _arg1 = wxString_in_helper(_obj1); |
4183 | if (_arg1 == NULL) | |
6d8b4f8d | 4184 | return NULL; |
6d8b4f8d RD |
4185 | } |
4186 | { | |
4268f798 | 4187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4188 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
6d8b4f8d | 4189 | |
4268f798 | 4190 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4191 | if (PyErr_Occurred()) return NULL; |
4192 | } Py_INCREF(Py_None); | |
4193 | _resultobj = Py_None; | |
4194 | { | |
4195 | if (_obj1) | |
4196 | delete _arg1; | |
4197 | } | |
4198 | return _resultobj; | |
4199 | } | |
4200 | ||
4201 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4202 | PyObject * _resultobj; | |
4203 | wxChar * _result; | |
4204 | char *_kwnames[] = { NULL }; | |
4205 | ||
4206 | self = self; | |
4207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
4208 | return NULL; | |
4209 | { | |
4268f798 | 4210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4211 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); |
6d8b4f8d | 4212 | |
4268f798 | 4213 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4214 | if (PyErr_Occurred()) return NULL; |
4215 | } _resultobj = Py_BuildValue("s", _result); | |
4216 | return _resultobj; | |
4217 | } | |
4218 | ||
4219 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
4220 | wxFont *src; | |
4221 | wxGDIObject *dest; | |
4222 | src = (wxFont *) ptr; | |
4223 | dest = (wxGDIObject *) src; | |
4224 | return (void *) dest; | |
4225 | } | |
4226 | ||
4227 | static void *SwigwxFontTowxObject(void *ptr) { | |
4228 | wxFont *src; | |
4229 | wxObject *dest; | |
4230 | src = (wxFont *) ptr; | |
4231 | dest = (wxObject *) src; | |
4232 | return (void *) dest; | |
4233 | } | |
4234 | ||
4235 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4236 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4237 | PyObject * _resultobj; | |
4238 | wxFont * _result; | |
4239 | int _arg0; | |
4240 | int _arg1; | |
4241 | int _arg2; | |
4242 | int _arg3; | |
4243 | int _arg4 = (int ) FALSE; | |
4244 | char * _arg5 = (char *) ""; | |
4245 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4246 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
4247 | char _ptemp[128]; | |
4248 | ||
4249 | self = self; | |
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4251 | return NULL; | |
4252 | { | |
4268f798 | 4253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4254 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
6d8b4f8d | 4255 | |
4268f798 | 4256 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4257 | if (PyErr_Occurred()) return NULL; |
4258 | } if (_result) { | |
4259 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4260 | _resultobj = Py_BuildValue("s",_ptemp); | |
4261 | } else { | |
4262 | Py_INCREF(Py_None); | |
4263 | _resultobj = Py_None; | |
4264 | } | |
4265 | return _resultobj; | |
4266 | } | |
4267 | ||
4268 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
4269 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject * _resultobj; | |
4271 | wxFont * _result; | |
4272 | wxNativeFontInfo * _arg0; | |
4273 | PyObject * _argo0 = 0; | |
4274 | char *_kwnames[] = { "info", NULL }; | |
4275 | char _ptemp[128]; | |
4276 | ||
4277 | self = self; | |
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
4279 | return NULL; | |
4280 | if (_argo0) { | |
4281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
4283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
4284 | return NULL; | |
4285 | } | |
4286 | } | |
4287 | { | |
4268f798 | 4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4289 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
6d8b4f8d | 4290 | |
4268f798 | 4291 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4292 | if (PyErr_Occurred()) return NULL; |
4293 | } if (_result) { | |
4294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4295 | _resultobj = Py_BuildValue("s",_ptemp); | |
4296 | } else { | |
4297 | Py_INCREF(Py_None); | |
4298 | _resultobj = Py_None; | |
4299 | } | |
4300 | return _resultobj; | |
4301 | } | |
4302 | ||
4303 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
4304 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4305 | PyObject * _resultobj; | |
4306 | wxFont * _arg0; | |
4307 | PyObject * _argo0 = 0; | |
4308 | char *_kwnames[] = { "self", NULL }; | |
4309 | ||
4310 | self = self; | |
4311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
4312 | return NULL; | |
4313 | if (_argo0) { | |
4314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
4317 | return NULL; | |
4318 | } | |
4319 | } | |
4320 | { | |
4268f798 | 4321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4322 | delete_wxFont(_arg0); |
6d8b4f8d | 4323 | |
4268f798 | 4324 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4325 | if (PyErr_Occurred()) return NULL; |
4326 | } Py_INCREF(Py_None); | |
4327 | _resultobj = Py_None; | |
4328 | return _resultobj; | |
4329 | } | |
4330 | ||
4331 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
4332 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4333 | PyObject * _resultobj; | |
4334 | bool _result; | |
4335 | wxFont * _arg0; | |
4336 | PyObject * _argo0 = 0; | |
4337 | char *_kwnames[] = { "self", NULL }; | |
4338 | ||
4339 | self = self; | |
4340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
4341 | return NULL; | |
4342 | if (_argo0) { | |
4343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
4346 | return NULL; | |
4347 | } | |
4348 | } | |
4349 | { | |
4268f798 | 4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4351 | _result = (bool )wxFont_Ok(_arg0); |
6d8b4f8d | 4352 | |
4268f798 | 4353 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4354 | if (PyErr_Occurred()) return NULL; |
4355 | } _resultobj = Py_BuildValue("i",_result); | |
4356 | return _resultobj; | |
4357 | } | |
4358 | ||
4359 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
4360 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4361 | PyObject * _resultobj; | |
4362 | int _result; | |
4363 | wxFont * _arg0; | |
4364 | PyObject * _argo0 = 0; | |
4365 | char *_kwnames[] = { "self", NULL }; | |
4366 | ||
4367 | self = self; | |
4368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
4369 | return NULL; | |
4370 | if (_argo0) { | |
4371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
8ab979d7 RD |
4374 | return NULL; |
4375 | } | |
4376 | } | |
cf694132 | 4377 | { |
4268f798 | 4378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4379 | _result = (int )wxFont_GetPointSize(_arg0); |
cf694132 | 4380 | |
4268f798 | 4381 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4383 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4384 | return _resultobj; |
4385 | } | |
4386 | ||
6d8b4f8d RD |
4387 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) |
4388 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4389 | PyObject * _resultobj; |
4390 | int _result; | |
4391 | wxFont * _arg0; | |
1d99702e | 4392 | PyObject * _argo0 = 0; |
1afc06c2 | 4393 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4394 | |
4395 | self = self; | |
6d8b4f8d | 4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 4397 | return NULL; |
1d99702e RD |
4398 | if (_argo0) { |
4399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
8ab979d7 RD |
4402 | return NULL; |
4403 | } | |
4404 | } | |
cf694132 | 4405 | { |
4268f798 | 4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4407 | _result = (int )wxFont_GetFamily(_arg0); |
cf694132 | 4408 | |
4268f798 | 4409 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4410 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4411 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4412 | return _resultobj; |
4413 | } | |
4414 | ||
6d8b4f8d RD |
4415 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) |
4416 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4417 | PyObject * _resultobj; |
4418 | int _result; | |
4419 | wxFont * _arg0; | |
1d99702e | 4420 | PyObject * _argo0 = 0; |
1afc06c2 | 4421 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4422 | |
4423 | self = self; | |
6d8b4f8d | 4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4425 | return NULL; |
1d99702e RD |
4426 | if (_argo0) { |
4427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4430 | return NULL; |
4431 | } | |
4432 | } | |
cf694132 | 4433 | { |
4268f798 | 4434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4435 | _result = (int )wxFont_GetStyle(_arg0); |
cf694132 | 4436 | |
4268f798 | 4437 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4438 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4439 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4440 | return _resultobj; |
4441 | } | |
4442 | ||
6d8b4f8d RD |
4443 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) |
4444 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4445 | PyObject * _resultobj; |
4446 | int _result; | |
4447 | wxFont * _arg0; | |
1d99702e | 4448 | PyObject * _argo0 = 0; |
1afc06c2 | 4449 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4450 | |
4451 | self = self; | |
6d8b4f8d | 4452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 4453 | return NULL; |
1d99702e RD |
4454 | if (_argo0) { |
4455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4458 | return NULL; |
4459 | } | |
4460 | } | |
cf694132 | 4461 | { |
4268f798 | 4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4463 | _result = (int )wxFont_GetWeight(_arg0); |
cf694132 | 4464 | |
4268f798 | 4465 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4467 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4468 | return _resultobj; |
4469 | } | |
4470 | ||
4471 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 4472 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4473 | PyObject * _resultobj; |
4474 | bool _result; | |
4475 | wxFont * _arg0; | |
1d99702e | 4476 | PyObject * _argo0 = 0; |
1afc06c2 | 4477 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4478 | |
4479 | self = self; | |
1afc06c2 | 4480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 4481 | return NULL; |
1d99702e RD |
4482 | if (_argo0) { |
4483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
4486 | return NULL; | |
4487 | } | |
4488 | } | |
cf694132 | 4489 | { |
4268f798 | 4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4491 | _result = (bool )wxFont_GetUnderlined(_arg0); |
cf694132 | 4492 | |
4268f798 | 4493 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4494 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4495 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4496 | return _resultobj; |
4497 | } | |
4498 | ||
6d8b4f8d RD |
4499 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
4500 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4501 | PyObject * _resultobj; |
6d8b4f8d | 4502 | wxString * _result; |
8ab979d7 | 4503 | wxFont * _arg0; |
1d99702e | 4504 | PyObject * _argo0 = 0; |
1afc06c2 | 4505 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4506 | |
4507 | self = self; | |
6d8b4f8d | 4508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 4509 | return NULL; |
1d99702e RD |
4510 | if (_argo0) { |
4511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
8ab979d7 RD |
4514 | return NULL; |
4515 | } | |
4516 | } | |
cf694132 | 4517 | { |
4268f798 | 4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4519 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
cf694132 | 4520 | |
4268f798 | 4521 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4522 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 4523 | }{ |
c8bc7bb8 RD |
4524 | #if wxUSE_UNICODE |
4525 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4526 | #else | |
6d8b4f8d | 4527 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4528 | #endif |
6d8b4f8d RD |
4529 | } |
4530 | { | |
4531 | delete _result; | |
4532 | } | |
8ab979d7 RD |
4533 | return _resultobj; |
4534 | } | |
4535 | ||
f0261a72 RD |
4536 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
4537 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4538 | PyObject * _resultobj; | |
4539 | wxFontEncoding _result; | |
4540 | wxFont * _arg0; | |
4541 | PyObject * _argo0 = 0; | |
4542 | char *_kwnames[] = { "self", NULL }; | |
4543 | ||
4544 | self = self; | |
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
4546 | return NULL; | |
4547 | if (_argo0) { | |
4548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
4551 | return NULL; | |
4552 | } | |
4553 | } | |
4554 | { | |
4268f798 | 4555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4556 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
f0261a72 | 4557 | |
4268f798 | 4558 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4559 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4560 | } _resultobj = Py_BuildValue("i",_result); |
4561 | return _resultobj; | |
4562 | } | |
4563 | ||
68320e40 RD |
4564 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) |
4565 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4566 | PyObject * _resultobj; | |
4567 | bool _result; | |
4568 | wxFont * _arg0; | |
4569 | PyObject * _argo0 = 0; | |
4570 | char *_kwnames[] = { "self", NULL }; | |
4571 | ||
4572 | self = self; | |
4573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
4574 | return NULL; | |
4575 | if (_argo0) { | |
4576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
4579 | return NULL; | |
4580 | } | |
4581 | } | |
4582 | { | |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4584 | _result = (bool )wxFont_IsFixedWidth(_arg0); |
68320e40 RD |
4585 | |
4586 | wxPyEndAllowThreads(__tstate); | |
4587 | if (PyErr_Occurred()) return NULL; | |
4588 | } _resultobj = Py_BuildValue("i",_result); | |
4589 | return _resultobj; | |
4590 | } | |
4591 | ||
6d8b4f8d RD |
4592 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
4593 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4594 | PyObject * _resultobj; |
6d8b4f8d | 4595 | wxNativeFontInfo * _result; |
8ab979d7 | 4596 | wxFont * _arg0; |
1d99702e | 4597 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4598 | char *_kwnames[] = { "self", NULL }; |
4599 | char _ptemp[128]; | |
8ab979d7 RD |
4600 | |
4601 | self = self; | |
6d8b4f8d | 4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
8ab979d7 | 4603 | return NULL; |
1d99702e RD |
4604 | if (_argo0) { |
4605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
8ab979d7 RD |
4608 | return NULL; |
4609 | } | |
4610 | } | |
4611 | { | |
4268f798 | 4612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4613 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
6d8b4f8d | 4614 | |
4268f798 | 4615 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4616 | if (PyErr_Occurred()) return NULL; |
4617 | } if (_result) { | |
4618 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
4619 | _resultobj = Py_BuildValue("s",_ptemp); | |
4620 | } else { | |
4621 | Py_INCREF(Py_None); | |
4622 | _resultobj = Py_None; | |
185d7c3e | 4623 | } |
6d8b4f8d RD |
4624 | return _resultobj; |
4625 | } | |
4626 | ||
b5a5d647 RD |
4627 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
4628 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4629 | PyObject * _resultobj; | |
4630 | wxString * _result; | |
4631 | wxFont * _arg0; | |
4632 | PyObject * _argo0 = 0; | |
4633 | char *_kwnames[] = { "self", NULL }; | |
4634 | ||
4635 | self = self; | |
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
4637 | return NULL; | |
4638 | if (_argo0) { | |
4639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
4642 | return NULL; | |
4643 | } | |
4644 | } | |
4645 | { | |
4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4647 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); |
b5a5d647 RD |
4648 | |
4649 | wxPyEndAllowThreads(__tstate); | |
4650 | if (PyErr_Occurred()) return NULL; | |
4651 | }{ | |
c8bc7bb8 RD |
4652 | #if wxUSE_UNICODE |
4653 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4654 | #else | |
b5a5d647 | 4655 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4656 | #endif |
b5a5d647 RD |
4657 | } |
4658 | { | |
4659 | delete _result; | |
4660 | } | |
4661 | return _resultobj; | |
4662 | } | |
4663 | ||
4664 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
4665 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject * _resultobj; | |
4667 | wxString * _result; | |
4668 | wxFont * _arg0; | |
4669 | PyObject * _argo0 = 0; | |
4670 | char *_kwnames[] = { "self", NULL }; | |
4671 | ||
4672 | self = self; | |
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
4674 | return NULL; | |
4675 | if (_argo0) { | |
4676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4679 | return NULL; | |
4680 | } | |
4681 | } | |
4682 | { | |
4683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4684 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); |
b5a5d647 RD |
4685 | |
4686 | wxPyEndAllowThreads(__tstate); | |
4687 | if (PyErr_Occurred()) return NULL; | |
4688 | }{ | |
c8bc7bb8 RD |
4689 | #if wxUSE_UNICODE |
4690 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4691 | #else | |
b5a5d647 | 4692 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4693 | #endif |
b5a5d647 RD |
4694 | } |
4695 | { | |
4696 | delete _result; | |
4697 | } | |
4698 | return _resultobj; | |
4699 | } | |
4700 | ||
6d8b4f8d RD |
4701 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
4702 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject * _resultobj; | |
4704 | wxFont * _arg0; | |
4705 | int _arg1; | |
4706 | PyObject * _argo0 = 0; | |
4707 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4708 | ||
4709 | self = self; | |
4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4711 | return NULL; |
6d8b4f8d RD |
4712 | if (_argo0) { |
4713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
8ab979d7 | 4716 | return NULL; |
6d8b4f8d | 4717 | } |
8ab979d7 | 4718 | } |
cf694132 | 4719 | { |
4268f798 | 4720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4721 | wxFont_SetPointSize(_arg0,_arg1); |
cf694132 | 4722 | |
4268f798 | 4723 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4724 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4725 | } Py_INCREF(Py_None); |
8ab979d7 | 4726 | _resultobj = Py_None; |
8ab979d7 RD |
4727 | return _resultobj; |
4728 | } | |
4729 | ||
4730 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 4731 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4732 | PyObject * _resultobj; |
4733 | wxFont * _arg0; | |
4734 | int _arg1; | |
1d99702e | 4735 | PyObject * _argo0 = 0; |
1afc06c2 | 4736 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
4737 | |
4738 | self = self; | |
1afc06c2 | 4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4740 | return NULL; |
1d99702e RD |
4741 | if (_argo0) { |
4742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
4745 | return NULL; | |
4746 | } | |
4747 | } | |
cf694132 | 4748 | { |
4268f798 | 4749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4750 | wxFont_SetFamily(_arg0,_arg1); |
cf694132 | 4751 | |
4268f798 | 4752 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4753 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4754 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4755 | _resultobj = Py_None; |
4756 | return _resultobj; | |
4757 | } | |
4758 | ||
6d8b4f8d RD |
4759 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
4760 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4761 | PyObject * _resultobj; |
4762 | wxFont * _arg0; | |
4763 | int _arg1; | |
1d99702e | 4764 | PyObject * _argo0 = 0; |
6d8b4f8d | 4765 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4766 | |
4767 | self = self; | |
6d8b4f8d | 4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4769 | return NULL; |
1d99702e RD |
4770 | if (_argo0) { |
4771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4774 | return NULL; |
4775 | } | |
4776 | } | |
cf694132 | 4777 | { |
4268f798 | 4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4779 | wxFont_SetStyle(_arg0,_arg1); |
cf694132 | 4780 | |
4268f798 | 4781 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4782 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4783 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4784 | _resultobj = Py_None; |
4785 | return _resultobj; | |
4786 | } | |
4787 | ||
6d8b4f8d RD |
4788 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
4789 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4790 | PyObject * _resultobj; |
4791 | wxFont * _arg0; | |
4792 | int _arg1; | |
1d99702e | 4793 | PyObject * _argo0 = 0; |
6d8b4f8d | 4794 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
4795 | |
4796 | self = self; | |
6d8b4f8d | 4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4798 | return NULL; |
1d99702e RD |
4799 | if (_argo0) { |
4800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4803 | return NULL; |
4804 | } | |
4805 | } | |
cf694132 | 4806 | { |
4268f798 | 4807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4808 | wxFont_SetWeight(_arg0,_arg1); |
6d8b4f8d | 4809 | |
4268f798 | 4810 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4811 | if (PyErr_Occurred()) return NULL; |
4812 | } Py_INCREF(Py_None); | |
4813 | _resultobj = Py_None; | |
4814 | return _resultobj; | |
4815 | } | |
4816 | ||
4817 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4818 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4819 | PyObject * _resultobj; | |
4820 | wxFont * _arg0; | |
4821 | wxString * _arg1; | |
4822 | PyObject * _argo0 = 0; | |
4823 | PyObject * _obj1 = 0; | |
4824 | char *_kwnames[] = { "self","faceName", NULL }; | |
4825 | ||
4826 | self = self; | |
4827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4828 | return NULL; | |
4829 | if (_argo0) { | |
4830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4833 | return NULL; | |
4834 | } | |
4835 | } | |
4836 | { | |
c8bc7bb8 RD |
4837 | _arg1 = wxString_in_helper(_obj1); |
4838 | if (_arg1 == NULL) | |
6d8b4f8d | 4839 | return NULL; |
6d8b4f8d RD |
4840 | } |
4841 | { | |
4268f798 | 4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4843 | wxFont_SetFaceName(_arg0,*_arg1); |
cf694132 | 4844 | |
4268f798 | 4845 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4846 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4847 | } Py_INCREF(Py_None); |
8ab979d7 | 4848 | _resultobj = Py_None; |
6d8b4f8d RD |
4849 | { |
4850 | if (_obj1) | |
4851 | delete _arg1; | |
4852 | } | |
8ab979d7 RD |
4853 | return _resultobj; |
4854 | } | |
4855 | ||
4856 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 4857 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4858 | PyObject * _resultobj; |
4859 | wxFont * _arg0; | |
4860 | bool _arg1; | |
1d99702e | 4861 | PyObject * _argo0 = 0; |
8ab979d7 | 4862 | int tempbool1; |
1afc06c2 | 4863 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
4864 | |
4865 | self = self; | |
1afc06c2 | 4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
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")) { | |
8ab979d7 RD |
4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
4872 | return NULL; | |
4873 | } | |
4874 | } | |
4875 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4876 | { |
4268f798 | 4877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4878 | wxFont_SetUnderlined(_arg0,_arg1); |
cf694132 | 4879 | |
4268f798 | 4880 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4881 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4882 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4883 | _resultobj = Py_None; |
4884 | return _resultobj; | |
4885 | } | |
4886 | ||
6d8b4f8d RD |
4887 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
4888 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4889 | PyObject * _resultobj; |
4890 | wxFont * _arg0; | |
6d8b4f8d | 4891 | wxFontEncoding _arg1; |
1d99702e | 4892 | PyObject * _argo0 = 0; |
6d8b4f8d | 4893 | char *_kwnames[] = { "self","encoding", NULL }; |
8ab979d7 RD |
4894 | |
4895 | self = self; | |
6d8b4f8d | 4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4897 | return NULL; |
1d99702e RD |
4898 | if (_argo0) { |
4899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
8ab979d7 RD |
4902 | return NULL; |
4903 | } | |
4904 | } | |
cf694132 | 4905 | { |
4268f798 | 4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4907 | wxFont_SetEncoding(_arg0,_arg1); |
cf694132 | 4908 | |
4268f798 | 4909 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4911 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4912 | _resultobj = Py_None; |
4913 | return _resultobj; | |
4914 | } | |
4915 | ||
6d8b4f8d RD |
4916 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
4917 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 RD |
4918 | PyObject * _resultobj; |
4919 | wxFont * _arg0; | |
6d8b4f8d | 4920 | wxNativeFontInfo * _arg1; |
f0261a72 | 4921 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4922 | PyObject * _argo1 = 0; |
4923 | char *_kwnames[] = { "self","info", NULL }; | |
f0261a72 RD |
4924 | |
4925 | self = self; | |
6d8b4f8d | 4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
f0261a72 RD |
4927 | return NULL; |
4928 | if (_argo0) { | |
4929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d RD |
4931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
4932 | return NULL; | |
4933 | } | |
4934 | } | |
4935 | if (_argo1) { | |
4936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
f0261a72 RD |
4939 | return NULL; |
4940 | } | |
4941 | } | |
4942 | { | |
4268f798 | 4943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4944 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
f0261a72 | 4945 | |
4268f798 | 4946 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4947 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4948 | } Py_INCREF(Py_None); |
4949 | _resultobj = Py_None; | |
4950 | return _resultobj; | |
4951 | } | |
4952 | ||
b5a5d647 RD |
4953 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
4954 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4955 | PyObject * _resultobj; | |
4956 | wxFont * _arg0; | |
4957 | wxString * _arg1; | |
4958 | PyObject * _argo0 = 0; | |
4959 | PyObject * _obj1 = 0; | |
4960 | char *_kwnames[] = { "self","info", NULL }; | |
4961 | ||
4962 | self = self; | |
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
4964 | return NULL; | |
4965 | if (_argo0) { | |
4966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4969 | return NULL; | |
4970 | } | |
4971 | } | |
4972 | { | |
c8bc7bb8 RD |
4973 | _arg1 = wxString_in_helper(_obj1); |
4974 | if (_arg1 == NULL) | |
b5a5d647 | 4975 | return NULL; |
b5a5d647 RD |
4976 | } |
4977 | { | |
4978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4979 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); |
b5a5d647 RD |
4980 | |
4981 | wxPyEndAllowThreads(__tstate); | |
4982 | if (PyErr_Occurred()) return NULL; | |
4983 | } Py_INCREF(Py_None); | |
4984 | _resultobj = Py_None; | |
4985 | { | |
4986 | if (_obj1) | |
4987 | delete _arg1; | |
4988 | } | |
4989 | return _resultobj; | |
4990 | } | |
4991 | ||
f0261a72 RD |
4992 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
4993 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4994 | PyObject * _resultobj; | |
4995 | wxString * _result; | |
4996 | wxFont * _arg0; | |
4997 | PyObject * _argo0 = 0; | |
4998 | char *_kwnames[] = { "self", NULL }; | |
4999 | ||
5000 | self = self; | |
5001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
5002 | return NULL; | |
5003 | if (_argo0) { | |
5004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
5007 | return NULL; | |
5008 | } | |
5009 | } | |
5010 | { | |
4268f798 | 5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5012 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
f0261a72 | 5013 | |
4268f798 | 5014 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5015 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5016 | }{ |
c8bc7bb8 RD |
5017 | #if wxUSE_UNICODE |
5018 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5019 | #else | |
eec92d76 | 5020 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5021 | #endif |
f0261a72 RD |
5022 | } |
5023 | { | |
5024 | delete _result; | |
5025 | } | |
5026 | return _resultobj; | |
5027 | } | |
5028 | ||
5029 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
5030 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5031 | PyObject * _resultobj; | |
5032 | wxString * _result; | |
5033 | wxFont * _arg0; | |
5034 | PyObject * _argo0 = 0; | |
5035 | char *_kwnames[] = { "self", NULL }; | |
5036 | ||
5037 | self = self; | |
5038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
5039 | return NULL; | |
5040 | if (_argo0) { | |
5041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
5044 | return NULL; | |
5045 | } | |
5046 | } | |
5047 | { | |
4268f798 | 5048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5049 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
f0261a72 | 5050 | |
4268f798 | 5051 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5052 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5053 | }{ |
c8bc7bb8 RD |
5054 | #if wxUSE_UNICODE |
5055 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5056 | #else | |
eec92d76 | 5057 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5058 | #endif |
f0261a72 RD |
5059 | } |
5060 | { | |
5061 | delete _result; | |
5062 | } | |
5063 | return _resultobj; | |
5064 | } | |
5065 | ||
5066 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
5067 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject * _resultobj; | |
5069 | wxString * _result; | |
5070 | wxFont * _arg0; | |
5071 | PyObject * _argo0 = 0; | |
5072 | char *_kwnames[] = { "self", NULL }; | |
5073 | ||
5074 | self = self; | |
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
5076 | return NULL; | |
5077 | if (_argo0) { | |
5078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
5081 | return NULL; | |
5082 | } | |
5083 | } | |
5084 | { | |
4268f798 | 5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5086 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
f0261a72 | 5087 | |
4268f798 | 5088 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5089 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5090 | }{ |
c8bc7bb8 RD |
5091 | #if wxUSE_UNICODE |
5092 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5093 | #else | |
eec92d76 | 5094 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5095 | #endif |
f0261a72 RD |
5096 | } |
5097 | { | |
5098 | delete _result; | |
5099 | } | |
5100 | return _resultobj; | |
5101 | } | |
5102 | ||
6d8b4f8d RD |
5103 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
5104 | PyObject * _resultobj; | |
5105 | wxFontEncoding _result; | |
5106 | char *_kwnames[] = { NULL }; | |
5107 | ||
5108 | self = self; | |
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
5110 | return NULL; | |
5111 | { | |
4268f798 | 5112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5113 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
6d8b4f8d | 5114 | |
4268f798 | 5115 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5116 | if (PyErr_Occurred()) return NULL; |
5117 | } _resultobj = Py_BuildValue("i",_result); | |
5118 | return _resultobj; | |
5119 | } | |
5120 | ||
5121 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5122 | PyObject * _resultobj; | |
5123 | wxFontEncoding _arg0; | |
5124 | char *_kwnames[] = { "encoding", NULL }; | |
5125 | ||
5126 | self = self; | |
5127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
5128 | return NULL; | |
5129 | { | |
4268f798 | 5130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5131 | wxFont::SetDefaultEncoding(_arg0); |
6d8b4f8d | 5132 | |
4268f798 | 5133 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5134 | if (PyErr_Occurred()) return NULL; |
5135 | } Py_INCREF(Py_None); | |
5136 | _resultobj = Py_None; | |
5137 | return _resultobj; | |
5138 | } | |
5139 | ||
9416aa89 RD |
5140 | static void *SwigwxFontListTowxObject(void *ptr) { |
5141 | wxFontList *src; | |
5142 | wxObject *dest; | |
5143 | src = (wxFontList *) ptr; | |
5144 | dest = (wxObject *) src; | |
5145 | return (void *) dest; | |
5146 | } | |
5147 | ||
0569df0f RD |
5148 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
5149 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5150 | PyObject * _resultobj; | |
5151 | wxFontList * _arg0; | |
5152 | wxFont * _arg1; | |
5153 | PyObject * _argo0 = 0; | |
5154 | PyObject * _argo1 = 0; | |
5155 | char *_kwnames[] = { "self","font", NULL }; | |
5156 | ||
5157 | self = self; | |
5158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
5159 | return NULL; | |
5160 | if (_argo0) { | |
5161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
5164 | return NULL; | |
5165 | } | |
5166 | } | |
5167 | if (_argo1) { | |
5168 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5169 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
5171 | return NULL; | |
5172 | } | |
5173 | } | |
5174 | { | |
4268f798 | 5175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5176 | wxFontList_AddFont(_arg0,_arg1); |
0569df0f | 5177 | |
4268f798 | 5178 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5179 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5180 | } Py_INCREF(Py_None); |
5181 | _resultobj = Py_None; | |
5182 | return _resultobj; | |
5183 | } | |
5184 | ||
5185 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5186 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5187 | PyObject * _resultobj; | |
5188 | wxFont * _result; | |
5189 | wxFontList * _arg0; | |
5190 | int _arg1; | |
5191 | int _arg2; | |
5192 | int _arg3; | |
5193 | int _arg4; | |
5194 | bool _arg5 = (bool ) FALSE; | |
5195 | char * _arg6 = (char *) NULL; | |
5196 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
5197 | PyObject * _argo0 = 0; | |
5198 | int tempbool5 = (int) FALSE; | |
5199 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
5200 | char _ptemp[128]; | |
5201 | ||
5202 | self = self; | |
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
5204 | return NULL; | |
5205 | if (_argo0) { | |
5206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
5209 | return NULL; | |
5210 | } | |
5211 | } | |
5212 | _arg5 = (bool ) tempbool5; | |
5213 | { | |
4268f798 | 5214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5215 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
0569df0f | 5216 | |
4268f798 | 5217 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5218 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5219 | } if (_result) { |
5220 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5221 | _resultobj = Py_BuildValue("s",_ptemp); | |
5222 | } else { | |
5223 | Py_INCREF(Py_None); | |
5224 | _resultobj = Py_None; | |
5225 | } | |
5226 | return _resultobj; | |
5227 | } | |
5228 | ||
5229 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
5230 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5231 | PyObject * _resultobj; | |
5232 | wxFontList * _arg0; | |
5233 | wxFont * _arg1; | |
5234 | PyObject * _argo0 = 0; | |
5235 | PyObject * _argo1 = 0; | |
5236 | char *_kwnames[] = { "self","font", NULL }; | |
5237 | ||
5238 | self = self; | |
5239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
5240 | return NULL; | |
5241 | if (_argo0) { | |
5242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
5245 | return NULL; | |
5246 | } | |
5247 | } | |
5248 | if (_argo1) { | |
5249 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5250 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
5252 | return NULL; | |
5253 | } | |
5254 | } | |
5255 | { | |
4268f798 | 5256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5257 | wxFontList_RemoveFont(_arg0,_arg1); |
0569df0f | 5258 | |
4268f798 | 5259 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5260 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5261 | } Py_INCREF(Py_None); |
5262 | _resultobj = Py_None; | |
5263 | return _resultobj; | |
5264 | } | |
5265 | ||
2f4e9287 RD |
5266 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
5267 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5268 | PyObject * _resultobj; | |
5269 | int _result; | |
5270 | wxFontList * _arg0; | |
5271 | PyObject * _argo0 = 0; | |
5272 | char *_kwnames[] = { "self", NULL }; | |
5273 | ||
5274 | self = self; | |
5275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
5276 | return NULL; | |
5277 | if (_argo0) { | |
5278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
5281 | return NULL; | |
5282 | } | |
5283 | } | |
5284 | { | |
4268f798 | 5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5286 | _result = (int )wxFontList_GetCount(_arg0); |
2f4e9287 | 5287 | |
4268f798 | 5288 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
5289 | if (PyErr_Occurred()) return NULL; |
5290 | } _resultobj = Py_BuildValue("i",_result); | |
5291 | return _resultobj; | |
5292 | } | |
5293 | ||
9416aa89 RD |
5294 | static void *SwigwxColourTowxObject(void *ptr) { |
5295 | wxColour *src; | |
5296 | wxObject *dest; | |
5297 | src = (wxColour *) ptr; | |
5298 | dest = (wxObject *) src; | |
5299 | return (void *) dest; | |
5300 | } | |
5301 | ||
8ab979d7 | 5302 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5303 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5304 | PyObject * _resultobj; |
5305 | wxColour * _result; | |
1d99702e RD |
5306 | unsigned char _arg0 = (unsigned char ) 0; |
5307 | unsigned char _arg1 = (unsigned char ) 0; | |
5308 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 5309 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
5310 | char _ptemp[128]; |
5311 | ||
5312 | self = self; | |
1afc06c2 | 5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 5314 | return NULL; |
cf694132 | 5315 | { |
4268f798 | 5316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5317 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
cf694132 | 5318 | |
4268f798 | 5319 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5320 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5321 | } if (_result) { |
5322 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5323 | _resultobj = Py_BuildValue("s",_ptemp); | |
5324 | } else { | |
5325 | Py_INCREF(Py_None); | |
5326 | _resultobj = Py_None; | |
5327 | } | |
8ab979d7 RD |
5328 | return _resultobj; |
5329 | } | |
5330 | ||
5331 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 5332 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5333 | PyObject * _resultobj; |
5334 | wxColour * _arg0; | |
f6bcfd97 BP |
5335 | wxColour temp; |
5336 | PyObject * _obj0 = 0; | |
1afc06c2 | 5337 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5338 | |
5339 | self = self; | |
f6bcfd97 | 5340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 5341 | return NULL; |
f6bcfd97 BP |
5342 | { |
5343 | _arg0 = &temp; | |
5344 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5345 | return NULL; |
f6bcfd97 | 5346 | } |
cf694132 | 5347 | { |
4268f798 | 5348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5349 | delete_wxColour(_arg0); |
cf694132 | 5350 | |
4268f798 | 5351 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5353 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5354 | _resultobj = Py_None; |
5355 | return _resultobj; | |
5356 | } | |
5357 | ||
5358 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 5359 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5360 | PyObject * _resultobj; |
5361 | unsigned char _result; | |
5362 | wxColour * _arg0; | |
f6bcfd97 BP |
5363 | wxColour temp; |
5364 | PyObject * _obj0 = 0; | |
1afc06c2 | 5365 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5366 | |
5367 | self = self; | |
f6bcfd97 | 5368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 5369 | return NULL; |
f6bcfd97 BP |
5370 | { |
5371 | _arg0 = &temp; | |
5372 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5373 | return NULL; |
f6bcfd97 | 5374 | } |
cf694132 | 5375 | { |
4268f798 | 5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5377 | _result = (unsigned char )wxColour_Red(_arg0); |
cf694132 | 5378 | |
4268f798 | 5379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5381 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5382 | return _resultobj; |
5383 | } | |
5384 | ||
5385 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 5386 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5387 | PyObject * _resultobj; |
5388 | unsigned char _result; | |
5389 | wxColour * _arg0; | |
f6bcfd97 BP |
5390 | wxColour temp; |
5391 | PyObject * _obj0 = 0; | |
1afc06c2 | 5392 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5393 | |
5394 | self = self; | |
f6bcfd97 | 5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 5396 | return NULL; |
f6bcfd97 BP |
5397 | { |
5398 | _arg0 = &temp; | |
5399 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5400 | return NULL; |
f6bcfd97 | 5401 | } |
cf694132 | 5402 | { |
4268f798 | 5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5404 | _result = (unsigned char )wxColour_Green(_arg0); |
cf694132 | 5405 | |
4268f798 | 5406 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5407 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5408 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5409 | return _resultobj; |
5410 | } | |
5411 | ||
5412 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 5413 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5414 | PyObject * _resultobj; |
5415 | unsigned char _result; | |
5416 | wxColour * _arg0; | |
f6bcfd97 BP |
5417 | wxColour temp; |
5418 | PyObject * _obj0 = 0; | |
1afc06c2 | 5419 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5420 | |
5421 | self = self; | |
f6bcfd97 | 5422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 5423 | return NULL; |
f6bcfd97 BP |
5424 | { |
5425 | _arg0 = &temp; | |
5426 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5427 | return NULL; |
f6bcfd97 | 5428 | } |
cf694132 | 5429 | { |
4268f798 | 5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5431 | _result = (unsigned char )wxColour_Blue(_arg0); |
cf694132 | 5432 | |
4268f798 | 5433 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5435 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5436 | return _resultobj; |
5437 | } | |
5438 | ||
5439 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5440 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5441 | PyObject * _resultobj; |
5442 | bool _result; | |
5443 | wxColour * _arg0; | |
f6bcfd97 BP |
5444 | wxColour temp; |
5445 | PyObject * _obj0 = 0; | |
1afc06c2 | 5446 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5447 | |
5448 | self = self; | |
f6bcfd97 | 5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 5450 | return NULL; |
f6bcfd97 BP |
5451 | { |
5452 | _arg0 = &temp; | |
5453 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5454 | return NULL; |
f6bcfd97 | 5455 | } |
cf694132 | 5456 | { |
4268f798 | 5457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5458 | _result = (bool )wxColour_Ok(_arg0); |
cf694132 | 5459 | |
4268f798 | 5460 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5461 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5462 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5463 | return _resultobj; |
5464 | } | |
5465 | ||
5466 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5467 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5468 | PyObject * _resultobj; |
5469 | wxColour * _arg0; | |
5470 | unsigned char _arg1; | |
5471 | unsigned char _arg2; | |
5472 | unsigned char _arg3; | |
f6bcfd97 BP |
5473 | wxColour temp; |
5474 | PyObject * _obj0 = 0; | |
1afc06c2 | 5475 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
5476 | |
5477 | self = self; | |
f6bcfd97 | 5478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 5479 | return NULL; |
f6bcfd97 BP |
5480 | { |
5481 | _arg0 = &temp; | |
5482 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5483 | return NULL; |
f6bcfd97 | 5484 | } |
cf694132 | 5485 | { |
4268f798 | 5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5487 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 5488 | |
4268f798 | 5489 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5490 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5491 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5492 | _resultobj = Py_None; |
5493 | return _resultobj; | |
5494 | } | |
5495 | ||
5496 | static PyObject * wxColour_Get(wxColour *self) { | |
5497 | PyObject* rv = PyTuple_New(3); | |
5498 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
5499 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
5500 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
5501 | return rv; | |
5502 | } | |
1afc06c2 | 5503 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5504 | PyObject * _resultobj; |
5505 | PyObject * _result; | |
5506 | wxColour * _arg0; | |
f6bcfd97 BP |
5507 | wxColour temp; |
5508 | PyObject * _obj0 = 0; | |
1afc06c2 | 5509 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5510 | |
5511 | self = self; | |
f6bcfd97 | 5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 5513 | return NULL; |
f6bcfd97 BP |
5514 | { |
5515 | _arg0 = &temp; | |
5516 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5517 | return NULL; |
f6bcfd97 | 5518 | } |
8ab979d7 | 5519 | { |
4268f798 | 5520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5521 | _result = (PyObject *)wxColour_Get(_arg0); |
cf694132 | 5522 | |
4268f798 | 5523 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5524 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5525 | }{ |
8ab979d7 RD |
5526 | _resultobj = _result; |
5527 | } | |
5528 | return _resultobj; | |
5529 | } | |
5530 | ||
9416aa89 RD |
5531 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
5532 | wxColourDatabase *src; | |
5533 | wxObject *dest; | |
5534 | src = (wxColourDatabase *) ptr; | |
5535 | dest = (wxObject *) src; | |
5536 | return (void *) dest; | |
5537 | } | |
5538 | ||
0569df0f RD |
5539 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
5540 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject * _resultobj; | |
5542 | wxColour * _result; | |
5543 | wxColourDatabase * _arg0; | |
5544 | wxString * _arg1; | |
5545 | PyObject * _argo0 = 0; | |
5546 | PyObject * _obj1 = 0; | |
5547 | char *_kwnames[] = { "self","colour", NULL }; | |
5548 | char _ptemp[128]; | |
5549 | ||
5550 | self = self; | |
5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
5552 | return NULL; | |
5553 | if (_argo0) { | |
5554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
5557 | return NULL; | |
8ab979d7 | 5558 | } |
0569df0f RD |
5559 | } |
5560 | { | |
c8bc7bb8 RD |
5561 | _arg1 = wxString_in_helper(_obj1); |
5562 | if (_arg1 == NULL) | |
0569df0f | 5563 | return NULL; |
0569df0f RD |
5564 | } |
5565 | { | |
4268f798 | 5566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5567 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
8ab979d7 | 5568 | |
4268f798 | 5569 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5570 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5571 | } if (_result) { |
5572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5573 | _resultobj = Py_BuildValue("s",_ptemp); | |
5574 | } else { | |
5575 | Py_INCREF(Py_None); | |
5576 | _resultobj = Py_None; | |
5577 | } | |
5578 | { | |
5579 | if (_obj1) | |
5580 | delete _arg1; | |
5581 | } | |
5582 | return _resultobj; | |
5583 | } | |
5584 | ||
5585 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
5586 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject * _resultobj; | |
5588 | wxString * _result; | |
5589 | wxColourDatabase * _arg0; | |
5590 | wxColour * _arg1; | |
5591 | PyObject * _argo0 = 0; | |
5592 | wxColour temp; | |
5593 | PyObject * _obj1 = 0; | |
5594 | char *_kwnames[] = { "self","colour", NULL }; | |
5595 | ||
5596 | self = self; | |
5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
5598 | return NULL; | |
5599 | if (_argo0) { | |
5600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
5606 | { | |
5607 | _arg1 = &temp; | |
5608 | if (! wxColour_helper(_obj1, &_arg1)) | |
5609 | return NULL; | |
5610 | } | |
5611 | { | |
4268f798 | 5612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5613 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
0569df0f | 5614 | |
4268f798 | 5615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5616 | if (PyErr_Occurred()) return NULL; |
0569df0f | 5617 | }{ |
c8bc7bb8 RD |
5618 | #if wxUSE_UNICODE |
5619 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5620 | #else | |
0569df0f | 5621 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5622 | #endif |
0569df0f RD |
5623 | } |
5624 | { | |
5625 | delete _result; | |
5626 | } | |
5627 | return _resultobj; | |
5628 | } | |
5629 | ||
5630 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
fe40185d RD |
5631 | // first see if the name is already there |
5632 | wxString cName = name; | |
5633 | cName.MakeUpper(); | |
5634 | wxString cName2 = cName; | |
a541c325 | 5635 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) |
fe40185d RD |
5636 | cName2.clear(); |
5637 | ||
5638 | wxNode *node = self->First(); | |
5639 | while ( node ) { | |
5640 | const wxChar *key = node->GetKeyString(); | |
5641 | if ( cName == key || cName2 == key ) { | |
5642 | wxColour* c = (wxColour *)node->Data(); | |
5643 | c->Set(red, green, blue); | |
5644 | return; | |
5645 | } | |
5646 | node = node->Next(); | |
5647 | } | |
5648 | ||
5649 | // otherwise append the new colour | |
0569df0f RD |
5650 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
5651 | } | |
5652 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5653 | PyObject * _resultobj; | |
5654 | wxColourDatabase * _arg0; | |
5655 | wxString * _arg1; | |
5656 | int _arg2; | |
5657 | int _arg3; | |
5658 | int _arg4; | |
5659 | PyObject * _argo0 = 0; | |
5660 | PyObject * _obj1 = 0; | |
5661 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5662 | ||
5663 | self = self; | |
5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5665 | return NULL; | |
5666 | if (_argo0) { | |
5667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5670 | return NULL; | |
5671 | } | |
5672 | } | |
5673 | { | |
c8bc7bb8 RD |
5674 | _arg1 = wxString_in_helper(_obj1); |
5675 | if (_arg1 == NULL) | |
0569df0f | 5676 | return NULL; |
0569df0f RD |
5677 | } |
5678 | { | |
4268f798 | 5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5680 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
0569df0f | 5681 | |
4268f798 | 5682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5683 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5684 | } Py_INCREF(Py_None); |
5685 | _resultobj = Py_None; | |
5686 | { | |
5687 | if (_obj1) | |
5688 | delete _arg1; | |
5689 | } | |
5690 | return _resultobj; | |
5691 | } | |
5692 | ||
9416aa89 RD |
5693 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
5694 | wxPen *src; | |
5695 | wxGDIObject *dest; | |
5696 | src = (wxPen *) ptr; | |
5697 | dest = (wxGDIObject *) src; | |
5698 | return (void *) dest; | |
5699 | } | |
5700 | ||
5701 | static void *SwigwxPenTowxObject(void *ptr) { | |
5702 | wxPen *src; | |
5703 | wxObject *dest; | |
5704 | src = (wxPen *) ptr; | |
5705 | dest = (wxObject *) src; | |
5706 | return (void *) dest; | |
5707 | } | |
5708 | ||
0569df0f | 5709 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5710 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5711 | PyObject * _resultobj; |
5712 | wxPen * _result; | |
5713 | wxColour * _arg0; | |
1d99702e RD |
5714 | int _arg1 = (int ) 1; |
5715 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
5716 | wxColour temp; |
5717 | PyObject * _obj0 = 0; | |
1afc06c2 | 5718 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
5719 | char _ptemp[128]; |
5720 | ||
5721 | self = self; | |
f6bcfd97 | 5722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 5723 | return NULL; |
f6bcfd97 BP |
5724 | { |
5725 | _arg0 = &temp; | |
5726 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5727 | return NULL; |
f6bcfd97 | 5728 | } |
cf694132 | 5729 | { |
4268f798 | 5730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5731 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 | 5732 | |
4268f798 | 5733 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5734 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5735 | } if (_result) { |
5736 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5737 | _resultobj = Py_BuildValue("s",_ptemp); | |
5738 | } else { | |
5739 | Py_INCREF(Py_None); | |
5740 | _resultobj = Py_None; | |
5741 | } | |
8ab979d7 RD |
5742 | return _resultobj; |
5743 | } | |
5744 | ||
0569df0f RD |
5745 | #define delete_wxPen(_swigobj) (delete _swigobj) |
5746 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject * _resultobj; | |
5748 | wxPen * _arg0; | |
5749 | PyObject * _argo0 = 0; | |
5750 | char *_kwnames[] = { "self", NULL }; | |
5751 | ||
5752 | self = self; | |
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5754 | return NULL; | |
5755 | if (_argo0) { | |
5756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5759 | return NULL; | |
5760 | } | |
5761 | } | |
5762 | { | |
4268f798 | 5763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5764 | delete_wxPen(_arg0); |
0569df0f | 5765 | |
4268f798 | 5766 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5767 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5768 | } Py_INCREF(Py_None); |
5769 | _resultobj = Py_None; | |
5770 | return _resultobj; | |
5771 | } | |
5772 | ||
8ab979d7 | 5773 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 5774 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5775 | PyObject * _resultobj; |
5776 | int _result; | |
5777 | wxPen * _arg0; | |
1d99702e | 5778 | PyObject * _argo0 = 0; |
1afc06c2 | 5779 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5780 | |
5781 | self = self; | |
1afc06c2 | 5782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 5783 | return NULL; |
1d99702e RD |
5784 | if (_argo0) { |
5785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
5788 | return NULL; | |
5789 | } | |
5790 | } | |
cf694132 | 5791 | { |
4268f798 | 5792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5793 | _result = (int )wxPen_GetCap(_arg0); |
cf694132 | 5794 | |
4268f798 | 5795 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5796 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5797 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5798 | return _resultobj; |
5799 | } | |
5800 | ||
5801 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 5802 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5803 | PyObject * _resultobj; |
5804 | wxColour * _result; | |
5805 | wxPen * _arg0; | |
1d99702e | 5806 | PyObject * _argo0 = 0; |
1afc06c2 | 5807 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5808 | char _ptemp[128]; |
5809 | ||
5810 | self = self; | |
1afc06c2 | 5811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 5812 | return NULL; |
1d99702e RD |
5813 | if (_argo0) { |
5814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
5817 | return NULL; | |
5818 | } | |
5819 | } | |
cf694132 | 5820 | { |
4268f798 | 5821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5822 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 | 5823 | |
4268f798 | 5824 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5825 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5826 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5827 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5828 | return _resultobj; |
5829 | } | |
5830 | ||
8ab979d7 | 5831 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 5832 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5833 | PyObject * _resultobj; |
5834 | int _result; | |
5835 | wxPen * _arg0; | |
1d99702e | 5836 | PyObject * _argo0 = 0; |
1afc06c2 | 5837 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5838 | |
5839 | self = self; | |
1afc06c2 | 5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 5841 | return NULL; |
1d99702e RD |
5842 | if (_argo0) { |
5843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
5846 | return NULL; | |
5847 | } | |
5848 | } | |
cf694132 | 5849 | { |
4268f798 | 5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5851 | _result = (int )wxPen_GetJoin(_arg0); |
cf694132 | 5852 | |
4268f798 | 5853 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5854 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5855 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5856 | return _resultobj; |
5857 | } | |
5858 | ||
5859 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 5860 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5861 | PyObject * _resultobj; |
5862 | int _result; | |
5863 | wxPen * _arg0; | |
1d99702e | 5864 | PyObject * _argo0 = 0; |
1afc06c2 | 5865 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5866 | |
5867 | self = self; | |
1afc06c2 | 5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 5869 | return NULL; |
1d99702e RD |
5870 | if (_argo0) { |
5871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
5874 | return NULL; | |
5875 | } | |
5876 | } | |
cf694132 | 5877 | { |
4268f798 | 5878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5879 | _result = (int )wxPen_GetStyle(_arg0); |
cf694132 | 5880 | |
4268f798 | 5881 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5882 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5883 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5884 | return _resultobj; |
5885 | } | |
5886 | ||
5887 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 5888 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5889 | PyObject * _resultobj; |
5890 | int _result; | |
5891 | wxPen * _arg0; | |
1d99702e | 5892 | PyObject * _argo0 = 0; |
1afc06c2 | 5893 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5894 | |
5895 | self = self; | |
1afc06c2 | 5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 5897 | return NULL; |
1d99702e RD |
5898 | if (_argo0) { |
5899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
5902 | return NULL; | |
5903 | } | |
5904 | } | |
cf694132 | 5905 | { |
4268f798 | 5906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5907 | _result = (int )wxPen_GetWidth(_arg0); |
cf694132 | 5908 | |
4268f798 | 5909 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5911 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5912 | return _resultobj; |
5913 | } | |
5914 | ||
5915 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5916 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5917 | PyObject * _resultobj; |
5918 | bool _result; | |
5919 | wxPen * _arg0; | |
1d99702e | 5920 | PyObject * _argo0 = 0; |
1afc06c2 | 5921 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5922 | |
5923 | self = self; | |
1afc06c2 | 5924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 5925 | return NULL; |
1d99702e RD |
5926 | if (_argo0) { |
5927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
5930 | return NULL; | |
5931 | } | |
5932 | } | |
cf694132 | 5933 | { |
4268f798 | 5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5935 | _result = (bool )wxPen_Ok(_arg0); |
cf694132 | 5936 | |
4268f798 | 5937 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5938 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5939 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5940 | return _resultobj; |
5941 | } | |
5942 | ||
5943 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 5944 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5945 | PyObject * _resultobj; |
5946 | wxPen * _arg0; | |
5947 | int _arg1; | |
1d99702e | 5948 | PyObject * _argo0 = 0; |
1afc06c2 | 5949 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
5950 | |
5951 | self = self; | |
1afc06c2 | 5952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5953 | return NULL; |
1d99702e RD |
5954 | if (_argo0) { |
5955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
5958 | return NULL; | |
5959 | } | |
5960 | } | |
cf694132 | 5961 | { |
4268f798 | 5962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5963 | wxPen_SetCap(_arg0,_arg1); |
cf694132 | 5964 | |
4268f798 | 5965 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5966 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5967 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5968 | _resultobj = Py_None; |
5969 | return _resultobj; | |
5970 | } | |
5971 | ||
5972 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 5973 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5974 | PyObject * _resultobj; |
5975 | wxPen * _arg0; | |
5976 | wxColour * _arg1; | |
1d99702e | 5977 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5978 | wxColour temp; |
5979 | PyObject * _obj1 = 0; | |
1afc06c2 | 5980 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
5981 | |
5982 | self = self; | |
f6bcfd97 | 5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
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_SetColour. Expected _wxPen_p."); |
5989 | return NULL; | |
5990 | } | |
5991 | } | |
f6bcfd97 BP |
5992 | { |
5993 | _arg1 = &temp; | |
5994 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 5995 | return NULL; |
f6bcfd97 | 5996 | } |
cf694132 | 5997 | { |
4268f798 | 5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5999 | wxPen_SetColour(_arg0,*_arg1); |
cf694132 | 6000 | |
4268f798 | 6001 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6002 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6003 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6004 | _resultobj = Py_None; |
6005 | return _resultobj; | |
6006 | } | |
6007 | ||
2ea09579 | 6008 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 6009 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6010 | PyObject * _resultobj; |
6011 | wxPen * _arg0; | |
6012 | int _arg1; | |
1d99702e | 6013 | PyObject * _argo0 = 0; |
1afc06c2 | 6014 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
6015 | |
6016 | self = self; | |
1afc06c2 | 6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6018 | return NULL; |
1d99702e RD |
6019 | if (_argo0) { |
6020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
6023 | return NULL; |
6024 | } | |
6025 | } | |
cf694132 | 6026 | { |
4268f798 | 6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6028 | wxPen_SetJoin(_arg0,_arg1); |
cf694132 | 6029 | |
4268f798 | 6030 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6032 | } Py_INCREF(Py_None); |
2ea09579 RD |
6033 | _resultobj = Py_None; |
6034 | return _resultobj; | |
6035 | } | |
6036 | ||
6037 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6038 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6039 | PyObject * _resultobj; |
6040 | wxPen * _arg0; | |
6041 | int _arg1; | |
1d99702e | 6042 | PyObject * _argo0 = 0; |
1afc06c2 | 6043 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
6044 | |
6045 | self = self; | |
1afc06c2 | 6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6047 | return NULL; |
1d99702e RD |
6048 | if (_argo0) { |
6049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
6052 | return NULL; | |
6053 | } | |
8ab979d7 | 6054 | } |
cf694132 | 6055 | { |
4268f798 | 6056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6057 | wxPen_SetStyle(_arg0,_arg1); |
cf694132 | 6058 | |
4268f798 | 6059 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6060 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6061 | } Py_INCREF(Py_None); |
8ab979d7 | 6062 | _resultobj = Py_None; |
2ea09579 | 6063 | return _resultobj; |
8ab979d7 | 6064 | } |
2ea09579 RD |
6065 | |
6066 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 6067 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6068 | PyObject * _resultobj; |
6069 | wxPen * _arg0; | |
6070 | int _arg1; | |
1d99702e | 6071 | PyObject * _argo0 = 0; |
1afc06c2 | 6072 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
6073 | |
6074 | self = self; | |
1afc06c2 | 6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 6076 | return NULL; |
1d99702e RD |
6077 | if (_argo0) { |
6078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
6081 | return NULL; | |
6082 | } | |
6083 | } | |
cf694132 | 6084 | { |
4268f798 | 6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6086 | wxPen_SetWidth(_arg0,_arg1); |
cf694132 | 6087 | |
4268f798 | 6088 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6089 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6090 | } Py_INCREF(Py_None); |
2ea09579 | 6091 | _resultobj = Py_None; |
8ab979d7 RD |
6092 | return _resultobj; |
6093 | } | |
6094 | ||
2ea09579 | 6095 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 6096 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6097 | PyObject * _resultobj; |
6098 | wxPen * _arg0; | |
6099 | int _arg1; | |
2ea09579 | 6100 | wxDash * _arg2; |
1d99702e | 6101 | PyObject * _argo0 = 0; |
2ea09579 | 6102 | PyObject * _obj2 = 0; |
eec92d76 | 6103 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
6104 | |
6105 | self = self; | |
1afc06c2 | 6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 6107 | return NULL; |
1d99702e RD |
6108 | if (_argo0) { |
6109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
6112 | return NULL; |
6113 | } | |
6114 | } | |
2ea09579 RD |
6115 | if (_obj2) |
6116 | { | |
f6bcfd97 | 6117 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
6118 | if (_arg2 == NULL) { |
6119 | return NULL; | |
6120 | } | |
6121 | } | |
6122 | { | |
cf694132 RD |
6123 | if (_obj2) { |
6124 | _arg1 = PyList_Size(_obj2); | |
6125 | } | |
6126 | else { | |
6127 | _arg1 = 0; | |
6128 | } | |
2ea09579 | 6129 | } |
cf694132 | 6130 | { |
4268f798 | 6131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6132 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
cf694132 | 6133 | |
4268f798 | 6134 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6135 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6136 | } Py_INCREF(Py_None); |
8ab979d7 | 6137 | _resultobj = Py_None; |
2ea09579 RD |
6138 | { |
6139 | delete [] _arg2; | |
6140 | } | |
8ab979d7 RD |
6141 | return _resultobj; |
6142 | } | |
6143 | ||
6999b0d8 RD |
6144 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
6145 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6146 | PyObject * _resultobj; | |
6147 | wxBitmap * _result; | |
6148 | wxPen * _arg0; | |
6149 | PyObject * _argo0 = 0; | |
6150 | char *_kwnames[] = { "self", NULL }; | |
6151 | char _ptemp[128]; | |
6152 | ||
6153 | self = self; | |
6154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
6155 | return NULL; | |
6156 | if (_argo0) { | |
6157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
6159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
6160 | return NULL; | |
6161 | } | |
6162 | } | |
6163 | { | |
4268f798 | 6164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6165 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); |
6999b0d8 | 6166 | |
4268f798 | 6167 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6168 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
6169 | } if (_result) { |
6170 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6171 | _resultobj = Py_BuildValue("s",_ptemp); | |
6172 | } else { | |
6173 | Py_INCREF(Py_None); | |
6174 | _resultobj = Py_None; | |
6175 | } | |
6176 | return _resultobj; | |
6177 | } | |
6178 | ||
2ea09579 | 6179 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 6180 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6181 | PyObject * _resultobj; |
6182 | wxPen * _arg0; | |
2ea09579 | 6183 | wxBitmap * _arg1; |
1d99702e RD |
6184 | PyObject * _argo0 = 0; |
6185 | PyObject * _argo1 = 0; | |
1afc06c2 | 6186 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
6187 | |
6188 | self = self; | |
1afc06c2 | 6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6190 | return NULL; |
1d99702e RD |
6191 | if (_argo0) { |
6192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
6195 | return NULL; |
6196 | } | |
6197 | } | |
1d99702e RD |
6198 | if (_argo1) { |
6199 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6200 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
6201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
6202 | return NULL; | |
6203 | } | |
6204 | } | |
cf694132 | 6205 | { |
4268f798 | 6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6207 | wxPen_SetStipple(_arg0,*_arg1); |
cf694132 | 6208 | |
4268f798 | 6209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6211 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6212 | _resultobj = Py_None; |
6213 | return _resultobj; | |
6214 | } | |
6215 | ||
ecc08ead RD |
6216 | static void *SwigwxPyPenTowxPen(void *ptr) { |
6217 | wxPyPen *src; | |
6218 | wxPen *dest; | |
6219 | src = (wxPyPen *) ptr; | |
6220 | dest = (wxPen *) src; | |
6221 | return (void *) dest; | |
6222 | } | |
6223 | ||
6224 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
6225 | wxPyPen *src; | |
6226 | wxGDIObject *dest; | |
6227 | src = (wxPyPen *) ptr; | |
6228 | dest = (wxGDIObject *) src; | |
6229 | return (void *) dest; | |
6230 | } | |
6231 | ||
6232 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
6233 | wxPyPen *src; | |
6234 | wxObject *dest; | |
6235 | src = (wxPyPen *) ptr; | |
6236 | dest = (wxObject *) src; | |
6237 | return (void *) dest; | |
6238 | } | |
6239 | ||
6240 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
6241 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6242 | PyObject * _resultobj; | |
6243 | wxPyPen * _result; | |
6244 | wxColour * _arg0; | |
6245 | int _arg1 = (int ) 1; | |
6246 | int _arg2 = (int ) wxSOLID; | |
6247 | wxColour temp; | |
6248 | PyObject * _obj0 = 0; | |
6249 | char *_kwnames[] = { "colour","width","style", NULL }; | |
6250 | char _ptemp[128]; | |
6251 | ||
6252 | self = self; | |
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
6254 | return NULL; | |
6255 | { | |
6256 | _arg0 = &temp; | |
6257 | if (! wxColour_helper(_obj0, &_arg0)) | |
6258 | return NULL; | |
6259 | } | |
6260 | { | |
4268f798 | 6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6262 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
ecc08ead | 6263 | |
4268f798 | 6264 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6265 | if (PyErr_Occurred()) return NULL; |
6266 | } if (_result) { | |
6267 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
6268 | _resultobj = Py_BuildValue("s",_ptemp); | |
6269 | } else { | |
6270 | Py_INCREF(Py_None); | |
6271 | _resultobj = Py_None; | |
6272 | } | |
6273 | return _resultobj; | |
6274 | } | |
6275 | ||
6276 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
6277 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6278 | PyObject * _resultobj; | |
6279 | wxPyPen * _arg0; | |
6280 | PyObject * _argo0 = 0; | |
6281 | char *_kwnames[] = { "self", NULL }; | |
6282 | ||
6283 | self = self; | |
6284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
6285 | return NULL; | |
6286 | if (_argo0) { | |
6287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
6290 | return NULL; | |
6291 | } | |
6292 | } | |
6293 | { | |
4268f798 | 6294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6295 | delete_wxPyPen(_arg0); |
ecc08ead | 6296 | |
4268f798 | 6297 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6298 | if (PyErr_Occurred()) return NULL; |
6299 | } Py_INCREF(Py_None); | |
6300 | _resultobj = Py_None; | |
6301 | return _resultobj; | |
6302 | } | |
6303 | ||
6304 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
6305 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6306 | PyObject * _resultobj; | |
6307 | wxPyPen * _arg0; | |
6308 | int _arg1; | |
6309 | wxDash * _arg2; | |
6310 | PyObject * _argo0 = 0; | |
6311 | PyObject * _obj2 = 0; | |
6312 | char *_kwnames[] = { "self","choices", NULL }; | |
6313 | ||
6314 | self = self; | |
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
6316 | return NULL; | |
6317 | if (_argo0) { | |
6318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
6321 | return NULL; | |
6322 | } | |
6323 | } | |
6324 | if (_obj2) | |
6325 | { | |
6326 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
6327 | if (_arg2 == NULL) { | |
6328 | return NULL; | |
6329 | } | |
6330 | } | |
6331 | { | |
6332 | if (_obj2) { | |
6333 | _arg1 = PyList_Size(_obj2); | |
6334 | } | |
6335 | else { | |
6336 | _arg1 = 0; | |
6337 | } | |
6338 | } | |
6339 | { | |
4268f798 | 6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6341 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
ecc08ead | 6342 | |
4268f798 | 6343 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6344 | if (PyErr_Occurred()) return NULL; |
6345 | } Py_INCREF(Py_None); | |
6346 | _resultobj = Py_None; | |
6347 | { | |
6348 | delete [] _arg2; | |
6349 | } | |
6350 | return _resultobj; | |
6351 | } | |
6352 | ||
9416aa89 RD |
6353 | static void *SwigwxPenListTowxObject(void *ptr) { |
6354 | wxPenList *src; | |
6355 | wxObject *dest; | |
6356 | src = (wxPenList *) ptr; | |
6357 | dest = (wxObject *) src; | |
6358 | return (void *) dest; | |
6359 | } | |
6360 | ||
0569df0f RD |
6361 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
6362 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6363 | PyObject * _resultobj; | |
6364 | wxPenList * _arg0; | |
6365 | wxPen * _arg1; | |
6366 | PyObject * _argo0 = 0; | |
6367 | PyObject * _argo1 = 0; | |
6368 | char *_kwnames[] = { "self","pen", NULL }; | |
6369 | ||
6370 | self = self; | |
6371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
6372 | return NULL; | |
6373 | if (_argo0) { | |
6374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
6377 | return NULL; | |
6378 | } | |
6379 | } | |
6380 | if (_argo1) { | |
6381 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6382 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
6384 | return NULL; | |
6385 | } | |
6386 | } | |
6387 | { | |
4268f798 | 6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6389 | wxPenList_AddPen(_arg0,_arg1); |
0569df0f | 6390 | |
4268f798 | 6391 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6392 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6393 | } Py_INCREF(Py_None); |
6394 | _resultobj = Py_None; | |
6395 | return _resultobj; | |
6396 | } | |
6397 | ||
6398 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
6399 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6400 | PyObject * _resultobj; | |
6401 | wxPen * _result; | |
6402 | wxPenList * _arg0; | |
6403 | wxColour * _arg1; | |
6404 | int _arg2; | |
6405 | int _arg3; | |
6406 | PyObject * _argo0 = 0; | |
6407 | wxColour temp; | |
6408 | PyObject * _obj1 = 0; | |
6409 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
6410 | char _ptemp[128]; | |
6411 | ||
6412 | self = self; | |
6413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
6414 | return NULL; | |
6415 | if (_argo0) { | |
6416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
6419 | return NULL; | |
6420 | } | |
6421 | } | |
6422 | { | |
6423 | _arg1 = &temp; | |
6424 | if (! wxColour_helper(_obj1, &_arg1)) | |
6425 | return NULL; | |
6426 | } | |
6427 | { | |
4268f798 | 6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6429 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
0569df0f | 6430 | |
4268f798 | 6431 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6432 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6433 | } if (_result) { |
6434 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6435 | _resultobj = Py_BuildValue("s",_ptemp); | |
6436 | } else { | |
6437 | Py_INCREF(Py_None); | |
6438 | _resultobj = Py_None; | |
6439 | } | |
6440 | return _resultobj; | |
6441 | } | |
6442 | ||
6443 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
6444 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6445 | PyObject * _resultobj; | |
6446 | wxPenList * _arg0; | |
6447 | wxPen * _arg1; | |
6448 | PyObject * _argo0 = 0; | |
6449 | PyObject * _argo1 = 0; | |
6450 | char *_kwnames[] = { "self","pen", NULL }; | |
6451 | ||
6452 | self = self; | |
6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
6454 | return NULL; | |
6455 | if (_argo0) { | |
6456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
6459 | return NULL; | |
6460 | } | |
6461 | } | |
6462 | if (_argo1) { | |
6463 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6464 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
6466 | return NULL; | |
8ab979d7 | 6467 | } |
0569df0f RD |
6468 | } |
6469 | { | |
4268f798 | 6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6471 | wxPenList_RemovePen(_arg0,_arg1); |
8ab979d7 | 6472 | |
4268f798 | 6473 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6474 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6475 | } Py_INCREF(Py_None); |
6476 | _resultobj = Py_None; | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
2f4e9287 RD |
6480 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
6481 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject * _resultobj; | |
6483 | int _result; | |
6484 | wxPenList * _arg0; | |
6485 | PyObject * _argo0 = 0; | |
6486 | char *_kwnames[] = { "self", NULL }; | |
6487 | ||
6488 | self = self; | |
6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
6490 | return NULL; | |
6491 | if (_argo0) { | |
6492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
6495 | return NULL; | |
6496 | } | |
6497 | } | |
6498 | { | |
4268f798 | 6499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6500 | _result = (int )wxPenList_GetCount(_arg0); |
2f4e9287 | 6501 | |
4268f798 | 6502 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
6503 | if (PyErr_Occurred()) return NULL; |
6504 | } _resultobj = Py_BuildValue("i",_result); | |
6505 | return _resultobj; | |
6506 | } | |
6507 | ||
9416aa89 RD |
6508 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
6509 | wxBrush *src; | |
6510 | wxGDIObject *dest; | |
6511 | src = (wxBrush *) ptr; | |
6512 | dest = (wxGDIObject *) src; | |
6513 | return (void *) dest; | |
6514 | } | |
6515 | ||
6516 | static void *SwigwxBrushTowxObject(void *ptr) { | |
6517 | wxBrush *src; | |
6518 | wxObject *dest; | |
6519 | src = (wxBrush *) ptr; | |
6520 | dest = (wxObject *) src; | |
6521 | return (void *) dest; | |
6522 | } | |
6523 | ||
0569df0f | 6524 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 6525 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6526 | PyObject * _resultobj; |
6527 | wxBrush * _result; | |
6528 | wxColour * _arg0; | |
1d99702e | 6529 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
6530 | wxColour temp; |
6531 | PyObject * _obj0 = 0; | |
1afc06c2 | 6532 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
6533 | char _ptemp[128]; |
6534 | ||
6535 | self = self; | |
f6bcfd97 | 6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 6537 | return NULL; |
f6bcfd97 BP |
6538 | { |
6539 | _arg0 = &temp; | |
6540 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 6541 | return NULL; |
f6bcfd97 | 6542 | } |
cf694132 | 6543 | { |
4268f798 | 6544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6545 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 | 6546 | |
4268f798 | 6547 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6548 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6549 | } if (_result) { |
6550 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6551 | _resultobj = Py_BuildValue("s",_ptemp); | |
6552 | } else { | |
6553 | Py_INCREF(Py_None); | |
6554 | _resultobj = Py_None; | |
6555 | } | |
8ab979d7 RD |
6556 | return _resultobj; |
6557 | } | |
6558 | ||
0569df0f RD |
6559 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
6560 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6561 | PyObject * _resultobj; | |
6562 | wxBrush * _arg0; | |
6563 | PyObject * _argo0 = 0; | |
6564 | char *_kwnames[] = { "self", NULL }; | |
6565 | ||
6566 | self = self; | |
6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
6568 | return NULL; | |
6569 | if (_argo0) { | |
6570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
6573 | return NULL; | |
6574 | } | |
6575 | } | |
6576 | { | |
4268f798 | 6577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6578 | delete_wxBrush(_arg0); |
0569df0f | 6579 | |
4268f798 | 6580 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6581 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6582 | } Py_INCREF(Py_None); |
6583 | _resultobj = Py_None; | |
6584 | return _resultobj; | |
6585 | } | |
6586 | ||
8ab979d7 | 6587 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 6588 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6589 | PyObject * _resultobj; |
6590 | wxColour * _result; | |
6591 | wxBrush * _arg0; | |
1d99702e | 6592 | PyObject * _argo0 = 0; |
1afc06c2 | 6593 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6594 | char _ptemp[128]; |
6595 | ||
6596 | self = self; | |
1afc06c2 | 6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 6598 | return NULL; |
1d99702e RD |
6599 | if (_argo0) { |
6600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
6603 | return NULL; | |
6604 | } | |
6605 | } | |
cf694132 | 6606 | { |
4268f798 | 6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6608 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 | 6609 | |
4268f798 | 6610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6611 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
6612 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6613 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6614 | return _resultobj; |
6615 | } | |
6616 | ||
6617 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 6618 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6619 | PyObject * _resultobj; |
6620 | wxBitmap * _result; | |
6621 | wxBrush * _arg0; | |
1d99702e | 6622 | PyObject * _argo0 = 0; |
1afc06c2 | 6623 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6624 | char _ptemp[128]; |
6625 | ||
6626 | self = self; | |
1afc06c2 | 6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 6628 | return NULL; |
1d99702e RD |
6629 | if (_argo0) { |
6630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
6633 | return NULL; | |
6634 | } | |
6635 | } | |
cf694132 | 6636 | { |
4268f798 | 6637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6638 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
cf694132 | 6639 | |
4268f798 | 6640 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6641 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6642 | } if (_result) { |
6643 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6644 | _resultobj = Py_BuildValue("s",_ptemp); | |
6645 | } else { | |
6646 | Py_INCREF(Py_None); | |
6647 | _resultobj = Py_None; | |
6648 | } | |
8ab979d7 RD |
6649 | return _resultobj; |
6650 | } | |
6651 | ||
6652 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 6653 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6654 | PyObject * _resultobj; |
6655 | int _result; | |
6656 | wxBrush * _arg0; | |
1d99702e | 6657 | PyObject * _argo0 = 0; |
1afc06c2 | 6658 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6659 | |
6660 | self = self; | |
1afc06c2 | 6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 6662 | return NULL; |
1d99702e RD |
6663 | if (_argo0) { |
6664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
6667 | return NULL; | |
6668 | } | |
6669 | } | |
cf694132 | 6670 | { |
4268f798 | 6671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6672 | _result = (int )wxBrush_GetStyle(_arg0); |
cf694132 | 6673 | |
4268f798 | 6674 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6676 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6677 | return _resultobj; |
6678 | } | |
6679 | ||
6680 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6681 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6682 | PyObject * _resultobj; |
6683 | bool _result; | |
6684 | wxBrush * _arg0; | |
1d99702e | 6685 | PyObject * _argo0 = 0; |
1afc06c2 | 6686 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6687 | |
6688 | self = self; | |
1afc06c2 | 6689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6690 | return NULL; |
1d99702e RD |
6691 | if (_argo0) { |
6692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
6695 | return NULL; | |
6696 | } | |
6697 | } | |
cf694132 | 6698 | { |
4268f798 | 6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6700 | _result = (bool )wxBrush_Ok(_arg0); |
cf694132 | 6701 | |
4268f798 | 6702 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6703 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6704 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6705 | return _resultobj; |
6706 | } | |
6707 | ||
6708 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 6709 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6710 | PyObject * _resultobj; |
6711 | wxBrush * _arg0; | |
6712 | wxColour * _arg1; | |
1d99702e | 6713 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6714 | wxColour temp; |
6715 | PyObject * _obj1 = 0; | |
1afc06c2 | 6716 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
6717 | |
6718 | self = self; | |
f6bcfd97 | 6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6720 | return NULL; |
1d99702e RD |
6721 | if (_argo0) { |
6722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
6725 | return NULL; | |
6726 | } | |
6727 | } | |
f6bcfd97 BP |
6728 | { |
6729 | _arg1 = &temp; | |
6730 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 6731 | return NULL; |
f6bcfd97 | 6732 | } |
cf694132 | 6733 | { |
4268f798 | 6734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6735 | wxBrush_SetColour(_arg0,*_arg1); |
cf694132 | 6736 | |
4268f798 | 6737 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6738 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6739 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6740 | _resultobj = Py_None; |
6741 | return _resultobj; | |
6742 | } | |
6743 | ||
6744 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 6745 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6746 | PyObject * _resultobj; |
6747 | wxBrush * _arg0; | |
6748 | wxBitmap * _arg1; | |
1d99702e RD |
6749 | PyObject * _argo0 = 0; |
6750 | PyObject * _argo1 = 0; | |
1afc06c2 | 6751 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
6752 | |
6753 | self = self; | |
1afc06c2 | 6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6755 | return NULL; |
1d99702e RD |
6756 | if (_argo0) { |
6757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
6760 | return NULL; | |
6761 | } | |
6762 | } | |
1d99702e RD |
6763 | if (_argo1) { |
6764 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6765 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
6767 | return NULL; | |
6768 | } | |
6769 | } | |
cf694132 | 6770 | { |
4268f798 | 6771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6772 | wxBrush_SetStipple(_arg0,*_arg1); |
cf694132 | 6773 | |
4268f798 | 6774 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6775 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6776 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6777 | _resultobj = Py_None; |
6778 | return _resultobj; | |
6779 | } | |
6780 | ||
6781 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6782 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6783 | PyObject * _resultobj; |
6784 | wxBrush * _arg0; | |
6785 | int _arg1; | |
1d99702e | 6786 | PyObject * _argo0 = 0; |
1afc06c2 | 6787 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
6788 | |
6789 | self = self; | |
1afc06c2 | 6790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6791 | return NULL; |
1d99702e RD |
6792 | if (_argo0) { |
6793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
6796 | return NULL; | |
6797 | } | |
6798 | } | |
cf694132 | 6799 | { |
4268f798 | 6800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6801 | wxBrush_SetStyle(_arg0,_arg1); |
cf694132 | 6802 | |
4268f798 | 6803 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6804 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6805 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6806 | _resultobj = Py_None; |
6807 | return _resultobj; | |
6808 | } | |
6809 | ||
6ee2116b RD |
6810 | static void *SwigwxBrushListTowxObject(void *ptr) { |
6811 | wxBrushList *src; | |
6812 | wxObject *dest; | |
6813 | src = (wxBrushList *) ptr; | |
6814 | dest = (wxObject *) src; | |
6815 | return (void *) dest; | |
6816 | } | |
6817 | ||
0569df0f RD |
6818 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
6819 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject * _resultobj; | |
6821 | wxBrushList * _arg0; | |
6822 | wxBrush * _arg1; | |
6823 | PyObject * _argo0 = 0; | |
6824 | PyObject * _argo1 = 0; | |
6825 | char *_kwnames[] = { "self","brush", NULL }; | |
6826 | ||
6827 | self = self; | |
6828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6829 | return NULL; | |
6830 | if (_argo0) { | |
6831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6834 | return NULL; | |
6835 | } | |
6836 | } | |
6837 | if (_argo1) { | |
6838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6841 | return NULL; | |
6842 | } | |
6843 | } | |
6844 | { | |
4268f798 | 6845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6846 | wxBrushList_AddBrush(_arg0,_arg1); |
0569df0f | 6847 | |
4268f798 | 6848 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6849 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6850 | } Py_INCREF(Py_None); |
6851 | _resultobj = Py_None; | |
6852 | return _resultobj; | |
6853 | } | |
6854 | ||
6855 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6856 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6857 | PyObject * _resultobj; | |
6858 | wxBrush * _result; | |
6859 | wxBrushList * _arg0; | |
6860 | wxColour * _arg1; | |
6861 | int _arg2; | |
6862 | PyObject * _argo0 = 0; | |
6863 | wxColour temp; | |
6864 | PyObject * _obj1 = 0; | |
6865 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6866 | char _ptemp[128]; | |
6867 | ||
6868 | self = self; | |
6869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6870 | return NULL; | |
6871 | if (_argo0) { | |
6872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6875 | return NULL; | |
6876 | } | |
6877 | } | |
6878 | { | |
6879 | _arg1 = &temp; | |
6880 | if (! wxColour_helper(_obj1, &_arg1)) | |
6881 | return NULL; | |
6882 | } | |
6883 | { | |
4268f798 | 6884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6885 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
0569df0f | 6886 | |
4268f798 | 6887 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6888 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6889 | } if (_result) { |
6890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6891 | _resultobj = Py_BuildValue("s",_ptemp); | |
6892 | } else { | |
6893 | Py_INCREF(Py_None); | |
6894 | _resultobj = Py_None; | |
6895 | } | |
6896 | return _resultobj; | |
6897 | } | |
6898 | ||
6899 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
6900 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6901 | PyObject * _resultobj; | |
6902 | wxBrushList * _arg0; | |
6903 | wxBrush * _arg1; | |
6904 | PyObject * _argo0 = 0; | |
6905 | PyObject * _argo1 = 0; | |
6906 | char *_kwnames[] = { "self","brush", NULL }; | |
6907 | ||
6908 | self = self; | |
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
6910 | return NULL; | |
6911 | if (_argo0) { | |
6912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
6915 | return NULL; | |
6916 | } | |
6917 | } | |
6918 | if (_argo1) { | |
6919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
6922 | return NULL; | |
6923 | } | |
6924 | } | |
6925 | { | |
4268f798 | 6926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6927 | wxBrushList_RemoveBrush(_arg0,_arg1); |
0569df0f | 6928 | |
4268f798 | 6929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6930 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6931 | } Py_INCREF(Py_None); |
6932 | _resultobj = Py_None; | |
6933 | return _resultobj; | |
6934 | } | |
6935 | ||
2f4e9287 RD |
6936 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
6937 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6938 | PyObject * _resultobj; | |
6939 | int _result; | |
6940 | wxBrushList * _arg0; | |
6941 | PyObject * _argo0 = 0; | |
6942 | char *_kwnames[] = { "self", NULL }; | |
6943 | ||
6944 | self = self; | |
6945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
6946 | return NULL; | |
6947 | if (_argo0) { | |
6948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
6951 | return NULL; | |
6952 | } | |
6953 | } | |
6954 | { | |
4268f798 | 6955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6956 | _result = (int )wxBrushList_GetCount(_arg0); |
2f4e9287 | 6957 | |
4268f798 | 6958 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
6959 | if (PyErr_Occurred()) return NULL; |
6960 | } _resultobj = Py_BuildValue("i",_result); | |
6961 | return _resultobj; | |
6962 | } | |
6963 | ||
9416aa89 RD |
6964 | static void *SwigwxDCTowxObject(void *ptr) { |
6965 | wxDC *src; | |
6966 | wxObject *dest; | |
6967 | src = (wxDC *) ptr; | |
6968 | dest = (wxObject *) src; | |
6969 | return (void *) dest; | |
6970 | } | |
6971 | ||
8ab979d7 | 6972 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 6973 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6974 | PyObject * _resultobj; |
6975 | wxDC * _arg0; | |
1d99702e | 6976 | PyObject * _argo0 = 0; |
1afc06c2 | 6977 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6978 | |
6979 | self = self; | |
1afc06c2 | 6980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 6981 | return NULL; |
1d99702e RD |
6982 | if (_argo0) { |
6983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
6986 | return NULL; | |
6987 | } | |
6988 | } | |
cf694132 | 6989 | { |
4268f798 | 6990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6991 | delete_wxDC(_arg0); |
cf694132 | 6992 | |
4268f798 | 6993 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6994 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6995 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6996 | _resultobj = Py_None; |
6997 | return _resultobj; | |
6998 | } | |
6999 | ||
7000 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 7001 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7002 | PyObject * _resultobj; |
7003 | wxDC * _arg0; | |
1d99702e | 7004 | PyObject * _argo0 = 0; |
1afc06c2 | 7005 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7006 | |
7007 | self = self; | |
1afc06c2 | 7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7009 | return NULL; |
1d99702e RD |
7010 | if (_argo0) { |
7011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
7014 | return NULL; | |
7015 | } | |
7016 | } | |
cf694132 | 7017 | { |
4268f798 | 7018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7019 | wxDC_BeginDrawing(_arg0); |
cf694132 | 7020 | |
4268f798 | 7021 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7022 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7023 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7024 | _resultobj = Py_None; |
7025 | return _resultobj; | |
7026 | } | |
7027 | ||
efc5f224 | 7028 | #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 | 7029 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7030 | PyObject * _resultobj; |
7031 | bool _result; | |
7032 | wxDC * _arg0; | |
7033 | long _arg1; | |
7034 | long _arg2; | |
7035 | long _arg3; | |
7036 | long _arg4; | |
7037 | wxDC * _arg5; | |
7038 | long _arg6; | |
7039 | long _arg7; | |
efc5f224 RD |
7040 | int _arg8 = (int ) wxCOPY; |
7041 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
7042 | PyObject * _argo0 = 0; |
7043 | PyObject * _argo5 = 0; | |
1afc06c2 | 7044 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
7045 | |
7046 | self = self; | |
1afc06c2 | 7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 7048 | return NULL; |
1d99702e RD |
7049 | if (_argo0) { |
7050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
7053 | return NULL; | |
7054 | } | |
7055 | } | |
1d99702e RD |
7056 | if (_argo5) { |
7057 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7058 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
7059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
7060 | return NULL; | |
7061 | } | |
7062 | } | |
cf694132 | 7063 | { |
4268f798 | 7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7065 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 | 7066 | |
4268f798 | 7067 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7068 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7069 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7070 | return _resultobj; |
7071 | } | |
7072 | ||
7073 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 7074 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7075 | PyObject * _resultobj; |
7076 | wxDC * _arg0; | |
1d99702e | 7077 | PyObject * _argo0 = 0; |
1afc06c2 | 7078 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7079 | |
7080 | self = self; | |
1afc06c2 | 7081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 7082 | return NULL; |
1d99702e RD |
7083 | if (_argo0) { |
7084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
7087 | return NULL; | |
7088 | } | |
7089 | } | |
cf694132 | 7090 | { |
4268f798 | 7091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7092 | wxDC_Clear(_arg0); |
cf694132 | 7093 | |
4268f798 | 7094 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7095 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7096 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7097 | _resultobj = Py_None; |
7098 | return _resultobj; | |
7099 | } | |
7100 | ||
7101 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 7102 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7103 | PyObject * _resultobj; |
7104 | wxDC * _arg0; | |
7105 | long _arg1; | |
7106 | long _arg2; | |
1d99702e | 7107 | PyObject * _argo0 = 0; |
1afc06c2 | 7108 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7109 | |
7110 | self = self; | |
1afc06c2 | 7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7112 | return NULL; |
1d99702e RD |
7113 | if (_argo0) { |
7114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
7117 | return NULL; | |
7118 | } | |
7119 | } | |
cf694132 | 7120 | { |
4268f798 | 7121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7122 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
cf694132 | 7123 | |
4268f798 | 7124 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7125 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7126 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7127 | _resultobj = Py_None; |
7128 | return _resultobj; | |
7129 | } | |
7130 | ||
7131 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 7132 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7133 | PyObject * _resultobj; |
7134 | wxDC * _arg0; | |
1d99702e | 7135 | PyObject * _argo0 = 0; |
1afc06c2 | 7136 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7137 | |
7138 | self = self; | |
1afc06c2 | 7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 7140 | return NULL; |
1d99702e RD |
7141 | if (_argo0) { |
7142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
7145 | return NULL; | |
7146 | } | |
7147 | } | |
cf694132 | 7148 | { |
4268f798 | 7149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7150 | wxDC_DestroyClippingRegion(_arg0); |
cf694132 | 7151 | |
4268f798 | 7152 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7153 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7154 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7155 | _resultobj = Py_None; |
7156 | return _resultobj; | |
7157 | } | |
7158 | ||
7159 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 7160 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7161 | PyObject * _resultobj; |
7162 | long _result; | |
7163 | wxDC * _arg0; | |
7164 | long _arg1; | |
1d99702e | 7165 | PyObject * _argo0 = 0; |
1afc06c2 | 7166 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7167 | |
7168 | self = self; | |
1afc06c2 | 7169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7170 | return NULL; |
1d99702e RD |
7171 | if (_argo0) { |
7172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
7175 | return NULL; | |
7176 | } | |
7177 | } | |
cf694132 | 7178 | { |
4268f798 | 7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7180 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
cf694132 | 7181 | |
4268f798 | 7182 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7183 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7184 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7185 | return _resultobj; |
7186 | } | |
7187 | ||
7188 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 7189 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7190 | PyObject * _resultobj; |
7191 | long _result; | |
7192 | wxDC * _arg0; | |
7193 | long _arg1; | |
1d99702e | 7194 | PyObject * _argo0 = 0; |
1afc06c2 | 7195 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7196 | |
7197 | self = self; | |
1afc06c2 | 7198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7199 | return NULL; |
1d99702e RD |
7200 | if (_argo0) { |
7201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
7204 | return NULL; | |
7205 | } | |
7206 | } | |
cf694132 | 7207 | { |
4268f798 | 7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7209 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
cf694132 | 7210 | |
4268f798 | 7211 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7212 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7213 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7214 | return _resultobj; |
7215 | } | |
7216 | ||
7217 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 7218 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7219 | PyObject * _resultobj; |
7220 | long _result; | |
7221 | wxDC * _arg0; | |
7222 | long _arg1; | |
1d99702e | 7223 | PyObject * _argo0 = 0; |
1afc06c2 | 7224 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7225 | |
7226 | self = self; | |
1afc06c2 | 7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7228 | return NULL; |
1d99702e RD |
7229 | if (_argo0) { |
7230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
7233 | return NULL; | |
7234 | } | |
7235 | } | |
cf694132 | 7236 | { |
4268f798 | 7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7238 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
cf694132 | 7239 | |
4268f798 | 7240 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7241 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7242 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7243 | return _resultobj; |
7244 | } | |
7245 | ||
7246 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 7247 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7248 | PyObject * _resultobj; |
7249 | long _result; | |
7250 | wxDC * _arg0; | |
7251 | long _arg1; | |
1d99702e | 7252 | PyObject * _argo0 = 0; |
1afc06c2 | 7253 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7254 | |
7255 | self = self; | |
1afc06c2 | 7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7257 | return NULL; |
1d99702e RD |
7258 | if (_argo0) { |
7259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
7262 | return NULL; | |
7263 | } | |
7264 | } | |
cf694132 | 7265 | { |
4268f798 | 7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7267 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
cf694132 | 7268 | |
4268f798 | 7269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7271 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7272 | return _resultobj; |
7273 | } | |
7274 | ||
7275 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7276 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7277 | PyObject * _resultobj; |
7278 | wxDC * _arg0; | |
7279 | long _arg1; | |
7280 | long _arg2; | |
7281 | long _arg3; | |
7282 | long _arg4; | |
7283 | long _arg5; | |
7284 | long _arg6; | |
1d99702e | 7285 | PyObject * _argo0 = 0; |
1afc06c2 | 7286 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
7287 | |
7288 | self = self; | |
1afc06c2 | 7289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7290 | return NULL; |
1d99702e RD |
7291 | if (_argo0) { |
7292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
7295 | return NULL; | |
7296 | } | |
7297 | } | |
cf694132 | 7298 | { |
4268f798 | 7299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7300 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 7301 | |
4268f798 | 7302 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7303 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7304 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7305 | _resultobj = Py_None; |
7306 | return _resultobj; | |
7307 | } | |
7308 | ||
bb0054cd | 7309 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 7310 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7311 | PyObject * _resultobj; |
7312 | wxDC * _arg0; | |
7313 | long _arg1; | |
7314 | long _arg2; | |
7315 | long _arg3; | |
1d99702e | 7316 | PyObject * _argo0 = 0; |
1afc06c2 | 7317 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
7318 | |
7319 | self = self; | |
1afc06c2 | 7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 7321 | return NULL; |
1d99702e RD |
7322 | if (_argo0) { |
7323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
7325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
7326 | return NULL; | |
7327 | } | |
7328 | } | |
7329 | { | |
4268f798 | 7330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7331 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
bb0054cd | 7332 | |
4268f798 | 7333 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7334 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7335 | } Py_INCREF(Py_None); |
7336 | _resultobj = Py_None; | |
7337 | return _resultobj; | |
7338 | } | |
7339 | ||
8ab979d7 | 7340 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7341 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7342 | PyObject * _resultobj; |
7343 | wxDC * _arg0; | |
7344 | long _arg1; | |
7345 | long _arg2; | |
7346 | long _arg3; | |
7347 | long _arg4; | |
1d99702e | 7348 | PyObject * _argo0 = 0; |
1afc06c2 | 7349 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7350 | |
7351 | self = self; | |
1afc06c2 | 7352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7353 | return NULL; |
1d99702e RD |
7354 | if (_argo0) { |
7355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
7358 | return NULL; | |
7359 | } | |
7360 | } | |
cf694132 | 7361 | { |
4268f798 | 7362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7363 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7364 | |
4268f798 | 7365 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7366 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7367 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7368 | _resultobj = Py_None; |
7369 | return _resultobj; | |
7370 | } | |
7371 | ||
7372 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7373 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7374 | PyObject * _resultobj; |
7375 | wxDC * _arg0; | |
7376 | long _arg1; | |
7377 | long _arg2; | |
7378 | long _arg3; | |
7379 | long _arg4; | |
7380 | long _arg5; | |
7381 | long _arg6; | |
1d99702e | 7382 | PyObject * _argo0 = 0; |
1afc06c2 | 7383 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
7384 | |
7385 | self = self; | |
1afc06c2 | 7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7387 | return NULL; |
1d99702e RD |
7388 | if (_argo0) { |
7389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
7392 | return NULL; | |
7393 | } | |
7394 | } | |
cf694132 | 7395 | { |
4268f798 | 7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7397 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 7398 | |
4268f798 | 7399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7400 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7401 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7402 | _resultobj = Py_None; |
7403 | return _resultobj; | |
7404 | } | |
7405 | ||
7406 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7407 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7408 | PyObject * _resultobj; |
7409 | wxDC * _arg0; | |
7410 | wxIcon * _arg1; | |
7411 | long _arg2; | |
7412 | long _arg3; | |
1d99702e RD |
7413 | PyObject * _argo0 = 0; |
7414 | PyObject * _argo1 = 0; | |
1afc06c2 | 7415 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
7416 | |
7417 | self = self; | |
1afc06c2 | 7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7419 | return NULL; |
1d99702e RD |
7420 | if (_argo0) { |
7421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
7424 | return NULL; | |
7425 | } | |
7426 | } | |
1d99702e RD |
7427 | if (_argo1) { |
7428 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7429 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
7430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
7431 | return NULL; | |
7432 | } | |
7433 | } | |
cf694132 | 7434 | { |
4268f798 | 7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7436 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7437 | |
4268f798 | 7438 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7439 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7440 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7441 | _resultobj = Py_None; |
7442 | return _resultobj; | |
7443 | } | |
7444 | ||
23bed520 RD |
7445 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7446 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7447 | PyObject * _resultobj; | |
7448 | wxDC * _arg0; | |
7449 | wxString * _arg1; | |
7450 | wxRect * _arg2; | |
7451 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
7452 | int _arg4 = (int ) -1; | |
7453 | PyObject * _argo0 = 0; | |
7454 | PyObject * _obj1 = 0; | |
7455 | wxRect temp; | |
7456 | PyObject * _obj2 = 0; | |
7457 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
7458 | ||
7459 | self = self; | |
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
7461 | return NULL; | |
7462 | if (_argo0) { | |
7463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
7466 | return NULL; | |
7467 | } | |
7468 | } | |
7469 | { | |
c8bc7bb8 RD |
7470 | _arg1 = wxString_in_helper(_obj1); |
7471 | if (_arg1 == NULL) | |
23bed520 | 7472 | return NULL; |
23bed520 RD |
7473 | } |
7474 | { | |
7475 | _arg2 = &temp; | |
7476 | if (! wxRect_helper(_obj2, &_arg2)) | |
7477 | return NULL; | |
7478 | } | |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 7481 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
23bed520 RD |
7482 | |
7483 | wxPyEndAllowThreads(__tstate); | |
7484 | if (PyErr_Occurred()) return NULL; | |
7485 | } Py_INCREF(Py_None); | |
7486 | _resultobj = Py_None; | |
7487 | { | |
7488 | if (_obj1) | |
7489 | delete _arg1; | |
7490 | } | |
7491 | return _resultobj; | |
7492 | } | |
7493 | ||
7494 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
7495 | wxRect rv; | |
7496 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
7497 | return rv; | |
7498 | } | |
7499 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7500 | PyObject * _resultobj; | |
7501 | wxRect * _result; | |
7502 | wxDC * _arg0; | |
7503 | wxString * _arg1; | |
7504 | wxBitmap * _arg2; | |
7505 | wxRect * _arg3; | |
7506 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
7507 | int _arg5 = (int ) -1; | |
7508 | PyObject * _argo0 = 0; | |
7509 | PyObject * _obj1 = 0; | |
7510 | PyObject * _argo2 = 0; | |
7511 | wxRect temp; | |
7512 | PyObject * _obj3 = 0; | |
7513 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
7514 | char _ptemp[128]; | |
7515 | ||
7516 | self = self; | |
7517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
7518 | return NULL; | |
7519 | if (_argo0) { | |
7520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
7523 | return NULL; | |
7524 | } | |
7525 | } | |
7526 | { | |
c8bc7bb8 RD |
7527 | _arg1 = wxString_in_helper(_obj1); |
7528 | if (_arg1 == NULL) | |
23bed520 | 7529 | return NULL; |
23bed520 RD |
7530 | } |
7531 | if (_argo2) { | |
7532 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7533 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
7534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
7535 | return NULL; | |
7536 | } | |
7537 | } | |
7538 | { | |
7539 | _arg3 = &temp; | |
7540 | if (! wxRect_helper(_obj3, &_arg3)) | |
7541 | return NULL; | |
7542 | } | |
7543 | { | |
7544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 7545 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); |
23bed520 RD |
7546 | |
7547 | wxPyEndAllowThreads(__tstate); | |
7548 | if (PyErr_Occurred()) return NULL; | |
7549 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
7550 | _resultobj = Py_BuildValue("s",_ptemp); | |
7551 | { | |
7552 | if (_obj1) | |
7553 | delete _arg1; | |
7554 | } | |
7555 | return _resultobj; | |
7556 | } | |
7557 | ||
8ab979d7 | 7558 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7559 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7560 | PyObject * _resultobj; |
7561 | wxDC * _arg0; | |
7562 | long _arg1; | |
7563 | long _arg2; | |
7564 | long _arg3; | |
7565 | long _arg4; | |
1d99702e | 7566 | PyObject * _argo0 = 0; |
1afc06c2 | 7567 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
7568 | |
7569 | self = self; | |
1afc06c2 | 7570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7571 | return NULL; |
1d99702e RD |
7572 | if (_argo0) { |
7573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
7576 | return NULL; | |
7577 | } | |
7578 | } | |
cf694132 | 7579 | { |
4268f798 | 7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7581 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7582 | |
4268f798 | 7583 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7584 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7585 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7586 | _resultobj = Py_None; |
7587 | return _resultobj; | |
7588 | } | |
7589 | ||
7590 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7591 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7592 | PyObject * _resultobj; |
7593 | wxDC * _arg0; | |
7594 | int _arg1; | |
7595 | wxPoint * _arg2; | |
1d99702e RD |
7596 | long _arg3 = (long ) 0; |
7597 | long _arg4 = (long ) 0; | |
7598 | PyObject * _argo0 = 0; | |
e0672e2f | 7599 | int NPOINTS; |
8ab979d7 | 7600 | PyObject * _obj2 = 0; |
eec92d76 | 7601 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
7602 | |
7603 | self = self; | |
1afc06c2 | 7604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 7605 | return NULL; |
1d99702e RD |
7606 | if (_argo0) { |
7607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
7610 | return NULL; | |
7611 | } | |
7612 | } | |
7613 | if (_obj2) | |
7614 | { | |
e0672e2f RD |
7615 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7616 | if (_arg2 == NULL) { | |
7617 | return NULL; | |
7618 | } | |
8ab979d7 RD |
7619 | } |
7620 | { | |
e0672e2f | 7621 | _arg1 = NPOINTS; |
8ab979d7 | 7622 | } |
cf694132 | 7623 | { |
4268f798 | 7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7625 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7626 | |
4268f798 | 7627 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7628 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7629 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7630 | _resultobj = Py_None; |
7631 | { | |
7632 | delete [] _arg2; | |
7633 | } | |
7634 | return _resultobj; | |
7635 | } | |
7636 | ||
7637 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 7638 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7639 | PyObject * _resultobj; |
7640 | wxDC * _arg0; | |
7641 | int _arg1; | |
7642 | wxPoint * _arg2; | |
1d99702e RD |
7643 | long _arg3 = (long ) 0; |
7644 | long _arg4 = (long ) 0; | |
7645 | int _arg5 = (int ) wxODDEVEN_RULE; | |
7646 | PyObject * _argo0 = 0; | |
e0672e2f | 7647 | int NPOINTS; |
8ab979d7 | 7648 | PyObject * _obj2 = 0; |
eec92d76 | 7649 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
7650 | |
7651 | self = self; | |
1afc06c2 | 7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7653 | return NULL; |
1d99702e RD |
7654 | if (_argo0) { |
7655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
7658 | return NULL; | |
7659 | } | |
7660 | } | |
7661 | if (_obj2) | |
7662 | { | |
e0672e2f RD |
7663 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7664 | if (_arg2 == NULL) { | |
7665 | return NULL; | |
7666 | } | |
8ab979d7 RD |
7667 | } |
7668 | { | |
e0672e2f | 7669 | _arg1 = NPOINTS; |
8ab979d7 | 7670 | } |
cf694132 | 7671 | { |
4268f798 | 7672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7673 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 7674 | |
4268f798 | 7675 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7677 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7678 | _resultobj = Py_None; |
7679 | { | |
7680 | delete [] _arg2; | |
7681 | } | |
7682 | return _resultobj; | |
7683 | } | |
7684 | ||
7685 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 7686 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7687 | PyObject * _resultobj; |
7688 | wxDC * _arg0; | |
7689 | long _arg1; | |
7690 | long _arg2; | |
1d99702e | 7691 | PyObject * _argo0 = 0; |
1afc06c2 | 7692 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7693 | |
7694 | self = self; | |
1afc06c2 | 7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7696 | return NULL; |
1d99702e RD |
7697 | if (_argo0) { |
7698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
7701 | return NULL; | |
7702 | } | |
7703 | } | |
cf694132 | 7704 | { |
4268f798 | 7705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7706 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
cf694132 | 7707 | |
4268f798 | 7708 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7709 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7710 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7711 | _resultobj = Py_None; |
7712 | return _resultobj; | |
7713 | } | |
7714 | ||
7715 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7716 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7717 | PyObject * _resultobj; |
7718 | wxDC * _arg0; | |
7719 | long _arg1; | |
7720 | long _arg2; | |
7721 | long _arg3; | |
7722 | long _arg4; | |
1d99702e | 7723 | PyObject * _argo0 = 0; |
1afc06c2 | 7724 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7725 | |
7726 | self = self; | |
1afc06c2 | 7727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7728 | return NULL; |
1d99702e RD |
7729 | if (_argo0) { |
7730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
7733 | return NULL; | |
7734 | } | |
7735 | } | |
cf694132 | 7736 | { |
4268f798 | 7737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7738 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7739 | |
4268f798 | 7740 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7741 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7742 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7743 | _resultobj = Py_None; |
7744 | return _resultobj; | |
7745 | } | |
7746 | ||
6999b0d8 RD |
7747 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7748 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject * _resultobj; | |
7750 | wxDC * _arg0; | |
7751 | wxString * _arg1; | |
7752 | wxCoord _arg2; | |
7753 | wxCoord _arg3; | |
7754 | double _arg4; | |
7755 | PyObject * _argo0 = 0; | |
7756 | PyObject * _obj1 = 0; | |
7757 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
7758 | ||
7759 | self = self; | |
7760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
7761 | return NULL; | |
7762 | if (_argo0) { | |
7763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
7766 | return NULL; | |
7767 | } | |
7768 | } | |
7769 | { | |
c8bc7bb8 RD |
7770 | _arg1 = wxString_in_helper(_obj1); |
7771 | if (_arg1 == NULL) | |
185d7c3e | 7772 | return NULL; |
6999b0d8 RD |
7773 | } |
7774 | { | |
4268f798 | 7775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7776 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
6999b0d8 | 7777 | |
4268f798 | 7778 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7779 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
7780 | } Py_INCREF(Py_None); |
7781 | _resultobj = Py_None; | |
7782 | { | |
7783 | if (_obj1) | |
7784 | delete _arg1; | |
7785 | } | |
7786 | return _resultobj; | |
7787 | } | |
7788 | ||
8ab979d7 | 7789 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 7790 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7791 | PyObject * _resultobj; |
7792 | wxDC * _arg0; | |
7793 | long _arg1; | |
7794 | long _arg2; | |
7795 | long _arg3; | |
7796 | long _arg4; | |
1d99702e RD |
7797 | long _arg5 = (long ) 20; |
7798 | PyObject * _argo0 = 0; | |
1afc06c2 | 7799 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
7800 | |
7801 | self = self; | |
1afc06c2 | 7802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7803 | return NULL; |
1d99702e RD |
7804 | if (_argo0) { |
7805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
7808 | return NULL; | |
7809 | } | |
7810 | } | |
cf694132 | 7811 | { |
4268f798 | 7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7813 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 7814 | |
4268f798 | 7815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7816 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7817 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7818 | _resultobj = Py_None; |
7819 | return _resultobj; | |
7820 | } | |
7821 | ||
7822 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 7823 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7824 | PyObject * _resultobj; |
7825 | wxDC * _arg0; | |
7826 | int _arg1; | |
7827 | wxPoint * _arg2; | |
1d99702e | 7828 | PyObject * _argo0 = 0; |
e0672e2f | 7829 | int NPOINTS; |
8ab979d7 | 7830 | PyObject * _obj2 = 0; |
eec92d76 | 7831 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
7832 | |
7833 | self = self; | |
1afc06c2 | 7834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 7835 | return NULL; |
1d99702e RD |
7836 | if (_argo0) { |
7837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
7840 | return NULL; | |
7841 | } | |
7842 | } | |
7843 | if (_obj2) | |
7844 | { | |
e0672e2f RD |
7845 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7846 | if (_arg2 == NULL) { | |
7847 | return NULL; | |
7848 | } | |
8ab979d7 RD |
7849 | } |
7850 | { | |
e0672e2f | 7851 | _arg1 = NPOINTS; |
8ab979d7 | 7852 | } |
cf694132 | 7853 | { |
4268f798 | 7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7855 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
cf694132 | 7856 | |
4268f798 | 7857 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7858 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7859 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7860 | _resultobj = Py_None; |
7861 | { | |
7862 | delete [] _arg2; | |
7863 | } | |
7864 | return _resultobj; | |
7865 | } | |
7866 | ||
7867 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7868 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7869 | PyObject * _resultobj; |
7870 | wxDC * _arg0; | |
7871 | wxString * _arg1; | |
7872 | long _arg2; | |
7873 | long _arg3; | |
1d99702e | 7874 | PyObject * _argo0 = 0; |
8ab979d7 | 7875 | PyObject * _obj1 = 0; |
1afc06c2 | 7876 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
7877 | |
7878 | self = self; | |
1afc06c2 | 7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 7880 | return NULL; |
1d99702e RD |
7881 | if (_argo0) { |
7882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
7885 | return NULL; | |
7886 | } | |
7887 | } | |
7888 | { | |
c8bc7bb8 RD |
7889 | _arg1 = wxString_in_helper(_obj1); |
7890 | if (_arg1 == NULL) | |
185d7c3e | 7891 | return NULL; |
8ab979d7 | 7892 | } |
cf694132 | 7893 | { |
4268f798 | 7894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7895 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7896 | |
4268f798 | 7897 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7898 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7899 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7900 | _resultobj = Py_None; |
7901 | { | |
7902 | if (_obj1) | |
7903 | delete _arg1; | |
7904 | } | |
7905 | return _resultobj; | |
7906 | } | |
7907 | ||
7908 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 7909 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7910 | PyObject * _resultobj; |
7911 | wxDC * _arg0; | |
1d99702e | 7912 | PyObject * _argo0 = 0; |
1afc06c2 | 7913 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7914 | |
7915 | self = self; | |
1afc06c2 | 7916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 7917 | return NULL; |
1d99702e RD |
7918 | if (_argo0) { |
7919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
7922 | return NULL; | |
7923 | } | |
7924 | } | |
cf694132 | 7925 | { |
4268f798 | 7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7927 | wxDC_EndDoc(_arg0); |
cf694132 | 7928 | |
4268f798 | 7929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7930 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7931 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7932 | _resultobj = Py_None; |
7933 | return _resultobj; | |
7934 | } | |
7935 | ||
7936 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 7937 | static PyObject *_wrap_wxDC_EndDrawing(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_EndDrawing",_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_EndDrawing. Expected _wxDC_p."); |
7950 | return NULL; | |
7951 | } | |
7952 | } | |
cf694132 | 7953 | { |
4268f798 | 7954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7955 | wxDC_EndDrawing(_arg0); |
cf694132 | 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_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 7965 | static PyObject *_wrap_wxDC_EndPage(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_EndPage",_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_EndPage. Expected _wxDC_p."); |
7978 | return NULL; | |
7979 | } | |
7980 | } | |
cf694132 | 7981 | { |
4268f798 | 7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7983 | wxDC_EndPage(_arg0); |
cf694132 | 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 | ||
be4d9c1f | 7992 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7993 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
7994 | PyObject * _resultobj; |
7995 | wxDC * _arg0; | |
7996 | long _arg1; | |
7997 | long _arg2; | |
7998 | wxColour * _arg3; | |
1d99702e RD |
7999 | int _arg4 = (int ) wxFLOOD_SURFACE; |
8000 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
8001 | wxColour temp; |
8002 | PyObject * _obj3 = 0; | |
1afc06c2 | 8003 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
8004 | |
8005 | self = self; | |
f6bcfd97 | 8006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 8007 | return NULL; |
1d99702e RD |
8008 | if (_argo0) { |
8009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
8011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
8012 | return NULL; | |
8013 | } | |
8014 | } | |
f6bcfd97 BP |
8015 | { |
8016 | _arg3 = &temp; | |
8017 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 8018 | return NULL; |
f6bcfd97 | 8019 | } |
cf694132 | 8020 | { |
4268f798 | 8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8022 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 8023 | |
4268f798 | 8024 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8026 | } Py_INCREF(Py_None); |
be4d9c1f RD |
8027 | _resultobj = Py_None; |
8028 | return _resultobj; | |
8029 | } | |
8030 | ||
8ab979d7 | 8031 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 8032 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8033 | PyObject * _resultobj; |
8034 | wxBrush * _result; | |
8035 | wxDC * _arg0; | |
1d99702e | 8036 | PyObject * _argo0 = 0; |
1afc06c2 | 8037 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8038 | char _ptemp[128]; |
8039 | ||
8040 | self = self; | |
1afc06c2 | 8041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 8042 | return NULL; |
1d99702e RD |
8043 | if (_argo0) { |
8044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
8047 | return NULL; | |
8048 | } | |
8049 | } | |
cf694132 | 8050 | { |
4268f798 | 8051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8052 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
cf694132 | 8053 | |
4268f798 | 8054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8055 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8056 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8057 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8058 | return _resultobj; |
8059 | } | |
8060 | ||
8061 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 8062 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8063 | PyObject * _resultobj; |
8064 | wxBrush * _result; | |
8065 | wxDC * _arg0; | |
1d99702e | 8066 | PyObject * _argo0 = 0; |
1afc06c2 | 8067 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8068 | char _ptemp[128]; |
8069 | ||
8070 | self = self; | |
1afc06c2 | 8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 8072 | return NULL; |
1d99702e RD |
8073 | if (_argo0) { |
8074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
8077 | return NULL; | |
8078 | } | |
8079 | } | |
cf694132 | 8080 | { |
4268f798 | 8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8082 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
cf694132 | 8083 | |
4268f798 | 8084 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8085 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8086 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8087 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8088 | return _resultobj; |
8089 | } | |
8090 | ||
8091 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 8092 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8093 | PyObject * _resultobj; |
8094 | long _result; | |
8095 | wxDC * _arg0; | |
1d99702e | 8096 | PyObject * _argo0 = 0; |
1afc06c2 | 8097 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8098 | |
8099 | self = self; | |
1afc06c2 | 8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 8101 | return NULL; |
1d99702e RD |
8102 | if (_argo0) { |
8103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
8106 | return NULL; | |
8107 | } | |
8108 | } | |
cf694132 | 8109 | { |
4268f798 | 8110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8111 | _result = (long )wxDC_GetCharHeight(_arg0); |
cf694132 | 8112 | |
4268f798 | 8113 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8114 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8115 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8116 | return _resultobj; |
8117 | } | |
8118 | ||
8119 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 8120 | static PyObject *_wrap_wxDC_GetCharWidth(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_GetCharWidth",_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_GetCharWidth. Expected _wxDC_p."); |
8134 | return NULL; | |
8135 | } | |
8136 | } | |
cf694132 | 8137 | { |
4268f798 | 8138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8139 | _result = (long )wxDC_GetCharWidth(_arg0); |
cf694132 | 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_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 8148 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8149 | PyObject * _resultobj; |
8150 | wxDC * _arg0; | |
8151 | long * _arg1; | |
8152 | long temp; | |
8153 | long * _arg2; | |
8154 | long temp0; | |
8155 | long * _arg3; | |
8156 | long temp1; | |
8157 | long * _arg4; | |
8158 | long temp2; | |
1d99702e | 8159 | PyObject * _argo0 = 0; |
1afc06c2 | 8160 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8161 | |
8162 | self = self; | |
8163 | { | |
8164 | _arg1 = &temp; | |
8165 | } | |
8166 | { | |
8167 | _arg2 = &temp0; | |
8168 | } | |
8169 | { | |
8170 | _arg3 = &temp1; | |
8171 | } | |
8172 | { | |
8173 | _arg4 = &temp2; | |
8174 | } | |
1afc06c2 | 8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 8176 | return NULL; |
1d99702e RD |
8177 | if (_argo0) { |
8178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
8181 | return NULL; | |
8182 | } | |
8183 | } | |
cf694132 | 8184 | { |
4268f798 | 8185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8186 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 8187 | |
4268f798 | 8188 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8191 | _resultobj = Py_None; |
8192 | { | |
8193 | PyObject *o; | |
8194 | o = PyInt_FromLong((long) (*_arg1)); | |
8195 | _resultobj = t_output_helper(_resultobj, o); | |
8196 | } | |
8197 | { | |
8198 | PyObject *o; | |
8199 | o = PyInt_FromLong((long) (*_arg2)); | |
8200 | _resultobj = t_output_helper(_resultobj, o); | |
8201 | } | |
8202 | { | |
8203 | PyObject *o; | |
8204 | o = PyInt_FromLong((long) (*_arg3)); | |
8205 | _resultobj = t_output_helper(_resultobj, o); | |
8206 | } | |
8207 | { | |
8208 | PyObject *o; | |
8209 | o = PyInt_FromLong((long) (*_arg4)); | |
8210 | _resultobj = t_output_helper(_resultobj, o); | |
8211 | } | |
8212 | return _resultobj; | |
8213 | } | |
8214 | ||
8215 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 8216 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8217 | PyObject * _resultobj; |
8218 | wxFont * _result; | |
8219 | wxDC * _arg0; | |
1d99702e | 8220 | PyObject * _argo0 = 0; |
1afc06c2 | 8221 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8222 | char _ptemp[128]; |
8223 | ||
8224 | self = self; | |
1afc06c2 | 8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 8226 | return NULL; |
1d99702e RD |
8227 | if (_argo0) { |
8228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
8231 | return NULL; | |
8232 | } | |
8233 | } | |
cf694132 | 8234 | { |
4268f798 | 8235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8236 | _result = new wxFont (wxDC_GetFont(_arg0)); |
cf694132 | 8237 | |
4268f798 | 8238 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8239 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8240 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8241 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8242 | return _resultobj; |
8243 | } | |
8244 | ||
8245 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 8246 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8247 | PyObject * _resultobj; |
8248 | int _result; | |
8249 | wxDC * _arg0; | |
1d99702e | 8250 | PyObject * _argo0 = 0; |
1afc06c2 | 8251 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8252 | |
8253 | self = self; | |
1afc06c2 | 8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 8255 | return NULL; |
1d99702e RD |
8256 | if (_argo0) { |
8257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
8260 | return NULL; | |
8261 | } | |
8262 | } | |
cf694132 | 8263 | { |
4268f798 | 8264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8265 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
cf694132 | 8266 | |
4268f798 | 8267 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8268 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8269 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8270 | return _resultobj; |
8271 | } | |
8272 | ||
eec92d76 RD |
8273 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
8274 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8275 | PyObject * _resultobj; | |
8276 | wxDC * _arg0; | |
8277 | double * _arg1; | |
8278 | double temp; | |
8279 | double * _arg2; | |
8280 | double temp0; | |
8281 | PyObject * _argo0 = 0; | |
8282 | char *_kwnames[] = { "self", NULL }; | |
8283 | ||
8284 | self = self; | |
8285 | { | |
8286 | _arg1 = &temp; | |
8287 | } | |
8288 | { | |
8289 | _arg2 = &temp0; | |
8290 | } | |
8291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
8292 | return NULL; | |
8293 | if (_argo0) { | |
8294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
8297 | return NULL; | |
8298 | } | |
8299 | } | |
8300 | { | |
4268f798 | 8301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8302 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
eec92d76 | 8303 | |
4268f798 | 8304 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8305 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8306 | } Py_INCREF(Py_None); |
8307 | _resultobj = Py_None; | |
8308 | { | |
8309 | PyObject *o; | |
8310 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8311 | _resultobj = t_output_helper(_resultobj, o); | |
8312 | } | |
8313 | { | |
8314 | PyObject *o; | |
8315 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8316 | _resultobj = t_output_helper(_resultobj, o); | |
8317 | } | |
8318 | return _resultobj; | |
8319 | } | |
8320 | ||
8ab979d7 | 8321 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 8322 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8323 | PyObject * _resultobj; |
8324 | int _result; | |
8325 | wxDC * _arg0; | |
1d99702e | 8326 | PyObject * _argo0 = 0; |
1afc06c2 | 8327 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8328 | |
8329 | self = self; | |
1afc06c2 | 8330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 8331 | return NULL; |
1d99702e RD |
8332 | if (_argo0) { |
8333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
8336 | return NULL; | |
8337 | } | |
8338 | } | |
cf694132 | 8339 | { |
4268f798 | 8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8341 | _result = (int )wxDC_GetMapMode(_arg0); |
cf694132 | 8342 | |
4268f798 | 8343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8344 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8345 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8346 | return _resultobj; |
8347 | } | |
8348 | ||
8349 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 8350 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8351 | PyObject * _resultobj; |
8352 | bool _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_GetOptimization",_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_GetOptimization. Expected _wxDC_p."); |
8364 | return NULL; | |
8365 | } | |
8366 | } | |
cf694132 | 8367 | { |
4268f798 | 8368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8369 | _result = (bool )wxDC_GetOptimization(_arg0); |
cf694132 | 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_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 8378 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8379 | PyObject * _resultobj; |
8380 | wxPen * _result; | |
8381 | wxDC * _arg0; | |
1d99702e | 8382 | PyObject * _argo0 = 0; |
1afc06c2 | 8383 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8384 | char _ptemp[128]; |
8385 | ||
8386 | self = self; | |
1afc06c2 | 8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 8388 | return NULL; |
1d99702e RD |
8389 | if (_argo0) { |
8390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
8393 | return NULL; | |
8394 | } | |
8395 | } | |
cf694132 | 8396 | { |
4268f798 | 8397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8398 | _result = new wxPen (wxDC_GetPen(_arg0)); |
cf694132 | 8399 | |
4268f798 | 8400 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8401 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8402 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
8403 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8404 | return _resultobj; |
8405 | } | |
8406 | ||
8407 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
8408 | wxColour* wc = new wxColour(); | |
8409 | self->GetPixel(x, y, wc); | |
8410 | return wc; | |
8411 | } | |
1afc06c2 | 8412 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8413 | PyObject * _resultobj; |
8414 | wxColour * _result; | |
8415 | wxDC * _arg0; | |
8416 | long _arg1; | |
8417 | long _arg2; | |
1d99702e | 8418 | PyObject * _argo0 = 0; |
1afc06c2 | 8419 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
8420 | char _ptemp[128]; |
8421 | ||
8422 | self = self; | |
1afc06c2 | 8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8424 | return NULL; |
1d99702e RD |
8425 | if (_argo0) { |
8426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
8429 | return NULL; | |
8430 | } | |
8431 | } | |
cf694132 | 8432 | { |
4268f798 | 8433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8434 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
cf694132 | 8435 | |
4268f798 | 8436 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8437 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8438 | } if (_result) { |
8439 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
8440 | _resultobj = Py_BuildValue("s",_ptemp); | |
8441 | } else { | |
8442 | Py_INCREF(Py_None); | |
8443 | _resultobj = Py_None; | |
8444 | } | |
8ab979d7 RD |
8445 | return _resultobj; |
8446 | } | |
8447 | ||
bb0054cd | 8448 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 8449 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8450 | PyObject * _resultobj; |
8451 | wxDC * _arg0; | |
8452 | int * _arg1; | |
8453 | int temp; | |
8454 | int * _arg2; | |
8455 | int temp0; | |
1d99702e | 8456 | PyObject * _argo0 = 0; |
1afc06c2 | 8457 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8458 | |
8459 | self = self; | |
8460 | { | |
8461 | _arg1 = &temp; | |
8462 | } | |
8463 | { | |
8464 | _arg2 = &temp0; | |
8465 | } | |
1afc06c2 | 8466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 8467 | return NULL; |
1d99702e RD |
8468 | if (_argo0) { |
8469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 8471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
8472 | return NULL; |
8473 | } | |
8474 | } | |
cf694132 | 8475 | { |
4268f798 | 8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8477 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 8478 | |
4268f798 | 8479 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8480 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8481 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8482 | _resultobj = Py_None; |
8483 | { | |
8484 | PyObject *o; | |
8485 | o = PyInt_FromLong((long) (*_arg1)); | |
8486 | _resultobj = t_output_helper(_resultobj, o); | |
8487 | } | |
8488 | { | |
8489 | PyObject *o; | |
8490 | o = PyInt_FromLong((long) (*_arg2)); | |
8491 | _resultobj = t_output_helper(_resultobj, o); | |
8492 | } | |
8493 | return _resultobj; | |
8494 | } | |
8495 | ||
bb0054cd | 8496 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 8497 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8498 | PyObject * _resultobj; |
8499 | wxSize * _result; | |
8500 | wxDC * _arg0; | |
1d99702e | 8501 | PyObject * _argo0 = 0; |
1afc06c2 | 8502 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
8503 | char _ptemp[128]; |
8504 | ||
8505 | self = self; | |
1afc06c2 | 8506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 8507 | return NULL; |
1d99702e RD |
8508 | if (_argo0) { |
8509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
8511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
8512 | return NULL; | |
8513 | } | |
8514 | } | |
8515 | { | |
4268f798 | 8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8517 | _result = new wxSize (wxDC_GetSize(_arg0)); |
bb0054cd | 8518 | |
4268f798 | 8519 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8520 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8521 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8522 | _resultobj = Py_BuildValue("s",_ptemp); | |
8523 | return _resultobj; | |
8524 | } | |
8525 | ||
eec92d76 RD |
8526 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
8527 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject * _resultobj; | |
8529 | wxSize * _result; | |
8530 | wxDC * _arg0; | |
8531 | PyObject * _argo0 = 0; | |
8532 | char *_kwnames[] = { "self", NULL }; | |
8533 | char _ptemp[128]; | |
8534 | ||
8535 | self = self; | |
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
8537 | return NULL; | |
8538 | if (_argo0) { | |
8539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
8542 | return NULL; | |
8543 | } | |
8544 | } | |
8545 | { | |
4268f798 | 8546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8547 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
eec92d76 | 8548 | |
4268f798 | 8549 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8550 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8551 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8552 | _resultobj = Py_BuildValue("s",_ptemp); | |
8553 | return _resultobj; | |
8554 | } | |
8555 | ||
8ab979d7 | 8556 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 8557 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8558 | PyObject * _resultobj; |
8559 | wxColour * _result; | |
8560 | wxDC * _arg0; | |
1d99702e | 8561 | PyObject * _argo0 = 0; |
1afc06c2 | 8562 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8563 | char _ptemp[128]; |
8564 | ||
8565 | self = self; | |
1afc06c2 | 8566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 8567 | return NULL; |
1d99702e RD |
8568 | if (_argo0) { |
8569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
8572 | return NULL; | |
8573 | } | |
8574 | } | |
cf694132 | 8575 | { |
4268f798 | 8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8577 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 | 8578 | |
4268f798 | 8579 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8580 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8581 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8582 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8583 | return _resultobj; |
8584 | } | |
8585 | ||
af309447 | 8586 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 8587 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8588 | PyObject * _resultobj; |
8589 | wxDC * _arg0; | |
8590 | wxString * _arg1; | |
8591 | long * _arg2; | |
8592 | long temp; | |
8593 | long * _arg3; | |
8594 | long temp0; | |
1d99702e | 8595 | PyObject * _argo0 = 0; |
af309447 | 8596 | PyObject * _obj1 = 0; |
1afc06c2 | 8597 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
8598 | |
8599 | self = self; | |
8600 | { | |
8601 | _arg2 = &temp; | |
8602 | } | |
8603 | { | |
8604 | _arg3 = &temp0; | |
8605 | } | |
1afc06c2 | 8606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 8607 | return NULL; |
1d99702e RD |
8608 | if (_argo0) { |
8609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
8611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
8612 | return NULL; | |
8613 | } | |
8614 | } | |
8615 | { | |
c8bc7bb8 RD |
8616 | _arg1 = wxString_in_helper(_obj1); |
8617 | if (_arg1 == NULL) | |
185d7c3e | 8618 | return NULL; |
af309447 | 8619 | } |
cf694132 | 8620 | { |
4268f798 | 8621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8622 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 8623 | |
4268f798 | 8624 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8625 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8626 | } Py_INCREF(Py_None); |
af309447 RD |
8627 | _resultobj = Py_None; |
8628 | { | |
8629 | PyObject *o; | |
8630 | o = PyInt_FromLong((long) (*_arg2)); | |
8631 | _resultobj = t_output_helper(_resultobj, o); | |
8632 | } | |
8633 | { | |
8634 | PyObject *o; | |
8635 | o = PyInt_FromLong((long) (*_arg3)); | |
8636 | _resultobj = t_output_helper(_resultobj, o); | |
8637 | } | |
8638 | { | |
8639 | if (_obj1) | |
8640 | delete _arg1; | |
8641 | } | |
8642 | return _resultobj; | |
8643 | } | |
8644 | ||
8645 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 8646 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8647 | PyObject * _resultobj; |
8648 | wxDC * _arg0; | |
8649 | wxString * _arg1; | |
8650 | long * _arg2; | |
8651 | long temp; | |
8652 | long * _arg3; | |
8653 | long temp0; | |
8654 | long * _arg4; | |
8655 | long temp1; | |
8656 | long * _arg5; | |
8657 | long temp2; | |
1d99702e RD |
8658 | wxFont * _arg6 = (wxFont *) NULL; |
8659 | PyObject * _argo0 = 0; | |
8ab979d7 | 8660 | PyObject * _obj1 = 0; |
1d99702e | 8661 | PyObject * _argo6 = 0; |
1afc06c2 | 8662 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
8663 | |
8664 | self = self; | |
8665 | { | |
8666 | _arg2 = &temp; | |
8667 | } | |
8668 | { | |
8669 | _arg3 = &temp0; | |
8670 | } | |
8671 | { | |
8672 | _arg4 = &temp1; | |
8673 | } | |
8674 | { | |
8675 | _arg5 = &temp2; | |
8676 | } | |
1afc06c2 | 8677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 8678 | return NULL; |
1d99702e RD |
8679 | if (_argo0) { |
8680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 8682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
8683 | return NULL; |
8684 | } | |
8685 | } | |
8686 | { | |
c8bc7bb8 RD |
8687 | _arg1 = wxString_in_helper(_obj1); |
8688 | if (_arg1 == NULL) | |
185d7c3e | 8689 | return NULL; |
8ab979d7 | 8690 | } |
1d99702e RD |
8691 | if (_argo6) { |
8692 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8693 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
8694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
8695 | return NULL; | |
8696 | } | |
8697 | } | |
cf694132 | 8698 | { |
4268f798 | 8699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8700 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 8701 | |
4268f798 | 8702 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8703 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8704 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8705 | _resultobj = Py_None; |
8706 | { | |
8707 | PyObject *o; | |
8708 | o = PyInt_FromLong((long) (*_arg2)); | |
8709 | _resultobj = t_output_helper(_resultobj, o); | |
8710 | } | |
8711 | { | |
8712 | PyObject *o; | |
8713 | o = PyInt_FromLong((long) (*_arg3)); | |
8714 | _resultobj = t_output_helper(_resultobj, o); | |
8715 | } | |
8716 | { | |
8717 | PyObject *o; | |
8718 | o = PyInt_FromLong((long) (*_arg4)); | |
8719 | _resultobj = t_output_helper(_resultobj, o); | |
8720 | } | |
8721 | { | |
8722 | PyObject *o; | |
8723 | o = PyInt_FromLong((long) (*_arg5)); | |
8724 | _resultobj = t_output_helper(_resultobj, o); | |
8725 | } | |
8726 | { | |
8727 | if (_obj1) | |
8728 | delete _arg1; | |
8729 | } | |
8730 | return _resultobj; | |
8731 | } | |
8732 | ||
8733 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 8734 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8735 | PyObject * _resultobj; |
8736 | wxColour * _result; | |
8737 | wxDC * _arg0; | |
1d99702e | 8738 | PyObject * _argo0 = 0; |
1afc06c2 | 8739 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8740 | char _ptemp[128]; |
8741 | ||
8742 | self = self; | |
1afc06c2 | 8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 8744 | return NULL; |
1d99702e RD |
8745 | if (_argo0) { |
8746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
8749 | return NULL; | |
8750 | } | |
8751 | } | |
cf694132 | 8752 | { |
4268f798 | 8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8754 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
cf694132 | 8755 | |
4268f798 | 8756 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8757 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8758 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8759 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8760 | return _resultobj; |
8761 | } | |
8762 | ||
eec92d76 RD |
8763 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
8764 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8765 | PyObject * _resultobj; | |
8766 | wxDC * _arg0; | |
8767 | double * _arg1; | |
8768 | double temp; | |
8769 | double * _arg2; | |
8770 | double temp0; | |
8771 | PyObject * _argo0 = 0; | |
8772 | char *_kwnames[] = { "self", NULL }; | |
8773 | ||
8774 | self = self; | |
8775 | { | |
8776 | _arg1 = &temp; | |
8777 | } | |
8778 | { | |
8779 | _arg2 = &temp0; | |
8780 | } | |
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
8782 | return NULL; | |
8783 | if (_argo0) { | |
8784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
8787 | return NULL; | |
8788 | } | |
8789 | } | |
8790 | { | |
4268f798 | 8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8792 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
eec92d76 | 8793 | |
4268f798 | 8794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8795 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8796 | } Py_INCREF(Py_None); |
8797 | _resultobj = Py_None; | |
8798 | { | |
8799 | PyObject *o; | |
8800 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8801 | _resultobj = t_output_helper(_resultobj, o); | |
8802 | } | |
8803 | { | |
8804 | PyObject *o; | |
8805 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8806 | _resultobj = t_output_helper(_resultobj, o); | |
8807 | } | |
8808 | return _resultobj; | |
8809 | } | |
8810 | ||
8ab979d7 | 8811 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 8812 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8813 | PyObject * _resultobj; |
8814 | long _result; | |
8815 | wxDC * _arg0; | |
8816 | long _arg1; | |
1d99702e | 8817 | PyObject * _argo0 = 0; |
1afc06c2 | 8818 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8819 | |
8820 | self = self; | |
1afc06c2 | 8821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8822 | return NULL; |
1d99702e RD |
8823 | if (_argo0) { |
8824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
8827 | return NULL; | |
8828 | } | |
8829 | } | |
cf694132 | 8830 | { |
4268f798 | 8831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8832 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
cf694132 | 8833 | |
4268f798 | 8834 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8835 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8836 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8837 | return _resultobj; |
8838 | } | |
8839 | ||
8840 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 8841 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8842 | PyObject * _resultobj; |
8843 | long _result; | |
8844 | wxDC * _arg0; | |
8845 | long _arg1; | |
1d99702e | 8846 | PyObject * _argo0 = 0; |
1afc06c2 | 8847 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8848 | |
8849 | self = self; | |
1afc06c2 | 8850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8851 | return NULL; |
1d99702e RD |
8852 | if (_argo0) { |
8853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
8856 | return NULL; | |
8857 | } | |
8858 | } | |
cf694132 | 8859 | { |
4268f798 | 8860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8861 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
cf694132 | 8862 | |
4268f798 | 8863 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8864 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8865 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8866 | return _resultobj; |
8867 | } | |
8868 | ||
8869 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 8870 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8871 | PyObject * _resultobj; |
8872 | long _result; | |
8873 | wxDC * _arg0; | |
8874 | long _arg1; | |
1d99702e | 8875 | PyObject * _argo0 = 0; |
1afc06c2 | 8876 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8877 | |
8878 | self = self; | |
1afc06c2 | 8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8880 | return NULL; |
1d99702e RD |
8881 | if (_argo0) { |
8882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
8885 | return NULL; | |
8886 | } | |
8887 | } | |
cf694132 | 8888 | { |
4268f798 | 8889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8890 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
cf694132 | 8891 | |
4268f798 | 8892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8894 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8895 | return _resultobj; |
8896 | } | |
8897 | ||
8898 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 8899 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8900 | PyObject * _resultobj; |
8901 | long _result; | |
8902 | wxDC * _arg0; | |
8903 | long _arg1; | |
1d99702e | 8904 | PyObject * _argo0 = 0; |
1afc06c2 | 8905 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8906 | |
8907 | self = self; | |
1afc06c2 | 8908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8909 | return NULL; |
1d99702e RD |
8910 | if (_argo0) { |
8911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
8914 | return NULL; | |
8915 | } | |
8916 | } | |
cf694132 | 8917 | { |
4268f798 | 8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8919 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
cf694132 | 8920 | |
4268f798 | 8921 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8923 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8924 | return _resultobj; |
8925 | } | |
8926 | ||
8927 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 8928 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8929 | PyObject * _resultobj; |
8930 | long _result; | |
8931 | wxDC * _arg0; | |
1d99702e | 8932 | PyObject * _argo0 = 0; |
1afc06c2 | 8933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8934 | |
8935 | self = self; | |
1afc06c2 | 8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 8937 | return NULL; |
1d99702e RD |
8938 | if (_argo0) { |
8939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
8942 | return NULL; | |
8943 | } | |
8944 | } | |
cf694132 | 8945 | { |
4268f798 | 8946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8947 | _result = (long )wxDC_MaxX(_arg0); |
cf694132 | 8948 | |
4268f798 | 8949 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8951 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8952 | return _resultobj; |
8953 | } | |
8954 | ||
8955 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 8956 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8957 | PyObject * _resultobj; |
8958 | long _result; | |
8959 | wxDC * _arg0; | |
1d99702e | 8960 | PyObject * _argo0 = 0; |
1afc06c2 | 8961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8962 | |
8963 | self = self; | |
1afc06c2 | 8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 8965 | return NULL; |
1d99702e RD |
8966 | if (_argo0) { |
8967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
8970 | return NULL; | |
8971 | } | |
8972 | } | |
cf694132 | 8973 | { |
4268f798 | 8974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8975 | _result = (long )wxDC_MaxY(_arg0); |
cf694132 | 8976 | |
4268f798 | 8977 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8978 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8979 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8980 | return _resultobj; |
8981 | } | |
8982 | ||
8983 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 8984 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8985 | PyObject * _resultobj; |
8986 | long _result; | |
8987 | wxDC * _arg0; | |
1d99702e | 8988 | PyObject * _argo0 = 0; |
1afc06c2 | 8989 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8990 | |
8991 | self = self; | |
1afc06c2 | 8992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 8993 | return NULL; |
1d99702e RD |
8994 | if (_argo0) { |
8995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
8998 | return NULL; | |
8999 | } | |
9000 | } | |
cf694132 | 9001 | { |
4268f798 | 9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9003 | _result = (long )wxDC_MinX(_arg0); |
cf694132 | 9004 | |
4268f798 | 9005 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9006 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9007 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9008 | return _resultobj; |
9009 | } | |
9010 | ||
9011 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 9012 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9013 | PyObject * _resultobj; |
9014 | long _result; | |
9015 | wxDC * _arg0; | |
1d99702e | 9016 | PyObject * _argo0 = 0; |
1afc06c2 | 9017 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9018 | |
9019 | self = self; | |
1afc06c2 | 9020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 9021 | return NULL; |
1d99702e RD |
9022 | if (_argo0) { |
9023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
9026 | return NULL; | |
9027 | } | |
9028 | } | |
cf694132 | 9029 | { |
4268f798 | 9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9031 | _result = (long )wxDC_MinY(_arg0); |
cf694132 | 9032 | |
4268f798 | 9033 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9034 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9035 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9036 | return _resultobj; |
9037 | } | |
9038 | ||
9039 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 9040 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9041 | PyObject * _resultobj; |
9042 | bool _result; | |
9043 | wxDC * _arg0; | |
1d99702e | 9044 | PyObject * _argo0 = 0; |
1afc06c2 | 9045 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9046 | |
9047 | self = self; | |
1afc06c2 | 9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 9049 | return NULL; |
1d99702e RD |
9050 | if (_argo0) { |
9051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
9054 | return NULL; | |
9055 | } | |
9056 | } | |
cf694132 | 9057 | { |
4268f798 | 9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9059 | _result = (bool )wxDC_Ok(_arg0); |
cf694132 | 9060 | |
4268f798 | 9061 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9062 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9063 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9064 | return _resultobj; |
9065 | } | |
9066 | ||
9067 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 9068 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9069 | PyObject * _resultobj; |
9070 | wxDC * _arg0; | |
9071 | long _arg1; | |
9072 | long _arg2; | |
1d99702e | 9073 | PyObject * _argo0 = 0; |
1afc06c2 | 9074 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
9075 | |
9076 | self = self; | |
1afc06c2 | 9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9078 | return NULL; |
1d99702e RD |
9079 | if (_argo0) { |
9080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
9083 | return NULL; | |
9084 | } | |
9085 | } | |
cf694132 | 9086 | { |
4268f798 | 9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9088 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
cf694132 | 9089 | |
4268f798 | 9090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9092 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9093 | _resultobj = Py_None; |
9094 | return _resultobj; | |
9095 | } | |
9096 | ||
9097 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 9098 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9099 | PyObject * _resultobj; |
9100 | wxDC * _arg0; | |
9101 | wxBrush * _arg1; | |
1d99702e RD |
9102 | PyObject * _argo0 = 0; |
9103 | PyObject * _argo1 = 0; | |
1afc06c2 | 9104 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9105 | |
9106 | self = self; | |
1afc06c2 | 9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9108 | return NULL; |
1d99702e RD |
9109 | if (_argo0) { |
9110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
9113 | return NULL; | |
9114 | } | |
9115 | } | |
1d99702e RD |
9116 | if (_argo1) { |
9117 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9118 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
9120 | return NULL; | |
9121 | } | |
9122 | } | |
cf694132 | 9123 | { |
4268f798 | 9124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9125 | wxDC_SetBackground(_arg0,*_arg1); |
cf694132 | 9126 | |
4268f798 | 9127 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9128 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9129 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9130 | _resultobj = Py_None; |
9131 | return _resultobj; | |
9132 | } | |
9133 | ||
9134 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 9135 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9136 | PyObject * _resultobj; |
9137 | wxDC * _arg0; | |
9138 | int _arg1; | |
1d99702e | 9139 | PyObject * _argo0 = 0; |
1afc06c2 | 9140 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9141 | |
9142 | self = self; | |
1afc06c2 | 9143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9144 | return NULL; |
1d99702e RD |
9145 | if (_argo0) { |
9146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
9149 | return NULL; | |
9150 | } | |
9151 | } | |
cf694132 | 9152 | { |
4268f798 | 9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9154 | wxDC_SetBackgroundMode(_arg0,_arg1); |
cf694132 | 9155 | |
4268f798 | 9156 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9157 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9158 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9159 | _resultobj = Py_None; |
9160 | return _resultobj; | |
9161 | } | |
9162 | ||
9163 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 9164 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9165 | PyObject * _resultobj; |
9166 | wxDC * _arg0; | |
9167 | long _arg1; | |
9168 | long _arg2; | |
9169 | long _arg3; | |
9170 | long _arg4; | |
1d99702e | 9171 | PyObject * _argo0 = 0; |
1afc06c2 | 9172 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
9173 | |
9174 | self = self; | |
1afc06c2 | 9175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9176 | return NULL; |
1d99702e RD |
9177 | if (_argo0) { |
9178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
9181 | return NULL; | |
9182 | } | |
9183 | } | |
cf694132 | 9184 | { |
4268f798 | 9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9186 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 9187 | |
4268f798 | 9188 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9191 | _resultobj = Py_None; |
9192 | return _resultobj; | |
9193 | } | |
9194 | ||
19a97bd6 RD |
9195 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
9196 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9197 | PyObject * _resultobj; | |
9198 | wxDC * _arg0; | |
9199 | wxRegion * _arg1; | |
9200 | PyObject * _argo0 = 0; | |
9201 | PyObject * _argo1 = 0; | |
9202 | char *_kwnames[] = { "self","region", NULL }; | |
9203 | ||
9204 | self = self; | |
9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
9206 | return NULL; | |
9207 | if (_argo0) { | |
9208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
9211 | return NULL; | |
9212 | } | |
9213 | } | |
9214 | if (_argo1) { | |
9215 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9216 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
9218 | return NULL; | |
9219 | } | |
9220 | } | |
9221 | { | |
4268f798 | 9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9223 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
19a97bd6 | 9224 | |
4268f798 | 9225 | wxPyEndAllowThreads(__tstate); |
19a97bd6 RD |
9226 | if (PyErr_Occurred()) return NULL; |
9227 | } Py_INCREF(Py_None); | |
9228 | _resultobj = Py_None; | |
9229 | return _resultobj; | |
9230 | } | |
9231 | ||
8ab979d7 | 9232 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1afc06c2 | 9233 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9234 | PyObject * _resultobj; |
9235 | wxDC * _arg0; | |
9236 | wxPalette * _arg1; | |
1d99702e RD |
9237 | PyObject * _argo0 = 0; |
9238 | PyObject * _argo1 = 0; | |
1afc06c2 | 9239 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
9240 | |
9241 | self = self; | |
1afc06c2 | 9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9243 | return NULL; |
1d99702e RD |
9244 | if (_argo0) { |
9245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
9248 | return NULL; | |
9249 | } | |
9250 | } | |
1d99702e RD |
9251 | if (_argo1) { |
9252 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9253 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
9254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
9255 | return NULL; | |
9256 | } | |
9257 | } | |
cf694132 | 9258 | { |
4268f798 | 9259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9260 | wxDC_SetPalette(_arg0,*_arg1); |
cf694132 | 9261 | |
4268f798 | 9262 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9263 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9264 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9265 | _resultobj = Py_None; |
9266 | return _resultobj; | |
9267 | } | |
9268 | ||
9269 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 9270 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9271 | PyObject * _resultobj; |
9272 | wxDC * _arg0; | |
9273 | wxBrush * _arg1; | |
1d99702e RD |
9274 | PyObject * _argo0 = 0; |
9275 | PyObject * _argo1 = 0; | |
1afc06c2 | 9276 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9277 | |
9278 | self = self; | |
1afc06c2 | 9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9280 | return NULL; |
1d99702e RD |
9281 | if (_argo0) { |
9282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
9285 | return NULL; | |
9286 | } | |
9287 | } | |
1d99702e RD |
9288 | if (_argo1) { |
9289 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9290 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
9292 | return NULL; | |
9293 | } | |
9294 | } | |
cf694132 | 9295 | { |
4268f798 | 9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9297 | wxDC_SetBrush(_arg0,*_arg1); |
cf694132 | 9298 | |
4268f798 | 9299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9302 | _resultobj = Py_None; |
9303 | return _resultobj; | |
9304 | } | |
9305 | ||
9306 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 9307 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9308 | PyObject * _resultobj; |
9309 | wxDC * _arg0; | |
9310 | wxFont * _arg1; | |
1d99702e RD |
9311 | PyObject * _argo0 = 0; |
9312 | PyObject * _argo1 = 0; | |
1afc06c2 | 9313 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
9314 | |
9315 | self = self; | |
1afc06c2 | 9316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9317 | return NULL; |
1d99702e RD |
9318 | if (_argo0) { |
9319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
9322 | return NULL; | |
9323 | } | |
9324 | } | |
1d99702e RD |
9325 | if (_argo1) { |
9326 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9327 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
9328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
9329 | return NULL; | |
9330 | } | |
9331 | } | |
cf694132 | 9332 | { |
4268f798 | 9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9334 | wxDC_SetFont(_arg0,*_arg1); |
cf694132 | 9335 | |
4268f798 | 9336 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9337 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9338 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9339 | _resultobj = Py_None; |
9340 | return _resultobj; | |
9341 | } | |
9342 | ||
9343 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 9344 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9345 | PyObject * _resultobj; |
9346 | wxDC * _arg0; | |
9347 | int _arg1; | |
1d99702e | 9348 | PyObject * _argo0 = 0; |
1afc06c2 | 9349 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
9350 | |
9351 | self = self; | |
1afc06c2 | 9352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9353 | return NULL; |
1d99702e RD |
9354 | if (_argo0) { |
9355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
9358 | return NULL; | |
9359 | } | |
9360 | } | |
cf694132 | 9361 | { |
4268f798 | 9362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9363 | wxDC_SetLogicalFunction(_arg0,_arg1); |
cf694132 | 9364 | |
4268f798 | 9365 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9366 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9367 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9368 | _resultobj = Py_None; |
9369 | return _resultobj; | |
9370 | } | |
9371 | ||
eec92d76 RD |
9372 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
9373 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9374 | PyObject * _resultobj; | |
9375 | wxDC * _arg0; | |
9376 | double _arg1; | |
9377 | double _arg2; | |
9378 | PyObject * _argo0 = 0; | |
9379 | char *_kwnames[] = { "self","x","y", NULL }; | |
9380 | ||
9381 | self = self; | |
9382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9383 | return NULL; | |
9384 | if (_argo0) { | |
9385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
9388 | return NULL; | |
9389 | } | |
9390 | } | |
9391 | { | |
4268f798 | 9392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9393 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
eec92d76 | 9394 | |
4268f798 | 9395 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9396 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9397 | } Py_INCREF(Py_None); |
9398 | _resultobj = Py_None; | |
9399 | return _resultobj; | |
9400 | } | |
9401 | ||
8ab979d7 | 9402 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 9403 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9404 | PyObject * _resultobj; |
9405 | wxDC * _arg0; | |
9406 | int _arg1; | |
1d99702e | 9407 | PyObject * _argo0 = 0; |
1afc06c2 | 9408 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9409 | |
9410 | self = self; | |
1afc06c2 | 9411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9412 | return NULL; |
1d99702e RD |
9413 | if (_argo0) { |
9414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
9417 | return NULL; | |
9418 | } | |
9419 | } | |
cf694132 | 9420 | { |
4268f798 | 9421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9422 | wxDC_SetMapMode(_arg0,_arg1); |
cf694132 | 9423 | |
4268f798 | 9424 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9426 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9427 | _resultobj = Py_None; |
9428 | return _resultobj; | |
9429 | } | |
9430 | ||
9431 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 9432 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9433 | PyObject * _resultobj; |
9434 | wxDC * _arg0; | |
9435 | bool _arg1; | |
1d99702e | 9436 | PyObject * _argo0 = 0; |
8ab979d7 | 9437 | int tempbool1; |
1afc06c2 | 9438 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
9439 | |
9440 | self = self; | |
1afc06c2 | 9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9442 | return NULL; |
1d99702e RD |
9443 | if (_argo0) { |
9444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
9447 | return NULL; | |
9448 | } | |
9449 | } | |
9450 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9451 | { |
4268f798 | 9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9453 | wxDC_SetOptimization(_arg0,_arg1); |
cf694132 | 9454 | |
4268f798 | 9455 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9457 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9458 | _resultobj = Py_None; |
9459 | return _resultobj; | |
9460 | } | |
9461 | ||
9462 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 9463 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9464 | PyObject * _resultobj; |
9465 | wxDC * _arg0; | |
9466 | wxPen * _arg1; | |
1d99702e RD |
9467 | PyObject * _argo0 = 0; |
9468 | PyObject * _argo1 = 0; | |
1afc06c2 | 9469 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
9470 | |
9471 | self = self; | |
1afc06c2 | 9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9473 | return NULL; |
1d99702e RD |
9474 | if (_argo0) { |
9475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
9478 | return NULL; | |
9479 | } | |
9480 | } | |
1d99702e RD |
9481 | if (_argo1) { |
9482 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9483 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
9484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
9485 | return NULL; | |
9486 | } | |
9487 | } | |
cf694132 | 9488 | { |
4268f798 | 9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9490 | wxDC_SetPen(_arg0,*_arg1); |
cf694132 | 9491 | |
4268f798 | 9492 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9493 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9494 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9495 | _resultobj = Py_None; |
9496 | return _resultobj; | |
9497 | } | |
9498 | ||
9499 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 9500 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9501 | PyObject * _resultobj; |
9502 | wxDC * _arg0; | |
9503 | wxColour * _arg1; | |
1d99702e | 9504 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9505 | wxColour temp; |
9506 | PyObject * _obj1 = 0; | |
1afc06c2 | 9507 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9508 | |
9509 | self = self; | |
f6bcfd97 | 9510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9511 | return NULL; |
1d99702e RD |
9512 | if (_argo0) { |
9513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
9516 | return NULL; | |
9517 | } | |
9518 | } | |
f6bcfd97 BP |
9519 | { |
9520 | _arg1 = &temp; | |
9521 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9522 | return NULL; |
f6bcfd97 | 9523 | } |
cf694132 | 9524 | { |
4268f798 | 9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9526 | wxDC_SetTextBackground(_arg0,*_arg1); |
cf694132 | 9527 | |
4268f798 | 9528 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9529 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9530 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9531 | _resultobj = Py_None; |
9532 | return _resultobj; | |
9533 | } | |
9534 | ||
9535 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 9536 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9537 | PyObject * _resultobj; |
9538 | wxDC * _arg0; | |
9539 | wxColour * _arg1; | |
1d99702e | 9540 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9541 | wxColour temp; |
9542 | PyObject * _obj1 = 0; | |
1afc06c2 | 9543 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9544 | |
9545 | self = self; | |
f6bcfd97 | 9546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9547 | return NULL; |
1d99702e RD |
9548 | if (_argo0) { |
9549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
9552 | return NULL; | |
9553 | } | |
9554 | } | |
f6bcfd97 BP |
9555 | { |
9556 | _arg1 = &temp; | |
9557 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9558 | return NULL; |
f6bcfd97 | 9559 | } |
cf694132 | 9560 | { |
4268f798 | 9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9562 | wxDC_SetTextForeground(_arg0,*_arg1); |
cf694132 | 9563 | |
4268f798 | 9564 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9565 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9566 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9567 | _resultobj = Py_None; |
9568 | return _resultobj; | |
9569 | } | |
9570 | ||
9571 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 9572 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9573 | PyObject * _resultobj; |
9574 | wxDC * _arg0; | |
9575 | double _arg1; | |
9576 | double _arg2; | |
1d99702e | 9577 | PyObject * _argo0 = 0; |
1afc06c2 | 9578 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
9579 | |
9580 | self = self; | |
1afc06c2 | 9581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9582 | return NULL; |
1d99702e RD |
9583 | if (_argo0) { |
9584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
9587 | return NULL; | |
9588 | } | |
9589 | } | |
cf694132 | 9590 | { |
4268f798 | 9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9592 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
cf694132 | 9593 | |
4268f798 | 9594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9596 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9597 | _resultobj = Py_None; |
9598 | return _resultobj; | |
9599 | } | |
9600 | ||
9601 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 9602 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9603 | PyObject * _resultobj; |
9604 | bool _result; | |
9605 | wxDC * _arg0; | |
9606 | wxString * _arg1; | |
1d99702e | 9607 | PyObject * _argo0 = 0; |
8ab979d7 | 9608 | PyObject * _obj1 = 0; |
1afc06c2 | 9609 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
9610 | |
9611 | self = self; | |
1afc06c2 | 9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9613 | return NULL; |
1d99702e RD |
9614 | if (_argo0) { |
9615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
9618 | return NULL; | |
9619 | } | |
9620 | } | |
9621 | { | |
c8bc7bb8 RD |
9622 | _arg1 = wxString_in_helper(_obj1); |
9623 | if (_arg1 == NULL) | |
185d7c3e | 9624 | return NULL; |
8ab979d7 | 9625 | } |
cf694132 | 9626 | { |
4268f798 | 9627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9628 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
cf694132 | 9629 | |
4268f798 | 9630 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9631 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9632 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9633 | { |
9634 | if (_obj1) | |
9635 | delete _arg1; | |
9636 | } | |
9637 | return _resultobj; | |
9638 | } | |
9639 | ||
9640 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 9641 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9642 | PyObject * _resultobj; |
9643 | wxDC * _arg0; | |
1d99702e | 9644 | PyObject * _argo0 = 0; |
1afc06c2 | 9645 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9646 | |
9647 | self = self; | |
1afc06c2 | 9648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 9649 | return NULL; |
1d99702e RD |
9650 | if (_argo0) { |
9651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
9654 | return NULL; | |
9655 | } | |
9656 | } | |
cf694132 | 9657 | { |
4268f798 | 9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9659 | wxDC_StartPage(_arg0); |
cf694132 | 9660 | |
4268f798 | 9661 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9662 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9663 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9664 | _resultobj = Py_None; |
9665 | return _resultobj; | |
9666 | } | |
9667 | ||
efc5f224 | 9668 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9669 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9670 | PyObject * _resultobj; |
9671 | wxDC * _arg0; | |
9672 | wxBitmap * _arg1; | |
9673 | long _arg2; | |
9674 | long _arg3; | |
efc5f224 | 9675 | int _arg4 = (int ) FALSE; |
1d99702e RD |
9676 | PyObject * _argo0 = 0; |
9677 | PyObject * _argo1 = 0; | |
1afc06c2 | 9678 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
9679 | |
9680 | self = self; | |
1afc06c2 | 9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9682 | return NULL; |
1d99702e RD |
9683 | if (_argo0) { |
9684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
9687 | return NULL; | |
9688 | } | |
9689 | } | |
1d99702e RD |
9690 | if (_argo1) { |
9691 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9692 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
9693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
9694 | return NULL; | |
9695 | } | |
9696 | } | |
cf694132 | 9697 | { |
4268f798 | 9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9699 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
cf694132 | 9700 | |
4268f798 | 9701 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9702 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9703 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9704 | _resultobj = Py_None; |
9705 | return _resultobj; | |
9706 | } | |
9707 | ||
eec92d76 RD |
9708 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
9709 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9710 | PyObject * _resultobj; | |
9711 | bool _result; | |
9712 | wxDC * _arg0; | |
9713 | PyObject * _argo0 = 0; | |
9714 | char *_kwnames[] = { "self", NULL }; | |
9715 | ||
9716 | self = self; | |
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
9718 | return NULL; | |
9719 | if (_argo0) { | |
9720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9723 | return NULL; | |
9724 | } | |
9725 | } | |
9726 | { | |
4268f798 | 9727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9728 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
eec92d76 | 9729 | |
4268f798 | 9730 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9731 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9732 | } _resultobj = Py_BuildValue("i",_result); |
9733 | return _resultobj; | |
9734 | } | |
9735 | ||
9736 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9737 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9738 | PyObject * _resultobj; | |
9739 | bool _result; | |
9740 | wxDC * _arg0; | |
9741 | PyObject * _argo0 = 0; | |
9742 | char *_kwnames[] = { "self", NULL }; | |
9743 | ||
9744 | self = self; | |
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9746 | return NULL; | |
9747 | if (_argo0) { | |
9748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9751 | return NULL; | |
9752 | } | |
9753 | } | |
9754 | { | |
4268f798 | 9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9756 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
eec92d76 | 9757 | |
4268f798 | 9758 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9759 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9760 | } _resultobj = Py_BuildValue("i",_result); |
9761 | return _resultobj; | |
9762 | } | |
9763 | ||
9764 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9765 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9766 | PyObject * _resultobj; | |
9767 | int _result; | |
9768 | wxDC * _arg0; | |
9769 | PyObject * _argo0 = 0; | |
9770 | char *_kwnames[] = { "self", NULL }; | |
9771 | ||
9772 | self = self; | |
9773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
9774 | return NULL; | |
9775 | if (_argo0) { | |
9776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
9779 | return NULL; | |
9780 | } | |
9781 | } | |
9782 | { | |
4268f798 | 9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9784 | _result = (int )wxDC_GetDepth(_arg0); |
eec92d76 | 9785 | |
4268f798 | 9786 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9787 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9788 | } _resultobj = Py_BuildValue("i",_result); |
9789 | return _resultobj; | |
9790 | } | |
9791 | ||
9792 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
9793 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9794 | PyObject * _resultobj; | |
9795 | wxSize * _result; | |
9796 | wxDC * _arg0; | |
9797 | PyObject * _argo0 = 0; | |
9798 | char *_kwnames[] = { "self", NULL }; | |
9799 | char _ptemp[128]; | |
9800 | ||
9801 | self = self; | |
9802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
9803 | return NULL; | |
9804 | if (_argo0) { | |
9805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
9808 | return NULL; | |
9809 | } | |
9810 | } | |
9811 | { | |
4268f798 | 9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9813 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
eec92d76 | 9814 | |
4268f798 | 9815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9816 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9817 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
9818 | _resultobj = Py_BuildValue("s",_ptemp); | |
9819 | return _resultobj; | |
9820 | } | |
9821 | ||
9822 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
9823 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9824 | PyObject * _resultobj; | |
9825 | wxDC * _arg0; | |
9826 | int * _arg1; | |
9827 | int temp; | |
9828 | int * _arg2; | |
9829 | int temp0; | |
9830 | PyObject * _argo0 = 0; | |
9831 | char *_kwnames[] = { "self", NULL }; | |
9832 | ||
9833 | self = self; | |
9834 | { | |
9835 | _arg1 = &temp; | |
9836 | } | |
9837 | { | |
9838 | _arg2 = &temp0; | |
9839 | } | |
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_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_GetLogicalOrigin. Expected _wxDC_p."); | |
9846 | return NULL; | |
9847 | } | |
9848 | } | |
9849 | { | |
4268f798 | 9850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9851 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 9852 | |
4268f798 | 9853 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9854 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9855 | } Py_INCREF(Py_None); |
9856 | _resultobj = Py_None; | |
9857 | { | |
9858 | PyObject *o; | |
9859 | o = PyInt_FromLong((long) (*_arg1)); | |
9860 | _resultobj = t_output_helper(_resultobj, o); | |
9861 | } | |
9862 | { | |
9863 | PyObject *o; | |
9864 | o = PyInt_FromLong((long) (*_arg2)); | |
9865 | _resultobj = t_output_helper(_resultobj, o); | |
9866 | } | |
9867 | return _resultobj; | |
9868 | } | |
9869 | ||
9870 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9871 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9872 | PyObject * _resultobj; | |
9873 | wxDC * _arg0; | |
9874 | int _arg1; | |
9875 | int _arg2; | |
9876 | PyObject * _argo0 = 0; | |
9877 | char *_kwnames[] = { "self","x","y", NULL }; | |
9878 | ||
9879 | self = self; | |
9880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9881 | return NULL; | |
9882 | if (_argo0) { | |
9883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9886 | return NULL; | |
9887 | } | |
9888 | } | |
9889 | { | |
4268f798 | 9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9891 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 9892 | |
4268f798 | 9893 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9894 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9895 | } Py_INCREF(Py_None); |
9896 | _resultobj = Py_None; | |
9897 | return _resultobj; | |
9898 | } | |
9899 | ||
9900 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9901 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9902 | PyObject * _resultobj; | |
9903 | wxDC * _arg0; | |
9904 | int * _arg1; | |
9905 | int temp; | |
9906 | int * _arg2; | |
9907 | int temp0; | |
9908 | PyObject * _argo0 = 0; | |
9909 | char *_kwnames[] = { "self", NULL }; | |
9910 | ||
9911 | self = self; | |
9912 | { | |
9913 | _arg1 = &temp; | |
9914 | } | |
9915 | { | |
9916 | _arg2 = &temp0; | |
9917 | } | |
9918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9919 | return NULL; | |
9920 | if (_argo0) { | |
9921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9924 | return NULL; | |
9925 | } | |
9926 | } | |
9927 | { | |
4268f798 | 9928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9929 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 9930 | |
4268f798 | 9931 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9932 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9933 | } Py_INCREF(Py_None); |
9934 | _resultobj = Py_None; | |
9935 | { | |
9936 | PyObject *o; | |
9937 | o = PyInt_FromLong((long) (*_arg1)); | |
9938 | _resultobj = t_output_helper(_resultobj, o); | |
9939 | } | |
9940 | { | |
9941 | PyObject *o; | |
9942 | o = PyInt_FromLong((long) (*_arg2)); | |
9943 | _resultobj = t_output_helper(_resultobj, o); | |
9944 | } | |
9945 | return _resultobj; | |
9946 | } | |
9947 | ||
9948 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
9949 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9950 | PyObject * _resultobj; | |
9951 | wxDC * _arg0; | |
9952 | bool _arg1; | |
9953 | bool _arg2; | |
9954 | PyObject * _argo0 = 0; | |
9955 | int tempbool1; | |
9956 | int tempbool2; | |
9957 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
9958 | ||
9959 | self = self; | |
9960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
9961 | return NULL; | |
9962 | if (_argo0) { | |
9963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
9966 | return NULL; | |
9967 | } | |
9968 | } | |
9969 | _arg1 = (bool ) tempbool1; | |
9970 | _arg2 = (bool ) tempbool2; | |
9971 | { | |
4268f798 | 9972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9973 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
eec92d76 | 9974 | |
4268f798 | 9975 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9976 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9977 | } Py_INCREF(Py_None); |
9978 | _resultobj = Py_None; | |
9979 | return _resultobj; | |
9980 | } | |
9981 | ||
f6bcfd97 BP |
9982 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
9983 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9984 | PyObject * _resultobj; | |
9985 | wxDC * _arg0; | |
9986 | int _arg1; | |
9987 | int _arg2; | |
9988 | PyObject * _argo0 = 0; | |
9989 | char *_kwnames[] = { "self","x","y", NULL }; | |
9990 | ||
9991 | self = self; | |
9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9993 | return NULL; | |
9994 | if (_argo0) { | |
9995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9998 | return NULL; | |
9999 | } | |
10000 | } | |
10001 | { | |
4268f798 | 10002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10003 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
f6bcfd97 | 10004 | |
4268f798 | 10005 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10006 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10007 | } Py_INCREF(Py_None); |
10008 | _resultobj = Py_None; | |
10009 | return _resultobj; | |
10010 | } | |
10011 | ||
10012 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
10013 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject * _resultobj; | |
10015 | wxDC * _arg0; | |
10016 | PyObject * _argo0 = 0; | |
10017 | char *_kwnames[] = { "self", NULL }; | |
10018 | ||
10019 | self = self; | |
10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
10021 | return NULL; | |
10022 | if (_argo0) { | |
10023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
10026 | return NULL; | |
10027 | } | |
10028 | } | |
10029 | { | |
4268f798 | 10030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10031 | wxDC_ResetBoundingBox(_arg0); |
f6bcfd97 | 10032 | |
4268f798 | 10033 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10034 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10035 | } Py_INCREF(Py_None); |
10036 | _resultobj = Py_None; | |
10037 | return _resultobj; | |
10038 | } | |
10039 | ||
9d37f964 RD |
10040 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10041 | PyObject * _resultobj; | |
10042 | wxDC * _arg0; | |
10043 | int * _arg1; | |
10044 | int temp; | |
10045 | int * _arg2; | |
10046 | int temp0; | |
10047 | int * _arg3; | |
10048 | int temp1; | |
10049 | int * _arg4; | |
10050 | int temp2; | |
10051 | PyObject * _argo0 = 0; | |
10052 | char *_kwnames[] = { "self", NULL }; | |
10053 | ||
10054 | self = self; | |
10055 | { | |
10056 | _arg1 = &temp; | |
10057 | } | |
10058 | { | |
10059 | _arg2 = &temp0; | |
10060 | } | |
10061 | { | |
10062 | _arg3 = &temp1; | |
10063 | } | |
10064 | { | |
10065 | _arg4 = &temp2; | |
10066 | } | |
10067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
10068 | return NULL; | |
10069 | if (_argo0) { | |
10070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
10073 | return NULL; | |
10074 | } | |
10075 | } | |
10076 | { | |
4268f798 | 10077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10078 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d37f964 | 10079 | |
4268f798 | 10080 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10081 | if (PyErr_Occurred()) return NULL; |
10082 | } Py_INCREF(Py_None); | |
10083 | _resultobj = Py_None; | |
10084 | { | |
10085 | PyObject *o; | |
10086 | o = PyInt_FromLong((long) (*_arg1)); | |
10087 | _resultobj = t_output_helper(_resultobj, o); | |
10088 | } | |
10089 | { | |
10090 | PyObject *o; | |
10091 | o = PyInt_FromLong((long) (*_arg2)); | |
10092 | _resultobj = t_output_helper(_resultobj, o); | |
10093 | } | |
10094 | { | |
10095 | PyObject *o; | |
10096 | o = PyInt_FromLong((long) (*_arg3)); | |
10097 | _resultobj = t_output_helper(_resultobj, o); | |
10098 | } | |
10099 | { | |
10100 | PyObject *o; | |
10101 | o = PyInt_FromLong((long) (*_arg4)); | |
10102 | _resultobj = t_output_helper(_resultobj, o); | |
10103 | } | |
10104 | return _resultobj; | |
10105 | } | |
10106 | ||
c7e7022c RD |
10107 | #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC()) |
10108 | static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10109 | PyObject * _resultobj; | |
10110 | long _result; | |
10111 | wxDC * _arg0; | |
10112 | PyObject * _argo0 = 0; | |
10113 | char *_kwnames[] = { "self", NULL }; | |
10114 | ||
10115 | self = self; | |
10116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0)) | |
10117 | return NULL; | |
10118 | if (_argo0) { | |
10119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p."); | |
10122 | return NULL; | |
10123 | } | |
10124 | } | |
10125 | { | |
4268f798 | 10126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10127 | _result = (long )wxDC_GetHDC(_arg0); |
c7e7022c | 10128 | |
4268f798 | 10129 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
10130 | if (PyErr_Occurred()) return NULL; |
10131 | } _resultobj = Py_BuildValue("l",_result); | |
10132 | return _resultobj; | |
10133 | } | |
10134 | ||
9d37f964 RD |
10135 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { |
10136 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
10137 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10138 | int numObjs = 0; | |
10139 | int numPens = 0; | |
10140 | wxPen* pen; | |
10141 | PyObject* obj; | |
10142 | int x1, y1; | |
10143 | int i = 0; | |
10144 | ||
10145 | if (!PySequence_Check(pyPoints)) { | |
10146 | goto err0; | |
10147 | } | |
10148 | if (!PySequence_Check(pyPens)) { | |
10149 | goto err1; | |
10150 | } | |
10151 | numObjs = PySequence_Length(pyPoints); | |
10152 | numPens = PySequence_Length(pyPens); | |
10153 | ||
10154 | for (i = 0; i < numObjs; i++) { | |
10155 | // Use a new pen? | |
10156 | if (i < numPens) { | |
10157 | if (isFastPens) { | |
10158 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10159 | } | |
10160 | else { | |
10161 | obj = PySequence_GetItem(pyPens, i); | |
10162 | } | |
10163 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10164 | if (!isFastPens) |
10165 | Py_DECREF(obj); | |
9d37f964 RD |
10166 | goto err1; |
10167 | } | |
10168 | ||
10169 | self->SetPen(*pen); | |
10170 | if (!isFastPens) | |
10171 | Py_DECREF(obj); | |
10172 | } | |
10173 | ||
10174 | // Get the point coordinants | |
10175 | if (isFastSeq) { | |
10176 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
10177 | } | |
10178 | else { | |
10179 | obj = PySequence_GetItem(pyPoints, i); | |
10180 | } | |
10181 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
76e280e7 RD |
10182 | if (!isFastPens) |
10183 | Py_DECREF(obj); | |
9d37f964 RD |
10184 | goto err0; |
10185 | } | |
10186 | ||
10187 | // Now draw the point | |
10188 | self->DrawPoint(x1, y1); | |
10189 | ||
10190 | if (!isFastSeq) | |
10191 | Py_DECREF(obj); | |
10192 | } | |
10193 | ||
10194 | Py_INCREF(Py_None); | |
10195 | return Py_None; | |
10196 | ||
10197 | err1: | |
10198 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10199 | return NULL; | |
10200 | err0: | |
10201 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
10202 | return NULL; | |
10203 | } | |
10204 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10205 | PyObject * _resultobj; | |
10206 | PyObject * _result; | |
10207 | wxDC * _arg0; | |
10208 | PyObject * _arg1; | |
10209 | PyObject * _arg2; | |
10210 | PyObject * _argo0 = 0; | |
10211 | PyObject * _obj1 = 0; | |
10212 | PyObject * _obj2 = 0; | |
10213 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
10214 | ||
10215 | self = self; | |
10216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10217 | return NULL; | |
10218 | if (_argo0) { | |
10219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
10222 | return NULL; | |
10223 | } | |
10224 | } | |
10225 | { | |
10226 | _arg1 = _obj1; | |
10227 | } | |
10228 | { | |
10229 | _arg2 = _obj2; | |
10230 | } | |
10231 | { | |
4268f798 | 10232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10233 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
9d37f964 | 10234 | |
4268f798 | 10235 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10236 | if (PyErr_Occurred()) return NULL; |
10237 | }{ | |
10238 | _resultobj = _result; | |
10239 | } | |
10240 | return _resultobj; | |
10241 | } | |
10242 | ||
10243 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
10244 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
10245 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10246 | int numObjs = 0; | |
10247 | int numPens = 0; | |
10248 | wxPen* pen; | |
10249 | PyObject* obj; | |
10250 | int x1, y1, x2, y2; | |
10251 | int i = 0; | |
10252 | ||
10253 | if (!PySequence_Check(pyLines)) { | |
10254 | goto err0; | |
10255 | } | |
10256 | if (!PySequence_Check(pyPens)) { | |
10257 | goto err1; | |
10258 | } | |
10259 | numObjs = PySequence_Length(pyLines); | |
10260 | numPens = PySequence_Length(pyPens); | |
10261 | ||
10262 | for (i = 0; i < numObjs; i++) { | |
10263 | // Use a new pen? | |
10264 | if (i < numPens) { | |
10265 | if (isFastPens) { | |
10266 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10267 | } | |
10268 | else { | |
10269 | obj = PySequence_GetItem(pyPens, i); | |
10270 | } | |
10271 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10272 | if (!isFastPens) |
10273 | Py_DECREF(obj); | |
9d37f964 RD |
10274 | goto err1; |
10275 | } | |
10276 | ||
10277 | self->SetPen(*pen); | |
10278 | if (!isFastPens) | |
10279 | Py_DECREF(obj); | |
10280 | } | |
10281 | ||
10282 | // Get the line coordinants | |
10283 | if (isFastSeq) { | |
10284 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
10285 | } | |
10286 | else { | |
10287 | obj = PySequence_GetItem(pyLines, i); | |
10288 | } | |
10289 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
76e280e7 RD |
10290 | if (!isFastPens) |
10291 | Py_DECREF(obj); | |
9d37f964 RD |
10292 | goto err0; |
10293 | } | |
10294 | ||
10295 | // Now draw the line | |
10296 | self->DrawLine(x1, y1, x2, y2); | |
10297 | ||
10298 | if (!isFastSeq) | |
10299 | Py_DECREF(obj); | |
10300 | } | |
10301 | ||
10302 | Py_INCREF(Py_None); | |
10303 | return Py_None; | |
10304 | ||
10305 | err1: | |
10306 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10307 | return NULL; | |
10308 | err0: | |
10309 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
10310 | return NULL; | |
10311 | } | |
10312 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10313 | PyObject * _resultobj; | |
10314 | PyObject * _result; | |
10315 | wxDC * _arg0; | |
10316 | PyObject * _arg1; | |
10317 | PyObject * _arg2; | |
10318 | PyObject * _argo0 = 0; | |
10319 | PyObject * _obj1 = 0; | |
10320 | PyObject * _obj2 = 0; | |
10321 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
10322 | ||
10323 | self = self; | |
10324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10325 | return NULL; | |
10326 | if (_argo0) { | |
10327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
10330 | return NULL; | |
10331 | } | |
10332 | } | |
10333 | { | |
10334 | _arg1 = _obj1; | |
10335 | } | |
10336 | { | |
10337 | _arg2 = _obj2; | |
10338 | } | |
10339 | { | |
4268f798 | 10340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10341 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
9d37f964 | 10342 | |
4268f798 | 10343 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10344 | if (PyErr_Occurred()) return NULL; |
10345 | }{ | |
10346 | _resultobj = _result; | |
10347 | } | |
10348 | return _resultobj; | |
10349 | } | |
10350 | ||
8ab979d7 RD |
10351 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
10352 | wxMemoryDC *src; | |
10353 | wxDC *dest; | |
10354 | src = (wxMemoryDC *) ptr; | |
10355 | dest = (wxDC *) src; | |
10356 | return (void *) dest; | |
10357 | } | |
10358 | ||
9416aa89 RD |
10359 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
10360 | wxMemoryDC *src; | |
10361 | wxObject *dest; | |
10362 | src = (wxMemoryDC *) ptr; | |
10363 | dest = (wxObject *) src; | |
10364 | return (void *) dest; | |
10365 | } | |
10366 | ||
8ab979d7 | 10367 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 10368 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10369 | PyObject * _resultobj; |
10370 | wxMemoryDC * _result; | |
1afc06c2 | 10371 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10372 | char _ptemp[128]; |
10373 | ||
10374 | self = self; | |
1afc06c2 | 10375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 10376 | return NULL; |
cf694132 | 10377 | { |
4268f798 | 10378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10379 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
cf694132 | 10380 | |
4268f798 | 10381 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10382 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10383 | } if (_result) { |
10384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
10385 | _resultobj = Py_BuildValue("s",_ptemp); | |
10386 | } else { | |
10387 | Py_INCREF(Py_None); | |
10388 | _resultobj = Py_None; | |
10389 | } | |
8ab979d7 RD |
10390 | return _resultobj; |
10391 | } | |
10392 | ||
10393 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 10394 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10395 | PyObject * _resultobj; |
10396 | wxMemoryDC * _arg0; | |
10397 | wxBitmap * _arg1; | |
1d99702e RD |
10398 | PyObject * _argo0 = 0; |
10399 | PyObject * _argo1 = 0; | |
1afc06c2 | 10400 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
10401 | |
10402 | self = self; | |
1afc06c2 | 10403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10404 | return NULL; |
1d99702e RD |
10405 | if (_argo0) { |
10406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
10408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
10409 | return NULL; | |
10410 | } | |
10411 | } | |
1d99702e RD |
10412 | if (_argo1) { |
10413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
10415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
10416 | return NULL; | |
10417 | } | |
10418 | } | |
cf694132 | 10419 | { |
4268f798 | 10420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10421 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
cf694132 | 10422 | |
4268f798 | 10423 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10424 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10425 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10426 | _resultobj = Py_None; |
10427 | return _resultobj; | |
10428 | } | |
10429 | ||
e9159fe8 RD |
10430 | static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) { |
10431 | wxBufferedDC *src; | |
10432 | wxMemoryDC *dest; | |
10433 | src = (wxBufferedDC *) ptr; | |
10434 | dest = (wxMemoryDC *) src; | |
10435 | return (void *) dest; | |
10436 | } | |
10437 | ||
10438 | static void *SwigwxBufferedDCTowxDC(void *ptr) { | |
10439 | wxBufferedDC *src; | |
10440 | wxDC *dest; | |
10441 | src = (wxBufferedDC *) ptr; | |
10442 | dest = (wxDC *) src; | |
10443 | return (void *) dest; | |
10444 | } | |
10445 | ||
10446 | static void *SwigwxBufferedDCTowxObject(void *ptr) { | |
10447 | wxBufferedDC *src; | |
10448 | wxObject *dest; | |
10449 | src = (wxBufferedDC *) ptr; | |
10450 | dest = (wxObject *) src; | |
10451 | return (void *) dest; | |
10452 | } | |
10453 | ||
10454 | #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
10455 | static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10456 | PyObject * _resultobj; | |
10457 | wxBufferedDC * _result; | |
10458 | wxDC * _arg0; | |
10459 | wxBitmap * _arg1; | |
10460 | PyObject * _argo0 = 0; | |
10461 | PyObject * _argo1 = 0; | |
10462 | char *_kwnames[] = { "dc","buffer", NULL }; | |
10463 | char _ptemp[128]; | |
10464 | ||
10465 | self = self; | |
10466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1)) | |
10467 | return NULL; | |
10468 | if (_argo0) { | |
10469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p."); | |
10472 | return NULL; | |
10473 | } | |
10474 | } | |
10475 | if (_argo1) { | |
10476 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10477 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p."); | |
10479 | return NULL; | |
10480 | } | |
10481 | } | |
10482 | { | |
10483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10484 | _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1); | |
10485 | ||
10486 | wxPyEndAllowThreads(__tstate); | |
10487 | if (PyErr_Occurred()) return NULL; | |
10488 | } if (_result) { | |
10489 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
10490 | _resultobj = Py_BuildValue("s",_ptemp); | |
10491 | } else { | |
10492 | Py_INCREF(Py_None); | |
10493 | _resultobj = Py_None; | |
10494 | } | |
10495 | return _resultobj; | |
10496 | } | |
10497 | ||
10498 | #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
10499 | static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10500 | PyObject * _resultobj; | |
10501 | wxBufferedDC * _result; | |
10502 | wxDC * _arg0; | |
10503 | wxSize * _arg1; | |
10504 | PyObject * _argo0 = 0; | |
10505 | wxSize temp; | |
10506 | PyObject * _obj1 = 0; | |
10507 | char *_kwnames[] = { "dc","area", NULL }; | |
10508 | char _ptemp[128]; | |
10509 | ||
10510 | self = self; | |
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1)) | |
10512 | return NULL; | |
10513 | if (_argo0) { | |
10514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p."); | |
10517 | return NULL; | |
10518 | } | |
10519 | } | |
10520 | { | |
10521 | _arg1 = &temp; | |
10522 | if (! wxSize_helper(_obj1, &_arg1)) | |
10523 | return NULL; | |
10524 | } | |
10525 | { | |
10526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10527 | _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1); | |
10528 | ||
10529 | wxPyEndAllowThreads(__tstate); | |
10530 | if (PyErr_Occurred()) return NULL; | |
10531 | } if (_result) { | |
10532 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
10533 | _resultobj = Py_BuildValue("s",_ptemp); | |
10534 | } else { | |
10535 | Py_INCREF(Py_None); | |
10536 | _resultobj = Py_None; | |
10537 | } | |
10538 | return _resultobj; | |
10539 | } | |
10540 | ||
10541 | static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) { | |
10542 | wxBufferedPaintDC *src; | |
10543 | wxBufferedDC *dest; | |
10544 | src = (wxBufferedPaintDC *) ptr; | |
10545 | dest = (wxBufferedDC *) src; | |
10546 | return (void *) dest; | |
10547 | } | |
10548 | ||
10549 | static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) { | |
10550 | wxBufferedPaintDC *src; | |
10551 | wxMemoryDC *dest; | |
10552 | src = (wxBufferedPaintDC *) ptr; | |
10553 | dest = (wxMemoryDC *) src; | |
10554 | return (void *) dest; | |
10555 | } | |
10556 | ||
10557 | static void *SwigwxBufferedPaintDCTowxDC(void *ptr) { | |
10558 | wxBufferedPaintDC *src; | |
10559 | wxDC *dest; | |
10560 | src = (wxBufferedPaintDC *) ptr; | |
10561 | dest = (wxDC *) src; | |
10562 | return (void *) dest; | |
10563 | } | |
10564 | ||
10565 | static void *SwigwxBufferedPaintDCTowxObject(void *ptr) { | |
10566 | wxBufferedPaintDC *src; | |
10567 | wxObject *dest; | |
10568 | src = (wxBufferedPaintDC *) ptr; | |
10569 | dest = (wxObject *) src; | |
10570 | return (void *) dest; | |
10571 | } | |
10572 | ||
10573 | #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1)) | |
10574 | static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10575 | PyObject * _resultobj; | |
10576 | wxBufferedPaintDC * _result; | |
10577 | wxWindow * _arg0; | |
10578 | wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap; | |
10579 | PyObject * _argo0 = 0; | |
10580 | PyObject * _argo1 = 0; | |
10581 | char *_kwnames[] = { "window","buffer", NULL }; | |
10582 | char _ptemp[128]; | |
10583 | ||
10584 | self = self; | |
10585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1)) | |
10586 | return NULL; | |
10587 | if (_argo0) { | |
10588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p."); | |
10591 | return NULL; | |
10592 | } | |
10593 | } | |
10594 | if (_argo1) { | |
10595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p."); | |
10598 | return NULL; | |
10599 | } | |
10600 | } | |
10601 | { | |
10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10603 | _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1); | |
10604 | ||
10605 | wxPyEndAllowThreads(__tstate); | |
10606 | if (PyErr_Occurred()) return NULL; | |
10607 | } if (_result) { | |
10608 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p"); | |
10609 | _resultobj = Py_BuildValue("s",_ptemp); | |
10610 | } else { | |
10611 | Py_INCREF(Py_None); | |
10612 | _resultobj = Py_None; | |
10613 | } | |
10614 | return _resultobj; | |
10615 | } | |
10616 | ||
8ab979d7 RD |
10617 | static void *SwigwxScreenDCTowxDC(void *ptr) { |
10618 | wxScreenDC *src; | |
10619 | wxDC *dest; | |
10620 | src = (wxScreenDC *) ptr; | |
10621 | dest = (wxDC *) src; | |
10622 | return (void *) dest; | |
10623 | } | |
10624 | ||
9416aa89 RD |
10625 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
10626 | wxScreenDC *src; | |
10627 | wxObject *dest; | |
10628 | src = (wxScreenDC *) ptr; | |
10629 | dest = (wxObject *) src; | |
10630 | return (void *) dest; | |
10631 | } | |
10632 | ||
8ab979d7 | 10633 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 10634 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10635 | PyObject * _resultobj; |
10636 | wxScreenDC * _result; | |
1afc06c2 | 10637 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10638 | char _ptemp[128]; |
10639 | ||
10640 | self = self; | |
1afc06c2 | 10641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 10642 | return NULL; |
cf694132 | 10643 | { |
4268f798 | 10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10645 | _result = (wxScreenDC *)new_wxScreenDC(); |
cf694132 | 10646 | |
4268f798 | 10647 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10648 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10649 | } if (_result) { |
10650 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
10651 | _resultobj = Py_BuildValue("s",_ptemp); | |
10652 | } else { | |
10653 | Py_INCREF(Py_None); | |
10654 | _resultobj = Py_None; | |
10655 | } | |
8ab979d7 RD |
10656 | return _resultobj; |
10657 | } | |
10658 | ||
26b9cf27 RD |
10659 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10660 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10661 | PyObject * _resultobj; |
10662 | bool _result; | |
10663 | wxScreenDC * _arg0; | |
10664 | wxWindow * _arg1; | |
1d99702e RD |
10665 | PyObject * _argo0 = 0; |
10666 | PyObject * _argo1 = 0; | |
1afc06c2 | 10667 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
10668 | |
10669 | self = self; | |
26b9cf27 | 10670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10671 | return NULL; |
1d99702e RD |
10672 | if (_argo0) { |
10673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10676 | return NULL; |
10677 | } | |
10678 | } | |
1d99702e RD |
10679 | if (_argo1) { |
10680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 10682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
10683 | return NULL; |
10684 | } | |
10685 | } | |
cf694132 | 10686 | { |
4268f798 | 10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10688 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 | 10689 | |
4268f798 | 10690 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10691 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10692 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10693 | return _resultobj; |
10694 | } | |
10695 | ||
26b9cf27 RD |
10696 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10697 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10698 | PyObject * _resultobj; |
10699 | bool _result; | |
10700 | wxScreenDC * _arg0; | |
1d99702e RD |
10701 | wxRect * _arg1 = (wxRect *) NULL; |
10702 | PyObject * _argo0 = 0; | |
2f90df85 RD |
10703 | wxRect temp; |
10704 | PyObject * _obj1 = 0; | |
1afc06c2 | 10705 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
10706 | |
10707 | self = self; | |
26b9cf27 | 10708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10709 | return NULL; |
1d99702e RD |
10710 | if (_argo0) { |
10711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10714 | return NULL; |
10715 | } | |
10716 | } | |
2f90df85 RD |
10717 | if (_obj1) |
10718 | { | |
10719 | _arg1 = &temp; | |
10720 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 10721 | return NULL; |
2f90df85 | 10722 | } |
cf694132 | 10723 | { |
4268f798 | 10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10725 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 | 10726 | |
4268f798 | 10727 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10728 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10729 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10730 | return _resultobj; |
10731 | } | |
10732 | ||
10733 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 10734 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10735 | PyObject * _resultobj; |
10736 | bool _result; | |
10737 | wxScreenDC * _arg0; | |
1d99702e | 10738 | PyObject * _argo0 = 0; |
1afc06c2 | 10739 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10740 | |
10741 | self = self; | |
1afc06c2 | 10742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 10743 | return NULL; |
1d99702e RD |
10744 | if (_argo0) { |
10745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
10747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
10748 | return NULL; | |
10749 | } | |
10750 | } | |
cf694132 | 10751 | { |
4268f798 | 10752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10753 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
cf694132 | 10754 | |
4268f798 | 10755 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10757 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10758 | return _resultobj; |
10759 | } | |
10760 | ||
10761 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
10762 | wxClientDC *src; | |
10763 | wxDC *dest; | |
10764 | src = (wxClientDC *) ptr; | |
10765 | dest = (wxDC *) src; | |
10766 | return (void *) dest; | |
10767 | } | |
10768 | ||
9416aa89 RD |
10769 | static void *SwigwxClientDCTowxObject(void *ptr) { |
10770 | wxClientDC *src; | |
10771 | wxObject *dest; | |
10772 | src = (wxClientDC *) ptr; | |
10773 | dest = (wxObject *) src; | |
10774 | return (void *) dest; | |
10775 | } | |
10776 | ||
8ab979d7 | 10777 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 10778 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10779 | PyObject * _resultobj; |
10780 | wxClientDC * _result; | |
10781 | wxWindow * _arg0; | |
1d99702e | 10782 | PyObject * _argo0 = 0; |
1afc06c2 | 10783 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10784 | char _ptemp[128]; |
10785 | ||
10786 | self = self; | |
1afc06c2 | 10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 10788 | return NULL; |
1d99702e RD |
10789 | if (_argo0) { |
10790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
10793 | return NULL; | |
10794 | } | |
10795 | } | |
cf694132 | 10796 | { |
4268f798 | 10797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10798 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
cf694132 | 10799 | |
4268f798 | 10800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10801 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10802 | } if (_result) { |
10803 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
10804 | _resultobj = Py_BuildValue("s",_ptemp); | |
10805 | } else { | |
10806 | Py_INCREF(Py_None); | |
10807 | _resultobj = Py_None; | |
10808 | } | |
8ab979d7 RD |
10809 | return _resultobj; |
10810 | } | |
10811 | ||
10812 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
10813 | wxPaintDC *src; | |
10814 | wxDC *dest; | |
10815 | src = (wxPaintDC *) ptr; | |
10816 | dest = (wxDC *) src; | |
10817 | return (void *) dest; | |
10818 | } | |
10819 | ||
9416aa89 RD |
10820 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
10821 | wxPaintDC *src; | |
10822 | wxObject *dest; | |
10823 | src = (wxPaintDC *) ptr; | |
10824 | dest = (wxObject *) src; | |
10825 | return (void *) dest; | |
10826 | } | |
10827 | ||
8ab979d7 | 10828 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 10829 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10830 | PyObject * _resultobj; |
10831 | wxPaintDC * _result; | |
10832 | wxWindow * _arg0; | |
1d99702e | 10833 | PyObject * _argo0 = 0; |
1afc06c2 | 10834 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10835 | char _ptemp[128]; |
10836 | ||
10837 | self = self; | |
1afc06c2 | 10838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 10839 | return NULL; |
1d99702e RD |
10840 | if (_argo0) { |
10841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
10844 | return NULL; | |
10845 | } | |
10846 | } | |
cf694132 | 10847 | { |
4268f798 | 10848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10849 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
cf694132 | 10850 | |
4268f798 | 10851 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10852 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10853 | } if (_result) { |
10854 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
10855 | _resultobj = Py_BuildValue("s",_ptemp); | |
10856 | } else { | |
10857 | Py_INCREF(Py_None); | |
10858 | _resultobj = Py_None; | |
10859 | } | |
8ab979d7 RD |
10860 | return _resultobj; |
10861 | } | |
10862 | ||
b639c3c5 RD |
10863 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
10864 | wxWindowDC *src; | |
10865 | wxDC *dest; | |
10866 | src = (wxWindowDC *) ptr; | |
10867 | dest = (wxDC *) src; | |
10868 | return (void *) dest; | |
10869 | } | |
10870 | ||
9416aa89 RD |
10871 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
10872 | wxWindowDC *src; | |
10873 | wxObject *dest; | |
10874 | src = (wxWindowDC *) ptr; | |
10875 | dest = (wxObject *) src; | |
10876 | return (void *) dest; | |
10877 | } | |
10878 | ||
b639c3c5 | 10879 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 10880 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10881 | PyObject * _resultobj; |
10882 | wxWindowDC * _result; | |
10883 | wxWindow * _arg0; | |
1d99702e | 10884 | PyObject * _argo0 = 0; |
1afc06c2 | 10885 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
10886 | char _ptemp[128]; |
10887 | ||
10888 | self = self; | |
1afc06c2 | 10889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 10890 | return NULL; |
1d99702e RD |
10891 | if (_argo0) { |
10892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
10894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
10895 | return NULL; | |
10896 | } | |
10897 | } | |
cf694132 | 10898 | { |
4268f798 | 10899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10900 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
cf694132 | 10901 | |
4268f798 | 10902 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10903 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10904 | } if (_result) { |
10905 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
10906 | _resultobj = Py_BuildValue("s",_ptemp); | |
10907 | } else { | |
10908 | Py_INCREF(Py_None); | |
10909 | _resultobj = Py_None; | |
10910 | } | |
b639c3c5 RD |
10911 | return _resultobj; |
10912 | } | |
10913 | ||
17c0e08c RD |
10914 | static void *SwigwxMetaFileTowxObject(void *ptr) { |
10915 | wxMetaFile *src; | |
10916 | wxObject *dest; | |
10917 | src = (wxMetaFile *) ptr; | |
10918 | dest = (wxObject *) src; | |
10919 | return (void *) dest; | |
10920 | } | |
10921 | ||
10922 | #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0)) | |
10923 | static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10924 | PyObject * _resultobj; | |
10925 | wxMetaFile * _result; | |
23bed520 | 10926 | wxString * _arg0 = (wxString *) &wxEmptyString; |
17c0e08c RD |
10927 | PyObject * _obj0 = 0; |
10928 | char *_kwnames[] = { "filename", NULL }; | |
10929 | char _ptemp[128]; | |
10930 | ||
10931 | self = self; | |
10932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0)) | |
10933 | return NULL; | |
10934 | if (_obj0) | |
10935 | { | |
c8bc7bb8 RD |
10936 | _arg0 = wxString_in_helper(_obj0); |
10937 | if (_arg0 == NULL) | |
17c0e08c | 10938 | return NULL; |
17c0e08c RD |
10939 | } |
10940 | { | |
4268f798 | 10941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10942 | _result = (wxMetaFile *)new_wxMetaFile(*_arg0); |
17c0e08c | 10943 | |
4268f798 | 10944 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10945 | if (PyErr_Occurred()) return NULL; |
10946 | } if (_result) { | |
10947 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
10948 | _resultobj = Py_BuildValue("s",_ptemp); | |
10949 | } else { | |
10950 | Py_INCREF(Py_None); | |
10951 | _resultobj = Py_None; | |
10952 | } | |
10953 | { | |
10954 | if (_obj0) | |
10955 | delete _arg0; | |
10956 | } | |
10957 | return _resultobj; | |
10958 | } | |
10959 | ||
10960 | #define delete_wxMetaFile(_swigobj) (delete _swigobj) | |
10961 | static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10962 | PyObject * _resultobj; | |
10963 | wxMetaFile * _arg0; | |
10964 | PyObject * _argo0 = 0; | |
10965 | char *_kwnames[] = { "self", NULL }; | |
10966 | ||
10967 | self = self; | |
10968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0)) | |
10969 | return NULL; | |
10970 | if (_argo0) { | |
10971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p."); | |
10974 | return NULL; | |
10975 | } | |
10976 | } | |
10977 | { | |
4268f798 | 10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10979 | delete_wxMetaFile(_arg0); |
17c0e08c | 10980 | |
4268f798 | 10981 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10982 | if (PyErr_Occurred()) return NULL; |
10983 | } Py_INCREF(Py_None); | |
10984 | _resultobj = Py_None; | |
10985 | return _resultobj; | |
10986 | } | |
10987 | ||
10988 | #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok()) | |
10989 | static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10990 | PyObject * _resultobj; | |
10991 | bool _result; | |
10992 | wxMetaFile * _arg0; | |
10993 | PyObject * _argo0 = 0; | |
10994 | char *_kwnames[] = { "self", NULL }; | |
10995 | ||
10996 | self = self; | |
10997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0)) | |
10998 | return NULL; | |
10999 | if (_argo0) { | |
11000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p."); | |
11003 | return NULL; | |
11004 | } | |
11005 | } | |
11006 | { | |
4268f798 | 11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11008 | _result = (bool )wxMetaFile_Ok(_arg0); |
17c0e08c | 11009 | |
4268f798 | 11010 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11011 | if (PyErr_Occurred()) return NULL; |
11012 | } _resultobj = Py_BuildValue("i",_result); | |
11013 | return _resultobj; | |
11014 | } | |
11015 | ||
11016 | #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1)) | |
11017 | static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11018 | PyObject * _resultobj; | |
11019 | bool _result; | |
11020 | wxMetaFile * _arg0; | |
11021 | int _arg1 = (int ) 0; | |
11022 | int _arg2 = (int ) 0; | |
11023 | PyObject * _argo0 = 0; | |
11024 | char *_kwnames[] = { "self","width","height", NULL }; | |
11025 | ||
11026 | self = self; | |
11027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11028 | return NULL; | |
11029 | if (_argo0) { | |
11030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p."); | |
11033 | return NULL; | |
11034 | } | |
11035 | } | |
11036 | { | |
4268f798 | 11037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11038 | _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2); |
17c0e08c | 11039 | |
4268f798 | 11040 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11041 | if (PyErr_Occurred()) return NULL; |
11042 | } _resultobj = Py_BuildValue("i",_result); | |
11043 | return _resultobj; | |
11044 | } | |
11045 | ||
11046 | #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize()) | |
11047 | static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject * _resultobj; | |
11049 | wxSize * _result; | |
11050 | wxMetaFile * _arg0; | |
11051 | PyObject * _argo0 = 0; | |
11052 | char *_kwnames[] = { "self", NULL }; | |
11053 | char _ptemp[128]; | |
11054 | ||
11055 | self = self; | |
11056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0)) | |
11057 | return NULL; | |
11058 | if (_argo0) { | |
11059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p."); | |
11062 | return NULL; | |
11063 | } | |
11064 | } | |
11065 | { | |
4268f798 | 11066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11067 | _result = new wxSize (wxMetaFile_GetSize(_arg0)); |
17c0e08c | 11068 | |
4268f798 | 11069 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11070 | if (PyErr_Occurred()) return NULL; |
11071 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
11072 | _resultobj = Py_BuildValue("s",_ptemp); | |
11073 | return _resultobj; | |
11074 | } | |
11075 | ||
11076 | #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11077 | static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11078 | PyObject * _resultobj; | |
11079 | int _result; | |
11080 | wxMetaFile * _arg0; | |
11081 | PyObject * _argo0 = 0; | |
11082 | char *_kwnames[] = { "self", NULL }; | |
11083 | ||
11084 | self = self; | |
11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0)) | |
11086 | return NULL; | |
11087 | if (_argo0) { | |
11088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p."); | |
11091 | return NULL; | |
11092 | } | |
11093 | } | |
11094 | { | |
4268f798 | 11095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11096 | _result = (int )wxMetaFile_GetWidth(_arg0); |
17c0e08c | 11097 | |
4268f798 | 11098 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11099 | if (PyErr_Occurred()) return NULL; |
11100 | } _resultobj = Py_BuildValue("i",_result); | |
11101 | return _resultobj; | |
11102 | } | |
11103 | ||
11104 | #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11105 | static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject * _resultobj; | |
11107 | int _result; | |
11108 | wxMetaFile * _arg0; | |
11109 | PyObject * _argo0 = 0; | |
11110 | char *_kwnames[] = { "self", NULL }; | |
11111 | ||
11112 | self = self; | |
11113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0)) | |
11114 | return NULL; | |
11115 | if (_argo0) { | |
11116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p."); | |
11119 | return NULL; | |
11120 | } | |
11121 | } | |
11122 | { | |
4268f798 | 11123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11124 | _result = (int )wxMetaFile_GetHeight(_arg0); |
17c0e08c | 11125 | |
4268f798 | 11126 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11127 | if (PyErr_Occurred()) return NULL; |
11128 | } _resultobj = Py_BuildValue("i",_result); | |
11129 | return _resultobj; | |
11130 | } | |
11131 | ||
11132 | #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName()) | |
11133 | static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11134 | PyObject * _resultobj; | |
11135 | wxString * _result; | |
11136 | wxMetaFile * _arg0; | |
11137 | PyObject * _argo0 = 0; | |
11138 | char *_kwnames[] = { "self", NULL }; | |
11139 | ||
11140 | self = self; | |
11141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0)) | |
11142 | return NULL; | |
11143 | if (_argo0) { | |
11144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p."); | |
11147 | return NULL; | |
11148 | } | |
11149 | } | |
11150 | { | |
4268f798 | 11151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11152 | const wxString & _result_ref = wxMetaFile_GetFileName(_arg0); |
17c0e08c RD |
11153 | _result = (wxString *) &_result_ref; |
11154 | ||
4268f798 | 11155 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11156 | if (PyErr_Occurred()) return NULL; |
11157 | }{ | |
c8bc7bb8 RD |
11158 | #if wxUSE_UNICODE |
11159 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
11160 | #else | |
17c0e08c | 11161 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11162 | #endif |
17c0e08c RD |
11163 | } |
11164 | return _resultobj; | |
11165 | } | |
11166 | ||
8ab979d7 RD |
11167 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
11168 | wxMetaFileDC *src; | |
11169 | wxDC *dest; | |
11170 | src = (wxMetaFileDC *) ptr; | |
11171 | dest = (wxDC *) src; | |
11172 | return (void *) dest; | |
11173 | } | |
11174 | ||
9416aa89 RD |
11175 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
11176 | wxMetaFileDC *src; | |
11177 | wxObject *dest; | |
11178 | src = (wxMetaFileDC *) ptr; | |
11179 | dest = (wxObject *) src; | |
11180 | return (void *) dest; | |
11181 | } | |
11182 | ||
17c0e08c | 11183 | #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11184 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
11185 | PyObject * _resultobj; |
11186 | wxMetaFileDC * _result; | |
23bed520 | 11187 | wxString * _arg0 = (wxString *) &wxEmptyString; |
17c0e08c RD |
11188 | int _arg1 = (int ) 0; |
11189 | int _arg2 = (int ) 0; | |
23bed520 | 11190 | wxString * _arg3 = (wxString *) &wxEmptyString; |
8ab979d7 | 11191 | PyObject * _obj0 = 0; |
17c0e08c RD |
11192 | PyObject * _obj3 = 0; |
11193 | char *_kwnames[] = { "filename","width","height","description", NULL }; | |
8ab979d7 RD |
11194 | char _ptemp[128]; |
11195 | ||
11196 | self = self; | |
17c0e08c | 11197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 RD |
11198 | return NULL; |
11199 | if (_obj0) | |
11200 | { | |
c8bc7bb8 RD |
11201 | _arg0 = wxString_in_helper(_obj0); |
11202 | if (_arg0 == NULL) | |
185d7c3e | 11203 | return NULL; |
17c0e08c RD |
11204 | } |
11205 | if (_obj3) | |
11206 | { | |
c8bc7bb8 RD |
11207 | _arg3 = wxString_in_helper(_obj3); |
11208 | if (_arg3 == NULL) | |
17c0e08c | 11209 | return NULL; |
8ab979d7 | 11210 | } |
cf694132 | 11211 | { |
4268f798 | 11212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11213 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 11214 | |
4268f798 | 11215 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11216 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11217 | } if (_result) { |
11218 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
11219 | _resultobj = Py_BuildValue("s",_ptemp); | |
11220 | } else { | |
11221 | Py_INCREF(Py_None); | |
11222 | _resultobj = Py_None; | |
11223 | } | |
8ab979d7 RD |
11224 | { |
11225 | if (_obj0) | |
11226 | delete _arg0; | |
17c0e08c RD |
11227 | } |
11228 | { | |
11229 | if (_obj3) | |
11230 | delete _arg3; | |
8ab979d7 RD |
11231 | } |
11232 | return _resultobj; | |
11233 | } | |
11234 | ||
11235 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 11236 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
11237 | PyObject * _resultobj; |
11238 | wxMetaFile * _result; | |
11239 | wxMetaFileDC * _arg0; | |
1d99702e | 11240 | PyObject * _argo0 = 0; |
1afc06c2 | 11241 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
11242 | char _ptemp[128]; |
11243 | ||
11244 | self = self; | |
1afc06c2 | 11245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 11246 | return NULL; |
1d99702e RD |
11247 | if (_argo0) { |
11248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
11250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
11251 | return NULL; | |
11252 | } | |
11253 | } | |
cf694132 | 11254 | { |
4268f798 | 11255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11256 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); |
cf694132 | 11257 | |
4268f798 | 11258 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11259 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11260 | } if (_result) { |
11261 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
11262 | _resultobj = Py_BuildValue("s",_ptemp); | |
11263 | } else { | |
11264 | Py_INCREF(Py_None); | |
11265 | _resultobj = Py_None; | |
11266 | } | |
8ab979d7 RD |
11267 | return _resultobj; |
11268 | } | |
11269 | ||
9416aa89 RD |
11270 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
11271 | wxPalette *src; | |
11272 | wxGDIObject *dest; | |
11273 | src = (wxPalette *) ptr; | |
11274 | dest = (wxGDIObject *) src; | |
11275 | return (void *) dest; | |
11276 | } | |
11277 | ||
11278 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
11279 | wxPalette *src; | |
11280 | wxObject *dest; | |
11281 | src = (wxPalette *) ptr; | |
11282 | dest = (wxObject *) src; | |
11283 | return (void *) dest; | |
11284 | } | |
11285 | ||
b639c3c5 | 11286 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11287 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11288 | PyObject * _resultobj; |
11289 | wxPalette * _result; | |
11290 | int _arg0; | |
11291 | byte * _arg1; | |
11292 | byte * _arg2; | |
11293 | byte * _arg3; | |
11294 | PyObject * _obj1 = 0; | |
11295 | PyObject * _obj2 = 0; | |
11296 | PyObject * _obj3 = 0; | |
eec92d76 | 11297 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
11298 | char _ptemp[128]; |
11299 | ||
11300 | self = self; | |
1afc06c2 | 11301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
11302 | return NULL; |
11303 | { | |
11304 | _arg1 = byte_LIST_helper(_obj1); | |
11305 | if (_arg1 == NULL) { | |
11306 | return NULL; | |
11307 | } | |
11308 | } | |
11309 | { | |
11310 | _arg2 = byte_LIST_helper(_obj2); | |
11311 | if (_arg2 == NULL) { | |
11312 | return NULL; | |
11313 | } | |
11314 | } | |
11315 | if (_obj3) | |
11316 | { | |
11317 | _arg3 = byte_LIST_helper(_obj3); | |
11318 | if (_arg3 == NULL) { | |
11319 | return NULL; | |
11320 | } | |
11321 | } | |
11322 | { | |
cf694132 RD |
11323 | if (_obj1) { |
11324 | _arg0 = PyList_Size(_obj1); | |
11325 | } | |
11326 | else { | |
11327 | _arg0 = 0; | |
11328 | } | |
b639c3c5 | 11329 | } |
cf694132 | 11330 | { |
4268f798 | 11331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11332 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 11333 | |
4268f798 | 11334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11335 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11336 | } if (_result) { |
11337 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
11338 | _resultobj = Py_BuildValue("s",_ptemp); | |
11339 | } else { | |
11340 | Py_INCREF(Py_None); | |
11341 | _resultobj = Py_None; | |
11342 | } | |
b639c3c5 RD |
11343 | { |
11344 | delete [] _arg1; | |
11345 | } | |
11346 | { | |
11347 | delete [] _arg2; | |
11348 | } | |
11349 | { | |
11350 | delete [] _arg3; | |
11351 | } | |
11352 | return _resultobj; | |
11353 | } | |
11354 | ||
11355 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 11356 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11357 | PyObject * _resultobj; |
11358 | wxPalette * _arg0; | |
1d99702e | 11359 | PyObject * _argo0 = 0; |
1afc06c2 | 11360 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11361 | |
11362 | self = self; | |
1afc06c2 | 11363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 11364 | return NULL; |
1d99702e RD |
11365 | if (_argo0) { |
11366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
11369 | return NULL; | |
11370 | } | |
11371 | } | |
cf694132 | 11372 | { |
4268f798 | 11373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11374 | delete_wxPalette(_arg0); |
cf694132 | 11375 | |
4268f798 | 11376 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11377 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11378 | } Py_INCREF(Py_None); |
b639c3c5 RD |
11379 | _resultobj = Py_None; |
11380 | return _resultobj; | |
11381 | } | |
11382 | ||
11383 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 11384 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11385 | PyObject * _resultobj; |
11386 | int _result; | |
11387 | wxPalette * _arg0; | |
11388 | byte _arg1; | |
11389 | byte _arg2; | |
11390 | byte _arg3; | |
1d99702e | 11391 | PyObject * _argo0 = 0; |
1afc06c2 | 11392 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
11393 | |
11394 | self = self; | |
1afc06c2 | 11395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 11396 | return NULL; |
1d99702e RD |
11397 | if (_argo0) { |
11398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
11401 | return NULL; | |
11402 | } | |
11403 | } | |
cf694132 | 11404 | { |
4268f798 | 11405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11406 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 11407 | |
4268f798 | 11408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11410 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11411 | return _resultobj; |
11412 | } | |
11413 | ||
11414 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 11415 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11416 | PyObject * _resultobj; |
11417 | bool _result; | |
11418 | wxPalette * _arg0; | |
11419 | int _arg1; | |
11420 | byte * _arg2; | |
154747f5 | 11421 | int temp; |
b639c3c5 | 11422 | byte * _arg3; |
154747f5 | 11423 | int temp0; |
b639c3c5 | 11424 | byte * _arg4; |
154747f5 | 11425 | int temp1; |
1d99702e | 11426 | PyObject * _argo0 = 0; |
154747f5 | 11427 | char *_kwnames[] = { "self","pixel", NULL }; |
b639c3c5 RD |
11428 | |
11429 | self = self; | |
154747f5 RD |
11430 | { |
11431 | _arg2 = (byte*)&temp; | |
11432 | } | |
11433 | { | |
11434 | _arg3 = (byte*)&temp0; | |
11435 | } | |
11436 | { | |
11437 | _arg4 = (byte*)&temp1; | |
11438 | } | |
11439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
b639c3c5 | 11440 | return NULL; |
1d99702e RD |
11441 | if (_argo0) { |
11442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
11445 | return NULL; | |
11446 | } | |
11447 | } | |
cf694132 | 11448 | { |
4268f798 | 11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11450 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 11451 | |
4268f798 | 11452 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11453 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11454 | } _resultobj = Py_BuildValue("i",_result); |
154747f5 RD |
11455 | { |
11456 | PyObject *o; | |
11457 | o = PyInt_FromLong((long) (*_arg2)); | |
11458 | _resultobj = t_output_helper(_resultobj, o); | |
11459 | } | |
11460 | { | |
11461 | PyObject *o; | |
11462 | o = PyInt_FromLong((long) (*_arg3)); | |
11463 | _resultobj = t_output_helper(_resultobj, o); | |
11464 | } | |
11465 | { | |
11466 | PyObject *o; | |
11467 | o = PyInt_FromLong((long) (*_arg4)); | |
11468 | _resultobj = t_output_helper(_resultobj, o); | |
11469 | } | |
b639c3c5 RD |
11470 | return _resultobj; |
11471 | } | |
11472 | ||
11473 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 11474 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11475 | PyObject * _resultobj; |
11476 | bool _result; | |
11477 | wxPalette * _arg0; | |
1d99702e | 11478 | PyObject * _argo0 = 0; |
1afc06c2 | 11479 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11480 | |
11481 | self = self; | |
1afc06c2 | 11482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 11483 | return NULL; |
1d99702e RD |
11484 | if (_argo0) { |
11485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
11488 | return NULL; | |
11489 | } | |
11490 | } | |
cf694132 | 11491 | { |
4268f798 | 11492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11493 | _result = (bool )wxPalette_Ok(_arg0); |
cf694132 | 11494 | |
4268f798 | 11495 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11496 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11497 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11498 | return _resultobj; |
11499 | } | |
11500 | ||
9416aa89 RD |
11501 | static void *SwigwxImageListTowxObject(void *ptr) { |
11502 | wxImageList *src; | |
11503 | wxObject *dest; | |
11504 | src = (wxImageList *) ptr; | |
11505 | dest = (wxObject *) src; | |
11506 | return (void *) dest; | |
11507 | } | |
11508 | ||
af309447 | 11509 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11510 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11511 | PyObject * _resultobj; |
11512 | wxImageList * _result; | |
11513 | int _arg0; | |
11514 | int _arg1; | |
dcd38683 | 11515 | int _arg2 = (int ) TRUE; |
1d99702e | 11516 | int _arg3 = (int ) 1; |
1afc06c2 | 11517 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
11518 | char _ptemp[128]; |
11519 | ||
11520 | self = self; | |
6999b0d8 | 11521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 11522 | return NULL; |
cf694132 | 11523 | { |
4268f798 | 11524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11525 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 11526 | |
4268f798 | 11527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11528 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11529 | } if (_result) { |
11530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
11531 | _resultobj = Py_BuildValue("s",_ptemp); | |
11532 | } else { | |
11533 | Py_INCREF(Py_None); | |
11534 | _resultobj = Py_None; | |
11535 | } | |
af309447 RD |
11536 | return _resultobj; |
11537 | } | |
11538 | ||
11539 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 11540 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11541 | PyObject * _resultobj; |
11542 | wxImageList * _arg0; | |
1d99702e | 11543 | PyObject * _argo0 = 0; |
1afc06c2 | 11544 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11545 | |
11546 | self = self; | |
1afc06c2 | 11547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 11548 | return NULL; |
1d99702e RD |
11549 | if (_argo0) { |
11550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
11553 | return NULL; | |
11554 | } | |
11555 | } | |
cf694132 | 11556 | { |
4268f798 | 11557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11558 | delete_wxImageList(_arg0); |
cf694132 | 11559 | |
4268f798 | 11560 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11561 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11562 | } Py_INCREF(Py_None); |
af309447 RD |
11563 | _resultobj = Py_None; |
11564 | return _resultobj; | |
11565 | } | |
11566 | ||
11567 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11568 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11569 | PyObject * _resultobj; |
11570 | int _result; | |
11571 | wxImageList * _arg0; | |
11572 | wxBitmap * _arg1; | |
1d99702e RD |
11573 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
11574 | PyObject * _argo0 = 0; | |
11575 | PyObject * _argo1 = 0; | |
11576 | PyObject * _argo2 = 0; | |
1afc06c2 | 11577 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
11578 | |
11579 | self = self; | |
1afc06c2 | 11580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 11581 | return NULL; |
1d99702e RD |
11582 | if (_argo0) { |
11583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
11586 | return NULL; | |
11587 | } | |
11588 | } | |
1d99702e RD |
11589 | if (_argo1) { |
11590 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11591 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
11593 | return NULL; | |
11594 | } | |
11595 | } | |
1d99702e RD |
11596 | if (_argo2) { |
11597 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11598 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
11599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
11600 | return NULL; | |
11601 | } | |
11602 | } | |
cf694132 | 11603 | { |
4268f798 | 11604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11605 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
cf694132 | 11606 | |
4268f798 | 11607 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11609 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11610 | return _resultobj; |
11611 | } | |
11612 | ||
11613 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11614 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11615 | PyObject * _resultobj; |
11616 | int _result; | |
11617 | wxImageList * _arg0; | |
11618 | wxBitmap * _arg1; | |
11619 | wxColour * _arg2; | |
1d99702e RD |
11620 | PyObject * _argo0 = 0; |
11621 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
11622 | wxColour temp; |
11623 | PyObject * _obj2 = 0; | |
1afc06c2 | 11624 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
11625 | |
11626 | self = self; | |
f6bcfd97 | 11627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 11628 | return NULL; |
1d99702e RD |
11629 | if (_argo0) { |
11630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
11633 | return NULL; | |
11634 | } | |
11635 | } | |
1d99702e RD |
11636 | if (_argo1) { |
11637 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11638 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
11640 | return NULL; | |
11641 | } | |
11642 | } | |
f6bcfd97 BP |
11643 | { |
11644 | _arg2 = &temp; | |
11645 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 11646 | return NULL; |
f6bcfd97 | 11647 | } |
cf694132 | 11648 | { |
4268f798 | 11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11650 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
cf694132 | 11651 | |
4268f798 | 11652 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11653 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11654 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11655 | return _resultobj; |
11656 | } | |
11657 | ||
11658 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 11659 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11660 | PyObject * _resultobj; |
11661 | int _result; | |
11662 | wxImageList * _arg0; | |
11663 | wxIcon * _arg1; | |
1d99702e RD |
11664 | PyObject * _argo0 = 0; |
11665 | PyObject * _argo1 = 0; | |
1afc06c2 | 11666 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
11667 | |
11668 | self = self; | |
1afc06c2 | 11669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 11670 | return NULL; |
1d99702e RD |
11671 | if (_argo0) { |
11672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
11675 | return NULL; | |
11676 | } | |
11677 | } | |
1d99702e RD |
11678 | if (_argo1) { |
11679 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11680 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
11681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
11682 | return NULL; | |
11683 | } | |
11684 | } | |
cf694132 | 11685 | { |
4268f798 | 11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11687 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
cf694132 | 11688 | |
4268f798 | 11689 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11690 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11691 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11692 | return _resultobj; |
11693 | } | |
11694 | ||
21f8d7ea | 11695 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 11696 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11697 | PyObject * _resultobj; |
11698 | bool _result; | |
11699 | wxImageList * _arg0; | |
11700 | int _arg1; | |
21f8d7ea | 11701 | wxBitmap * _arg2; |
1d99702e RD |
11702 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
11703 | PyObject * _argo0 = 0; | |
11704 | PyObject * _argo2 = 0; | |
11705 | PyObject * _argo3 = 0; | |
1afc06c2 | 11706 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
11707 | |
11708 | self = self; | |
1afc06c2 | 11709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 11710 | return NULL; |
1d99702e RD |
11711 | if (_argo0) { |
11712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
11715 | return NULL; |
11716 | } | |
11717 | } | |
1d99702e RD |
11718 | if (_argo2) { |
11719 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11720 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 11721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
11722 | return NULL; |
11723 | } | |
11724 | } | |
1d99702e RD |
11725 | if (_argo3) { |
11726 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
11727 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
11728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
11729 | return NULL; | |
11730 | } | |
11731 | } | |
cf694132 | 11732 | { |
4268f798 | 11733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11734 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 11735 | |
4268f798 | 11736 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11737 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11738 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11739 | return _resultobj; |
11740 | } | |
11741 | ||
21f8d7ea | 11742 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 11743 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11744 | PyObject * _resultobj; |
11745 | bool _result; | |
11746 | wxImageList * _arg0; | |
11747 | int _arg1; | |
21f8d7ea RD |
11748 | wxDC * _arg2; |
11749 | int _arg3; | |
11750 | int _arg4; | |
1d99702e RD |
11751 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
11752 | bool _arg6 = (bool ) FALSE; | |
11753 | PyObject * _argo0 = 0; | |
11754 | PyObject * _argo2 = 0; | |
11755 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 11756 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
11757 | |
11758 | self = self; | |
1afc06c2 | 11759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 11760 | return NULL; |
1d99702e RD |
11761 | if (_argo0) { |
11762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
11765 | return NULL; |
11766 | } | |
11767 | } | |
1d99702e RD |
11768 | if (_argo2) { |
11769 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11770 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
11771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
11772 | return NULL; | |
11773 | } | |
11774 | } | |
11775 | _arg6 = (bool ) tempbool6; | |
cf694132 | 11776 | { |
4268f798 | 11777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11778 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 11779 | |
4268f798 | 11780 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11781 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11782 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11783 | return _resultobj; |
11784 | } | |
11785 | ||
21f8d7ea | 11786 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 11787 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 11788 | PyObject * _resultobj; |
21f8d7ea | 11789 | int _result; |
af309447 | 11790 | wxImageList * _arg0; |
1d99702e | 11791 | PyObject * _argo0 = 0; |
1afc06c2 | 11792 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11793 | |
11794 | self = self; | |
1afc06c2 | 11795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 11796 | return NULL; |
1d99702e RD |
11797 | if (_argo0) { |
11798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
11801 | return NULL; |
11802 | } | |
11803 | } | |
cf694132 | 11804 | { |
4268f798 | 11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11806 | _result = (int )wxImageList_GetImageCount(_arg0); |
cf694132 | 11807 | |
4268f798 | 11808 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11809 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11810 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11811 | return _resultobj; |
11812 | } | |
11813 | ||
21f8d7ea | 11814 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 11815 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11816 | PyObject * _resultobj; |
11817 | bool _result; | |
11818 | wxImageList * _arg0; | |
11819 | int _arg1; | |
1d99702e | 11820 | PyObject * _argo0 = 0; |
1afc06c2 | 11821 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
11822 | |
11823 | self = self; | |
1afc06c2 | 11824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 11825 | return NULL; |
1d99702e RD |
11826 | if (_argo0) { |
11827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
11830 | return NULL; |
11831 | } | |
11832 | } | |
cf694132 | 11833 | { |
4268f798 | 11834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11835 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
cf694132 | 11836 | |
4268f798 | 11837 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11838 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11839 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11840 | return _resultobj; |
11841 | } | |
11842 | ||
21f8d7ea | 11843 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 11844 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11845 | PyObject * _resultobj; |
11846 | bool _result; | |
11847 | wxImageList * _arg0; | |
1d99702e | 11848 | PyObject * _argo0 = 0; |
1afc06c2 | 11849 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11850 | |
11851 | self = self; | |
1afc06c2 | 11852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 11853 | return NULL; |
1d99702e RD |
11854 | if (_argo0) { |
11855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
11858 | return NULL; |
11859 | } | |
11860 | } | |
cf694132 | 11861 | { |
4268f798 | 11862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11863 | _result = (bool )wxImageList_RemoveAll(_arg0); |
cf694132 | 11864 | |
4268f798 | 11865 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11866 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11867 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11868 | return _resultobj; |
11869 | } | |
11870 | ||
f6bcfd97 BP |
11871 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
11872 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11873 | PyObject * _resultobj; | |
11874 | wxImageList * _arg0; | |
11875 | int _arg1; | |
11876 | int * _arg2; | |
11877 | int temp; | |
11878 | int * _arg3; | |
11879 | int temp0; | |
11880 | PyObject * _argo0 = 0; | |
11881 | char *_kwnames[] = { "self","index", NULL }; | |
11882 | ||
11883 | self = self; | |
11884 | { | |
11885 | _arg2 = &temp; | |
11886 | } | |
11887 | { | |
11888 | _arg3 = &temp0; | |
11889 | } | |
11890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
11891 | return NULL; | |
11892 | if (_argo0) { | |
11893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
11895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
11896 | return NULL; | |
11897 | } | |
11898 | } | |
11899 | { | |
4268f798 | 11900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11901 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
f6bcfd97 | 11902 | |
4268f798 | 11903 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11904 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
11905 | } Py_INCREF(Py_None); |
11906 | _resultobj = Py_None; | |
11907 | { | |
11908 | PyObject *o; | |
11909 | o = PyInt_FromLong((long) (*_arg2)); | |
11910 | _resultobj = t_output_helper(_resultobj, o); | |
11911 | } | |
11912 | { | |
11913 | PyObject *o; | |
11914 | o = PyInt_FromLong((long) (*_arg3)); | |
11915 | _resultobj = t_output_helper(_resultobj, o); | |
11916 | } | |
11917 | return _resultobj; | |
11918 | } | |
11919 | ||
9416aa89 RD |
11920 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
11921 | wxRegion *src; | |
11922 | wxGDIObject *dest; | |
11923 | src = (wxRegion *) ptr; | |
11924 | dest = (wxGDIObject *) src; | |
11925 | return (void *) dest; | |
11926 | } | |
11927 | ||
11928 | static void *SwigwxRegionTowxObject(void *ptr) { | |
11929 | wxRegion *src; | |
11930 | wxObject *dest; | |
11931 | src = (wxRegion *) ptr; | |
11932 | dest = (wxObject *) src; | |
11933 | return (void *) dest; | |
11934 | } | |
11935 | ||
11936 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11937 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11938 | PyObject * _resultobj; | |
11939 | wxRegion * _result; | |
11940 | long _arg0 = (long ) 0; | |
11941 | long _arg1 = (long ) 0; | |
11942 | long _arg2 = (long ) 0; | |
11943 | long _arg3 = (long ) 0; | |
11944 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
11945 | char _ptemp[128]; | |
11946 | ||
11947 | self = self; | |
11948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
11949 | return NULL; | |
11950 | { | |
4268f798 | 11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11952 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
9416aa89 | 11953 | |
4268f798 | 11954 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11955 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11956 | } if (_result) { |
11957 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
11958 | _resultobj = Py_BuildValue("s",_ptemp); | |
11959 | } else { | |
11960 | Py_INCREF(Py_None); | |
11961 | _resultobj = Py_None; | |
11962 | } | |
11963 | return _resultobj; | |
11964 | } | |
11965 | ||
11966 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
11967 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11968 | PyObject * _resultobj; | |
11969 | wxRegion * _arg0; | |
11970 | PyObject * _argo0 = 0; | |
11971 | char *_kwnames[] = { "self", NULL }; | |
11972 | ||
11973 | self = self; | |
11974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
11975 | return NULL; | |
11976 | if (_argo0) { | |
11977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
11980 | return NULL; | |
11981 | } | |
11982 | } | |
11983 | { | |
4268f798 | 11984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11985 | delete_wxRegion(_arg0); |
9416aa89 | 11986 | |
4268f798 | 11987 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11988 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11989 | } Py_INCREF(Py_None); |
11990 | _resultobj = Py_None; | |
11991 | return _resultobj; | |
11992 | } | |
11993 | ||
11994 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
11995 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11996 | PyObject * _resultobj; | |
11997 | wxRegion * _arg0; | |
11998 | PyObject * _argo0 = 0; | |
11999 | char *_kwnames[] = { "self", NULL }; | |
12000 | ||
12001 | self = self; | |
12002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
12003 | return NULL; | |
12004 | if (_argo0) { | |
12005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
12008 | return NULL; | |
12009 | } | |
12010 | } | |
12011 | { | |
4268f798 | 12012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12013 | wxRegion_Clear(_arg0); |
9416aa89 | 12014 | |
4268f798 | 12015 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12016 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12017 | } Py_INCREF(Py_None); |
12018 | _resultobj = Py_None; | |
12019 | return _resultobj; | |
12020 | } | |
12021 | ||
23bed520 RD |
12022 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) |
12023 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12024 | PyObject * _resultobj; | |
12025 | bool _result; | |
12026 | wxRegion * _arg0; | |
12027 | wxCoord _arg1; | |
12028 | wxCoord _arg2; | |
12029 | PyObject * _argo0 = 0; | |
12030 | char *_kwnames[] = { "self","x","y", NULL }; | |
12031 | ||
12032 | self = self; | |
12033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
12034 | return NULL; | |
12035 | if (_argo0) { | |
12036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
12039 | return NULL; | |
12040 | } | |
12041 | } | |
12042 | { | |
12043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 12044 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); |
23bed520 RD |
12045 | |
12046 | wxPyEndAllowThreads(__tstate); | |
12047 | if (PyErr_Occurred()) return NULL; | |
12048 | } _resultobj = Py_BuildValue("i",_result); | |
12049 | return _resultobj; | |
12050 | } | |
12051 | ||
9416aa89 RD |
12052 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) |
12053 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12054 | PyObject * _resultobj; | |
12055 | wxRegionContain _result; | |
12056 | wxRegion * _arg0; | |
12057 | long _arg1; | |
12058 | long _arg2; | |
12059 | PyObject * _argo0 = 0; | |
12060 | char *_kwnames[] = { "self","x","y", NULL }; | |
12061 | ||
12062 | self = self; | |
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
12064 | return NULL; | |
12065 | if (_argo0) { | |
12066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
12069 | return NULL; | |
12070 | } | |
12071 | } | |
12072 | { | |
4268f798 | 12073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12074 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
9416aa89 | 12075 | |
4268f798 | 12076 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12077 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12078 | } _resultobj = Py_BuildValue("i",_result); |
12079 | return _resultobj; | |
12080 | } | |
12081 | ||
12082 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
12083 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12084 | PyObject * _resultobj; | |
12085 | wxRegionContain _result; | |
12086 | wxRegion * _arg0; | |
12087 | wxPoint * _arg1; | |
12088 | PyObject * _argo0 = 0; | |
12089 | wxPoint temp; | |
12090 | PyObject * _obj1 = 0; | |
12091 | char *_kwnames[] = { "self","pt", NULL }; | |
12092 | ||
12093 | self = self; | |
12094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
12095 | return NULL; | |
12096 | if (_argo0) { | |
12097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
12100 | return NULL; | |
12101 | } | |
12102 | } | |
12103 | { | |
12104 | _arg1 = &temp; | |
12105 | if (! wxPoint_helper(_obj1, &_arg1)) | |
12106 | return NULL; | |
12107 | } | |
12108 | { | |
4268f798 | 12109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12110 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
9416aa89 | 12111 | |
4268f798 | 12112 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12113 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12114 | } _resultobj = Py_BuildValue("i",_result); |
12115 | return _resultobj; | |
12116 | } | |
12117 | ||
12118 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
12119 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12120 | PyObject * _resultobj; | |
12121 | wxRegionContain _result; | |
12122 | wxRegion * _arg0; | |
12123 | wxRect * _arg1; | |
12124 | PyObject * _argo0 = 0; | |
12125 | wxRect temp; | |
12126 | PyObject * _obj1 = 0; | |
12127 | char *_kwnames[] = { "self","rect", NULL }; | |
12128 | ||
12129 | self = self; | |
12130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
12131 | return NULL; | |
12132 | if (_argo0) { | |
12133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
12136 | return NULL; | |
12137 | } | |
12138 | } | |
12139 | { | |
12140 | _arg1 = &temp; | |
12141 | if (! wxRect_helper(_obj1, &_arg1)) | |
12142 | return NULL; | |
12143 | } | |
12144 | { | |
4268f798 | 12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12146 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
9416aa89 | 12147 | |
4268f798 | 12148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12149 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12150 | } _resultobj = Py_BuildValue("i",_result); |
12151 | return _resultobj; | |
12152 | } | |
12153 | ||
12154 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12155 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12156 | PyObject * _resultobj; | |
12157 | wxRegionContain _result; | |
12158 | wxRegion * _arg0; | |
12159 | long _arg1; | |
12160 | long _arg2; | |
12161 | long _arg3; | |
12162 | long _arg4; | |
12163 | PyObject * _argo0 = 0; | |
12164 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
12165 | ||
12166 | self = self; | |
12167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12168 | return NULL; | |
12169 | if (_argo0) { | |
12170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
12173 | return NULL; | |
12174 | } | |
12175 | } | |
12176 | { | |
4268f798 | 12177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12178 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12179 | |
4268f798 | 12180 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12181 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12182 | } _resultobj = Py_BuildValue("i",_result); |
12183 | return _resultobj; | |
12184 | } | |
12185 | ||
12186 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
12187 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12188 | PyObject * _resultobj; | |
12189 | wxRect * _result; | |
12190 | wxRegion * _arg0; | |
12191 | PyObject * _argo0 = 0; | |
12192 | char *_kwnames[] = { "self", NULL }; | |
12193 | char _ptemp[128]; | |
12194 | ||
12195 | self = self; | |
12196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
12197 | return NULL; | |
12198 | if (_argo0) { | |
12199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
12202 | return NULL; | |
12203 | } | |
12204 | } | |
12205 | { | |
4268f798 | 12206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12207 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
9416aa89 | 12208 | |
4268f798 | 12209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12210 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12211 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12212 | _resultobj = Py_BuildValue("s",_ptemp); | |
12213 | return _resultobj; | |
12214 | } | |
12215 | ||
12216 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12217 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12218 | PyObject * _resultobj; | |
12219 | bool _result; | |
12220 | wxRegion * _arg0; | |
12221 | long _arg1; | |
12222 | long _arg2; | |
12223 | long _arg3; | |
12224 | long _arg4; | |
12225 | PyObject * _argo0 = 0; | |
12226 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12227 | ||
12228 | self = self; | |
12229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12230 | return NULL; | |
12231 | if (_argo0) { | |
12232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
12235 | return NULL; | |
12236 | } | |
12237 | } | |
12238 | { | |
4268f798 | 12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12240 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12241 | |
4268f798 | 12242 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12243 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12244 | } _resultobj = Py_BuildValue("i",_result); |
12245 | return _resultobj; | |
12246 | } | |
12247 | ||
12248 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12249 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12250 | PyObject * _resultobj; | |
12251 | bool _result; | |
12252 | wxRegion * _arg0; | |
12253 | wxRect * _arg1; | |
12254 | PyObject * _argo0 = 0; | |
12255 | wxRect temp; | |
12256 | PyObject * _obj1 = 0; | |
12257 | char *_kwnames[] = { "self","rect", NULL }; | |
12258 | ||
12259 | self = self; | |
12260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
12261 | return NULL; | |
12262 | if (_argo0) { | |
12263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
12266 | return NULL; | |
12267 | } | |
12268 | } | |
12269 | { | |
12270 | _arg1 = &temp; | |
12271 | if (! wxRect_helper(_obj1, &_arg1)) | |
12272 | return NULL; | |
12273 | } | |
12274 | { | |
4268f798 | 12275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12276 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
9416aa89 | 12277 | |
4268f798 | 12278 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12279 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12280 | } _resultobj = Py_BuildValue("i",_result); |
12281 | return _resultobj; | |
12282 | } | |
12283 | ||
12284 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12285 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12286 | PyObject * _resultobj; | |
12287 | bool _result; | |
12288 | wxRegion * _arg0; | |
12289 | wxRegion * _arg1; | |
12290 | PyObject * _argo0 = 0; | |
12291 | PyObject * _argo1 = 0; | |
12292 | char *_kwnames[] = { "self","region", NULL }; | |
12293 | ||
12294 | self = self; | |
12295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
12296 | return NULL; | |
12297 | if (_argo0) { | |
12298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12301 | return NULL; | |
12302 | } | |
12303 | } | |
12304 | if (_argo1) { | |
12305 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12306 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12308 | return NULL; | |
12309 | } | |
12310 | } | |
12311 | { | |
4268f798 | 12312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12313 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
9416aa89 | 12314 | |
4268f798 | 12315 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12316 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12317 | } _resultobj = Py_BuildValue("i",_result); |
12318 | return _resultobj; | |
12319 | } | |
12320 | ||
12321 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
12322 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12323 | PyObject * _resultobj; | |
12324 | bool _result; | |
12325 | wxRegion * _arg0; | |
12326 | PyObject * _argo0 = 0; | |
12327 | char *_kwnames[] = { "self", NULL }; | |
12328 | ||
12329 | self = self; | |
12330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
12331 | return NULL; | |
12332 | if (_argo0) { | |
12333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
12336 | return NULL; | |
12337 | } | |
12338 | } | |
12339 | { | |
4268f798 | 12340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12341 | _result = (bool )wxRegion_IsEmpty(_arg0); |
9416aa89 | 12342 | |
4268f798 | 12343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12344 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12345 | } _resultobj = Py_BuildValue("i",_result); |
12346 | return _resultobj; | |
12347 | } | |
12348 | ||
12349 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12350 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12351 | PyObject * _resultobj; | |
12352 | bool _result; | |
12353 | wxRegion * _arg0; | |
12354 | long _arg1; | |
12355 | long _arg2; | |
12356 | long _arg3; | |
12357 | long _arg4; | |
12358 | PyObject * _argo0 = 0; | |
12359 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12360 | ||
12361 | self = self; | |
12362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12363 | return NULL; | |
12364 | if (_argo0) { | |
12365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
12368 | return NULL; | |
12369 | } | |
12370 | } | |
12371 | { | |
4268f798 | 12372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12373 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12374 | |
4268f798 | 12375 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12376 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12377 | } _resultobj = Py_BuildValue("i",_result); |
12378 | return _resultobj; | |
12379 | } | |
12380 | ||
12381 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12382 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12383 | PyObject * _resultobj; | |
12384 | bool _result; | |
12385 | wxRegion * _arg0; | |
12386 | wxRect * _arg1; | |
12387 | PyObject * _argo0 = 0; | |
12388 | wxRect temp; | |
12389 | PyObject * _obj1 = 0; | |
12390 | char *_kwnames[] = { "self","rect", NULL }; | |
12391 | ||
12392 | self = self; | |
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
12394 | return NULL; | |
12395 | if (_argo0) { | |
12396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
12399 | return NULL; | |
12400 | } | |
12401 | } | |
12402 | { | |
12403 | _arg1 = &temp; | |
12404 | if (! wxRect_helper(_obj1, &_arg1)) | |
12405 | return NULL; | |
12406 | } | |
12407 | { | |
4268f798 | 12408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12409 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
9416aa89 | 12410 | |
4268f798 | 12411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12412 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12413 | } _resultobj = Py_BuildValue("i",_result); |
12414 | return _resultobj; | |
12415 | } | |
12416 | ||
12417 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12418 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12419 | PyObject * _resultobj; | |
12420 | bool _result; | |
12421 | wxRegion * _arg0; | |
12422 | wxRegion * _arg1; | |
12423 | PyObject * _argo0 = 0; | |
12424 | PyObject * _argo1 = 0; | |
12425 | char *_kwnames[] = { "self","region", NULL }; | |
12426 | ||
12427 | self = self; | |
12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
12429 | return NULL; | |
12430 | if (_argo0) { | |
12431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12434 | return NULL; | |
12435 | } | |
12436 | } | |
12437 | if (_argo1) { | |
12438 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12439 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12441 | return NULL; | |
12442 | } | |
12443 | } | |
12444 | { | |
4268f798 | 12445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12446 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
9416aa89 | 12447 | |
4268f798 | 12448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12449 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12450 | } _resultobj = Py_BuildValue("i",_result); |
12451 | return _resultobj; | |
12452 | } | |
12453 | ||
12454 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12455 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12456 | PyObject * _resultobj; | |
12457 | bool _result; | |
12458 | wxRegion * _arg0; | |
12459 | long _arg1; | |
12460 | long _arg2; | |
12461 | long _arg3; | |
12462 | long _arg4; | |
12463 | PyObject * _argo0 = 0; | |
12464 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12465 | ||
12466 | self = self; | |
12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12468 | return NULL; | |
12469 | if (_argo0) { | |
12470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
12473 | return NULL; | |
12474 | } | |
12475 | } | |
12476 | { | |
4268f798 | 12477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12478 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12479 | |
4268f798 | 12480 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12481 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12482 | } _resultobj = Py_BuildValue("i",_result); |
12483 | return _resultobj; | |
12484 | } | |
12485 | ||
12486 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12487 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12488 | PyObject * _resultobj; | |
12489 | bool _result; | |
12490 | wxRegion * _arg0; | |
12491 | wxRect * _arg1; | |
12492 | PyObject * _argo0 = 0; | |
12493 | wxRect temp; | |
12494 | PyObject * _obj1 = 0; | |
12495 | char *_kwnames[] = { "self","rect", NULL }; | |
12496 | ||
12497 | self = self; | |
12498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
12499 | return NULL; | |
12500 | if (_argo0) { | |
12501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
12504 | return NULL; | |
12505 | } | |
12506 | } | |
12507 | { | |
12508 | _arg1 = &temp; | |
12509 | if (! wxRect_helper(_obj1, &_arg1)) | |
12510 | return NULL; | |
12511 | } | |
12512 | { | |
4268f798 | 12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12514 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
9416aa89 | 12515 | |
4268f798 | 12516 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12517 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12518 | } _resultobj = Py_BuildValue("i",_result); |
12519 | return _resultobj; | |
12520 | } | |
12521 | ||
12522 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12523 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12524 | PyObject * _resultobj; | |
12525 | bool _result; | |
12526 | wxRegion * _arg0; | |
12527 | wxRegion * _arg1; | |
12528 | PyObject * _argo0 = 0; | |
12529 | PyObject * _argo1 = 0; | |
12530 | char *_kwnames[] = { "self","region", NULL }; | |
12531 | ||
12532 | self = self; | |
12533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
12534 | return NULL; | |
12535 | if (_argo0) { | |
12536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12539 | return NULL; | |
12540 | } | |
12541 | } | |
12542 | if (_argo1) { | |
12543 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12544 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12546 | return NULL; | |
12547 | } | |
12548 | } | |
12549 | { | |
4268f798 | 12550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12551 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
9416aa89 | 12552 | |
4268f798 | 12553 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12554 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12555 | } _resultobj = Py_BuildValue("i",_result); |
12556 | return _resultobj; | |
12557 | } | |
12558 | ||
12559 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12560 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12561 | PyObject * _resultobj; | |
12562 | bool _result; | |
12563 | wxRegion * _arg0; | |
12564 | long _arg1; | |
12565 | long _arg2; | |
12566 | long _arg3; | |
12567 | long _arg4; | |
12568 | PyObject * _argo0 = 0; | |
12569 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12570 | ||
12571 | self = self; | |
12572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12573 | return NULL; | |
12574 | if (_argo0) { | |
12575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
12578 | return NULL; | |
12579 | } | |
12580 | } | |
12581 | { | |
4268f798 | 12582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12583 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12584 | |
4268f798 | 12585 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12586 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12587 | } _resultobj = Py_BuildValue("i",_result); |
12588 | return _resultobj; | |
12589 | } | |
12590 | ||
12591 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12592 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12593 | PyObject * _resultobj; | |
12594 | bool _result; | |
12595 | wxRegion * _arg0; | |
12596 | wxRect * _arg1; | |
12597 | PyObject * _argo0 = 0; | |
12598 | wxRect temp; | |
12599 | PyObject * _obj1 = 0; | |
12600 | char *_kwnames[] = { "self","rect", NULL }; | |
12601 | ||
12602 | self = self; | |
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
12604 | return NULL; | |
12605 | if (_argo0) { | |
12606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
12609 | return NULL; | |
12610 | } | |
12611 | } | |
12612 | { | |
12613 | _arg1 = &temp; | |
12614 | if (! wxRect_helper(_obj1, &_arg1)) | |
12615 | return NULL; | |
12616 | } | |
12617 | { | |
4268f798 | 12618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12619 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
9416aa89 | 12620 | |
4268f798 | 12621 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12622 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12623 | } _resultobj = Py_BuildValue("i",_result); |
12624 | return _resultobj; | |
12625 | } | |
12626 | ||
12627 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12628 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12629 | PyObject * _resultobj; | |
12630 | bool _result; | |
12631 | wxRegion * _arg0; | |
12632 | wxRegion * _arg1; | |
12633 | PyObject * _argo0 = 0; | |
12634 | PyObject * _argo1 = 0; | |
12635 | char *_kwnames[] = { "self","region", NULL }; | |
12636 | ||
12637 | self = self; | |
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
12639 | return NULL; | |
12640 | if (_argo0) { | |
12641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12644 | return NULL; | |
12645 | } | |
12646 | } | |
12647 | if (_argo1) { | |
12648 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12649 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12651 | return NULL; | |
12652 | } | |
12653 | } | |
12654 | { | |
4268f798 | 12655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12656 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
9416aa89 | 12657 | |
4268f798 | 12658 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12659 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12660 | } _resultobj = Py_BuildValue("i",_result); |
12661 | return _resultobj; | |
12662 | } | |
12663 | ||
12664 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
12665 | wxRegionIterator *src; | |
12666 | wxObject *dest; | |
12667 | src = (wxRegionIterator *) ptr; | |
12668 | dest = (wxObject *) src; | |
12669 | return (void *) dest; | |
12670 | } | |
12671 | ||
12672 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
12673 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12674 | PyObject * _resultobj; | |
12675 | wxRegionIterator * _result; | |
12676 | wxRegion * _arg0; | |
12677 | PyObject * _argo0 = 0; | |
12678 | char *_kwnames[] = { "region", NULL }; | |
12679 | char _ptemp[128]; | |
12680 | ||
12681 | self = self; | |
12682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
12683 | return NULL; | |
12684 | if (_argo0) { | |
12685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
12688 | return NULL; | |
12689 | } | |
12690 | } | |
12691 | { | |
4268f798 | 12692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12693 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
9416aa89 | 12694 | |
4268f798 | 12695 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12696 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12697 | } if (_result) { |
12698 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
12699 | _resultobj = Py_BuildValue("s",_ptemp); | |
12700 | } else { | |
12701 | Py_INCREF(Py_None); | |
12702 | _resultobj = Py_None; | |
12703 | } | |
12704 | return _resultobj; | |
12705 | } | |
12706 | ||
12707 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
12708 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12709 | PyObject * _resultobj; | |
12710 | wxRegionIterator * _arg0; | |
12711 | PyObject * _argo0 = 0; | |
12712 | char *_kwnames[] = { "self", NULL }; | |
12713 | ||
12714 | self = self; | |
12715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
12716 | return NULL; | |
12717 | if (_argo0) { | |
12718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
12721 | return NULL; | |
12722 | } | |
12723 | } | |
12724 | { | |
4268f798 | 12725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12726 | delete_wxRegionIterator(_arg0); |
9416aa89 | 12727 | |
4268f798 | 12728 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12729 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12730 | } Py_INCREF(Py_None); |
12731 | _resultobj = Py_None; | |
12732 | return _resultobj; | |
12733 | } | |
12734 | ||
12735 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
12736 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12737 | PyObject * _resultobj; | |
12738 | long _result; | |
12739 | wxRegionIterator * _arg0; | |
12740 | PyObject * _argo0 = 0; | |
12741 | char *_kwnames[] = { "self", NULL }; | |
12742 | ||
12743 | self = self; | |
12744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
12745 | return NULL; | |
12746 | if (_argo0) { | |
12747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
12750 | return NULL; | |
12751 | } | |
12752 | } | |
12753 | { | |
4268f798 | 12754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12755 | _result = (long )wxRegionIterator_GetX(_arg0); |
9416aa89 | 12756 | |
4268f798 | 12757 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12758 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12759 | } _resultobj = Py_BuildValue("l",_result); |
12760 | return _resultobj; | |
12761 | } | |
12762 | ||
12763 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
12764 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12765 | PyObject * _resultobj; | |
12766 | long _result; | |
12767 | wxRegionIterator * _arg0; | |
12768 | PyObject * _argo0 = 0; | |
12769 | char *_kwnames[] = { "self", NULL }; | |
12770 | ||
12771 | self = self; | |
12772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
12773 | return NULL; | |
12774 | if (_argo0) { | |
12775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
12778 | return NULL; | |
12779 | } | |
12780 | } | |
12781 | { | |
4268f798 | 12782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12783 | _result = (long )wxRegionIterator_GetY(_arg0); |
9416aa89 | 12784 | |
4268f798 | 12785 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12786 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12787 | } _resultobj = Py_BuildValue("l",_result); |
12788 | return _resultobj; | |
12789 | } | |
12790 | ||
12791 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
12792 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12793 | PyObject * _resultobj; | |
12794 | long _result; | |
12795 | wxRegionIterator * _arg0; | |
12796 | PyObject * _argo0 = 0; | |
12797 | char *_kwnames[] = { "self", NULL }; | |
12798 | ||
12799 | self = self; | |
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
12801 | return NULL; | |
12802 | if (_argo0) { | |
12803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
12806 | return NULL; | |
12807 | } | |
12808 | } | |
12809 | { | |
4268f798 | 12810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12811 | _result = (long )wxRegionIterator_GetW(_arg0); |
9416aa89 | 12812 | |
4268f798 | 12813 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12814 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12815 | } _resultobj = Py_BuildValue("l",_result); |
12816 | return _resultobj; | |
12817 | } | |
12818 | ||
12819 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
12820 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12821 | PyObject * _resultobj; | |
12822 | long _result; | |
12823 | wxRegionIterator * _arg0; | |
12824 | PyObject * _argo0 = 0; | |
12825 | char *_kwnames[] = { "self", NULL }; | |
12826 | ||
12827 | self = self; | |
12828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
12829 | return NULL; | |
12830 | if (_argo0) { | |
12831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
12834 | return NULL; | |
12835 | } | |
12836 | } | |
12837 | { | |
4268f798 | 12838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12839 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
9416aa89 | 12840 | |
4268f798 | 12841 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12842 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12843 | } _resultobj = Py_BuildValue("l",_result); |
12844 | return _resultobj; | |
12845 | } | |
12846 | ||
12847 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
12848 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12849 | PyObject * _resultobj; | |
12850 | long _result; | |
12851 | wxRegionIterator * _arg0; | |
12852 | PyObject * _argo0 = 0; | |
12853 | char *_kwnames[] = { "self", NULL }; | |
12854 | ||
12855 | self = self; | |
12856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
12857 | return NULL; | |
12858 | if (_argo0) { | |
12859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
12862 | return NULL; | |
12863 | } | |
12864 | } | |
12865 | { | |
4268f798 | 12866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12867 | _result = (long )wxRegionIterator_GetH(_arg0); |
9416aa89 | 12868 | |
4268f798 | 12869 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12870 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12871 | } _resultobj = Py_BuildValue("l",_result); |
12872 | return _resultobj; | |
12873 | } | |
12874 | ||
12875 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
12876 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12877 | PyObject * _resultobj; | |
12878 | long _result; | |
12879 | wxRegionIterator * _arg0; | |
12880 | PyObject * _argo0 = 0; | |
12881 | char *_kwnames[] = { "self", NULL }; | |
12882 | ||
12883 | self = self; | |
12884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
12885 | return NULL; | |
12886 | if (_argo0) { | |
12887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
12890 | return NULL; | |
12891 | } | |
12892 | } | |
12893 | { | |
4268f798 | 12894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12895 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
9416aa89 | 12896 | |
4268f798 | 12897 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12898 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12899 | } _resultobj = Py_BuildValue("l",_result); |
12900 | return _resultobj; | |
12901 | } | |
12902 | ||
12903 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
12904 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12905 | PyObject * _resultobj; | |
12906 | wxRect * _result; | |
12907 | wxRegionIterator * _arg0; | |
12908 | PyObject * _argo0 = 0; | |
12909 | char *_kwnames[] = { "self", NULL }; | |
12910 | char _ptemp[128]; | |
12911 | ||
12912 | self = self; | |
12913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
12914 | return NULL; | |
12915 | if (_argo0) { | |
12916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
12919 | return NULL; | |
12920 | } | |
12921 | } | |
12922 | { | |
4268f798 | 12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12924 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
9416aa89 | 12925 | |
4268f798 | 12926 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12927 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12928 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12929 | _resultobj = Py_BuildValue("s",_ptemp); | |
12930 | return _resultobj; | |
12931 | } | |
12932 | ||
12933 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
12934 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12935 | PyObject * _resultobj; | |
12936 | bool _result; | |
12937 | wxRegionIterator * _arg0; | |
12938 | PyObject * _argo0 = 0; | |
12939 | char *_kwnames[] = { "self", NULL }; | |
12940 | ||
12941 | self = self; | |
12942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
12943 | return NULL; | |
12944 | if (_argo0) { | |
12945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
12948 | return NULL; | |
12949 | } | |
12950 | } | |
12951 | { | |
4268f798 | 12952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12953 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
9416aa89 | 12954 | |
4268f798 | 12955 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12956 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12957 | } _resultobj = Py_BuildValue("i",_result); |
12958 | return _resultobj; | |
12959 | } | |
12960 | ||
12961 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
12962 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12963 | PyObject * _resultobj; | |
12964 | wxRegionIterator * _arg0; | |
12965 | PyObject * _argo0 = 0; | |
12966 | char *_kwnames[] = { "self", NULL }; | |
12967 | ||
12968 | self = self; | |
12969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
12970 | return NULL; | |
12971 | if (_argo0) { | |
12972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
12975 | return NULL; | |
12976 | } | |
12977 | } | |
12978 | { | |
4268f798 | 12979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12980 | wxRegionIterator_Reset(_arg0); |
9416aa89 | 12981 | |
4268f798 | 12982 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12983 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12984 | } Py_INCREF(Py_None); |
12985 | _resultobj = Py_None; | |
12986 | return _resultobj; | |
12987 | } | |
12988 | ||
12989 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
12990 | (*self) ++; | |
12991 | } | |
12992 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12993 | PyObject * _resultobj; | |
12994 | wxRegionIterator * _arg0; | |
12995 | PyObject * _argo0 = 0; | |
12996 | char *_kwnames[] = { "self", NULL }; | |
12997 | ||
12998 | self = self; | |
12999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
13000 | return NULL; | |
13001 | if (_argo0) { | |
13002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
13003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
13004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
13005 | return NULL; | |
13006 | } | |
13007 | } | |
13008 | { | |
4268f798 | 13009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 13010 | wxRegionIterator_Next(_arg0); |
9416aa89 | 13011 | |
4268f798 | 13012 | wxPyEndAllowThreads(__tstate); |
493f1553 | 13013 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
13014 | } Py_INCREF(Py_None); |
13015 | _resultobj = Py_None; | |
13016 | return _resultobj; | |
13017 | } | |
13018 | ||
8ab979d7 | 13019 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
13020 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
13021 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
13022 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
13023 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
13024 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13025 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
13026 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13027 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
13028 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
13029 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
13030 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
13031 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
13032 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
13033 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
13034 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
13035 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
13036 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
13037 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
13038 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
13039 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
13040 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
13041 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
13042 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
13043 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
13044 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
13045 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
13046 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
13047 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
13048 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
13049 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 13050 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
13051 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, |
13052 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
13053 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 13054 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13055 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
13056 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
13057 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
13058 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13059 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
13060 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
13061 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
13062 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
13063 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
13064 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
13065 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13066 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
13067 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
13068 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
13069 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
13070 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
13071 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17c0e08c RD |
13072 | { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, |
13073 | { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13074 | { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13075 | { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
13076 | { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
13077 | { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13078 | { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
13079 | { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13080 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
13081 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
13082 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
13083 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13084 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 13085 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13086 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 RD |
13087 | { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
13088 | { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
13089 | { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13090 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, |
13091 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
9d37f964 RD |
13092 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
13093 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c | 13094 | { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
9d37f964 | 13095 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
13096 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
13097 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
13098 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
13099 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13100 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13101 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13102 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
13103 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13104 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13105 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13106 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
13107 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
13108 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
13109 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
13110 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
13111 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
13112 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
13113 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
13114 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13115 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13116 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
13117 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
13118 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
13119 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
19a97bd6 | 13120 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13121 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
13122 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
13123 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
13124 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13125 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13126 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
13127 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
13128 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
13129 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
13130 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
13131 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
13132 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
13133 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13134 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13135 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
13136 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13137 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13138 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13139 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13140 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
13141 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
13142 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
13143 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
13144 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
13145 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13146 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13147 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
13148 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
13149 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
13150 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
13151 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
13152 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
13153 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
13154 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
13155 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
13156 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
13157 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
13158 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
13159 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
13160 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 13161 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13162 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
13163 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
13164 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
13165 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
13166 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 RD |
13167 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
13168 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13169 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
13170 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
13171 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
13172 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
13173 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
13174 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
13175 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
13176 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
13177 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
13178 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
13179 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
13180 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
13181 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
13182 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
13183 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 13184 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13185 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
13186 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
13187 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13188 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
13189 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
13190 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13191 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13192 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13193 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
13194 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13195 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13196 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 13197 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13198 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
13199 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
13200 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead RD |
13201 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
13202 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
13203 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13204 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13205 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 13206 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13207 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
13208 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13209 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13210 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13211 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
13212 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13213 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13214 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13215 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13216 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
13217 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13218 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13219 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13220 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
13221 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
13222 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13223 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
13224 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
13225 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13226 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
13227 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
13228 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
13229 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
13230 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 13231 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13232 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
13233 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
13234 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13235 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
13236 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
13237 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
13238 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
13239 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 | 13240 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13241 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13242 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13243 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13244 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
13245 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13246 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13247 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13248 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
b5a5d647 RD |
13249 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
13250 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d | 13251 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
68320e40 | 13252 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13253 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13254 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13255 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13256 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13257 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13258 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13259 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 13260 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 13261 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13262 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13263 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13264 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
13265 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
13266 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
13267 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
13268 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
13269 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
13270 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
13271 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13272 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
13273 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13274 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
13275 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13276 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
13277 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13278 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
13279 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
13280 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13281 | { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
13282 | { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13283 | { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13284 | { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13285 | { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13286 | { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13287 | { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13288 | { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13289 | { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13290 | { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13291 | { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13292 | { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13293 | { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13294 | { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13295 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
13296 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13297 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13298 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13299 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13300 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13301 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13302 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13303 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13304 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13305 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13306 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13307 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
13308 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13309 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
13310 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13311 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13312 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13313 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13314 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13315 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13316 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13317 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13318 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13319 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13320 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13321 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
13322 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13323 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13324 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
13325 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
13326 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
13327 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
13328 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
13329 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13330 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13331 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13332 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13333 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13334 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13335 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13336 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13337 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13338 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13339 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13340 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
13341 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13342 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13343 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13344 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
13345 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13346 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
13347 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
13348 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
13349 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13350 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13351 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
13352 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13353 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
13354 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
13355 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
7248a051 | 13356 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
13357 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
13358 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13359 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 | 13360 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
13361 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
13362 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13363 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
13364 | { NULL, NULL } |
13365 | }; | |
1d99702e RD |
13366 | #ifdef __cplusplus |
13367 | } | |
13368 | #endif | |
13369 | /* | |
13370 | * This table is used by the pointer type-checker | |
13371 | */ | |
13372 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 13373 | { "_signed_long","_long",0}, |
b1462dfa | 13374 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
13375 | { "_wxPrintQuality","_int",0}, |
13376 | { "_wxPrintQuality","_signed_int",0}, | |
13377 | { "_wxPrintQuality","_unsigned_int",0}, | |
13378 | { "_wxPrintQuality","_wxWindowID",0}, | |
13379 | { "_wxPrintQuality","_uint",0}, | |
13380 | { "_wxPrintQuality","_EBool",0}, | |
13381 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 13382 | { "_wxPrintQuality","_time_t",0}, |
ecc08ead | 13383 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
1d99702e | 13384 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
13385 | { "_long","_unsigned_long",0}, |
13386 | { "_long","_signed_long",0}, | |
9416aa89 | 13387 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 13388 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 13389 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
ecc08ead | 13390 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9416aa89 | 13391 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 13392 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9416aa89 | 13393 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 13394 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 13395 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 13396 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 13397 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 13398 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 13399 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 13400 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
e9159fe8 RD |
13401 | { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC}, |
13402 | { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC}, | |
1d99702e | 13403 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 13404 | { "_size_t","_wxCoord",0}, |
1d99702e | 13405 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 13406 | { "_size_t","_time_t",0}, |
1d99702e RD |
13407 | { "_size_t","_unsigned_int",0}, |
13408 | { "_size_t","_int",0}, | |
13409 | { "_size_t","_wxWindowID",0}, | |
13410 | { "_size_t","_uint",0}, | |
b1462dfa | 13411 | { "_uint","_wxCoord",0}, |
1d99702e | 13412 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 13413 | { "_uint","_time_t",0}, |
1d99702e RD |
13414 | { "_uint","_size_t",0}, |
13415 | { "_uint","_unsigned_int",0}, | |
13416 | { "_uint","_int",0}, | |
13417 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 13418 | { "_wxChar","_char",0}, |
f6bcfd97 | 13419 | { "_char","_wxChar",0}, |
e9159fe8 | 13420 | { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC}, |
6d8b4f8d | 13421 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 13422 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
13423 | { "_EBool","_wxPrintQuality",0}, |
13424 | { "_EBool","_signed_int",0}, | |
13425 | { "_EBool","_int",0}, | |
13426 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 13427 | { "_unsigned_long","_long",0}, |
6d8b4f8d | 13428 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 13429 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
13430 | { "_signed_int","_wxPrintQuality",0}, |
13431 | { "_signed_int","_EBool",0}, | |
13432 | { "_signed_int","_wxWindowID",0}, | |
13433 | { "_signed_int","_int",0}, | |
1d99702e RD |
13434 | { "_WXTYPE","_short",0}, |
13435 | { "_WXTYPE","_signed_short",0}, | |
13436 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
13437 | { "_unsigned_short","_WXTYPE",0}, |
13438 | { "_unsigned_short","_short",0}, | |
9416aa89 | 13439 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 13440 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 13441 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 13442 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 13443 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
17c0e08c | 13444 | { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject}, |
9416aa89 | 13445 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 13446 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 13447 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 13448 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
e9159fe8 RD |
13449 | { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject}, |
13450 | { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject}, | |
9416aa89 | 13451 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 13452 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
6ee2116b | 13453 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9416aa89 | 13454 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 13455 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
ecc08ead | 13456 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9416aa89 | 13457 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 13458 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 13459 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 13460 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9416aa89 | 13461 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9416aa89 | 13462 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 13463 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 13464 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 13465 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 13466 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
13467 | { "_signed_short","_WXTYPE",0}, |
13468 | { "_signed_short","_short",0}, | |
e9159fe8 RD |
13469 | { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC}, |
13470 | { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC}, | |
1d99702e | 13471 | { "_unsigned_char","_byte",0}, |
b1462dfa | 13472 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 13473 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 13474 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
13475 | { "_unsigned_int","_size_t",0}, |
13476 | { "_unsigned_int","_uint",0}, | |
13477 | { "_unsigned_int","_wxWindowID",0}, | |
13478 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
13479 | { "_short","_WXTYPE",0}, |
13480 | { "_short","_unsigned_short",0}, | |
13481 | { "_short","_signed_short",0}, | |
b1462dfa | 13482 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 13483 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 13484 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
13485 | { "_wxWindowID","_size_t",0}, |
13486 | { "_wxWindowID","_EBool",0}, | |
13487 | { "_wxWindowID","_uint",0}, | |
13488 | { "_wxWindowID","_int",0}, | |
13489 | { "_wxWindowID","_signed_int",0}, | |
13490 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 13491 | { "_int","_wxCoord",0}, |
1d99702e | 13492 | { "_int","_wxPrintQuality",0}, |
c368d904 | 13493 | { "_int","_time_t",0}, |
1d99702e RD |
13494 | { "_int","_size_t",0}, |
13495 | { "_int","_EBool",0}, | |
13496 | { "_int","_uint",0}, | |
13497 | { "_int","_wxWindowID",0}, | |
13498 | { "_int","_unsigned_int",0}, | |
13499 | { "_int","_signed_int",0}, | |
c368d904 RD |
13500 | { "_time_t","_wxCoord",0}, |
13501 | { "_time_t","_wxPrintQuality",0}, | |
13502 | { "_time_t","_unsigned_int",0}, | |
13503 | { "_time_t","_int",0}, | |
13504 | { "_time_t","_wxWindowID",0}, | |
13505 | { "_time_t","_uint",0}, | |
13506 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
13507 | { "_wxCoord","_int",0}, |
13508 | { "_wxCoord","_signed_int",0}, | |
13509 | { "_wxCoord","_unsigned_int",0}, | |
13510 | { "_wxCoord","_wxWindowID",0}, | |
13511 | { "_wxCoord","_uint",0}, | |
13512 | { "_wxCoord","_EBool",0}, | |
13513 | { "_wxCoord","_size_t",0}, | |
c368d904 | 13514 | { "_wxCoord","_time_t",0}, |
b1462dfa | 13515 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
13516 | {0,0,0}}; |
13517 | ||
8ab979d7 RD |
13518 | static PyObject *SWIG_globals; |
13519 | #ifdef __cplusplus | |
13520 | extern "C" | |
13521 | #endif | |
1d99702e | 13522 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
13523 | PyObject *m, *d; |
13524 | SWIG_globals = SWIG_newvarlink(); | |
13525 | m = Py_InitModule("gdic", gdicMethods); | |
13526 | d = PyModule_GetDict(m); | |
6d8b4f8d RD |
13527 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
13528 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
13529 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
13530 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
13531 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
13532 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
13533 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
13534 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
ce914f73 | 13535 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); |
6d8b4f8d RD |
13536 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); |
13537 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
13538 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
13539 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
13540 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
13541 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
13542 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
13543 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
f0261a72 RD |
13544 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
13545 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
13546 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
13547 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
13548 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
13549 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
13550 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
13551 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
13552 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
13553 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
13554 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
13555 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
13556 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
13557 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
13558 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
13559 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
13560 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
6d8b4f8d | 13561 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
f0261a72 RD |
13562 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
13563 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
13564 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
13565 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
13566 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
13567 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
13568 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
13569 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
6d8b4f8d | 13570 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
98624b49 RD |
13571 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
13572 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
13573 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
13574 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
f0261a72 RD |
13575 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
13576 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
13577 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
6d8b4f8d RD |
13578 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
13579 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
13580 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
13581 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
13582 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
13583 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
13584 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
13585 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
13586 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
f0261a72 | 13587 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
c5943253 RD |
13588 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
13589 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
13590 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
13591 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
13592 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
13593 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
13594 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
13595 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
13596 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
13597 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
8ab979d7 RD |
13598 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
13599 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
13600 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
13601 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
13602 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
13603 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
13604 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
13605 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
13606 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
13607 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
13608 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
13609 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
13610 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
13611 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
13612 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
13613 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
13614 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
13615 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
13616 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
13617 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
13618 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
13619 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
13620 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
13621 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
13622 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
13623 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
13624 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
13625 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
13626 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
13627 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
13628 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
13629 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
13630 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
13631 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
13632 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
13633 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
13634 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
13635 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
13636 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
13637 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
13638 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
13639 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
13640 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
13641 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
13642 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
13643 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
13644 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
1d99702e RD |
13645 | { |
13646 | int i; | |
13647 | for (i = 0; _swig_mapping[i].n1; i++) | |
13648 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
13649 | } | |
8ab979d7 | 13650 | } |