]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/gdi.cpp |
70551f47 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
70551f47 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) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
70551f47 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 *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
70551f47 RD |
54 | #define SWIG_init initgdic |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
21f8d7ea | 59 | #include <wx/imaglist.h> |
059a841c RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
70551f47 | 64 | |
70551f47 RD |
65 | |
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
3bcd5e1c | 70 | if (!target) { |
70551f47 | 71 | target = o; |
3bcd5e1c | 72 | } else if (target == Py_None) { |
70551f47 RD |
73 | Py_DECREF(Py_None); |
74 | target = o; | |
3bcd5e1c | 75 | } else { |
70551f47 RD |
76 | if (!PyTuple_Check(target)) { |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
3bcd5e1c RD |
81 | o3 = PyTuple_New(1); |
82 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
83 | |
84 | o2 = target; | |
3bcd5e1c RD |
85 | target = PySequence_Concat(o2, o3); |
86 | Py_DECREF(o2); | |
70551f47 RD |
87 | Py_DECREF(o3); |
88 | } | |
89 | return target; | |
90 | } | |
91 | ||
7a446686 RD |
92 | #if PYTHON_API_VERSION >= 1009 |
93 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
94 | #else | |
0220cbc1 | 95 | static char* wxStringErrorMsg = "String type required"; |
7a446686 | 96 | #endif |
fbcadfca RD |
97 | // Implementations of some alternate "constructors" |
98 | ||
70551f47 RD |
99 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
100 | return new wxBitmap(width, height, depth); | |
101 | } | |
102 | ||
fbcadfca RD |
103 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
104 | char** cArray = NULL; | |
105 | int count; | |
106 | ||
107 | if (!PyList_Check(listOfStrings)) { | |
108 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
109 | return NULL; | |
110 | } | |
111 | count = PyList_Size(listOfStrings); | |
112 | cArray = new char*[count]; | |
113 | ||
114 | for(int x=0; x<count; x++) { | |
115 | // TODO: Need some validation and error checking here | |
116 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
117 | } | |
118 | return cArray; | |
119 | } | |
120 | ||
9d6da64a | 121 | |
fbcadfca RD |
122 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
123 | char** cArray = NULL; | |
124 | wxBitmap* bmp; | |
125 | ||
126 | cArray = ConvertListOfStrings(listOfStrings); | |
127 | if (! cArray) | |
128 | return NULL; | |
129 | bmp = new wxBitmap(cArray); | |
130 | delete [] cArray; | |
131 | return bmp; | |
132 | } | |
133 | ||
134 | ||
135 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
136 | return new wxBitmap(icon); | |
137 | } | |
138 | ||
139 | ||
9d6da64a RD |
140 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
141 | return new wxBitmap(bits, width, height, depth); | |
142 | } | |
9e689c06 | 143 | |
7ff49f0c | 144 | |
9d6da64a RD |
145 | // #ifdef __WXMSW__ |
146 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
147 | // int width, int height, int depth = 1) { | |
148 | // if (! PyString_Check(data)) { | |
149 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
150 | // return NULL; | |
151 | // } | |
152 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
153 | // } | |
154 | // #endif | |
8bf5d46e | 155 | |
70551f47 RD |
156 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
157 | return new wxMask(bitmap, colour); | |
fbcadfca RD |
158 | } |
159 | // Implementations of some alternate "constructors" | |
160 | wxIcon* wxEmptyIcon() { | |
161 | return new wxIcon(); | |
162 | } | |
163 | ||
164 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
165 | char** cArray = NULL; | |
166 | wxIcon* icon; | |
167 | ||
168 | cArray = ConvertListOfStrings(listOfStrings); | |
169 | if (! cArray) | |
170 | return NULL; | |
171 | icon = new wxIcon(cArray); | |
172 | delete [] cArray; | |
173 | return icon; | |
70551f47 RD |
174 | } |
175 | // Alternate 'constructor' | |
b26e2dc4 | 176 | wxCursor* wxPyStockCursor(int id) { |
70551f47 RD |
177 | return new wxCursor(id); |
178 | } | |
179 | // Alternate 'constructor' | |
180 | wxColour* wxNamedColour(const wxString& colorName) { | |
181 | return new wxColour(colorName); | |
182 | } | |
65191ae8 RD |
183 | |
184 | class wxPyPen : public wxPen { | |
185 | public: | |
186 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
187 | : wxPen(colour, width, style) | |
188 | { m_dash = NULL; } | |
189 | ~wxPyPen() { | |
190 | if (m_dash) | |
05f30eec | 191 | delete [] m_dash; |
65191ae8 RD |
192 | } |
193 | ||
194 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
05f30eec RD |
195 | if (m_dash) |
196 | delete [] m_dash; | |
65191ae8 | 197 | m_dash = new wxDash[nb_dashes]; |
05f30eec | 198 | for (int i=0; i<nb_dashes; i++) { |
65191ae8 | 199 | m_dash[i] = dash[i]; |
05f30eec | 200 | } |
65191ae8 RD |
201 | wxPen::SetDashes(nb_dashes, m_dash); |
202 | } | |
203 | ||
204 | private: | |
205 | wxDash* m_dash; | |
206 | }; | |
3bcd5e1c RD |
207 | |
208 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
209 | *x1 = dc->MinX(); | |
210 | *y1 = dc->MinY(); | |
211 | *x2 = dc->MaxX(); | |
212 | *y2 = dc->MaxY(); | |
213 | } | |
70551f47 RD |
214 | // Alternate 'constructor' |
215 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
216 | return new wxMemoryDC(oldDC); | |
217 | } | |
21f8d7ea RD |
218 | |
219 | #if 0 | |
70551f47 RD |
220 | extern wxFont * wxNORMAL_FONT; |
221 | extern wxFont * wxSMALL_FONT; | |
222 | extern wxFont * wxITALIC_FONT; | |
223 | extern wxFont * wxSWISS_FONT; | |
224 | extern wxPen * wxRED_PEN; | |
225 | extern wxPen * wxCYAN_PEN; | |
226 | extern wxPen * wxGREEN_PEN; | |
227 | extern wxPen * wxBLACK_PEN; | |
228 | extern wxPen * wxWHITE_PEN; | |
229 | extern wxPen * wxTRANSPARENT_PEN; | |
230 | extern wxPen * wxBLACK_DASHED_PEN; | |
231 | extern wxPen * wxGREY_PEN; | |
232 | extern wxPen * wxMEDIUM_GREY_PEN; | |
233 | extern wxPen * wxLIGHT_GREY_PEN; | |
234 | extern wxBrush * wxBLUE_BRUSH; | |
235 | extern wxBrush * wxGREEN_BRUSH; | |
236 | extern wxBrush * wxWHITE_BRUSH; | |
237 | extern wxBrush * wxBLACK_BRUSH; | |
238 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
239 | extern wxBrush * wxCYAN_BRUSH; | |
240 | extern wxBrush * wxRED_BRUSH; | |
241 | extern wxBrush * wxGREY_BRUSH; | |
242 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
243 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
244 | extern wxColour * wxBLACK; | |
245 | extern wxColour * wxWHITE; | |
246 | extern wxColour * wxRED; | |
247 | extern wxColour * wxBLUE; | |
248 | extern wxColour * wxGREEN; | |
249 | extern wxColour * wxCYAN; | |
250 | extern wxColour * wxLIGHT_GREY; | |
251 | extern wxCursor * wxSTANDARD_CURSOR; | |
252 | extern wxCursor * wxHOURGLASS_CURSOR; | |
253 | extern wxCursor * wxCROSS_CURSOR; | |
254 | extern wxBitmap wxNullBitmap; | |
255 | extern wxIcon wxNullIcon; | |
256 | extern wxCursor wxNullCursor; | |
257 | extern wxPen wxNullPen; | |
258 | extern wxBrush wxNullBrush; | |
259 | extern wxPalette wxNullPalette; | |
260 | extern wxFont wxNullFont; | |
261 | extern wxColour wxNullColour; | |
5e40f9dd RD |
262 | extern wxFontList * wxTheFontList; |
263 | extern wxPenList * wxThePenList; | |
65191ae8 | 264 | extern wxBrushList * wxTheBrushList; |
5e40f9dd | 265 | extern wxColourDatabase * wxTheColourDatabase; |
21f8d7ea | 266 | |
2d091820 RD |
267 | #endif |
268 | #ifdef __cplusplus | |
269 | extern "C" { | |
21f8d7ea | 270 | #endif |
107e4716 | 271 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
272 | PyObject * _resultobj; |
273 | wxBitmap * _result; | |
274 | int _arg0; | |
275 | int _arg1; | |
2d091820 | 276 | int _arg2 = (int ) -1; |
107e4716 | 277 | char *_kwnames[] = { "width","height","depth", NULL }; |
70551f47 RD |
278 | char _ptemp[128]; |
279 | ||
280 | self = self; | |
107e4716 | 281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 282 | return NULL; |
ab9bc19b | 283 | { |
474c48f9 | 284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
285 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
286 | ||
474c48f9 | 287 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 288 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
289 | } if (_result) { |
290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
291 | _resultobj = Py_BuildValue("s",_ptemp); | |
292 | } else { | |
293 | Py_INCREF(Py_None); | |
294 | _resultobj = Py_None; | |
295 | } | |
70551f47 RD |
296 | return _resultobj; |
297 | } | |
298 | ||
fbcadfca RD |
299 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
300 | PyObject * _resultobj; | |
301 | wxBitmap * _result; | |
302 | PyObject * _arg0; | |
303 | PyObject * _obj0 = 0; | |
304 | char *_kwnames[] = { "listOfStrings", NULL }; | |
305 | char _ptemp[128]; | |
306 | ||
307 | self = self; | |
308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
309 | return NULL; | |
310 | { | |
311 | _arg0 = _obj0; | |
312 | } | |
313 | { | |
474c48f9 | 314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fbcadfca RD |
315 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
316 | ||
474c48f9 | 317 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 318 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
319 | } if (_result) { |
320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
321 | _resultobj = Py_BuildValue("s",_ptemp); | |
322 | } else { | |
323 | Py_INCREF(Py_None); | |
324 | _resultobj = Py_None; | |
325 | } | |
326 | return _resultobj; | |
327 | } | |
328 | ||
329 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
330 | PyObject * _resultobj; | |
331 | wxBitmap * _result; | |
332 | wxIcon * _arg0; | |
333 | PyObject * _argo0 = 0; | |
334 | char *_kwnames[] = { "icon", NULL }; | |
335 | char _ptemp[128]; | |
336 | ||
337 | self = self; | |
338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
339 | return NULL; | |
340 | if (_argo0) { | |
341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
344 | return NULL; | |
345 | } | |
346 | } | |
347 | { | |
474c48f9 | 348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fbcadfca RD |
349 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
350 | ||
474c48f9 | 351 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 352 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
353 | } if (_result) { |
354 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
355 | _resultobj = Py_BuildValue("s",_ptemp); | |
356 | } else { | |
357 | Py_INCREF(Py_None); | |
358 | _resultobj = Py_None; | |
359 | } | |
360 | return _resultobj; | |
361 | } | |
362 | ||
9d6da64a RD |
363 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
364 | PyObject * _resultobj; | |
365 | wxBitmap * _result; | |
366 | char * _arg0; | |
367 | int _arg1; | |
368 | int _arg2; | |
369 | int _arg3 = (int ) 1; | |
370 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
371 | char _ptemp[128]; | |
372 | ||
373 | self = self; | |
374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
375 | return NULL; | |
376 | { | |
474c48f9 | 377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d6da64a RD |
378 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
379 | ||
474c48f9 | 380 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
381 | if (PyErr_Occurred()) return NULL; |
382 | } if (_result) { | |
383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
384 | _resultobj = Py_BuildValue("s",_ptemp); | |
385 | } else { | |
386 | Py_INCREF(Py_None); | |
387 | _resultobj = Py_None; | |
388 | } | |
389 | return _resultobj; | |
390 | } | |
391 | ||
107e4716 | 392 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
393 | PyObject * _resultobj; |
394 | wxMask * _result; | |
395 | wxBitmap * _arg0; | |
396 | wxColour * _arg1; | |
2d091820 | 397 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
398 | wxColour temp; |
399 | PyObject * _obj1 = 0; | |
107e4716 | 400 | char *_kwnames[] = { "bitmap","colour", NULL }; |
70551f47 RD |
401 | char _ptemp[128]; |
402 | ||
403 | self = self; | |
f6bcfd97 | 404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 405 | return NULL; |
2d091820 RD |
406 | if (_argo0) { |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
410 | return NULL; | |
411 | } | |
412 | } | |
f6bcfd97 BP |
413 | { |
414 | _arg1 = &temp; | |
415 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 416 | return NULL; |
f6bcfd97 | 417 | } |
ab9bc19b | 418 | { |
474c48f9 | 419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
420 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
421 | ||
474c48f9 | 422 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 423 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
424 | } if (_result) { |
425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
426 | _resultobj = Py_BuildValue("s",_ptemp); | |
427 | } else { | |
428 | Py_INCREF(Py_None); | |
429 | _resultobj = Py_None; | |
430 | } | |
70551f47 RD |
431 | return _resultobj; |
432 | } | |
433 | ||
fbcadfca RD |
434 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
435 | PyObject * _resultobj; | |
436 | wxIcon * _result; | |
437 | char *_kwnames[] = { NULL }; | |
438 | char _ptemp[128]; | |
439 | ||
440 | self = self; | |
441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
442 | return NULL; | |
443 | { | |
474c48f9 | 444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fbcadfca RD |
445 | _result = (wxIcon *)wxEmptyIcon(); |
446 | ||
474c48f9 | 447 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 448 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
449 | } if (_result) { |
450 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
451 | _resultobj = Py_BuildValue("s",_ptemp); | |
452 | } else { | |
453 | Py_INCREF(Py_None); | |
454 | _resultobj = Py_None; | |
455 | } | |
456 | return _resultobj; | |
457 | } | |
458 | ||
459 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
460 | PyObject * _resultobj; | |
461 | wxIcon * _result; | |
462 | PyObject * _arg0; | |
463 | PyObject * _obj0 = 0; | |
464 | char *_kwnames[] = { "listOfStrings", NULL }; | |
465 | char _ptemp[128]; | |
466 | ||
467 | self = self; | |
468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
469 | return NULL; | |
470 | { | |
471 | _arg0 = _obj0; | |
472 | } | |
473 | { | |
474c48f9 | 474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fbcadfca RD |
475 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
476 | ||
474c48f9 | 477 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 478 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
479 | } if (_result) { |
480 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
481 | _resultobj = Py_BuildValue("s",_ptemp); | |
482 | } else { | |
483 | Py_INCREF(Py_None); | |
484 | _resultobj = Py_None; | |
485 | } | |
486 | return _resultobj; | |
487 | } | |
488 | ||
107e4716 | 489 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
490 | PyObject * _resultobj; |
491 | wxCursor * _result; | |
492 | int _arg0; | |
107e4716 | 493 | char *_kwnames[] = { "id", NULL }; |
70551f47 RD |
494 | char _ptemp[128]; |
495 | ||
496 | self = self; | |
107e4716 | 497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
70551f47 | 498 | return NULL; |
ab9bc19b | 499 | { |
474c48f9 | 500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
501 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
502 | ||
474c48f9 | 503 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 504 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
505 | } if (_result) { |
506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
507 | _resultobj = Py_BuildValue("s",_ptemp); | |
508 | } else { | |
509 | Py_INCREF(Py_None); | |
510 | _resultobj = Py_None; | |
511 | } | |
70551f47 RD |
512 | return _resultobj; |
513 | } | |
514 | ||
107e4716 | 515 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
516 | PyObject * _resultobj; |
517 | wxColour * _result; | |
518 | wxString * _arg0; | |
519 | PyObject * _obj0 = 0; | |
107e4716 | 520 | char *_kwnames[] = { "colorName", NULL }; |
70551f47 RD |
521 | char _ptemp[128]; |
522 | ||
523 | self = self; | |
107e4716 | 524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
70551f47 RD |
525 | return NULL; |
526 | { | |
2cd2fac8 RD |
527 | #if PYTHON_API_VERSION >= 1009 |
528 | char* tmpPtr; int tmpSize; | |
529 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
531 | return NULL; |
532 | } | |
533 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
534 | return NULL; | |
535 | _arg0 = new wxString(tmpPtr, tmpSize); | |
536 | #else | |
70551f47 RD |
537 | if (!PyString_Check(_obj0)) { |
538 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
539 | return NULL; | |
540 | } | |
2cd2fac8 RD |
541 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
542 | #endif | |
70551f47 | 543 | } |
ab9bc19b | 544 | { |
474c48f9 | 545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
546 | _result = (wxColour *)wxNamedColour(*_arg0); |
547 | ||
474c48f9 | 548 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 549 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
550 | } if (_result) { |
551 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
552 | _resultobj = Py_BuildValue("s",_ptemp); | |
553 | } else { | |
554 | Py_INCREF(Py_None); | |
555 | _resultobj = Py_None; | |
556 | } | |
70551f47 RD |
557 | { |
558 | if (_obj0) | |
559 | delete _arg0; | |
560 | } | |
561 | return _resultobj; | |
562 | } | |
563 | ||
107e4716 | 564 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
565 | PyObject * _resultobj; |
566 | wxMemoryDC * _result; | |
567 | wxDC * _arg0; | |
2d091820 | 568 | PyObject * _argo0 = 0; |
107e4716 | 569 | char *_kwnames[] = { "oldDC", NULL }; |
70551f47 RD |
570 | char _ptemp[128]; |
571 | ||
572 | self = self; | |
107e4716 | 573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
70551f47 | 574 | return NULL; |
2d091820 RD |
575 | if (_argo0) { |
576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
579 | return NULL; | |
580 | } | |
581 | } | |
ab9bc19b | 582 | { |
474c48f9 | 583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
584 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
585 | ||
474c48f9 | 586 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 587 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
588 | } if (_result) { |
589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
590 | _resultobj = Py_BuildValue("s",_ptemp); | |
591 | } else { | |
592 | Py_INCREF(Py_None); | |
593 | _resultobj = Py_None; | |
594 | } | |
70551f47 RD |
595 | return _resultobj; |
596 | } | |
597 | ||
598 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
599 | ||
600 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
601 | return 1; | |
602 | } | |
603 | ||
604 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
605 | PyObject * pyobj; | |
606 | char ptemp[128]; | |
607 | ||
608 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
609 | pyobj = PyString_FromString(ptemp); | |
610 | return pyobj; | |
611 | } | |
612 | ||
613 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
614 | ||
615 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
616 | return 1; | |
617 | } | |
618 | ||
619 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
620 | PyObject * pyobj; | |
621 | char ptemp[128]; | |
622 | ||
623 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
624 | pyobj = PyString_FromString(ptemp); | |
625 | return pyobj; | |
626 | } | |
627 | ||
628 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
629 | ||
630 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
631 | return 1; | |
632 | } | |
633 | ||
634 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
635 | PyObject * pyobj; | |
636 | char ptemp[128]; | |
637 | ||
638 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
639 | pyobj = PyString_FromString(ptemp); | |
640 | return pyobj; | |
641 | } | |
642 | ||
643 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
644 | ||
645 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
646 | return 1; | |
647 | } | |
648 | ||
649 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
650 | PyObject * pyobj; | |
651 | char ptemp[128]; | |
652 | ||
653 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
654 | pyobj = PyString_FromString(ptemp); | |
655 | return pyobj; | |
656 | } | |
657 | ||
658 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
659 | ||
660 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
661 | return 1; | |
662 | } | |
663 | ||
664 | static PyObject *_wrap_wxRED_PEN_get() { | |
665 | PyObject * pyobj; | |
666 | char ptemp[128]; | |
667 | ||
668 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
669 | pyobj = PyString_FromString(ptemp); | |
670 | return pyobj; | |
671 | } | |
672 | ||
673 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
674 | ||
675 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
676 | return 1; | |
677 | } | |
678 | ||
679 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
680 | PyObject * pyobj; | |
681 | char ptemp[128]; | |
682 | ||
683 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
684 | pyobj = PyString_FromString(ptemp); | |
685 | return pyobj; | |
686 | } | |
687 | ||
688 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
689 | ||
690 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
691 | return 1; | |
692 | } | |
693 | ||
694 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
695 | PyObject * pyobj; | |
696 | char ptemp[128]; | |
697 | ||
698 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
699 | pyobj = PyString_FromString(ptemp); | |
700 | return pyobj; | |
701 | } | |
702 | ||
703 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
704 | ||
705 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
706 | return 1; | |
707 | } | |
708 | ||
709 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
710 | PyObject * pyobj; | |
711 | char ptemp[128]; | |
712 | ||
713 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
714 | pyobj = PyString_FromString(ptemp); | |
715 | return pyobj; | |
716 | } | |
717 | ||
718 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
719 | ||
720 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
721 | return 1; | |
722 | } | |
723 | ||
724 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
725 | PyObject * pyobj; | |
726 | char ptemp[128]; | |
727 | ||
728 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
729 | pyobj = PyString_FromString(ptemp); | |
730 | return pyobj; | |
731 | } | |
732 | ||
733 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
734 | ||
735 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
736 | return 1; | |
737 | } | |
738 | ||
739 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
740 | PyObject * pyobj; | |
741 | char ptemp[128]; | |
742 | ||
743 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
744 | pyobj = PyString_FromString(ptemp); | |
745 | return pyobj; | |
746 | } | |
747 | ||
748 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
749 | ||
750 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
751 | return 1; | |
752 | } | |
753 | ||
754 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
755 | PyObject * pyobj; | |
756 | char ptemp[128]; | |
757 | ||
758 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
759 | pyobj = PyString_FromString(ptemp); | |
760 | return pyobj; | |
761 | } | |
762 | ||
763 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
764 | ||
765 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
766 | return 1; | |
767 | } | |
768 | ||
769 | static PyObject *_wrap_wxGREY_PEN_get() { | |
770 | PyObject * pyobj; | |
771 | char ptemp[128]; | |
772 | ||
773 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
774 | pyobj = PyString_FromString(ptemp); | |
775 | return pyobj; | |
776 | } | |
777 | ||
778 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
779 | ||
780 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
781 | return 1; | |
782 | } | |
783 | ||
784 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
785 | PyObject * pyobj; | |
786 | char ptemp[128]; | |
787 | ||
788 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
789 | pyobj = PyString_FromString(ptemp); | |
790 | return pyobj; | |
791 | } | |
792 | ||
793 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
794 | ||
795 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
796 | return 1; | |
797 | } | |
798 | ||
799 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
800 | PyObject * pyobj; | |
801 | char ptemp[128]; | |
802 | ||
803 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
804 | pyobj = PyString_FromString(ptemp); | |
805 | return pyobj; | |
806 | } | |
807 | ||
808 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
809 | ||
810 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
811 | return 1; | |
812 | } | |
813 | ||
814 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
815 | PyObject * pyobj; | |
816 | char ptemp[128]; | |
817 | ||
818 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
819 | pyobj = PyString_FromString(ptemp); | |
820 | return pyobj; | |
821 | } | |
822 | ||
823 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
824 | ||
825 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
826 | return 1; | |
827 | } | |
828 | ||
829 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
830 | PyObject * pyobj; | |
831 | char ptemp[128]; | |
832 | ||
833 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
834 | pyobj = PyString_FromString(ptemp); | |
835 | return pyobj; | |
836 | } | |
837 | ||
838 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
839 | ||
840 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
841 | return 1; | |
842 | } | |
843 | ||
844 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
845 | PyObject * pyobj; | |
846 | char ptemp[128]; | |
847 | ||
848 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
849 | pyobj = PyString_FromString(ptemp); | |
850 | return pyobj; | |
851 | } | |
852 | ||
853 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
854 | ||
855 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
856 | return 1; | |
857 | } | |
858 | ||
859 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
860 | PyObject * pyobj; | |
861 | char ptemp[128]; | |
862 | ||
863 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
864 | pyobj = PyString_FromString(ptemp); | |
865 | return pyobj; | |
866 | } | |
867 | ||
868 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
869 | ||
870 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
871 | return 1; | |
872 | } | |
873 | ||
874 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
875 | PyObject * pyobj; | |
876 | char ptemp[128]; | |
877 | ||
878 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
879 | pyobj = PyString_FromString(ptemp); | |
880 | return pyobj; | |
881 | } | |
882 | ||
883 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
884 | ||
885 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
886 | return 1; | |
887 | } | |
888 | ||
889 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
890 | PyObject * pyobj; | |
891 | char ptemp[128]; | |
892 | ||
893 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
894 | pyobj = PyString_FromString(ptemp); | |
895 | return pyobj; | |
896 | } | |
897 | ||
898 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
899 | ||
900 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
901 | return 1; | |
902 | } | |
903 | ||
904 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
905 | PyObject * pyobj; | |
906 | char ptemp[128]; | |
907 | ||
908 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
909 | pyobj = PyString_FromString(ptemp); | |
910 | return pyobj; | |
911 | } | |
912 | ||
913 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
914 | ||
915 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
916 | return 1; | |
917 | } | |
918 | ||
919 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
920 | PyObject * pyobj; | |
921 | char ptemp[128]; | |
922 | ||
923 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
924 | pyobj = PyString_FromString(ptemp); | |
925 | return pyobj; | |
926 | } | |
927 | ||
928 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
929 | ||
930 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
931 | return 1; | |
932 | } | |
933 | ||
934 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
935 | PyObject * pyobj; | |
936 | char ptemp[128]; | |
937 | ||
938 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
939 | pyobj = PyString_FromString(ptemp); | |
940 | return pyobj; | |
941 | } | |
942 | ||
943 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
944 | ||
945 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
946 | return 1; | |
947 | } | |
948 | ||
949 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
950 | PyObject * pyobj; | |
951 | char ptemp[128]; | |
952 | ||
953 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
954 | pyobj = PyString_FromString(ptemp); | |
955 | return pyobj; | |
956 | } | |
957 | ||
958 | static int _wrap_wxBLACK_set(PyObject *val) { | |
959 | ||
960 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
961 | return 1; | |
962 | } | |
963 | ||
964 | static PyObject *_wrap_wxBLACK_get() { | |
965 | PyObject * pyobj; | |
966 | char ptemp[128]; | |
967 | ||
968 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
969 | pyobj = PyString_FromString(ptemp); | |
970 | return pyobj; | |
971 | } | |
972 | ||
973 | static int _wrap_wxWHITE_set(PyObject *val) { | |
974 | ||
975 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
976 | return 1; | |
977 | } | |
978 | ||
979 | static PyObject *_wrap_wxWHITE_get() { | |
980 | PyObject * pyobj; | |
981 | char ptemp[128]; | |
982 | ||
983 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
984 | pyobj = PyString_FromString(ptemp); | |
985 | return pyobj; | |
986 | } | |
987 | ||
988 | static int _wrap_wxRED_set(PyObject *val) { | |
989 | ||
990 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
991 | return 1; | |
992 | } | |
993 | ||
994 | static PyObject *_wrap_wxRED_get() { | |
995 | PyObject * pyobj; | |
996 | char ptemp[128]; | |
997 | ||
998 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
999 | pyobj = PyString_FromString(ptemp); | |
1000 | return pyobj; | |
1001 | } | |
1002 | ||
1003 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1004 | ||
1005 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1006 | return 1; | |
1007 | } | |
1008 | ||
1009 | static PyObject *_wrap_wxBLUE_get() { | |
1010 | PyObject * pyobj; | |
1011 | char ptemp[128]; | |
1012 | ||
1013 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1014 | pyobj = PyString_FromString(ptemp); | |
1015 | return pyobj; | |
1016 | } | |
1017 | ||
1018 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1019 | ||
1020 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1021 | return 1; | |
1022 | } | |
1023 | ||
1024 | static PyObject *_wrap_wxGREEN_get() { | |
1025 | PyObject * pyobj; | |
1026 | char ptemp[128]; | |
1027 | ||
1028 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1029 | pyobj = PyString_FromString(ptemp); | |
1030 | return pyobj; | |
1031 | } | |
1032 | ||
1033 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1034 | ||
1035 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1036 | return 1; | |
1037 | } | |
1038 | ||
1039 | static PyObject *_wrap_wxCYAN_get() { | |
1040 | PyObject * pyobj; | |
1041 | char ptemp[128]; | |
1042 | ||
1043 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1044 | pyobj = PyString_FromString(ptemp); | |
1045 | return pyobj; | |
1046 | } | |
1047 | ||
1048 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1049 | ||
1050 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1051 | return 1; | |
1052 | } | |
1053 | ||
1054 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1055 | PyObject * pyobj; | |
1056 | char ptemp[128]; | |
1057 | ||
1058 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1059 | pyobj = PyString_FromString(ptemp); | |
1060 | return pyobj; | |
1061 | } | |
1062 | ||
1063 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1064 | ||
1065 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1066 | return 1; | |
1067 | } | |
1068 | ||
1069 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1070 | PyObject * pyobj; | |
1071 | char ptemp[128]; | |
1072 | ||
1073 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1074 | pyobj = PyString_FromString(ptemp); | |
1075 | return pyobj; | |
1076 | } | |
1077 | ||
1078 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1079 | ||
1080 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1081 | return 1; | |
1082 | } | |
1083 | ||
1084 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1085 | PyObject * pyobj; | |
1086 | char ptemp[128]; | |
1087 | ||
1088 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1089 | pyobj = PyString_FromString(ptemp); | |
1090 | return pyobj; | |
1091 | } | |
1092 | ||
1093 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1094 | ||
1095 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1096 | return 1; | |
1097 | } | |
1098 | ||
1099 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1100 | PyObject * pyobj; | |
1101 | char ptemp[128]; | |
1102 | ||
1103 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1104 | pyobj = PyString_FromString(ptemp); | |
1105 | return pyobj; | |
1106 | } | |
1107 | ||
1108 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1109 | ||
1110 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1111 | return 1; | |
1112 | } | |
1113 | ||
1114 | static PyObject *_wrap_wxNullBitmap_get() { | |
1115 | PyObject * pyobj; | |
1116 | char ptemp[128]; | |
1117 | ||
1118 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1119 | pyobj = PyString_FromString(ptemp); | |
1120 | return pyobj; | |
1121 | } | |
1122 | ||
1123 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1124 | ||
1125 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1126 | return 1; | |
1127 | } | |
1128 | ||
1129 | static PyObject *_wrap_wxNullIcon_get() { | |
1130 | PyObject * pyobj; | |
1131 | char ptemp[128]; | |
1132 | ||
1133 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1134 | pyobj = PyString_FromString(ptemp); | |
1135 | return pyobj; | |
1136 | } | |
1137 | ||
1138 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1139 | ||
1140 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1141 | return 1; | |
1142 | } | |
1143 | ||
1144 | static PyObject *_wrap_wxNullCursor_get() { | |
1145 | PyObject * pyobj; | |
1146 | char ptemp[128]; | |
1147 | ||
1148 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1149 | pyobj = PyString_FromString(ptemp); | |
1150 | return pyobj; | |
1151 | } | |
1152 | ||
1153 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1154 | ||
1155 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1156 | return 1; | |
1157 | } | |
1158 | ||
1159 | static PyObject *_wrap_wxNullPen_get() { | |
1160 | PyObject * pyobj; | |
1161 | char ptemp[128]; | |
1162 | ||
1163 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1164 | pyobj = PyString_FromString(ptemp); | |
1165 | return pyobj; | |
1166 | } | |
1167 | ||
1168 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1169 | ||
1170 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1171 | return 1; | |
1172 | } | |
1173 | ||
1174 | static PyObject *_wrap_wxNullBrush_get() { | |
1175 | PyObject * pyobj; | |
1176 | char ptemp[128]; | |
1177 | ||
1178 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1179 | pyobj = PyString_FromString(ptemp); | |
1180 | return pyobj; | |
1181 | } | |
1182 | ||
1183 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1184 | ||
1185 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1186 | return 1; | |
1187 | } | |
1188 | ||
1189 | static PyObject *_wrap_wxNullPalette_get() { | |
1190 | PyObject * pyobj; | |
1191 | char ptemp[128]; | |
1192 | ||
1193 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1194 | pyobj = PyString_FromString(ptemp); | |
1195 | return pyobj; | |
1196 | } | |
1197 | ||
1198 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1199 | ||
1200 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1201 | return 1; | |
1202 | } | |
1203 | ||
1204 | static PyObject *_wrap_wxNullFont_get() { | |
1205 | PyObject * pyobj; | |
1206 | char ptemp[128]; | |
1207 | ||
1208 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1209 | pyobj = PyString_FromString(ptemp); | |
1210 | return pyobj; | |
1211 | } | |
1212 | ||
1213 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1214 | ||
1215 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1216 | return 1; | |
1217 | } | |
1218 | ||
1219 | static PyObject *_wrap_wxNullColour_get() { | |
1220 | PyObject * pyobj; | |
1221 | char ptemp[128]; | |
1222 | ||
1223 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1224 | pyobj = PyString_FromString(ptemp); | |
1225 | return pyobj; | |
1226 | } | |
1227 | ||
5e40f9dd RD |
1228 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1229 | ||
1230 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1231 | return 1; | |
1232 | } | |
1233 | ||
1234 | static PyObject *_wrap_wxTheFontList_get() { | |
1235 | PyObject * pyobj; | |
1236 | char ptemp[128]; | |
1237 | ||
1238 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1239 | pyobj = PyString_FromString(ptemp); | |
1240 | return pyobj; | |
1241 | } | |
1242 | ||
1243 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1244 | ||
1245 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1246 | return 1; | |
1247 | } | |
1248 | ||
1249 | static PyObject *_wrap_wxThePenList_get() { | |
1250 | PyObject * pyobj; | |
1251 | char ptemp[128]; | |
1252 | ||
1253 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1254 | pyobj = PyString_FromString(ptemp); | |
1255 | return pyobj; | |
1256 | } | |
1257 | ||
1258 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1259 | ||
1260 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1261 | return 1; | |
1262 | } | |
1263 | ||
1264 | static PyObject *_wrap_wxTheBrushList_get() { | |
1265 | PyObject * pyobj; | |
1266 | char ptemp[128]; | |
1267 | ||
65191ae8 | 1268 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
5e40f9dd RD |
1269 | pyobj = PyString_FromString(ptemp); |
1270 | return pyobj; | |
1271 | } | |
1272 | ||
1273 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1274 | ||
1275 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1276 | return 1; | |
1277 | } | |
1278 | ||
1279 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1280 | PyObject * pyobj; | |
1281 | char ptemp[128]; | |
1282 | ||
1283 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1284 | pyobj = PyString_FromString(ptemp); | |
1285 | return pyobj; | |
1286 | } | |
1287 | ||
9df61a29 RD |
1288 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1289 | wxGDIObject *src; | |
1290 | wxObject *dest; | |
1291 | src = (wxGDIObject *) ptr; | |
1292 | dest = (wxObject *) src; | |
1293 | return (void *) dest; | |
1294 | } | |
1295 | ||
1296 | #define new_wxGDIObject() (new wxGDIObject()) | |
1297 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1298 | PyObject * _resultobj; | |
1299 | wxGDIObject * _result; | |
1300 | char *_kwnames[] = { NULL }; | |
1301 | char _ptemp[128]; | |
1302 | ||
1303 | self = self; | |
1304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1305 | return NULL; | |
1306 | { | |
474c48f9 | 1307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
1308 | _result = (wxGDIObject *)new_wxGDIObject(); |
1309 | ||
474c48f9 | 1310 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1311 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1312 | } if (_result) { |
1313 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1314 | _resultobj = Py_BuildValue("s",_ptemp); | |
1315 | } else { | |
1316 | Py_INCREF(Py_None); | |
1317 | _resultobj = Py_None; | |
1318 | } | |
1319 | return _resultobj; | |
1320 | } | |
1321 | ||
1322 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1323 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1324 | PyObject * _resultobj; | |
1325 | wxGDIObject * _arg0; | |
1326 | PyObject * _argo0 = 0; | |
1327 | char *_kwnames[] = { "self", NULL }; | |
1328 | ||
1329 | self = self; | |
1330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1331 | return NULL; | |
1332 | if (_argo0) { | |
1333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1336 | return NULL; | |
1337 | } | |
1338 | } | |
1339 | { | |
474c48f9 | 1340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
1341 | delete_wxGDIObject(_arg0); |
1342 | ||
474c48f9 | 1343 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1344 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1345 | } Py_INCREF(Py_None); |
1346 | _resultobj = Py_None; | |
1347 | return _resultobj; | |
1348 | } | |
1349 | ||
1350 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1351 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1352 | PyObject * _resultobj; | |
1353 | bool _result; | |
1354 | wxGDIObject * _arg0; | |
1355 | PyObject * _argo0 = 0; | |
1356 | char *_kwnames[] = { "self", NULL }; | |
1357 | ||
1358 | self = self; | |
1359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1360 | return NULL; | |
1361 | if (_argo0) { | |
1362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1365 | return NULL; | |
1366 | } | |
1367 | } | |
1368 | { | |
474c48f9 | 1369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
1370 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
1371 | ||
474c48f9 | 1372 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1373 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1374 | } _resultobj = Py_BuildValue("i",_result); |
1375 | return _resultobj; | |
1376 | } | |
1377 | ||
1378 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1379 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1380 | PyObject * _resultobj; | |
1381 | wxGDIObject * _arg0; | |
1382 | bool _arg1; | |
1383 | PyObject * _argo0 = 0; | |
1384 | int tempbool1; | |
1385 | char *_kwnames[] = { "self","visible", NULL }; | |
1386 | ||
1387 | self = self; | |
1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1389 | return NULL; | |
1390 | if (_argo0) { | |
1391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
1397 | _arg1 = (bool ) tempbool1; | |
1398 | { | |
474c48f9 | 1399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
1400 | wxGDIObject_SetVisible(_arg0,_arg1); |
1401 | ||
474c48f9 | 1402 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1403 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1404 | } Py_INCREF(Py_None); |
1405 | _resultobj = Py_None; | |
1406 | return _resultobj; | |
1407 | } | |
1408 | ||
1409 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1410 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject * _resultobj; | |
1412 | bool _result; | |
1413 | wxGDIObject * _arg0; | |
1414 | PyObject * _argo0 = 0; | |
1415 | char *_kwnames[] = { "self", NULL }; | |
1416 | ||
1417 | self = self; | |
1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1419 | return NULL; | |
1420 | if (_argo0) { | |
1421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1424 | return NULL; | |
1425 | } | |
1426 | } | |
1427 | { | |
474c48f9 | 1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
1429 | _result = (bool )wxGDIObject_IsNull(_arg0); |
1430 | ||
474c48f9 | 1431 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1432 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1433 | } _resultobj = Py_BuildValue("i",_result); |
1434 | return _resultobj; | |
1435 | } | |
1436 | ||
1437 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1438 | wxBitmap *src; | |
1439 | wxGDIObject *dest; | |
1440 | src = (wxBitmap *) ptr; | |
1441 | dest = (wxGDIObject *) src; | |
1442 | return (void *) dest; | |
1443 | } | |
1444 | ||
1445 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1446 | wxBitmap *src; | |
1447 | wxObject *dest; | |
1448 | src = (wxBitmap *) ptr; | |
1449 | dest = (wxObject *) src; | |
1450 | return (void *) dest; | |
1451 | } | |
1452 | ||
70551f47 | 1453 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
107e4716 | 1454 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1455 | PyObject * _resultobj; |
1456 | wxBitmap * _result; | |
1457 | wxString * _arg0; | |
5c0282d5 | 1458 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
70551f47 | 1459 | PyObject * _obj0 = 0; |
107e4716 | 1460 | char *_kwnames[] = { "name","type", NULL }; |
70551f47 RD |
1461 | char _ptemp[128]; |
1462 | ||
1463 | self = self; | |
5c0282d5 | 1464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
70551f47 RD |
1465 | return NULL; |
1466 | { | |
2cd2fac8 RD |
1467 | #if PYTHON_API_VERSION >= 1009 |
1468 | char* tmpPtr; int tmpSize; | |
1469 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1470 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1471 | return NULL; |
1472 | } | |
1473 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1474 | return NULL; | |
1475 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1476 | #else | |
70551f47 RD |
1477 | if (!PyString_Check(_obj0)) { |
1478 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1479 | return NULL; | |
1480 | } | |
2cd2fac8 RD |
1481 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1482 | #endif | |
70551f47 | 1483 | } |
ab9bc19b | 1484 | { |
474c48f9 | 1485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1486 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
1487 | ||
474c48f9 | 1488 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1489 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1490 | } if (_result) { |
1491 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1492 | _resultobj = Py_BuildValue("s",_ptemp); | |
1493 | } else { | |
1494 | Py_INCREF(Py_None); | |
1495 | _resultobj = Py_None; | |
1496 | } | |
70551f47 RD |
1497 | { |
1498 | if (_obj0) | |
1499 | delete _arg0; | |
1500 | } | |
1501 | return _resultobj; | |
1502 | } | |
1503 | ||
1504 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
107e4716 | 1505 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1506 | PyObject * _resultobj; |
1507 | wxBitmap * _arg0; | |
2d091820 | 1508 | PyObject * _argo0 = 0; |
107e4716 | 1509 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1510 | |
1511 | self = self; | |
107e4716 | 1512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
70551f47 | 1513 | return NULL; |
2d091820 RD |
1514 | if (_argo0) { |
1515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
1518 | return NULL; | |
1519 | } | |
1520 | } | |
ab9bc19b | 1521 | { |
474c48f9 | 1522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1523 | delete_wxBitmap(_arg0); |
1524 | ||
474c48f9 | 1525 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1526 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1527 | } Py_INCREF(Py_None); |
70551f47 RD |
1528 | _resultobj = Py_None; |
1529 | return _resultobj; | |
1530 | } | |
1531 | ||
70551f47 | 1532 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
107e4716 | 1533 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1534 | PyObject * _resultobj; |
1535 | wxPalette * _result; | |
1536 | wxBitmap * _arg0; | |
2d091820 | 1537 | PyObject * _argo0 = 0; |
107e4716 | 1538 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1539 | char _ptemp[128]; |
1540 | ||
1541 | self = self; | |
107e4716 | 1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
70551f47 | 1543 | return NULL; |
2d091820 RD |
1544 | if (_argo0) { |
1545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
1548 | return NULL; | |
1549 | } | |
1550 | } | |
ab9bc19b | 1551 | { |
474c48f9 | 1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1553 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
1554 | ||
474c48f9 | 1555 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1556 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1557 | } if (_result) { |
1558 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1559 | _resultobj = Py_BuildValue("s",_ptemp); | |
1560 | } else { | |
1561 | Py_INCREF(Py_None); | |
1562 | _resultobj = Py_None; | |
1563 | } | |
70551f47 RD |
1564 | return _resultobj; |
1565 | } | |
1566 | ||
1567 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
107e4716 | 1568 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1569 | PyObject * _resultobj; |
1570 | wxMask * _result; | |
1571 | wxBitmap * _arg0; | |
2d091820 | 1572 | PyObject * _argo0 = 0; |
107e4716 | 1573 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1574 | char _ptemp[128]; |
1575 | ||
1576 | self = self; | |
107e4716 | 1577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
70551f47 | 1578 | return NULL; |
2d091820 RD |
1579 | if (_argo0) { |
1580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
1583 | return NULL; | |
1584 | } | |
1585 | } | |
ab9bc19b | 1586 | { |
474c48f9 | 1587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1588 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
1589 | ||
474c48f9 | 1590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1591 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1592 | } if (_result) { |
1593 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1594 | _resultobj = Py_BuildValue("s",_ptemp); | |
1595 | } else { | |
1596 | Py_INCREF(Py_None); | |
1597 | _resultobj = Py_None; | |
1598 | } | |
70551f47 RD |
1599 | return _resultobj; |
1600 | } | |
1601 | ||
56f5d962 RD |
1602 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1603 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1604 | PyObject * _resultobj; |
56f5d962 | 1605 | bool _result; |
70551f47 | 1606 | wxBitmap * _arg0; |
56f5d962 | 1607 | wxString * _arg1; |
5c0282d5 | 1608 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
2d091820 | 1609 | PyObject * _argo0 = 0; |
56f5d962 | 1610 | PyObject * _obj1 = 0; |
5c0282d5 | 1611 | char *_kwnames[] = { "self","name","type", NULL }; |
70551f47 RD |
1612 | |
1613 | self = self; | |
5c0282d5 | 1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1615 | return NULL; |
2d091820 RD |
1616 | if (_argo0) { |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); |
70551f47 RD |
1620 | return NULL; |
1621 | } | |
1622 | } | |
56f5d962 | 1623 | { |
2cd2fac8 RD |
1624 | #if PYTHON_API_VERSION >= 1009 |
1625 | char* tmpPtr; int tmpSize; | |
1626 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1627 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1628 | return NULL; |
1629 | } | |
1630 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1631 | return NULL; | |
1632 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1633 | #else | |
56f5d962 RD |
1634 | if (!PyString_Check(_obj1)) { |
1635 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1636 | return NULL; | |
1637 | } | |
2cd2fac8 RD |
1638 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1639 | #endif | |
56f5d962 | 1640 | } |
ab9bc19b | 1641 | { |
474c48f9 | 1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 1643 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b | 1644 | |
474c48f9 | 1645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1646 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1647 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
1648 | { |
1649 | if (_obj1) | |
1650 | delete _arg1; | |
1651 | } | |
70551f47 RD |
1652 | return _resultobj; |
1653 | } | |
1654 | ||
56f5d962 RD |
1655 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1656 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1657 | PyObject * _resultobj; |
1658 | bool _result; | |
1659 | wxBitmap * _arg0; | |
1660 | wxString * _arg1; | |
5c0282d5 | 1661 | wxBitmapType _arg2; |
56f5d962 | 1662 | wxPalette * _arg3 = (wxPalette *) NULL; |
2d091820 | 1663 | PyObject * _argo0 = 0; |
70551f47 | 1664 | PyObject * _obj1 = 0; |
56f5d962 RD |
1665 | PyObject * _argo3 = 0; |
1666 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
70551f47 RD |
1667 | |
1668 | self = self; | |
56f5d962 | 1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
70551f47 | 1670 | return NULL; |
2d091820 RD |
1671 | if (_argo0) { |
1672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); |
70551f47 RD |
1675 | return NULL; |
1676 | } | |
1677 | } | |
1678 | { | |
2cd2fac8 RD |
1679 | #if PYTHON_API_VERSION >= 1009 |
1680 | char* tmpPtr; int tmpSize; | |
1681 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1683 | return NULL; |
1684 | } | |
1685 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1686 | return NULL; | |
1687 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1688 | #else | |
70551f47 RD |
1689 | if (!PyString_Check(_obj1)) { |
1690 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1691 | return NULL; | |
1692 | } | |
2cd2fac8 RD |
1693 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1694 | #endif | |
70551f47 | 1695 | } |
56f5d962 RD |
1696 | if (_argo3) { |
1697 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
ab9bc19b | 1703 | { |
474c48f9 | 1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 1705 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 1706 | |
474c48f9 | 1707 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1708 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1709 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1710 | { |
1711 | if (_obj1) | |
1712 | delete _arg1; | |
1713 | } | |
1714 | return _resultobj; | |
1715 | } | |
1716 | ||
56f5d962 RD |
1717 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1718 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1719 | PyObject * _resultobj; | |
1720 | wxBitmap * _arg0; | |
1721 | wxMask * _arg1; | |
1722 | PyObject * _argo0 = 0; | |
1723 | PyObject * _argo1 = 0; | |
1724 | char *_kwnames[] = { "self","mask", NULL }; | |
1725 | ||
1726 | self = self; | |
1727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1728 | return NULL; | |
1729 | if (_argo0) { | |
1730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1733 | return NULL; | |
1734 | } | |
1735 | } | |
1736 | if (_argo1) { | |
1737 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1738 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1740 | return NULL; | |
1741 | } | |
1742 | } | |
1743 | { | |
474c48f9 | 1744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 RD |
1745 | wxBitmap_SetMask(_arg0,_arg1); |
1746 | ||
474c48f9 | 1747 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1748 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1749 | } Py_INCREF(Py_None); |
1750 | _resultobj = Py_None; | |
1751 | return _resultobj; | |
1752 | } | |
1753 | ||
70551f47 | 1754 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) |
107e4716 | 1755 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1756 | PyObject * _resultobj; |
1757 | bool _result; | |
1758 | wxBitmap * _arg0; | |
2d091820 | 1759 | PyObject * _argo0 = 0; |
107e4716 | 1760 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1761 | |
1762 | self = self; | |
107e4716 | 1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) |
70551f47 | 1764 | return NULL; |
2d091820 RD |
1765 | if (_argo0) { |
1766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); |
1769 | return NULL; | |
1770 | } | |
1771 | } | |
ab9bc19b | 1772 | { |
474c48f9 | 1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1774 | _result = (bool )wxBitmap_Ok(_arg0); |
1775 | ||
474c48f9 | 1776 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1777 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1778 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1779 | return _resultobj; |
1780 | } | |
1781 | ||
56f5d962 RD |
1782 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) |
1783 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1784 | PyObject * _resultobj; |
56f5d962 | 1785 | int _result; |
70551f47 | 1786 | wxBitmap * _arg0; |
2d091820 | 1787 | PyObject * _argo0 = 0; |
56f5d962 | 1788 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1789 | |
1790 | self = self; | |
56f5d962 | 1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) |
70551f47 | 1792 | return NULL; |
2d091820 RD |
1793 | if (_argo0) { |
1794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1797 | return NULL; |
1798 | } | |
1799 | } | |
1800 | { | |
474c48f9 | 1801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 RD |
1802 | _result = (int )wxBitmap_GetWidth(_arg0); |
1803 | ||
474c48f9 | 1804 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1805 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1806 | } _resultobj = Py_BuildValue("i",_result); |
1807 | return _resultobj; | |
70551f47 | 1808 | } |
56f5d962 RD |
1809 | |
1810 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1811 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject * _resultobj; | |
1813 | int _result; | |
1814 | wxBitmap * _arg0; | |
1815 | PyObject * _argo0 = 0; | |
1816 | char *_kwnames[] = { "self", NULL }; | |
1817 | ||
1818 | self = self; | |
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1820 | return NULL; | |
1821 | if (_argo0) { | |
1822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
70551f47 RD |
1825 | return NULL; |
1826 | } | |
1827 | } | |
ab9bc19b | 1828 | { |
474c48f9 | 1829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 1830 | _result = (int )wxBitmap_GetHeight(_arg0); |
ab9bc19b | 1831 | |
474c48f9 | 1832 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1833 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1834 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1835 | return _resultobj; |
1836 | } | |
1837 | ||
56f5d962 RD |
1838 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1839 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1840 | PyObject * _resultobj; |
56f5d962 | 1841 | int _result; |
70551f47 | 1842 | wxBitmap * _arg0; |
2d091820 | 1843 | PyObject * _argo0 = 0; |
56f5d962 | 1844 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1845 | |
1846 | self = self; | |
56f5d962 | 1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
70551f47 | 1848 | return NULL; |
2d091820 RD |
1849 | if (_argo0) { |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1853 | return NULL; |
1854 | } | |
1855 | } | |
ab9bc19b | 1856 | { |
474c48f9 | 1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 1858 | _result = (int )wxBitmap_GetDepth(_arg0); |
ab9bc19b | 1859 | |
474c48f9 | 1860 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1861 | if (PyErr_Occurred()) return NULL; |
56f5d962 | 1862 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1863 | return _resultobj; |
1864 | } | |
1865 | ||
56f5d962 RD |
1866 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
1867 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1868 | PyObject * _resultobj; |
1869 | wxBitmap * _arg0; | |
1870 | int _arg1; | |
2d091820 | 1871 | PyObject * _argo0 = 0; |
56f5d962 | 1872 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
1873 | |
1874 | self = self; | |
56f5d962 | 1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1876 | return NULL; |
2d091820 RD |
1877 | if (_argo0) { |
1878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1881 | return NULL; |
1882 | } | |
1883 | } | |
ab9bc19b | 1884 | { |
474c48f9 | 1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 1886 | wxBitmap_SetWidth(_arg0,_arg1); |
ab9bc19b | 1887 | |
474c48f9 | 1888 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1889 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1890 | } Py_INCREF(Py_None); |
70551f47 RD |
1891 | _resultobj = Py_None; |
1892 | return _resultobj; | |
1893 | } | |
1894 | ||
56f5d962 RD |
1895 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1896 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1897 | PyObject * _resultobj; |
1898 | wxBitmap * _arg0; | |
56f5d962 | 1899 | int _arg1; |
2d091820 | 1900 | PyObject * _argo0 = 0; |
56f5d962 | 1901 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
1902 | |
1903 | self = self; | |
56f5d962 | 1904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1905 | return NULL; |
2d091820 RD |
1906 | if (_argo0) { |
1907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); |
70551f47 RD |
1910 | return NULL; |
1911 | } | |
1912 | } | |
ab9bc19b | 1913 | { |
474c48f9 | 1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 1915 | wxBitmap_SetHeight(_arg0,_arg1); |
ab9bc19b | 1916 | |
474c48f9 | 1917 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1918 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1919 | } Py_INCREF(Py_None); |
70551f47 RD |
1920 | _resultobj = Py_None; |
1921 | return _resultobj; | |
1922 | } | |
1923 | ||
56f5d962 RD |
1924 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
1925 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1926 | PyObject * _resultobj; |
1927 | wxBitmap * _arg0; | |
1928 | int _arg1; | |
2d091820 | 1929 | PyObject * _argo0 = 0; |
56f5d962 | 1930 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
1931 | |
1932 | self = self; | |
56f5d962 | 1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1934 | return NULL; |
2d091820 RD |
1935 | if (_argo0) { |
1936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1939 | return NULL; |
1940 | } | |
1941 | } | |
ab9bc19b | 1942 | { |
474c48f9 | 1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 1944 | wxBitmap_SetDepth(_arg0,_arg1); |
ab9bc19b | 1945 | |
474c48f9 | 1946 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1947 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1948 | } Py_INCREF(Py_None); |
70551f47 RD |
1949 | _resultobj = Py_None; |
1950 | return _resultobj; | |
1951 | } | |
1952 | ||
f6bcfd97 BP |
1953 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
1954 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1955 | PyObject * _resultobj; | |
1956 | wxBitmap * _result; | |
1957 | wxBitmap * _arg0; | |
1958 | wxRect * _arg1; | |
1959 | PyObject * _argo0 = 0; | |
1960 | wxRect temp; | |
1961 | PyObject * _obj1 = 0; | |
1962 | char *_kwnames[] = { "self","rect", NULL }; | |
1963 | char _ptemp[128]; | |
1964 | ||
1965 | self = self; | |
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1967 | return NULL; | |
1968 | if (_argo0) { | |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1972 | return NULL; | |
1973 | } | |
1974 | } | |
1975 | { | |
1976 | _arg1 = &temp; | |
1977 | if (! wxRect_helper(_obj1, &_arg1)) | |
1978 | return NULL; | |
1979 | } | |
1980 | { | |
474c48f9 | 1981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1982 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
1983 | ||
474c48f9 | 1984 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1985 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1986 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1987 | _resultobj = Py_BuildValue("s",_ptemp); | |
1988 | return _resultobj; | |
1989 | } | |
1990 | ||
65191ae8 RD |
1991 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) |
1992 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject * _resultobj; | |
1994 | bool _result; | |
1995 | wxBitmap * _arg0; | |
1996 | wxIcon * _arg1; | |
1997 | PyObject * _argo0 = 0; | |
1998 | PyObject * _argo1 = 0; | |
1999 | char *_kwnames[] = { "self","icon", NULL }; | |
2000 | ||
2001 | self = self; | |
2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2003 | return NULL; | |
2004 | if (_argo0) { | |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2008 | return NULL; | |
2009 | } | |
2010 | } | |
2011 | if (_argo1) { | |
2012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2015 | return NULL; | |
2016 | } | |
2017 | } | |
2018 | { | |
474c48f9 | 2019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
2020 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
2021 | ||
474c48f9 | 2022 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
2023 | if (PyErr_Occurred()) return NULL; |
2024 | } _resultobj = Py_BuildValue("i",_result); | |
2025 | return _resultobj; | |
2026 | } | |
2027 | ||
9df61a29 RD |
2028 | static void *SwigwxMaskTowxObject(void *ptr) { |
2029 | wxMask *src; | |
2030 | wxObject *dest; | |
2031 | src = (wxMask *) ptr; | |
2032 | dest = (wxObject *) src; | |
2033 | return (void *) dest; | |
2034 | } | |
2035 | ||
70551f47 | 2036 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
107e4716 | 2037 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2038 | PyObject * _resultobj; |
2039 | wxMask * _result; | |
2040 | wxBitmap * _arg0; | |
2d091820 | 2041 | PyObject * _argo0 = 0; |
107e4716 | 2042 | char *_kwnames[] = { "bitmap", NULL }; |
70551f47 RD |
2043 | char _ptemp[128]; |
2044 | ||
2045 | self = self; | |
107e4716 | 2046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) |
70551f47 | 2047 | return NULL; |
2d091820 RD |
2048 | if (_argo0) { |
2049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
2051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); |
2052 | return NULL; | |
2053 | } | |
2054 | } | |
ab9bc19b | 2055 | { |
474c48f9 | 2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2057 | _result = (wxMask *)new_wxMask(*_arg0); |
2058 | ||
474c48f9 | 2059 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2060 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2061 | } if (_result) { |
2062 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2063 | _resultobj = Py_BuildValue("s",_ptemp); | |
2064 | } else { | |
2065 | Py_INCREF(Py_None); | |
2066 | _resultobj = Py_None; | |
2067 | } | |
70551f47 RD |
2068 | return _resultobj; |
2069 | } | |
2070 | ||
fbcadfca RD |
2071 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2072 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2073 | PyObject * _resultobj; | |
2074 | wxMask * _arg0; | |
2075 | PyObject * _argo0 = 0; | |
2076 | char *_kwnames[] = { "self", NULL }; | |
2077 | ||
2078 | self = self; | |
2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2080 | return NULL; | |
2081 | if (_argo0) { | |
2082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2085 | return NULL; | |
2086 | } | |
2087 | } | |
2088 | { | |
474c48f9 | 2089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fbcadfca RD |
2090 | wxMask_Destroy(_arg0); |
2091 | ||
474c48f9 | 2092 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2093 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2094 | } Py_INCREF(Py_None); |
2095 | _resultobj = Py_None; | |
2096 | return _resultobj; | |
2097 | } | |
2098 | ||
9df61a29 RD |
2099 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2100 | wxIcon *src; | |
2101 | wxGDIObject *dest; | |
2102 | src = (wxIcon *) ptr; | |
2103 | dest = (wxGDIObject *) src; | |
2104 | return (void *) dest; | |
2105 | } | |
2106 | ||
2107 | static void *SwigwxIconTowxObject(void *ptr) { | |
2108 | wxIcon *src; | |
2109 | wxObject *dest; | |
2110 | src = (wxIcon *) ptr; | |
2111 | dest = (wxObject *) src; | |
2112 | return (void *) dest; | |
2113 | } | |
2114 | ||
8bf5d46e | 2115 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 2116 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2117 | PyObject * _resultobj; |
2118 | wxIcon * _result; | |
2119 | wxString * _arg0; | |
2120 | long _arg1; | |
2d091820 RD |
2121 | int _arg2 = (int ) -1; |
2122 | int _arg3 = (int ) -1; | |
8bf5d46e | 2123 | PyObject * _obj0 = 0; |
107e4716 | 2124 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8bf5d46e RD |
2125 | char _ptemp[128]; |
2126 | ||
2127 | self = self; | |
107e4716 | 2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
2129 | return NULL; |
2130 | { | |
2cd2fac8 RD |
2131 | #if PYTHON_API_VERSION >= 1009 |
2132 | char* tmpPtr; int tmpSize; | |
2133 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 2134 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2135 | return NULL; |
2136 | } | |
2137 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2138 | return NULL; | |
2139 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2140 | #else | |
8bf5d46e RD |
2141 | if (!PyString_Check(_obj0)) { |
2142 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2143 | return NULL; | |
2144 | } | |
2cd2fac8 RD |
2145 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2146 | #endif | |
8bf5d46e RD |
2147 | } |
2148 | { | |
474c48f9 | 2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
2150 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
2151 | ||
474c48f9 | 2152 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2153 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2154 | } if (_result) { |
2155 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2156 | _resultobj = Py_BuildValue("s",_ptemp); | |
2157 | } else { | |
2158 | Py_INCREF(Py_None); | |
2159 | _resultobj = Py_None; | |
2160 | } | |
8bf5d46e RD |
2161 | { |
2162 | if (_obj0) | |
2163 | delete _arg0; | |
2164 | } | |
2165 | return _resultobj; | |
2166 | } | |
2167 | ||
70551f47 | 2168 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
107e4716 | 2169 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2170 | PyObject * _resultobj; |
2171 | wxIcon * _arg0; | |
2d091820 | 2172 | PyObject * _argo0 = 0; |
107e4716 | 2173 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2174 | |
2175 | self = self; | |
107e4716 | 2176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
70551f47 | 2177 | return NULL; |
2d091820 RD |
2178 | if (_argo0) { |
2179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); |
2182 | return NULL; | |
2183 | } | |
2184 | } | |
ab9bc19b | 2185 | { |
474c48f9 | 2186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2187 | delete_wxIcon(_arg0); |
2188 | ||
474c48f9 | 2189 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2190 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2191 | } Py_INCREF(Py_None); |
70551f47 RD |
2192 | _resultobj = Py_None; |
2193 | return _resultobj; | |
2194 | } | |
2195 | ||
56f5d962 RD |
2196 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
2197 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2198 | PyObject * _resultobj; |
56f5d962 | 2199 | bool _result; |
70551f47 | 2200 | wxIcon * _arg0; |
56f5d962 RD |
2201 | wxString * _arg1; |
2202 | long _arg2; | |
2d091820 | 2203 | PyObject * _argo0 = 0; |
56f5d962 RD |
2204 | PyObject * _obj1 = 0; |
2205 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
2206 | |
2207 | self = self; | |
56f5d962 | 2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 2209 | return NULL; |
2d091820 RD |
2210 | if (_argo0) { |
2211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); |
70551f47 RD |
2214 | return NULL; |
2215 | } | |
2216 | } | |
56f5d962 | 2217 | { |
2cd2fac8 RD |
2218 | #if PYTHON_API_VERSION >= 1009 |
2219 | char* tmpPtr; int tmpSize; | |
2220 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2221 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2222 | return NULL; |
2223 | } | |
2224 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2225 | return NULL; | |
2226 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2227 | #else | |
56f5d962 RD |
2228 | if (!PyString_Check(_obj1)) { |
2229 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2230 | return NULL; | |
2231 | } | |
2cd2fac8 RD |
2232 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2233 | #endif | |
56f5d962 | 2234 | } |
ab9bc19b | 2235 | { |
474c48f9 | 2236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 2237 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b | 2238 | |
474c48f9 | 2239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2240 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2241 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
2242 | { |
2243 | if (_obj1) | |
2244 | delete _arg1; | |
2245 | } | |
70551f47 RD |
2246 | return _resultobj; |
2247 | } | |
2248 | ||
56f5d962 RD |
2249 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
2250 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2251 | PyObject * _resultobj; |
56f5d962 | 2252 | bool _result; |
70551f47 | 2253 | wxIcon * _arg0; |
2d091820 | 2254 | PyObject * _argo0 = 0; |
107e4716 | 2255 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2256 | |
2257 | self = self; | |
56f5d962 | 2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) |
70551f47 | 2259 | return NULL; |
2d091820 RD |
2260 | if (_argo0) { |
2261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); |
70551f47 RD |
2264 | return NULL; |
2265 | } | |
2266 | } | |
ab9bc19b | 2267 | { |
474c48f9 | 2268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 2269 | _result = (bool )wxIcon_Ok(_arg0); |
ab9bc19b | 2270 | |
474c48f9 | 2271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2272 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2273 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2274 | return _resultobj; |
2275 | } | |
2276 | ||
2277 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 2278 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2279 | PyObject * _resultobj; |
2280 | int _result; | |
2281 | wxIcon * _arg0; | |
2d091820 | 2282 | PyObject * _argo0 = 0; |
107e4716 | 2283 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2284 | |
2285 | self = self; | |
107e4716 | 2286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) |
70551f47 | 2287 | return NULL; |
2d091820 RD |
2288 | if (_argo0) { |
2289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); |
2292 | return NULL; | |
2293 | } | |
2294 | } | |
ab9bc19b | 2295 | { |
474c48f9 | 2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2297 | _result = (int )wxIcon_GetWidth(_arg0); |
2298 | ||
474c48f9 | 2299 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2300 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2301 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2302 | return _resultobj; |
2303 | } | |
2304 | ||
56f5d962 RD |
2305 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) |
2306 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2307 | PyObject * _resultobj; |
56f5d962 | 2308 | int _result; |
70551f47 | 2309 | wxIcon * _arg0; |
2d091820 | 2310 | PyObject * _argo0 = 0; |
56f5d962 | 2311 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2312 | |
2313 | self = self; | |
56f5d962 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) |
70551f47 | 2315 | return NULL; |
2d091820 RD |
2316 | if (_argo0) { |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); |
70551f47 RD |
2320 | return NULL; |
2321 | } | |
2322 | } | |
ab9bc19b | 2323 | { |
474c48f9 | 2324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 2325 | _result = (int )wxIcon_GetHeight(_arg0); |
ab9bc19b | 2326 | |
474c48f9 | 2327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2328 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2329 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2330 | return _resultobj; |
2331 | } | |
2332 | ||
56f5d962 RD |
2333 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) |
2334 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2335 | PyObject * _resultobj; |
56f5d962 | 2336 | int _result; |
70551f47 | 2337 | wxIcon * _arg0; |
2d091820 | 2338 | PyObject * _argo0 = 0; |
107e4716 | 2339 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2340 | |
2341 | self = self; | |
56f5d962 | 2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) |
70551f47 | 2343 | return NULL; |
2d091820 RD |
2344 | if (_argo0) { |
2345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2348 | return NULL; |
2349 | } | |
2350 | } | |
ab9bc19b | 2351 | { |
474c48f9 | 2352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 2353 | _result = (int )wxIcon_GetDepth(_arg0); |
ab9bc19b | 2354 | |
474c48f9 | 2355 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2356 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2357 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2358 | return _resultobj; |
2359 | } | |
2360 | ||
56f5d962 RD |
2361 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
2362 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2363 | PyObject * _resultobj; |
2364 | wxIcon * _arg0; | |
2365 | int _arg1; | |
2d091820 | 2366 | PyObject * _argo0 = 0; |
56f5d962 | 2367 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
2368 | |
2369 | self = self; | |
56f5d962 | 2370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2371 | return NULL; |
2d091820 RD |
2372 | if (_argo0) { |
2373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); |
70551f47 RD |
2376 | return NULL; |
2377 | } | |
2378 | } | |
ab9bc19b | 2379 | { |
474c48f9 | 2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 2381 | wxIcon_SetWidth(_arg0,_arg1); |
ab9bc19b | 2382 | |
474c48f9 | 2383 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2384 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2385 | } Py_INCREF(Py_None); |
70551f47 RD |
2386 | _resultobj = Py_None; |
2387 | return _resultobj; | |
2388 | } | |
2389 | ||
2390 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
107e4716 | 2391 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2392 | PyObject * _resultobj; |
2393 | wxIcon * _arg0; | |
2394 | int _arg1; | |
2d091820 | 2395 | PyObject * _argo0 = 0; |
56f5d962 | 2396 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
2397 | |
2398 | self = self; | |
107e4716 | 2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2400 | return NULL; |
2d091820 RD |
2401 | if (_argo0) { |
2402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); |
2405 | return NULL; | |
2406 | } | |
2407 | } | |
ab9bc19b | 2408 | { |
474c48f9 | 2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2410 | wxIcon_SetHeight(_arg0,_arg1); |
2411 | ||
474c48f9 | 2412 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2413 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2414 | } Py_INCREF(Py_None); |
70551f47 RD |
2415 | _resultobj = Py_None; |
2416 | return _resultobj; | |
2417 | } | |
2418 | ||
56f5d962 RD |
2419 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
2420 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2421 | PyObject * _resultobj; |
2422 | wxIcon * _arg0; | |
2423 | int _arg1; | |
2d091820 | 2424 | PyObject * _argo0 = 0; |
56f5d962 | 2425 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
2426 | |
2427 | self = self; | |
56f5d962 | 2428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2429 | return NULL; |
2d091820 RD |
2430 | if (_argo0) { |
2431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2434 | return NULL; |
2435 | } | |
2436 | } | |
ab9bc19b | 2437 | { |
474c48f9 | 2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 | 2439 | wxIcon_SetDepth(_arg0,_arg1); |
ab9bc19b | 2440 | |
474c48f9 | 2441 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2442 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2443 | } Py_INCREF(Py_None); |
70551f47 RD |
2444 | _resultobj = Py_None; |
2445 | return _resultobj; | |
2446 | } | |
2447 | ||
fbcadfca RD |
2448 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2449 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject * _resultobj; | |
2451 | wxIcon * _arg0; | |
2452 | wxBitmap * _arg1; | |
2453 | PyObject * _argo0 = 0; | |
2454 | PyObject * _argo1 = 0; | |
2455 | char *_kwnames[] = { "self","bmp", NULL }; | |
2456 | ||
2457 | self = self; | |
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2459 | return NULL; | |
2460 | if (_argo0) { | |
2461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2464 | return NULL; | |
2465 | } | |
2466 | } | |
2467 | if (_argo1) { | |
2468 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2469 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2471 | return NULL; | |
2472 | } | |
2473 | } | |
2474 | { | |
474c48f9 | 2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fbcadfca RD |
2476 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
2477 | ||
474c48f9 | 2478 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2479 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2480 | } Py_INCREF(Py_None); |
2481 | _resultobj = Py_None; | |
2482 | return _resultobj; | |
2483 | } | |
2484 | ||
9df61a29 RD |
2485 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2486 | wxCursor *src; | |
2487 | wxGDIObject *dest; | |
2488 | src = (wxCursor *) ptr; | |
2489 | dest = (wxGDIObject *) src; | |
2490 | return (void *) dest; | |
2491 | } | |
2492 | ||
2493 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2494 | wxCursor *src; | |
2495 | wxObject *dest; | |
2496 | src = (wxCursor *) ptr; | |
2497 | dest = (wxObject *) src; | |
2498 | return (void *) dest; | |
2499 | } | |
2500 | ||
70551f47 | 2501 | #define delete_wxCursor(_swigobj) (delete _swigobj) |
107e4716 | 2502 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2503 | PyObject * _resultobj; |
2504 | wxCursor * _arg0; | |
2d091820 | 2505 | PyObject * _argo0 = 0; |
107e4716 | 2506 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2507 | |
2508 | self = self; | |
107e4716 | 2509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) |
70551f47 | 2510 | return NULL; |
2d091820 RD |
2511 | if (_argo0) { |
2512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); |
2515 | return NULL; | |
2516 | } | |
2517 | } | |
ab9bc19b | 2518 | { |
474c48f9 | 2519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2520 | delete_wxCursor(_arg0); |
2521 | ||
474c48f9 | 2522 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2523 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2524 | } Py_INCREF(Py_None); |
70551f47 RD |
2525 | _resultobj = Py_None; |
2526 | return _resultobj; | |
2527 | } | |
2528 | ||
2529 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 2530 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2531 | PyObject * _resultobj; |
2532 | bool _result; | |
2533 | wxCursor * _arg0; | |
2d091820 | 2534 | PyObject * _argo0 = 0; |
107e4716 | 2535 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2536 | |
2537 | self = self; | |
107e4716 | 2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) |
70551f47 | 2539 | return NULL; |
2d091820 RD |
2540 | if (_argo0) { |
2541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); |
2544 | return NULL; | |
2545 | } | |
2546 | } | |
ab9bc19b | 2547 | { |
474c48f9 | 2548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2549 | _result = (bool )wxCursor_Ok(_arg0); |
2550 | ||
474c48f9 | 2551 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2552 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2553 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2554 | return _resultobj; |
2555 | } | |
2556 | ||
1893b029 RD |
2557 | #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0)) |
2558 | static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2559 | PyObject * _resultobj; | |
2560 | bool _result; | |
2561 | wxNativeFontInfo * _arg0; | |
2562 | wxString * _arg1; | |
2563 | PyObject * _argo0 = 0; | |
2564 | PyObject * _obj1 = 0; | |
2565 | char *_kwnames[] = { "self","xFontName", NULL }; | |
2566 | ||
2567 | self = self; | |
2568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1)) | |
2569 | return NULL; | |
2570 | if (_argo0) { | |
2571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p."); | |
2574 | return NULL; | |
2575 | } | |
2576 | } | |
2577 | { | |
2578 | #if PYTHON_API_VERSION >= 1009 | |
2579 | char* tmpPtr; int tmpSize; | |
2580 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2581 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2582 | return NULL; | |
2583 | } | |
2584 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2585 | return NULL; | |
2586 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2587 | #else | |
2588 | if (!PyString_Check(_obj1)) { | |
2589 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2590 | return NULL; | |
2591 | } | |
2592 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2593 | #endif | |
2594 | } | |
2595 | { | |
2596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2597 | _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1); | |
2598 | ||
2599 | wxPyEndAllowThreads(__tstate); | |
2600 | if (PyErr_Occurred()) return NULL; | |
2601 | } _resultobj = Py_BuildValue("i",_result); | |
2602 | { | |
2603 | if (_obj1) | |
2604 | delete _arg1; | |
2605 | } | |
2606 | return _resultobj; | |
2607 | } | |
2608 | ||
85247b36 RD |
2609 | #define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault()) |
2610 | static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject * _resultobj; | |
2612 | bool _result; | |
2613 | wxNativeFontInfo * _arg0; | |
2614 | PyObject * _argo0 = 0; | |
2615 | char *_kwnames[] = { "self", NULL }; | |
2616 | ||
2617 | self = self; | |
2618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0)) | |
2619 | return NULL; | |
2620 | if (_argo0) { | |
2621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p."); | |
2624 | return NULL; | |
2625 | } | |
2626 | } | |
2627 | { | |
2628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2629 | _result = (bool )wxNativeFontInfo_IsDefault(_arg0); | |
2630 | ||
2631 | wxPyEndAllowThreads(__tstate); | |
2632 | if (PyErr_Occurred()) return NULL; | |
2633 | } _resultobj = Py_BuildValue("i",_result); | |
2634 | return _resultobj; | |
2635 | } | |
2636 | ||
1893b029 RD |
2637 | #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName()) |
2638 | static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2639 | PyObject * _resultobj; | |
2640 | wxString * _result; | |
2641 | wxNativeFontInfo * _arg0; | |
2642 | PyObject * _argo0 = 0; | |
2643 | char *_kwnames[] = { "self", NULL }; | |
2644 | ||
2645 | self = self; | |
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0)) | |
2647 | return NULL; | |
2648 | if (_argo0) { | |
2649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p."); | |
2652 | return NULL; | |
2653 | } | |
2654 | } | |
2655 | { | |
2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2657 | _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0)); | |
2658 | ||
2659 | wxPyEndAllowThreads(__tstate); | |
2660 | if (PyErr_Occurred()) return NULL; | |
2661 | }{ | |
2662 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2663 | } | |
2664 | { | |
2665 | delete _result; | |
2666 | } | |
2667 | return _resultobj; | |
2668 | } | |
2669 | ||
85247b36 RD |
2670 | #define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0)) |
2671 | static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2672 | PyObject * _resultobj; | |
2673 | wxNativeFontInfo * _arg0; | |
2674 | wxString * _arg1; | |
2675 | PyObject * _argo0 = 0; | |
2676 | PyObject * _obj1 = 0; | |
2677 | char *_kwnames[] = { "self","xFontName", NULL }; | |
2678 | ||
2679 | self = self; | |
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1)) | |
2681 | return NULL; | |
2682 | if (_argo0) { | |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p."); | |
2686 | return NULL; | |
2687 | } | |
2688 | } | |
2689 | { | |
2690 | #if PYTHON_API_VERSION >= 1009 | |
2691 | char* tmpPtr; int tmpSize; | |
2692 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2693 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2694 | return NULL; | |
2695 | } | |
2696 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2697 | return NULL; | |
2698 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2699 | #else | |
2700 | if (!PyString_Check(_obj1)) { | |
2701 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2702 | return NULL; | |
2703 | } | |
2704 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2705 | #endif | |
2706 | } | |
2707 | { | |
2708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2709 | wxNativeFontInfo_SetXFontName(_arg0,*_arg1); | |
2710 | ||
2711 | wxPyEndAllowThreads(__tstate); | |
2712 | if (PyErr_Occurred()) return NULL; | |
2713 | } Py_INCREF(Py_None); | |
2714 | _resultobj = Py_None; | |
2715 | { | |
2716 | if (_obj1) | |
2717 | delete _arg1; | |
2718 | } | |
2719 | return _resultobj; | |
2720 | } | |
2721 | ||
1893b029 RD |
2722 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) |
2723 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2724 | PyObject * _resultobj; | |
2725 | wxNativeFontInfo * _result; | |
2726 | char *_kwnames[] = { NULL }; | |
2727 | char _ptemp[128]; | |
2728 | ||
2729 | self = self; | |
2730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
2731 | return NULL; | |
2732 | { | |
2733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2734 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); | |
2735 | ||
2736 | wxPyEndAllowThreads(__tstate); | |
2737 | if (PyErr_Occurred()) return NULL; | |
2738 | } if (_result) { | |
2739 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
2740 | _resultobj = Py_BuildValue("s",_ptemp); | |
2741 | } else { | |
2742 | Py_INCREF(Py_None); | |
2743 | _resultobj = Py_None; | |
2744 | } | |
2745 | return _resultobj; | |
2746 | } | |
2747 | ||
2748 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
2749 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject * _resultobj; | |
2751 | wxNativeFontInfo * _arg0; | |
2752 | PyObject * _argo0 = 0; | |
2753 | char *_kwnames[] = { "self", NULL }; | |
2754 | ||
2755 | self = self; | |
2756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
2757 | return NULL; | |
2758 | if (_argo0) { | |
2759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
2762 | return NULL; | |
2763 | } | |
2764 | } | |
2765 | { | |
2766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2767 | wxNativeFontInfo_Init(_arg0); | |
2768 | ||
2769 | wxPyEndAllowThreads(__tstate); | |
2770 | if (PyErr_Occurred()) return NULL; | |
2771 | } Py_INCREF(Py_None); | |
2772 | _resultobj = Py_None; | |
2773 | return _resultobj; | |
2774 | } | |
2775 | ||
059a841c RD |
2776 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
2777 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2778 | PyObject * _resultobj; |
059a841c RD |
2779 | bool _result; |
2780 | wxNativeFontInfo * _arg0; | |
2781 | wxString * _arg1; | |
2782 | PyObject * _argo0 = 0; | |
2783 | PyObject * _obj1 = 0; | |
2784 | char *_kwnames[] = { "self","s", NULL }; | |
70551f47 RD |
2785 | |
2786 | self = self; | |
059a841c RD |
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) |
2788 | return NULL; | |
2789 | if (_argo0) { | |
2790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
2793 | return NULL; | |
2794 | } | |
2795 | } | |
2796 | { | |
2797 | #if PYTHON_API_VERSION >= 1009 | |
2798 | char* tmpPtr; int tmpSize; | |
2799 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2800 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2801 | return NULL; | |
2802 | } | |
2803 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2804 | return NULL; | |
2805 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2806 | #else | |
2807 | if (!PyString_Check(_obj1)) { | |
2808 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
70551f47 | 2809 | return NULL; |
059a841c RD |
2810 | } |
2811 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2812 | #endif | |
2813 | } | |
ab9bc19b | 2814 | { |
474c48f9 | 2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 2816 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
ab9bc19b | 2817 | |
474c48f9 | 2818 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2819 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2820 | } _resultobj = Py_BuildValue("i",_result); |
2821 | { | |
2822 | if (_obj1) | |
2823 | delete _arg1; | |
2824 | } | |
70551f47 RD |
2825 | return _resultobj; |
2826 | } | |
2827 | ||
059a841c RD |
2828 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
2829 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5e40f9dd | 2830 | PyObject * _resultobj; |
059a841c RD |
2831 | wxString * _result; |
2832 | wxNativeFontInfo * _arg0; | |
5e40f9dd RD |
2833 | PyObject * _argo0 = 0; |
2834 | char *_kwnames[] = { "self", NULL }; | |
2835 | ||
2836 | self = self; | |
059a841c | 2837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) |
5e40f9dd RD |
2838 | return NULL; |
2839 | if (_argo0) { | |
2840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
5e40f9dd RD |
2843 | return NULL; |
2844 | } | |
2845 | } | |
2846 | { | |
474c48f9 | 2847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 2848 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
5e40f9dd | 2849 | |
474c48f9 | 2850 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2851 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2852 | }{ |
2853 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2854 | } | |
2855 | { | |
2856 | delete _result; | |
2857 | } | |
5e40f9dd RD |
2858 | return _resultobj; |
2859 | } | |
2860 | ||
059a841c RD |
2861 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { |
2862 | return self->ToString(); | |
2863 | } | |
2864 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d29aba2f | 2865 | PyObject * _resultobj; |
059a841c RD |
2866 | wxString * _result; |
2867 | wxNativeFontInfo * _arg0; | |
d29aba2f RD |
2868 | PyObject * _argo0 = 0; |
2869 | char *_kwnames[] = { "self", NULL }; | |
2870 | ||
2871 | self = self; | |
059a841c | 2872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) |
d29aba2f RD |
2873 | return NULL; |
2874 | if (_argo0) { | |
2875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
d29aba2f RD |
2878 | return NULL; |
2879 | } | |
2880 | } | |
2881 | { | |
474c48f9 | 2882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 2883 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
d29aba2f | 2884 | |
474c48f9 | 2885 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2886 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2887 | }{ |
2888 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2889 | } | |
2890 | { | |
2891 | delete _result; | |
2892 | } | |
d29aba2f RD |
2893 | return _resultobj; |
2894 | } | |
2895 | ||
1893b029 RD |
2896 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
2897 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2898 | PyObject * _resultobj; | |
2899 | bool _result; | |
2900 | wxNativeFontInfo * _arg0; | |
2901 | wxString * _arg1; | |
2902 | PyObject * _argo0 = 0; | |
2903 | PyObject * _obj1 = 0; | |
2904 | char *_kwnames[] = { "self","s", NULL }; | |
2905 | ||
2906 | self = self; | |
2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
2908 | return NULL; | |
2909 | if (_argo0) { | |
2910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
2913 | return NULL; | |
2914 | } | |
2915 | } | |
2916 | { | |
2917 | #if PYTHON_API_VERSION >= 1009 | |
2918 | char* tmpPtr; int tmpSize; | |
2919 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2920 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2921 | return NULL; | |
2922 | } | |
2923 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2924 | return NULL; | |
2925 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2926 | #else | |
2927 | if (!PyString_Check(_obj1)) { | |
2928 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2929 | return NULL; | |
2930 | } | |
2931 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2932 | #endif | |
2933 | } | |
2934 | { | |
2935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2936 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); | |
2937 | ||
2938 | wxPyEndAllowThreads(__tstate); | |
2939 | if (PyErr_Occurred()) return NULL; | |
2940 | } _resultobj = Py_BuildValue("i",_result); | |
2941 | { | |
2942 | if (_obj1) | |
2943 | delete _arg1; | |
2944 | } | |
2945 | return _resultobj; | |
2946 | } | |
2947 | ||
2948 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
2949 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2950 | PyObject * _resultobj; | |
2951 | wxString * _result; | |
2952 | wxNativeFontInfo * _arg0; | |
2953 | PyObject * _argo0 = 0; | |
2954 | char *_kwnames[] = { "self", NULL }; | |
2955 | ||
2956 | self = self; | |
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
2958 | return NULL; | |
2959 | if (_argo0) { | |
2960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
2963 | return NULL; | |
2964 | } | |
2965 | } | |
2966 | { | |
2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2968 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); | |
2969 | ||
2970 | wxPyEndAllowThreads(__tstate); | |
2971 | if (PyErr_Occurred()) return NULL; | |
2972 | }{ | |
2973 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2974 | } | |
2975 | { | |
2976 | delete _result; | |
2977 | } | |
2978 | return _resultobj; | |
2979 | } | |
2980 | ||
059a841c RD |
2981 | #define new_wxFontMapper() (new wxFontMapper()) |
2982 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2983 | PyObject * _resultobj; |
059a841c RD |
2984 | wxFontMapper * _result; |
2985 | char *_kwnames[] = { NULL }; | |
2986 | char _ptemp[128]; | |
2987 | ||
2988 | self = self; | |
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) | |
2990 | return NULL; | |
2991 | { | |
474c48f9 | 2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
2993 | _result = (wxFontMapper *)new_wxFontMapper(); |
2994 | ||
474c48f9 | 2995 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2996 | if (PyErr_Occurred()) return NULL; |
2997 | } if (_result) { | |
2998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); | |
2999 | _resultobj = Py_BuildValue("s",_ptemp); | |
3000 | } else { | |
3001 | Py_INCREF(Py_None); | |
3002 | _resultobj = Py_None; | |
3003 | } | |
3004 | return _resultobj; | |
3005 | } | |
3006 | ||
3007 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) | |
3008 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3009 | PyObject * _resultobj; | |
3010 | wxFontMapper * _arg0; | |
2d091820 | 3011 | PyObject * _argo0 = 0; |
107e4716 | 3012 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3013 | |
3014 | self = self; | |
059a841c | 3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
70551f47 | 3016 | return NULL; |
2d091820 RD |
3017 | if (_argo0) { |
3018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
3019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
70551f47 RD |
3021 | return NULL; |
3022 | } | |
3023 | } | |
70551f47 | 3024 | { |
474c48f9 | 3025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 3026 | delete_wxFontMapper(_arg0); |
ab9bc19b | 3027 | |
474c48f9 | 3028 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3029 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3030 | } Py_INCREF(Py_None); |
3031 | _resultobj = Py_None; | |
70551f47 RD |
3032 | return _resultobj; |
3033 | } | |
3034 | ||
059a841c RD |
3035 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
3036 | wxFontEncoding alt_enc; | |
3037 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3038 | return PyInt_FromLong(alt_enc); | |
3039 | else { | |
3040 | Py_INCREF(Py_None); | |
3041 | return Py_None; | |
3042 | } | |
3043 | } | |
3044 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3045 | PyObject * _resultobj; |
059a841c RD |
3046 | PyObject * _result; |
3047 | wxFontMapper * _arg0; | |
3048 | wxFontEncoding _arg1; | |
3049 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3050 | bool _arg3 = (bool ) TRUE; | |
2d091820 | 3051 | PyObject * _argo0 = 0; |
059a841c RD |
3052 | PyObject * _obj2 = 0; |
3053 | int tempbool3 = (int) TRUE; | |
3054 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
70551f47 RD |
3055 | |
3056 | self = self; | |
059a841c | 3057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
70551f47 | 3058 | return NULL; |
2d091820 RD |
3059 | if (_argo0) { |
3060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
3061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
70551f47 RD |
3063 | return NULL; |
3064 | } | |
3065 | } | |
059a841c RD |
3066 | if (_obj2) |
3067 | { | |
3068 | #if PYTHON_API_VERSION >= 1009 | |
3069 | char* tmpPtr; int tmpSize; | |
3070 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3071 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3072 | return NULL; | |
3073 | } | |
3074 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3075 | return NULL; | |
3076 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3077 | #else | |
3078 | if (!PyString_Check(_obj2)) { | |
3079 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3080 | return NULL; | |
3081 | } | |
3082 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3083 | #endif | |
3084 | } | |
3085 | _arg3 = (bool ) tempbool3; | |
ab9bc19b | 3086 | { |
474c48f9 | 3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 3088 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
ab9bc19b | 3089 | |
474c48f9 | 3090 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3091 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3092 | }{ |
3093 | _resultobj = _result; | |
3094 | } | |
3095 | { | |
3096 | if (_obj2) | |
3097 | delete _arg2; | |
3098 | } | |
70551f47 RD |
3099 | return _resultobj; |
3100 | } | |
3101 | ||
059a841c RD |
3102 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
3103 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3104 | PyObject * _resultobj; |
059a841c RD |
3105 | bool _result; |
3106 | wxFontMapper * _arg0; | |
3107 | wxFontEncoding _arg1; | |
3108 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2d091820 | 3109 | PyObject * _argo0 = 0; |
059a841c RD |
3110 | PyObject * _obj2 = 0; |
3111 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
70551f47 RD |
3112 | |
3113 | self = self; | |
059a841c | 3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 3115 | return NULL; |
2d091820 RD |
3116 | if (_argo0) { |
3117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
3118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
70551f47 RD |
3120 | return NULL; |
3121 | } | |
3122 | } | |
059a841c RD |
3123 | if (_obj2) |
3124 | { | |
3125 | #if PYTHON_API_VERSION >= 1009 | |
3126 | char* tmpPtr; int tmpSize; | |
3127 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3128 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3129 | return NULL; | |
3130 | } | |
3131 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3132 | return NULL; | |
3133 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3134 | #else | |
3135 | if (!PyString_Check(_obj2)) { | |
3136 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3137 | return NULL; | |
3138 | } | |
3139 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3140 | #endif | |
3141 | } | |
ab9bc19b | 3142 | { |
474c48f9 | 3143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 3144 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
ab9bc19b | 3145 | |
474c48f9 | 3146 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3147 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3148 | } _resultobj = Py_BuildValue("i",_result); |
059a841c RD |
3149 | { |
3150 | if (_obj2) | |
3151 | delete _arg2; | |
3152 | } | |
70551f47 RD |
3153 | return _resultobj; |
3154 | } | |
3155 | ||
059a841c RD |
3156 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
3157 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3158 | PyObject * _resultobj; |
059a841c RD |
3159 | wxFontEncoding _result; |
3160 | wxFontMapper * _arg0; | |
3161 | wxString * _arg1; | |
3162 | bool _arg2 = (bool ) TRUE; | |
2d091820 | 3163 | PyObject * _argo0 = 0; |
059a841c RD |
3164 | PyObject * _obj1 = 0; |
3165 | int tempbool2 = (int) TRUE; | |
3166 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
70551f47 RD |
3167 | |
3168 | self = self; | |
059a841c | 3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 3170 | return NULL; |
2d091820 RD |
3171 | if (_argo0) { |
3172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
3173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
70551f47 RD |
3175 | return NULL; |
3176 | } | |
3177 | } | |
ab9bc19b | 3178 | { |
059a841c RD |
3179 | #if PYTHON_API_VERSION >= 1009 |
3180 | char* tmpPtr; int tmpSize; | |
3181 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3182 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3183 | return NULL; | |
3184 | } | |
3185 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3186 | return NULL; | |
3187 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3188 | #else | |
3189 | if (!PyString_Check(_obj1)) { | |
3190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3191 | return NULL; | |
3192 | } | |
3193 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3194 | #endif | |
3195 | } | |
3196 | _arg2 = (bool ) tempbool2; | |
3197 | { | |
474c48f9 | 3198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3199 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
3200 | ||
474c48f9 | 3201 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3202 | if (PyErr_Occurred()) return NULL; |
3203 | } _resultobj = Py_BuildValue("i",_result); | |
3204 | { | |
3205 | if (_obj1) | |
3206 | delete _arg1; | |
3207 | } | |
3208 | return _resultobj; | |
3209 | } | |
3210 | ||
3211 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3212 | PyObject * _resultobj; | |
3213 | wxString * _result; | |
3214 | wxFontEncoding _arg0; | |
3215 | char *_kwnames[] = { "encoding", NULL }; | |
3216 | ||
3217 | self = self; | |
3218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
3219 | return NULL; | |
3220 | { | |
474c48f9 | 3221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3222 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
3223 | ||
474c48f9 | 3224 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3225 | if (PyErr_Occurred()) return NULL; |
3226 | }{ | |
3227 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3228 | } | |
3229 | { | |
3230 | delete _result; | |
3231 | } | |
3232 | return _resultobj; | |
3233 | } | |
3234 | ||
3235 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject * _resultobj; | |
3237 | wxString * _result; | |
3238 | wxFontEncoding _arg0; | |
3239 | char *_kwnames[] = { "encoding", NULL }; | |
3240 | ||
3241 | self = self; | |
3242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
3243 | return NULL; | |
3244 | { | |
474c48f9 | 3245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3246 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
3247 | ||
474c48f9 | 3248 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3249 | if (PyErr_Occurred()) return NULL; |
3250 | }{ | |
3251 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3252 | } | |
3253 | { | |
3254 | delete _result; | |
3255 | } | |
3256 | return _resultobj; | |
3257 | } | |
3258 | ||
3259 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
3260 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3261 | PyObject * _resultobj; | |
3262 | wxFontMapper * _arg0; | |
3263 | wxWindow * _arg1; | |
3264 | PyObject * _argo0 = 0; | |
3265 | PyObject * _argo1 = 0; | |
3266 | char *_kwnames[] = { "self","parent", NULL }; | |
3267 | ||
3268 | self = self; | |
3269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
3270 | return NULL; | |
3271 | if (_argo0) { | |
3272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
3275 | return NULL; | |
3276 | } | |
3277 | } | |
3278 | if (_argo1) { | |
3279 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3280 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
3282 | return NULL; | |
3283 | } | |
3284 | } | |
3285 | { | |
474c48f9 | 3286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3287 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
3288 | ||
474c48f9 | 3289 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3290 | if (PyErr_Occurred()) return NULL; |
3291 | } Py_INCREF(Py_None); | |
3292 | _resultobj = Py_None; | |
3293 | return _resultobj; | |
3294 | } | |
3295 | ||
3296 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
3297 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3298 | PyObject * _resultobj; | |
3299 | wxFontMapper * _arg0; | |
3300 | wxString * _arg1; | |
3301 | PyObject * _argo0 = 0; | |
3302 | PyObject * _obj1 = 0; | |
3303 | char *_kwnames[] = { "self","title", NULL }; | |
3304 | ||
3305 | self = self; | |
3306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3307 | return NULL; | |
3308 | if (_argo0) { | |
3309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3312 | return NULL; | |
3313 | } | |
3314 | } | |
3315 | { | |
3316 | #if PYTHON_API_VERSION >= 1009 | |
3317 | char* tmpPtr; int tmpSize; | |
3318 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3319 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3320 | return NULL; | |
3321 | } | |
3322 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3323 | return NULL; | |
3324 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3325 | #else | |
3326 | if (!PyString_Check(_obj1)) { | |
3327 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3328 | return NULL; | |
3329 | } | |
3330 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3331 | #endif | |
3332 | } | |
3333 | { | |
474c48f9 | 3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3335 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
3336 | ||
474c48f9 | 3337 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3338 | if (PyErr_Occurred()) return NULL; |
3339 | } Py_INCREF(Py_None); | |
3340 | _resultobj = Py_None; | |
3341 | { | |
3342 | if (_obj1) | |
3343 | delete _arg1; | |
3344 | } | |
3345 | return _resultobj; | |
3346 | } | |
3347 | ||
3348 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3349 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3350 | PyObject * _resultobj; | |
3351 | wxFontMapper * _arg0; | |
3352 | wxConfigBase * _arg1; | |
3353 | PyObject * _argo0 = 0; | |
3354 | PyObject * _argo1 = 0; | |
3355 | char *_kwnames[] = { "self","config", NULL }; | |
3356 | ||
3357 | self = self; | |
3358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3359 | return NULL; | |
3360 | if (_argo0) { | |
3361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3364 | return NULL; | |
3365 | } | |
3366 | } | |
3367 | if (_argo1) { | |
3368 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3369 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3371 | return NULL; | |
3372 | } | |
3373 | } | |
3374 | { | |
474c48f9 | 3375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3376 | wxFontMapper_SetConfig(_arg0,_arg1); |
3377 | ||
474c48f9 | 3378 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3379 | if (PyErr_Occurred()) return NULL; |
3380 | } Py_INCREF(Py_None); | |
3381 | _resultobj = Py_None; | |
3382 | return _resultobj; | |
3383 | } | |
3384 | ||
3385 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3386 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3387 | PyObject * _resultobj; | |
3388 | wxFontMapper * _arg0; | |
3389 | wxString * _arg1; | |
3390 | PyObject * _argo0 = 0; | |
3391 | PyObject * _obj1 = 0; | |
3392 | char *_kwnames[] = { "self","prefix", NULL }; | |
3393 | ||
3394 | self = self; | |
3395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3396 | return NULL; | |
3397 | if (_argo0) { | |
3398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3401 | return NULL; | |
3402 | } | |
3403 | } | |
3404 | { | |
3405 | #if PYTHON_API_VERSION >= 1009 | |
3406 | char* tmpPtr; int tmpSize; | |
3407 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3408 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3409 | return NULL; | |
3410 | } | |
3411 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3412 | return NULL; | |
3413 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3414 | #else | |
3415 | if (!PyString_Check(_obj1)) { | |
3416 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3417 | return NULL; | |
3418 | } | |
3419 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3420 | #endif | |
3421 | } | |
3422 | { | |
474c48f9 | 3423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3424 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
3425 | ||
474c48f9 | 3426 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3427 | if (PyErr_Occurred()) return NULL; |
3428 | } Py_INCREF(Py_None); | |
3429 | _resultobj = Py_None; | |
3430 | { | |
3431 | if (_obj1) | |
3432 | delete _arg1; | |
3433 | } | |
3434 | return _resultobj; | |
3435 | } | |
3436 | ||
3437 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3438 | PyObject * _resultobj; | |
3439 | wxChar * _result; | |
3440 | char *_kwnames[] = { NULL }; | |
3441 | ||
3442 | self = self; | |
3443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3444 | return NULL; | |
3445 | { | |
474c48f9 | 3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3447 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); |
3448 | ||
474c48f9 | 3449 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3450 | if (PyErr_Occurred()) return NULL; |
3451 | } _resultobj = Py_BuildValue("s", _result); | |
3452 | return _resultobj; | |
3453 | } | |
3454 | ||
3455 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3456 | wxFont *src; | |
3457 | wxGDIObject *dest; | |
3458 | src = (wxFont *) ptr; | |
3459 | dest = (wxGDIObject *) src; | |
3460 | return (void *) dest; | |
3461 | } | |
3462 | ||
3463 | static void *SwigwxFontTowxObject(void *ptr) { | |
3464 | wxFont *src; | |
3465 | wxObject *dest; | |
3466 | src = (wxFont *) ptr; | |
3467 | dest = (wxObject *) src; | |
3468 | return (void *) dest; | |
3469 | } | |
3470 | ||
3471 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3472 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3473 | PyObject * _resultobj; | |
3474 | wxFont * _result; | |
3475 | int _arg0; | |
3476 | int _arg1; | |
3477 | int _arg2; | |
3478 | int _arg3; | |
3479 | int _arg4 = (int ) FALSE; | |
3480 | char * _arg5 = (char *) ""; | |
3481 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3482 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3483 | char _ptemp[128]; | |
3484 | ||
3485 | self = self; | |
3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3487 | return NULL; | |
3488 | { | |
474c48f9 | 3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3490 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
3491 | ||
474c48f9 | 3492 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3493 | if (PyErr_Occurred()) return NULL; |
3494 | } if (_result) { | |
3495 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3496 | _resultobj = Py_BuildValue("s",_ptemp); | |
3497 | } else { | |
3498 | Py_INCREF(Py_None); | |
3499 | _resultobj = Py_None; | |
3500 | } | |
3501 | return _resultobj; | |
3502 | } | |
3503 | ||
3504 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3505 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject * _resultobj; | |
3507 | wxFont * _result; | |
3508 | wxNativeFontInfo * _arg0; | |
3509 | PyObject * _argo0 = 0; | |
3510 | char *_kwnames[] = { "info", NULL }; | |
3511 | char _ptemp[128]; | |
3512 | ||
3513 | self = self; | |
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3515 | return NULL; | |
3516 | if (_argo0) { | |
3517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3520 | return NULL; | |
3521 | } | |
3522 | } | |
3523 | { | |
474c48f9 | 3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3525 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
3526 | ||
474c48f9 | 3527 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3528 | if (PyErr_Occurred()) return NULL; |
3529 | } if (_result) { | |
3530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3531 | _resultobj = Py_BuildValue("s",_ptemp); | |
3532 | } else { | |
3533 | Py_INCREF(Py_None); | |
3534 | _resultobj = Py_None; | |
3535 | } | |
3536 | return _resultobj; | |
3537 | } | |
3538 | ||
3539 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3540 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3541 | PyObject * _resultobj; | |
3542 | wxFont * _arg0; | |
3543 | PyObject * _argo0 = 0; | |
3544 | char *_kwnames[] = { "self", NULL }; | |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3548 | return NULL; | |
3549 | if (_argo0) { | |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
3556 | { | |
474c48f9 | 3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3558 | delete_wxFont(_arg0); |
3559 | ||
474c48f9 | 3560 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3561 | if (PyErr_Occurred()) return NULL; |
3562 | } Py_INCREF(Py_None); | |
3563 | _resultobj = Py_None; | |
3564 | return _resultobj; | |
3565 | } | |
3566 | ||
3567 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3568 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3569 | PyObject * _resultobj; | |
3570 | bool _result; | |
3571 | wxFont * _arg0; | |
3572 | PyObject * _argo0 = 0; | |
3573 | char *_kwnames[] = { "self", NULL }; | |
3574 | ||
3575 | self = self; | |
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3577 | return NULL; | |
3578 | if (_argo0) { | |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | { | |
474c48f9 | 3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3587 | _result = (bool )wxFont_Ok(_arg0); |
3588 | ||
474c48f9 | 3589 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3590 | if (PyErr_Occurred()) return NULL; |
3591 | } _resultobj = Py_BuildValue("i",_result); | |
3592 | return _resultobj; | |
3593 | } | |
3594 | ||
3595 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3596 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3597 | PyObject * _resultobj; | |
3598 | int _result; | |
3599 | wxFont * _arg0; | |
3600 | PyObject * _argo0 = 0; | |
3601 | char *_kwnames[] = { "self", NULL }; | |
3602 | ||
3603 | self = self; | |
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3605 | return NULL; | |
3606 | if (_argo0) { | |
3607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
3610 | return NULL; | |
3611 | } | |
3612 | } | |
3613 | { | |
474c48f9 | 3614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3615 | _result = (int )wxFont_GetPointSize(_arg0); |
3616 | ||
474c48f9 | 3617 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3618 | if (PyErr_Occurred()) return NULL; |
3619 | } _resultobj = Py_BuildValue("i",_result); | |
3620 | return _resultobj; | |
3621 | } | |
3622 | ||
3623 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3624 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3625 | PyObject * _resultobj; | |
3626 | int _result; | |
3627 | wxFont * _arg0; | |
3628 | PyObject * _argo0 = 0; | |
3629 | char *_kwnames[] = { "self", NULL }; | |
3630 | ||
3631 | self = self; | |
3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
3633 | return NULL; | |
3634 | if (_argo0) { | |
3635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
3638 | return NULL; | |
3639 | } | |
3640 | } | |
3641 | { | |
474c48f9 | 3642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3643 | _result = (int )wxFont_GetFamily(_arg0); |
3644 | ||
474c48f9 | 3645 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3646 | if (PyErr_Occurred()) return NULL; |
3647 | } _resultobj = Py_BuildValue("i",_result); | |
3648 | return _resultobj; | |
3649 | } | |
3650 | ||
3651 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3652 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3653 | PyObject * _resultobj; | |
3654 | int _result; | |
3655 | wxFont * _arg0; | |
3656 | PyObject * _argo0 = 0; | |
3657 | char *_kwnames[] = { "self", NULL }; | |
3658 | ||
3659 | self = self; | |
3660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
3661 | return NULL; | |
3662 | if (_argo0) { | |
3663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
3666 | return NULL; | |
3667 | } | |
3668 | } | |
3669 | { | |
474c48f9 | 3670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3671 | _result = (int )wxFont_GetStyle(_arg0); |
3672 | ||
474c48f9 | 3673 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3674 | if (PyErr_Occurred()) return NULL; |
3675 | } _resultobj = Py_BuildValue("i",_result); | |
3676 | return _resultobj; | |
3677 | } | |
3678 | ||
3679 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3680 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3681 | PyObject * _resultobj; | |
3682 | int _result; | |
3683 | wxFont * _arg0; | |
3684 | PyObject * _argo0 = 0; | |
3685 | char *_kwnames[] = { "self", NULL }; | |
3686 | ||
3687 | self = self; | |
3688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
3689 | return NULL; | |
3690 | if (_argo0) { | |
3691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
3694 | return NULL; | |
3695 | } | |
3696 | } | |
3697 | { | |
474c48f9 | 3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3699 | _result = (int )wxFont_GetWeight(_arg0); |
3700 | ||
474c48f9 | 3701 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3702 | if (PyErr_Occurred()) return NULL; |
3703 | } _resultobj = Py_BuildValue("i",_result); | |
3704 | return _resultobj; | |
3705 | } | |
3706 | ||
3707 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3708 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3709 | PyObject * _resultobj; | |
3710 | bool _result; | |
3711 | wxFont * _arg0; | |
3712 | PyObject * _argo0 = 0; | |
3713 | char *_kwnames[] = { "self", NULL }; | |
3714 | ||
3715 | self = self; | |
3716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
3717 | return NULL; | |
3718 | if (_argo0) { | |
3719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
3722 | return NULL; | |
3723 | } | |
3724 | } | |
3725 | { | |
474c48f9 | 3726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3727 | _result = (bool )wxFont_GetUnderlined(_arg0); |
3728 | ||
474c48f9 | 3729 | wxPyEndAllowThreads(__tstate); |
059a841c | 3730 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3731 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3732 | return _resultobj; |
3733 | } | |
3734 | ||
059a841c RD |
3735 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
3736 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3737 | PyObject * _resultobj; | |
3738 | wxString * _result; | |
3739 | wxFont * _arg0; | |
3740 | PyObject * _argo0 = 0; | |
3741 | char *_kwnames[] = { "self", NULL }; | |
3742 | ||
3743 | self = self; | |
3744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
3745 | return NULL; | |
3746 | if (_argo0) { | |
3747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
3750 | return NULL; | |
3751 | } | |
3752 | } | |
3753 | { | |
474c48f9 | 3754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
3755 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
3756 | ||
474c48f9 | 3757 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3758 | if (PyErr_Occurred()) return NULL; |
3759 | }{ | |
3760 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3761 | } | |
3762 | { | |
3763 | delete _result; | |
3764 | } | |
3765 | return _resultobj; | |
3766 | } | |
3767 | ||
3768 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3769 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3770 | PyObject * _resultobj; |
059a841c | 3771 | wxFontEncoding _result; |
70551f47 | 3772 | wxFont * _arg0; |
2d091820 | 3773 | PyObject * _argo0 = 0; |
107e4716 | 3774 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3775 | |
3776 | self = self; | |
059a841c | 3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) |
70551f47 | 3778 | return NULL; |
2d091820 RD |
3779 | if (_argo0) { |
3780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); |
70551f47 RD |
3783 | return NULL; |
3784 | } | |
3785 | } | |
ab9bc19b | 3786 | { |
474c48f9 | 3787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 3788 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
ab9bc19b | 3789 | |
474c48f9 | 3790 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3791 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3792 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3793 | return _resultobj; |
3794 | } | |
3795 | ||
db34b2d4 RD |
3796 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) |
3797 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3798 | PyObject * _resultobj; | |
3799 | bool _result; | |
3800 | wxFont * _arg0; | |
3801 | PyObject * _argo0 = 0; | |
3802 | char *_kwnames[] = { "self", NULL }; | |
3803 | ||
3804 | self = self; | |
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
3806 | return NULL; | |
3807 | if (_argo0) { | |
3808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
3811 | return NULL; | |
3812 | } | |
3813 | } | |
3814 | { | |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3816 | _result = (bool )wxFont_IsFixedWidth(_arg0); | |
3817 | ||
3818 | wxPyEndAllowThreads(__tstate); | |
3819 | if (PyErr_Occurred()) return NULL; | |
3820 | } _resultobj = Py_BuildValue("i",_result); | |
3821 | return _resultobj; | |
3822 | } | |
3823 | ||
059a841c RD |
3824 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
3825 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3826 | PyObject * _resultobj; |
059a841c | 3827 | wxNativeFontInfo * _result; |
70551f47 | 3828 | wxFont * _arg0; |
2d091820 | 3829 | PyObject * _argo0 = 0; |
107e4716 | 3830 | char *_kwnames[] = { "self", NULL }; |
059a841c | 3831 | char _ptemp[128]; |
70551f47 RD |
3832 | |
3833 | self = self; | |
059a841c | 3834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
70551f47 | 3835 | return NULL; |
2d091820 RD |
3836 | if (_argo0) { |
3837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
70551f47 RD |
3840 | return NULL; |
3841 | } | |
3842 | } | |
ab9bc19b | 3843 | { |
474c48f9 | 3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 3845 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
ab9bc19b | 3846 | |
474c48f9 | 3847 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3848 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3849 | } if (_result) { |
3850 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3851 | _resultobj = Py_BuildValue("s",_ptemp); | |
3852 | } else { | |
3853 | Py_INCREF(Py_None); | |
3854 | _resultobj = Py_None; | |
3855 | } | |
70551f47 RD |
3856 | return _resultobj; |
3857 | } | |
3858 | ||
1893b029 RD |
3859 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
3860 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3861 | PyObject * _resultobj; | |
3862 | wxString * _result; | |
3863 | wxFont * _arg0; | |
3864 | PyObject * _argo0 = 0; | |
3865 | char *_kwnames[] = { "self", NULL }; | |
3866 | ||
3867 | self = self; | |
3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
3869 | return NULL; | |
3870 | if (_argo0) { | |
3871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
3874 | return NULL; | |
3875 | } | |
3876 | } | |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) return NULL; | |
3883 | }{ | |
3884 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3885 | } | |
3886 | { | |
3887 | delete _result; | |
3888 | } | |
3889 | return _resultobj; | |
3890 | } | |
3891 | ||
3892 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
3893 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3894 | PyObject * _resultobj; | |
3895 | wxString * _result; | |
3896 | wxFont * _arg0; | |
3897 | PyObject * _argo0 = 0; | |
3898 | char *_kwnames[] = { "self", NULL }; | |
3899 | ||
3900 | self = self; | |
3901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
3902 | return NULL; | |
3903 | if (_argo0) { | |
3904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
3907 | return NULL; | |
3908 | } | |
3909 | } | |
3910 | { | |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) return NULL; | |
3916 | }{ | |
3917 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3918 | } | |
3919 | { | |
3920 | delete _result; | |
3921 | } | |
3922 | return _resultobj; | |
3923 | } | |
3924 | ||
059a841c RD |
3925 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
3926 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
134d79dc | 3927 | PyObject * _resultobj; |
134d79dc | 3928 | wxFont * _arg0; |
059a841c | 3929 | int _arg1; |
134d79dc | 3930 | PyObject * _argo0 = 0; |
059a841c | 3931 | char *_kwnames[] = { "self","pointSize", NULL }; |
134d79dc RD |
3932 | |
3933 | self = self; | |
059a841c | 3934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) |
134d79dc RD |
3935 | return NULL; |
3936 | if (_argo0) { | |
3937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); |
134d79dc RD |
3940 | return NULL; |
3941 | } | |
3942 | } | |
3943 | { | |
474c48f9 | 3944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 3945 | wxFont_SetPointSize(_arg0,_arg1); |
134d79dc | 3946 | |
474c48f9 | 3947 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3948 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3949 | } Py_INCREF(Py_None); |
3950 | _resultobj = Py_None; | |
134d79dc RD |
3951 | return _resultobj; |
3952 | } | |
3953 | ||
059a841c RD |
3954 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) |
3955 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3956 | PyObject * _resultobj; |
3957 | wxFont * _arg0; | |
059a841c | 3958 | int _arg1; |
2d091820 | 3959 | PyObject * _argo0 = 0; |
059a841c | 3960 | char *_kwnames[] = { "self","family", NULL }; |
d3b4d113 RR |
3961 | |
3962 | self = self; | |
059a841c | 3963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3964 | return NULL; |
2d091820 RD |
3965 | if (_argo0) { |
3966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
d3b4d113 RR |
3969 | return NULL; |
3970 | } | |
3971 | } | |
ab9bc19b | 3972 | { |
474c48f9 | 3973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 3974 | wxFont_SetFamily(_arg0,_arg1); |
ab9bc19b | 3975 | |
474c48f9 | 3976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3977 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3978 | } Py_INCREF(Py_None); |
d3b4d113 | 3979 | _resultobj = Py_None; |
d3b4d113 RR |
3980 | return _resultobj; |
3981 | } | |
3982 | ||
059a841c RD |
3983 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
3984 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3985 | PyObject * _resultobj; |
3986 | wxFont * _arg0; | |
3987 | int _arg1; | |
2d091820 | 3988 | PyObject * _argo0 = 0; |
059a841c | 3989 | char *_kwnames[] = { "self","style", NULL }; |
d3b4d113 RR |
3990 | |
3991 | self = self; | |
059a841c | 3992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3993 | return NULL; |
2d091820 RD |
3994 | if (_argo0) { |
3995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
d3b4d113 RR |
3998 | return NULL; |
3999 | } | |
4000 | } | |
ab9bc19b | 4001 | { |
474c48f9 | 4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 4003 | wxFont_SetStyle(_arg0,_arg1); |
ab9bc19b | 4004 | |
474c48f9 | 4005 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4006 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4007 | } Py_INCREF(Py_None); |
d3b4d113 RR |
4008 | _resultobj = Py_None; |
4009 | return _resultobj; | |
4010 | } | |
4011 | ||
059a841c RD |
4012 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
4013 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
4014 | PyObject * _resultobj; |
4015 | wxFont * _arg0; | |
4016 | int _arg1; | |
2d091820 | 4017 | PyObject * _argo0 = 0; |
059a841c | 4018 | char *_kwnames[] = { "self","weight", NULL }; |
d3b4d113 RR |
4019 | |
4020 | self = self; | |
059a841c | 4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 4022 | return NULL; |
2d091820 RD |
4023 | if (_argo0) { |
4024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
d3b4d113 RR |
4027 | return NULL; |
4028 | } | |
4029 | } | |
ab9bc19b | 4030 | { |
474c48f9 | 4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 4032 | wxFont_SetWeight(_arg0,_arg1); |
ab9bc19b | 4033 | |
474c48f9 | 4034 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4035 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4036 | } Py_INCREF(Py_None); |
d3b4d113 RR |
4037 | _resultobj = Py_None; |
4038 | return _resultobj; | |
4039 | } | |
4040 | ||
059a841c RD |
4041 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
4042 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
4043 | PyObject * _resultobj; |
4044 | wxFont * _arg0; | |
059a841c | 4045 | wxString * _arg1; |
2d091820 | 4046 | PyObject * _argo0 = 0; |
059a841c RD |
4047 | PyObject * _obj1 = 0; |
4048 | char *_kwnames[] = { "self","faceName", NULL }; | |
d3b4d113 RR |
4049 | |
4050 | self = self; | |
059a841c | 4051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) |
d3b4d113 | 4052 | return NULL; |
2d091820 RD |
4053 | if (_argo0) { |
4054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 4056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); |
d3b4d113 RR |
4057 | return NULL; |
4058 | } | |
4059 | } | |
059a841c RD |
4060 | { |
4061 | #if PYTHON_API_VERSION >= 1009 | |
4062 | char* tmpPtr; int tmpSize; | |
4063 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4064 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4065 | return NULL; | |
4066 | } | |
4067 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4068 | return NULL; | |
4069 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4070 | #else | |
4071 | if (!PyString_Check(_obj1)) { | |
4072 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4073 | return NULL; | |
4074 | } | |
4075 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4076 | #endif | |
4077 | } | |
ab9bc19b | 4078 | { |
474c48f9 | 4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 4080 | wxFont_SetFaceName(_arg0,*_arg1); |
ab9bc19b | 4081 | |
474c48f9 | 4082 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4083 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4084 | } Py_INCREF(Py_None); |
d3b4d113 | 4085 | _resultobj = Py_None; |
059a841c RD |
4086 | { |
4087 | if (_obj1) | |
4088 | delete _arg1; | |
4089 | } | |
d3b4d113 RR |
4090 | return _resultobj; |
4091 | } | |
4092 | ||
4093 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
107e4716 | 4094 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
4095 | PyObject * _resultobj; |
4096 | wxFont * _arg0; | |
4097 | bool _arg1; | |
2d091820 | 4098 | PyObject * _argo0 = 0; |
d3b4d113 | 4099 | int tempbool1; |
107e4716 | 4100 | char *_kwnames[] = { "self","underlined", NULL }; |
d3b4d113 RR |
4101 | |
4102 | self = self; | |
107e4716 | 4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
d3b4d113 | 4104 | return NULL; |
2d091820 RD |
4105 | if (_argo0) { |
4106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
4112 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 4113 | { |
474c48f9 | 4114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4115 | wxFont_SetUnderlined(_arg0,_arg1); |
4116 | ||
474c48f9 | 4117 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4118 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4119 | } Py_INCREF(Py_None); |
d3b4d113 RR |
4120 | _resultobj = Py_None; |
4121 | return _resultobj; | |
4122 | } | |
4123 | ||
059a841c RD |
4124 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
4125 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
4126 | PyObject * _resultobj; |
4127 | wxFont * _arg0; | |
059a841c | 4128 | wxFontEncoding _arg1; |
2d091820 | 4129 | PyObject * _argo0 = 0; |
059a841c | 4130 | char *_kwnames[] = { "self","encoding", NULL }; |
d3b4d113 RR |
4131 | |
4132 | self = self; | |
059a841c | 4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 4134 | return NULL; |
2d091820 RD |
4135 | if (_argo0) { |
4136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 4138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
d3b4d113 RR |
4139 | return NULL; |
4140 | } | |
4141 | } | |
ab9bc19b | 4142 | { |
474c48f9 | 4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 4144 | wxFont_SetEncoding(_arg0,_arg1); |
ab9bc19b | 4145 | |
474c48f9 | 4146 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4147 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4148 | } Py_INCREF(Py_None); |
d3b4d113 RR |
4149 | _resultobj = Py_None; |
4150 | return _resultobj; | |
4151 | } | |
4152 | ||
059a841c RD |
4153 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
4154 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
134d79dc RD |
4155 | PyObject * _resultobj; |
4156 | wxFont * _arg0; | |
059a841c | 4157 | wxNativeFontInfo * _arg1; |
134d79dc | 4158 | PyObject * _argo0 = 0; |
059a841c RD |
4159 | PyObject * _argo1 = 0; |
4160 | char *_kwnames[] = { "self","info", NULL }; | |
134d79dc RD |
4161 | |
4162 | self = self; | |
059a841c | 4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
134d79dc RD |
4164 | return NULL; |
4165 | if (_argo0) { | |
4166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c RD |
4168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
4169 | return NULL; | |
4170 | } | |
4171 | } | |
4172 | if (_argo1) { | |
4173 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4174 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
134d79dc RD |
4176 | return NULL; |
4177 | } | |
4178 | } | |
4179 | { | |
474c48f9 | 4180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c | 4181 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
134d79dc | 4182 | |
474c48f9 | 4183 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4184 | if (PyErr_Occurred()) return NULL; |
134d79dc RD |
4185 | } Py_INCREF(Py_None); |
4186 | _resultobj = Py_None; | |
4187 | return _resultobj; | |
4188 | } | |
4189 | ||
1893b029 RD |
4190 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
4191 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4192 | PyObject * _resultobj; | |
4193 | wxFont * _arg0; | |
4194 | wxString * _arg1; | |
4195 | PyObject * _argo0 = 0; | |
4196 | PyObject * _obj1 = 0; | |
4197 | char *_kwnames[] = { "self","info", NULL }; | |
4198 | ||
4199 | self = self; | |
4200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
4201 | return NULL; | |
4202 | if (_argo0) { | |
4203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4206 | return NULL; | |
4207 | } | |
4208 | } | |
4209 | { | |
4210 | #if PYTHON_API_VERSION >= 1009 | |
4211 | char* tmpPtr; int tmpSize; | |
4212 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4213 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4214 | return NULL; | |
4215 | } | |
4216 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4217 | return NULL; | |
4218 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4219 | #else | |
4220 | if (!PyString_Check(_obj1)) { | |
4221 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4222 | return NULL; | |
4223 | } | |
4224 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4225 | #endif | |
4226 | } | |
4227 | { | |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) return NULL; | |
4233 | } Py_INCREF(Py_None); | |
4234 | _resultobj = Py_None; | |
4235 | { | |
4236 | if (_obj1) | |
4237 | delete _arg1; | |
4238 | } | |
4239 | return _resultobj; | |
4240 | } | |
4241 | ||
134d79dc RD |
4242 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
4243 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject * _resultobj; | |
4245 | wxString * _result; | |
4246 | wxFont * _arg0; | |
4247 | PyObject * _argo0 = 0; | |
4248 | char *_kwnames[] = { "self", NULL }; | |
4249 | ||
4250 | self = self; | |
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
4252 | return NULL; | |
4253 | if (_argo0) { | |
4254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
4257 | return NULL; | |
4258 | } | |
4259 | } | |
4260 | { | |
474c48f9 | 4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
134d79dc RD |
4262 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
4263 | ||
474c48f9 | 4264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4265 | if (PyErr_Occurred()) return NULL; |
134d79dc | 4266 | }{ |
e02c03a4 | 4267 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
4268 | } |
4269 | { | |
4270 | delete _result; | |
4271 | } | |
4272 | return _resultobj; | |
4273 | } | |
4274 | ||
4275 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
4276 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4277 | PyObject * _resultobj; | |
4278 | wxString * _result; | |
4279 | wxFont * _arg0; | |
4280 | PyObject * _argo0 = 0; | |
4281 | char *_kwnames[] = { "self", NULL }; | |
4282 | ||
4283 | self = self; | |
4284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
4285 | return NULL; | |
4286 | if (_argo0) { | |
4287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
4290 | return NULL; | |
4291 | } | |
4292 | } | |
4293 | { | |
474c48f9 | 4294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
134d79dc RD |
4295 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
4296 | ||
474c48f9 | 4297 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4298 | if (PyErr_Occurred()) return NULL; |
134d79dc | 4299 | }{ |
e02c03a4 | 4300 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
4301 | } |
4302 | { | |
4303 | delete _result; | |
4304 | } | |
4305 | return _resultobj; | |
4306 | } | |
4307 | ||
4308 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
4309 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4310 | PyObject * _resultobj; | |
4311 | wxString * _result; | |
4312 | wxFont * _arg0; | |
4313 | PyObject * _argo0 = 0; | |
4314 | char *_kwnames[] = { "self", NULL }; | |
4315 | ||
4316 | self = self; | |
4317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
4318 | return NULL; | |
4319 | if (_argo0) { | |
4320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
4323 | return NULL; | |
4324 | } | |
4325 | } | |
4326 | { | |
474c48f9 | 4327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
134d79dc RD |
4328 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
4329 | ||
474c48f9 | 4330 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4331 | if (PyErr_Occurred()) return NULL; |
134d79dc | 4332 | }{ |
e02c03a4 | 4333 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
4334 | } |
4335 | { | |
4336 | delete _result; | |
4337 | } | |
4338 | return _resultobj; | |
4339 | } | |
4340 | ||
059a841c RD |
4341 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
4342 | PyObject * _resultobj; | |
4343 | wxFontEncoding _result; | |
4344 | char *_kwnames[] = { NULL }; | |
4345 | ||
4346 | self = self; | |
4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
4348 | return NULL; | |
4349 | { | |
474c48f9 | 4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
4351 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
4352 | ||
474c48f9 | 4353 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
4354 | if (PyErr_Occurred()) return NULL; |
4355 | } _resultobj = Py_BuildValue("i",_result); | |
4356 | return _resultobj; | |
4357 | } | |
4358 | ||
4359 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4360 | PyObject * _resultobj; | |
4361 | wxFontEncoding _arg0; | |
4362 | char *_kwnames[] = { "encoding", NULL }; | |
4363 | ||
4364 | self = self; | |
4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
4366 | return NULL; | |
4367 | { | |
474c48f9 | 4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
4369 | wxFont::SetDefaultEncoding(_arg0); |
4370 | ||
474c48f9 | 4371 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
4372 | if (PyErr_Occurred()) return NULL; |
4373 | } Py_INCREF(Py_None); | |
4374 | _resultobj = Py_None; | |
4375 | return _resultobj; | |
4376 | } | |
4377 | ||
9df61a29 RD |
4378 | static void *SwigwxFontListTowxObject(void *ptr) { |
4379 | wxFontList *src; | |
4380 | wxObject *dest; | |
4381 | src = (wxFontList *) ptr; | |
4382 | dest = (wxObject *) src; | |
4383 | return (void *) dest; | |
4384 | } | |
4385 | ||
5e40f9dd RD |
4386 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
4387 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4388 | PyObject * _resultobj; | |
4389 | wxFontList * _arg0; | |
4390 | wxFont * _arg1; | |
4391 | PyObject * _argo0 = 0; | |
4392 | PyObject * _argo1 = 0; | |
4393 | char *_kwnames[] = { "self","font", NULL }; | |
4394 | ||
4395 | self = self; | |
4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
4397 | return NULL; | |
4398 | if (_argo0) { | |
4399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
4402 | return NULL; | |
4403 | } | |
4404 | } | |
4405 | if (_argo1) { | |
4406 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
4409 | return NULL; | |
4410 | } | |
4411 | } | |
4412 | { | |
474c48f9 | 4413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
4414 | wxFontList_AddFont(_arg0,_arg1); |
4415 | ||
474c48f9 | 4416 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4417 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4418 | } Py_INCREF(Py_None); |
4419 | _resultobj = Py_None; | |
4420 | return _resultobj; | |
4421 | } | |
4422 | ||
4423 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4424 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4425 | PyObject * _resultobj; | |
4426 | wxFont * _result; | |
4427 | wxFontList * _arg0; | |
4428 | int _arg1; | |
4429 | int _arg2; | |
4430 | int _arg3; | |
4431 | int _arg4; | |
4432 | bool _arg5 = (bool ) FALSE; | |
4433 | char * _arg6 = (char *) NULL; | |
4434 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4435 | PyObject * _argo0 = 0; | |
4436 | int tempbool5 = (int) FALSE; | |
4437 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
4438 | char _ptemp[128]; | |
4439 | ||
4440 | self = self; | |
4441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
4442 | return NULL; | |
4443 | if (_argo0) { | |
4444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
4447 | return NULL; | |
4448 | } | |
4449 | } | |
4450 | _arg5 = (bool ) tempbool5; | |
4451 | { | |
474c48f9 | 4452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
4453 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
4454 | ||
474c48f9 | 4455 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4456 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4457 | } if (_result) { |
4458 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4459 | _resultobj = Py_BuildValue("s",_ptemp); | |
4460 | } else { | |
4461 | Py_INCREF(Py_None); | |
4462 | _resultobj = Py_None; | |
4463 | } | |
4464 | return _resultobj; | |
4465 | } | |
4466 | ||
4467 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4468 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject * _resultobj; | |
4470 | wxFontList * _arg0; | |
4471 | wxFont * _arg1; | |
4472 | PyObject * _argo0 = 0; | |
4473 | PyObject * _argo1 = 0; | |
4474 | char *_kwnames[] = { "self","font", NULL }; | |
4475 | ||
4476 | self = self; | |
4477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4478 | return NULL; | |
4479 | if (_argo0) { | |
4480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4483 | return NULL; | |
4484 | } | |
4485 | } | |
4486 | if (_argo1) { | |
4487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4490 | return NULL; | |
4491 | } | |
4492 | } | |
4493 | { | |
474c48f9 | 4494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
4495 | wxFontList_RemoveFont(_arg0,_arg1); |
4496 | ||
474c48f9 | 4497 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4498 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4499 | } Py_INCREF(Py_None); |
4500 | _resultobj = Py_None; | |
4501 | return _resultobj; | |
4502 | } | |
4503 | ||
7a9b33db RD |
4504 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
4505 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4506 | PyObject * _resultobj; | |
4507 | int _result; | |
4508 | wxFontList * _arg0; | |
4509 | PyObject * _argo0 = 0; | |
4510 | char *_kwnames[] = { "self", NULL }; | |
4511 | ||
4512 | self = self; | |
4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
4514 | return NULL; | |
4515 | if (_argo0) { | |
4516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
4519 | return NULL; | |
4520 | } | |
4521 | } | |
4522 | { | |
474c48f9 | 4523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7a9b33db RD |
4524 | _result = (int )wxFontList_GetCount(_arg0); |
4525 | ||
474c48f9 | 4526 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
4527 | if (PyErr_Occurred()) return NULL; |
4528 | } _resultobj = Py_BuildValue("i",_result); | |
4529 | return _resultobj; | |
4530 | } | |
4531 | ||
9df61a29 RD |
4532 | static void *SwigwxColourTowxObject(void *ptr) { |
4533 | wxColour *src; | |
4534 | wxObject *dest; | |
4535 | src = (wxColour *) ptr; | |
4536 | dest = (wxObject *) src; | |
4537 | return (void *) dest; | |
4538 | } | |
4539 | ||
70551f47 | 4540 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 4541 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4542 | PyObject * _resultobj; |
4543 | wxColour * _result; | |
2d091820 RD |
4544 | unsigned char _arg0 = (unsigned char ) 0; |
4545 | unsigned char _arg1 = (unsigned char ) 0; | |
4546 | unsigned char _arg2 = (unsigned char ) 0; | |
107e4716 | 4547 | char *_kwnames[] = { "red","green","blue", NULL }; |
70551f47 RD |
4548 | char _ptemp[128]; |
4549 | ||
4550 | self = self; | |
107e4716 | 4551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 4552 | return NULL; |
ab9bc19b | 4553 | { |
474c48f9 | 4554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4555 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
4556 | ||
474c48f9 | 4557 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4558 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4559 | } if (_result) { |
4560 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4561 | _resultobj = Py_BuildValue("s",_ptemp); | |
4562 | } else { | |
4563 | Py_INCREF(Py_None); | |
4564 | _resultobj = Py_None; | |
4565 | } | |
70551f47 RD |
4566 | return _resultobj; |
4567 | } | |
4568 | ||
4569 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
107e4716 | 4570 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4571 | PyObject * _resultobj; |
4572 | wxColour * _arg0; | |
f6bcfd97 BP |
4573 | wxColour temp; |
4574 | PyObject * _obj0 = 0; | |
107e4716 | 4575 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4576 | |
4577 | self = self; | |
f6bcfd97 | 4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
70551f47 | 4579 | return NULL; |
f6bcfd97 BP |
4580 | { |
4581 | _arg0 = &temp; | |
4582 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4583 | return NULL; |
f6bcfd97 | 4584 | } |
ab9bc19b | 4585 | { |
474c48f9 | 4586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4587 | delete_wxColour(_arg0); |
4588 | ||
474c48f9 | 4589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4590 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4591 | } Py_INCREF(Py_None); |
70551f47 RD |
4592 | _resultobj = Py_None; |
4593 | return _resultobj; | |
4594 | } | |
4595 | ||
4596 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
107e4716 | 4597 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4598 | PyObject * _resultobj; |
4599 | unsigned char _result; | |
4600 | wxColour * _arg0; | |
f6bcfd97 BP |
4601 | wxColour temp; |
4602 | PyObject * _obj0 = 0; | |
107e4716 | 4603 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4604 | |
4605 | self = self; | |
f6bcfd97 | 4606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
70551f47 | 4607 | return NULL; |
f6bcfd97 BP |
4608 | { |
4609 | _arg0 = &temp; | |
4610 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4611 | return NULL; |
f6bcfd97 | 4612 | } |
ab9bc19b | 4613 | { |
474c48f9 | 4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4615 | _result = (unsigned char )wxColour_Red(_arg0); |
4616 | ||
474c48f9 | 4617 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4618 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4619 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4620 | return _resultobj; |
4621 | } | |
4622 | ||
4623 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
107e4716 | 4624 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4625 | PyObject * _resultobj; |
4626 | unsigned char _result; | |
4627 | wxColour * _arg0; | |
f6bcfd97 BP |
4628 | wxColour temp; |
4629 | PyObject * _obj0 = 0; | |
107e4716 | 4630 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4631 | |
4632 | self = self; | |
f6bcfd97 | 4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
70551f47 | 4634 | return NULL; |
f6bcfd97 BP |
4635 | { |
4636 | _arg0 = &temp; | |
4637 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4638 | return NULL; |
f6bcfd97 | 4639 | } |
ab9bc19b | 4640 | { |
474c48f9 | 4641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4642 | _result = (unsigned char )wxColour_Green(_arg0); |
4643 | ||
474c48f9 | 4644 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4645 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4646 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4647 | return _resultobj; |
4648 | } | |
4649 | ||
4650 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
107e4716 | 4651 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4652 | PyObject * _resultobj; |
4653 | unsigned char _result; | |
4654 | wxColour * _arg0; | |
f6bcfd97 BP |
4655 | wxColour temp; |
4656 | PyObject * _obj0 = 0; | |
107e4716 | 4657 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4658 | |
4659 | self = self; | |
f6bcfd97 | 4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
70551f47 | 4661 | return NULL; |
f6bcfd97 BP |
4662 | { |
4663 | _arg0 = &temp; | |
4664 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4665 | return NULL; |
f6bcfd97 | 4666 | } |
ab9bc19b | 4667 | { |
474c48f9 | 4668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4669 | _result = (unsigned char )wxColour_Blue(_arg0); |
4670 | ||
474c48f9 | 4671 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4672 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4673 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4674 | return _resultobj; |
4675 | } | |
4676 | ||
4677 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 4678 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4679 | PyObject * _resultobj; |
4680 | bool _result; | |
4681 | wxColour * _arg0; | |
f6bcfd97 BP |
4682 | wxColour temp; |
4683 | PyObject * _obj0 = 0; | |
107e4716 | 4684 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4685 | |
4686 | self = self; | |
f6bcfd97 | 4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
70551f47 | 4688 | return NULL; |
f6bcfd97 BP |
4689 | { |
4690 | _arg0 = &temp; | |
4691 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4692 | return NULL; |
f6bcfd97 | 4693 | } |
ab9bc19b | 4694 | { |
474c48f9 | 4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4696 | _result = (bool )wxColour_Ok(_arg0); |
4697 | ||
474c48f9 | 4698 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4699 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4700 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4701 | return _resultobj; |
4702 | } | |
4703 | ||
4704 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 4705 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4706 | PyObject * _resultobj; |
4707 | wxColour * _arg0; | |
4708 | unsigned char _arg1; | |
4709 | unsigned char _arg2; | |
4710 | unsigned char _arg3; | |
f6bcfd97 BP |
4711 | wxColour temp; |
4712 | PyObject * _obj0 = 0; | |
107e4716 | 4713 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
70551f47 RD |
4714 | |
4715 | self = self; | |
f6bcfd97 | 4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
70551f47 | 4717 | return NULL; |
f6bcfd97 BP |
4718 | { |
4719 | _arg0 = &temp; | |
4720 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4721 | return NULL; |
f6bcfd97 | 4722 | } |
ab9bc19b | 4723 | { |
474c48f9 | 4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4725 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
4726 | ||
474c48f9 | 4727 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4728 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4729 | } Py_INCREF(Py_None); |
70551f47 RD |
4730 | _resultobj = Py_None; |
4731 | return _resultobj; | |
4732 | } | |
4733 | ||
4734 | static PyObject * wxColour_Get(wxColour *self) { | |
4735 | PyObject* rv = PyTuple_New(3); | |
4736 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4737 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4738 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4739 | return rv; | |
4740 | } | |
107e4716 | 4741 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4742 | PyObject * _resultobj; |
4743 | PyObject * _result; | |
4744 | wxColour * _arg0; | |
f6bcfd97 BP |
4745 | wxColour temp; |
4746 | PyObject * _obj0 = 0; | |
107e4716 | 4747 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4748 | |
4749 | self = self; | |
f6bcfd97 | 4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
70551f47 | 4751 | return NULL; |
f6bcfd97 BP |
4752 | { |
4753 | _arg0 = &temp; | |
4754 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4755 | return NULL; |
f6bcfd97 | 4756 | } |
70551f47 | 4757 | { |
474c48f9 | 4758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
4759 | _result = (PyObject *)wxColour_Get(_arg0); |
4760 | ||
474c48f9 | 4761 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4762 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4763 | }{ |
70551f47 RD |
4764 | _resultobj = _result; |
4765 | } | |
4766 | return _resultobj; | |
4767 | } | |
4768 | ||
9df61a29 RD |
4769 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
4770 | wxColourDatabase *src; | |
4771 | wxObject *dest; | |
4772 | src = (wxColourDatabase *) ptr; | |
4773 | dest = (wxObject *) src; | |
4774 | return (void *) dest; | |
4775 | } | |
4776 | ||
5e40f9dd RD |
4777 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
4778 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4779 | PyObject * _resultobj; |
5e40f9dd RD |
4780 | wxColour * _result; |
4781 | wxColourDatabase * _arg0; | |
4782 | wxString * _arg1; | |
4783 | PyObject * _argo0 = 0; | |
4784 | PyObject * _obj1 = 0; | |
4785 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
4786 | char _ptemp[128]; |
4787 | ||
4788 | self = self; | |
5e40f9dd RD |
4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) |
4790 | return NULL; | |
4791 | if (_argo0) { | |
4792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
70551f47 | 4795 | return NULL; |
5e40f9dd RD |
4796 | } |
4797 | } | |
f6bcfd97 | 4798 | { |
5e40f9dd RD |
4799 | #if PYTHON_API_VERSION >= 1009 |
4800 | char* tmpPtr; int tmpSize; | |
4801 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4802 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
5e40f9dd RD |
4803 | return NULL; |
4804 | } | |
4805 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4806 | return NULL; | |
4807 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4808 | #else | |
4809 | if (!PyString_Check(_obj1)) { | |
4810 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
70551f47 | 4811 | return NULL; |
5e40f9dd RD |
4812 | } |
4813 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4814 | #endif | |
f6bcfd97 | 4815 | } |
ab9bc19b | 4816 | { |
474c48f9 | 4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd | 4818 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
ab9bc19b | 4819 | |
474c48f9 | 4820 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4821 | if (PyErr_Occurred()) return NULL; |
2d091820 | 4822 | } if (_result) { |
5e40f9dd | 4823 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); |
2d091820 RD |
4824 | _resultobj = Py_BuildValue("s",_ptemp); |
4825 | } else { | |
4826 | Py_INCREF(Py_None); | |
4827 | _resultobj = Py_None; | |
4828 | } | |
5e40f9dd RD |
4829 | { |
4830 | if (_obj1) | |
4831 | delete _arg1; | |
4832 | } | |
70551f47 RD |
4833 | return _resultobj; |
4834 | } | |
4835 | ||
5e40f9dd RD |
4836 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) |
4837 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4838 | PyObject * _resultobj; |
5e40f9dd RD |
4839 | wxString * _result; |
4840 | wxColourDatabase * _arg0; | |
4841 | wxColour * _arg1; | |
2d091820 | 4842 | PyObject * _argo0 = 0; |
5e40f9dd RD |
4843 | wxColour temp; |
4844 | PyObject * _obj1 = 0; | |
4845 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
4846 | |
4847 | self = self; | |
5e40f9dd | 4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4849 | return NULL; |
2d091820 RD |
4850 | if (_argo0) { |
4851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
4852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
4853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
70551f47 RD |
4854 | return NULL; |
4855 | } | |
4856 | } | |
5e40f9dd RD |
4857 | { |
4858 | _arg1 = &temp; | |
4859 | if (! wxColour_helper(_obj1, &_arg1)) | |
4860 | return NULL; | |
4861 | } | |
ab9bc19b | 4862 | { |
474c48f9 | 4863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd | 4864 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
ab9bc19b | 4865 | |
474c48f9 | 4866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4867 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4868 | }{ |
4869 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4870 | } | |
4871 | { | |
4872 | delete _result; | |
4873 | } | |
70551f47 RD |
4874 | return _resultobj; |
4875 | } | |
4876 | ||
5e40f9dd | 4877 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { |
ef2060fa RD |
4878 | // first see if the name is already there |
4879 | wxString cName = name; | |
4880 | cName.MakeUpper(); | |
4881 | wxString cName2 = cName; | |
4882 | if ( !cName2.Replace("GRAY", "GREY") ) | |
4883 | cName2.clear(); | |
4884 | ||
4885 | wxNode *node = self->First(); | |
4886 | while ( node ) { | |
4887 | const wxChar *key = node->GetKeyString(); | |
4888 | if ( cName == key || cName2 == key ) { | |
4889 | wxColour* c = (wxColour *)node->Data(); | |
4890 | c->Set(red, green, blue); | |
4891 | return; | |
4892 | } | |
4893 | node = node->Next(); | |
4894 | } | |
4895 | ||
4896 | // otherwise append the new colour | |
5e40f9dd RD |
4897 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
4898 | } | |
4899 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4900 | PyObject * _resultobj; |
5e40f9dd RD |
4901 | wxColourDatabase * _arg0; |
4902 | wxString * _arg1; | |
4903 | int _arg2; | |
4904 | int _arg3; | |
4905 | int _arg4; | |
2d091820 | 4906 | PyObject * _argo0 = 0; |
5e40f9dd RD |
4907 | PyObject * _obj1 = 0; |
4908 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
70551f47 RD |
4909 | |
4910 | self = self; | |
5e40f9dd | 4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4912 | return NULL; |
2d091820 RD |
4913 | if (_argo0) { |
4914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
4915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
4916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
70551f47 RD |
4917 | return NULL; |
4918 | } | |
4919 | } | |
ab9bc19b | 4920 | { |
5e40f9dd RD |
4921 | #if PYTHON_API_VERSION >= 1009 |
4922 | char* tmpPtr; int tmpSize; | |
4923 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4924 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
5e40f9dd RD |
4925 | return NULL; |
4926 | } | |
4927 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4928 | return NULL; | |
4929 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4930 | #else | |
4931 | if (!PyString_Check(_obj1)) { | |
4932 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4933 | return NULL; | |
4934 | } | |
4935 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4936 | #endif | |
4937 | } | |
4938 | { | |
474c48f9 | 4939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
4940 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
4941 | ||
474c48f9 | 4942 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4943 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4944 | } Py_INCREF(Py_None); |
4945 | _resultobj = Py_None; | |
4946 | { | |
4947 | if (_obj1) | |
4948 | delete _arg1; | |
4949 | } | |
4950 | return _resultobj; | |
4951 | } | |
4952 | ||
9df61a29 RD |
4953 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
4954 | wxPen *src; | |
4955 | wxGDIObject *dest; | |
4956 | src = (wxPen *) ptr; | |
4957 | dest = (wxGDIObject *) src; | |
4958 | return (void *) dest; | |
4959 | } | |
4960 | ||
4961 | static void *SwigwxPenTowxObject(void *ptr) { | |
4962 | wxPen *src; | |
4963 | wxObject *dest; | |
4964 | src = (wxPen *) ptr; | |
4965 | dest = (wxObject *) src; | |
4966 | return (void *) dest; | |
4967 | } | |
4968 | ||
5e40f9dd RD |
4969 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
4970 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject * _resultobj; | |
4972 | wxPen * _result; | |
4973 | wxColour * _arg0; | |
4974 | int _arg1 = (int ) 1; | |
4975 | int _arg2 = (int ) wxSOLID; | |
4976 | wxColour temp; | |
4977 | PyObject * _obj0 = 0; | |
4978 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4979 | char _ptemp[128]; | |
4980 | ||
4981 | self = self; | |
4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4983 | return NULL; | |
4984 | { | |
4985 | _arg0 = &temp; | |
4986 | if (! wxColour_helper(_obj0, &_arg0)) | |
4987 | return NULL; | |
4988 | } | |
4989 | { | |
474c48f9 | 4990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
4991 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
4992 | ||
474c48f9 | 4993 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4994 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4995 | } if (_result) { |
4996 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4997 | _resultobj = Py_BuildValue("s",_ptemp); | |
4998 | } else { | |
4999 | Py_INCREF(Py_None); | |
5000 | _resultobj = Py_None; | |
5001 | } | |
5002 | return _resultobj; | |
5003 | } | |
5004 | ||
5005 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
5006 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5007 | PyObject * _resultobj; | |
5008 | wxPen * _arg0; | |
5009 | PyObject * _argo0 = 0; | |
5010 | char *_kwnames[] = { "self", NULL }; | |
5011 | ||
5012 | self = self; | |
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5014 | return NULL; | |
5015 | if (_argo0) { | |
5016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5019 | return NULL; | |
5020 | } | |
5021 | } | |
5022 | { | |
474c48f9 | 5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
5024 | delete_wxPen(_arg0); |
5025 | ||
474c48f9 | 5026 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5027 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5028 | } Py_INCREF(Py_None); |
5029 | _resultobj = Py_None; | |
5030 | return _resultobj; | |
5031 | } | |
5032 | ||
5033 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
5034 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5035 | PyObject * _resultobj; | |
5036 | int _result; | |
5037 | wxPen * _arg0; | |
5038 | PyObject * _argo0 = 0; | |
5039 | char *_kwnames[] = { "self", NULL }; | |
5040 | ||
5041 | self = self; | |
5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
5043 | return NULL; | |
5044 | if (_argo0) { | |
5045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
5048 | return NULL; | |
5049 | } | |
5050 | } | |
5051 | { | |
474c48f9 | 5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
5053 | _result = (int )wxPen_GetCap(_arg0); |
5054 | ||
474c48f9 | 5055 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5056 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5057 | } _resultobj = Py_BuildValue("i",_result); |
5058 | return _resultobj; | |
5059 | } | |
5060 | ||
5061 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
5062 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5063 | PyObject * _resultobj; | |
5064 | wxColour * _result; | |
5065 | wxPen * _arg0; | |
5066 | PyObject * _argo0 = 0; | |
5067 | char *_kwnames[] = { "self", NULL }; | |
5068 | char _ptemp[128]; | |
5069 | ||
5070 | self = self; | |
5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
5072 | return NULL; | |
5073 | if (_argo0) { | |
5074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
5077 | return NULL; | |
5078 | } | |
5079 | } | |
5080 | { | |
474c48f9 | 5081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
84a81942 | 5082 | _result = new wxColour (wxPen_GetColour(_arg0)); |
5e40f9dd | 5083 | |
474c48f9 | 5084 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5085 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
5086 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5087 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5088 | return _resultobj; |
5089 | } | |
5090 | ||
5091 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
107e4716 | 5092 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5093 | PyObject * _resultobj; |
5094 | int _result; | |
5095 | wxPen * _arg0; | |
2d091820 | 5096 | PyObject * _argo0 = 0; |
107e4716 | 5097 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5098 | |
5099 | self = self; | |
107e4716 | 5100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
70551f47 | 5101 | return NULL; |
2d091820 RD |
5102 | if (_argo0) { |
5103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
5106 | return NULL; | |
5107 | } | |
5108 | } | |
ab9bc19b | 5109 | { |
474c48f9 | 5110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5111 | _result = (int )wxPen_GetJoin(_arg0); |
5112 | ||
474c48f9 | 5113 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5114 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5115 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5116 | return _resultobj; |
5117 | } | |
5118 | ||
5119 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 5120 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5121 | PyObject * _resultobj; |
5122 | int _result; | |
5123 | wxPen * _arg0; | |
2d091820 | 5124 | PyObject * _argo0 = 0; |
107e4716 | 5125 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5126 | |
5127 | self = self; | |
107e4716 | 5128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
70551f47 | 5129 | return NULL; |
2d091820 RD |
5130 | if (_argo0) { |
5131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
5134 | return NULL; | |
5135 | } | |
5136 | } | |
ab9bc19b | 5137 | { |
474c48f9 | 5138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5139 | _result = (int )wxPen_GetStyle(_arg0); |
5140 | ||
474c48f9 | 5141 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5142 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5143 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5144 | return _resultobj; |
5145 | } | |
5146 | ||
5147 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 5148 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5149 | PyObject * _resultobj; |
5150 | int _result; | |
5151 | wxPen * _arg0; | |
2d091820 | 5152 | PyObject * _argo0 = 0; |
107e4716 | 5153 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5154 | |
5155 | self = self; | |
107e4716 | 5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
70551f47 | 5157 | return NULL; |
2d091820 RD |
5158 | if (_argo0) { |
5159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
5162 | return NULL; | |
5163 | } | |
5164 | } | |
ab9bc19b | 5165 | { |
474c48f9 | 5166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5167 | _result = (int )wxPen_GetWidth(_arg0); |
5168 | ||
474c48f9 | 5169 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5170 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5171 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5172 | return _resultobj; |
5173 | } | |
5174 | ||
5175 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 5176 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5177 | PyObject * _resultobj; |
5178 | bool _result; | |
5179 | wxPen * _arg0; | |
2d091820 | 5180 | PyObject * _argo0 = 0; |
107e4716 | 5181 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5182 | |
5183 | self = self; | |
107e4716 | 5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
70551f47 | 5185 | return NULL; |
2d091820 RD |
5186 | if (_argo0) { |
5187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
5190 | return NULL; | |
5191 | } | |
5192 | } | |
ab9bc19b | 5193 | { |
474c48f9 | 5194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5195 | _result = (bool )wxPen_Ok(_arg0); |
5196 | ||
474c48f9 | 5197 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5198 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5199 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5200 | return _resultobj; |
5201 | } | |
5202 | ||
5203 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
107e4716 | 5204 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5205 | PyObject * _resultobj; |
5206 | wxPen * _arg0; | |
5207 | int _arg1; | |
2d091820 | 5208 | PyObject * _argo0 = 0; |
107e4716 | 5209 | char *_kwnames[] = { "self","cap_style", NULL }; |
70551f47 RD |
5210 | |
5211 | self = self; | |
107e4716 | 5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5213 | return NULL; |
2d091820 RD |
5214 | if (_argo0) { |
5215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
5218 | return NULL; | |
5219 | } | |
5220 | } | |
ab9bc19b | 5221 | { |
474c48f9 | 5222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5223 | wxPen_SetCap(_arg0,_arg1); |
5224 | ||
474c48f9 | 5225 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5226 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5227 | } Py_INCREF(Py_None); |
70551f47 RD |
5228 | _resultobj = Py_None; |
5229 | return _resultobj; | |
5230 | } | |
5231 | ||
5232 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 5233 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5234 | PyObject * _resultobj; |
5235 | wxPen * _arg0; | |
5236 | wxColour * _arg1; | |
2d091820 | 5237 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5238 | wxColour temp; |
5239 | PyObject * _obj1 = 0; | |
107e4716 | 5240 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
5241 | |
5242 | self = self; | |
f6bcfd97 | 5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5244 | return NULL; |
2d091820 RD |
5245 | if (_argo0) { |
5246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
f6bcfd97 BP |
5252 | { |
5253 | _arg1 = &temp; | |
5254 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 5255 | return NULL; |
f6bcfd97 | 5256 | } |
ab9bc19b | 5257 | { |
474c48f9 | 5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5259 | wxPen_SetColour(_arg0,*_arg1); |
5260 | ||
474c48f9 | 5261 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5262 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5263 | } Py_INCREF(Py_None); |
70551f47 RD |
5264 | _resultobj = Py_None; |
5265 | return _resultobj; | |
5266 | } | |
5267 | ||
5268 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
107e4716 | 5269 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5270 | PyObject * _resultobj; |
5271 | wxPen * _arg0; | |
5272 | int _arg1; | |
2d091820 | 5273 | PyObject * _argo0 = 0; |
107e4716 | 5274 | char *_kwnames[] = { "self","join_style", NULL }; |
70551f47 RD |
5275 | |
5276 | self = self; | |
107e4716 | 5277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5278 | return NULL; |
2d091820 RD |
5279 | if (_argo0) { |
5280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
5283 | return NULL; | |
5284 | } | |
5285 | } | |
ab9bc19b | 5286 | { |
474c48f9 | 5287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5288 | wxPen_SetJoin(_arg0,_arg1); |
5289 | ||
474c48f9 | 5290 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5291 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5292 | } Py_INCREF(Py_None); |
70551f47 RD |
5293 | _resultobj = Py_None; |
5294 | return _resultobj; | |
5295 | } | |
5296 | ||
5297 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 5298 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5299 | PyObject * _resultobj; |
5300 | wxPen * _arg0; | |
5301 | int _arg1; | |
2d091820 | 5302 | PyObject * _argo0 = 0; |
107e4716 | 5303 | char *_kwnames[] = { "self","style", NULL }; |
70551f47 RD |
5304 | |
5305 | self = self; | |
107e4716 | 5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5307 | return NULL; |
2d091820 RD |
5308 | if (_argo0) { |
5309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
5312 | return NULL; | |
5313 | } | |
5314 | } | |
ab9bc19b | 5315 | { |
474c48f9 | 5316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5317 | wxPen_SetStyle(_arg0,_arg1); |
5318 | ||
474c48f9 | 5319 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5320 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5321 | } Py_INCREF(Py_None); |
70551f47 RD |
5322 | _resultobj = Py_None; |
5323 | return _resultobj; | |
5324 | } | |
5325 | ||
5326 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
107e4716 | 5327 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5328 | PyObject * _resultobj; |
5329 | wxPen * _arg0; | |
5330 | int _arg1; | |
2d091820 | 5331 | PyObject * _argo0 = 0; |
107e4716 | 5332 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
5333 | |
5334 | self = self; | |
107e4716 | 5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5336 | return NULL; |
2d091820 RD |
5337 | if (_argo0) { |
5338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
5341 | return NULL; | |
5342 | } | |
5343 | } | |
ab9bc19b | 5344 | { |
474c48f9 | 5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5346 | wxPen_SetWidth(_arg0,_arg1); |
5347 | ||
474c48f9 | 5348 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5349 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5350 | } Py_INCREF(Py_None); |
70551f47 RD |
5351 | _resultobj = Py_None; |
5352 | return _resultobj; | |
5353 | } | |
5354 | ||
65191ae8 RD |
5355 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
5356 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 5357 | PyObject * _resultobj; |
56f5d962 | 5358 | wxPen * _arg0; |
65191ae8 RD |
5359 | int _arg1; |
5360 | wxDash * _arg2; | |
56f5d962 | 5361 | PyObject * _argo0 = 0; |
65191ae8 RD |
5362 | PyObject * _obj2 = 0; |
5363 | char *_kwnames[] = { "self","choices", NULL }; | |
56f5d962 RD |
5364 | |
5365 | self = self; | |
65191ae8 | 5366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
56f5d962 RD |
5367 | return NULL; |
5368 | if (_argo0) { | |
5369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
65191ae8 | 5371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
56f5d962 RD |
5372 | return NULL; |
5373 | } | |
5374 | } | |
65191ae8 RD |
5375 | if (_obj2) |
5376 | { | |
5377 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5378 | if (_arg2 == NULL) { | |
5379 | return NULL; | |
5380 | } | |
5381 | } | |
5382 | { | |
5383 | if (_obj2) { | |
5384 | _arg1 = PyList_Size(_obj2); | |
5385 | } | |
5386 | else { | |
5387 | _arg1 = 0; | |
5388 | } | |
5389 | } | |
5390 | { | |
474c48f9 | 5391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
5392 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
5393 | ||
474c48f9 | 5394 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
5395 | if (PyErr_Occurred()) return NULL; |
5396 | } Py_INCREF(Py_None); | |
5397 | _resultobj = Py_None; | |
5398 | { | |
5399 | delete [] _arg2; | |
5400 | } | |
5401 | return _resultobj; | |
5402 | } | |
5403 | ||
5404 | static void *SwigwxPyPenTowxPen(void *ptr) { | |
5405 | wxPyPen *src; | |
5406 | wxPen *dest; | |
5407 | src = (wxPyPen *) ptr; | |
5408 | dest = (wxPen *) src; | |
5409 | return (void *) dest; | |
5410 | } | |
5411 | ||
5412 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
5413 | wxPyPen *src; | |
5414 | wxGDIObject *dest; | |
5415 | src = (wxPyPen *) ptr; | |
5416 | dest = (wxGDIObject *) src; | |
5417 | return (void *) dest; | |
5418 | } | |
5419 | ||
5420 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
5421 | wxPyPen *src; | |
5422 | wxObject *dest; | |
5423 | src = (wxPyPen *) ptr; | |
5424 | dest = (wxObject *) src; | |
5425 | return (void *) dest; | |
5426 | } | |
5427 | ||
5428 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
5429 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5430 | PyObject * _resultobj; | |
5431 | wxPyPen * _result; | |
5432 | wxColour * _arg0; | |
5433 | int _arg1 = (int ) 1; | |
5434 | int _arg2 = (int ) wxSOLID; | |
5435 | wxColour temp; | |
5436 | PyObject * _obj0 = 0; | |
5437 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5438 | char _ptemp[128]; | |
5439 | ||
5440 | self = self; | |
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5442 | return NULL; | |
5443 | { | |
5444 | _arg0 = &temp; | |
5445 | if (! wxColour_helper(_obj0, &_arg0)) | |
5446 | return NULL; | |
5447 | } | |
5448 | { | |
474c48f9 | 5449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
5450 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
5451 | ||
474c48f9 | 5452 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
5453 | if (PyErr_Occurred()) return NULL; |
5454 | } if (_result) { | |
5455 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
5456 | _resultobj = Py_BuildValue("s",_ptemp); | |
5457 | } else { | |
5458 | Py_INCREF(Py_None); | |
5459 | _resultobj = Py_None; | |
5460 | } | |
5461 | return _resultobj; | |
5462 | } | |
5463 | ||
5464 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
5465 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5466 | PyObject * _resultobj; | |
5467 | wxPyPen * _arg0; | |
5468 | PyObject * _argo0 = 0; | |
5469 | char *_kwnames[] = { "self", NULL }; | |
5470 | ||
5471 | self = self; | |
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
5473 | return NULL; | |
5474 | if (_argo0) { | |
5475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
56f5d962 RD |
5478 | return NULL; |
5479 | } | |
5480 | } | |
5481 | { | |
474c48f9 | 5482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 5483 | delete_wxPyPen(_arg0); |
56f5d962 | 5484 | |
474c48f9 | 5485 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5486 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
5487 | } Py_INCREF(Py_None); |
5488 | _resultobj = Py_None; | |
56f5d962 RD |
5489 | return _resultobj; |
5490 | } | |
5491 | ||
65191ae8 RD |
5492 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
5493 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 5494 | PyObject * _resultobj; |
65191ae8 | 5495 | wxPyPen * _arg0; |
56f5d962 RD |
5496 | int _arg1; |
5497 | wxDash * _arg2; | |
5498 | PyObject * _argo0 = 0; | |
5499 | PyObject * _obj2 = 0; | |
e02c03a4 | 5500 | char *_kwnames[] = { "self","choices", NULL }; |
56f5d962 RD |
5501 | |
5502 | self = self; | |
65191ae8 | 5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
56f5d962 RD |
5504 | return NULL; |
5505 | if (_argo0) { | |
5506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
5507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { |
5508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
56f5d962 RD |
5509 | return NULL; |
5510 | } | |
5511 | } | |
5512 | if (_obj2) | |
5513 | { | |
41073357 | 5514 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
56f5d962 RD |
5515 | if (_arg2 == NULL) { |
5516 | return NULL; | |
5517 | } | |
5518 | } | |
5519 | { | |
5520 | if (_obj2) { | |
5521 | _arg1 = PyList_Size(_obj2); | |
5522 | } | |
5523 | else { | |
5524 | _arg1 = 0; | |
5525 | } | |
5526 | } | |
5527 | { | |
474c48f9 | 5528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 5529 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
56f5d962 | 5530 | |
474c48f9 | 5531 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5532 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
5533 | } Py_INCREF(Py_None); |
5534 | _resultobj = Py_None; | |
5535 | { | |
5536 | delete [] _arg2; | |
5537 | } | |
5538 | return _resultobj; | |
5539 | } | |
5540 | ||
9df61a29 RD |
5541 | static void *SwigwxPenListTowxObject(void *ptr) { |
5542 | wxPenList *src; | |
5543 | wxObject *dest; | |
5544 | src = (wxPenList *) ptr; | |
5545 | dest = (wxObject *) src; | |
5546 | return (void *) dest; | |
5547 | } | |
5548 | ||
5e40f9dd RD |
5549 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
5550 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5551 | PyObject * _resultobj; | |
5552 | wxPenList * _arg0; | |
5553 | wxPen * _arg1; | |
5554 | PyObject * _argo0 = 0; | |
5555 | PyObject * _argo1 = 0; | |
5556 | char *_kwnames[] = { "self","pen", NULL }; | |
5557 | ||
5558 | self = self; | |
5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5560 | return NULL; | |
5561 | if (_argo0) { | |
5562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5565 | return NULL; | |
70551f47 | 5566 | } |
5e40f9dd RD |
5567 | } |
5568 | if (_argo1) { | |
5569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5572 | return NULL; | |
5573 | } | |
5574 | } | |
5575 | { | |
474c48f9 | 5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd | 5577 | wxPenList_AddPen(_arg0,_arg1); |
70551f47 | 5578 | |
474c48f9 | 5579 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5580 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5581 | } Py_INCREF(Py_None); |
5582 | _resultobj = Py_None; | |
5583 | return _resultobj; | |
5584 | } | |
5585 | ||
5586 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5587 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5588 | PyObject * _resultobj; | |
5589 | wxPen * _result; | |
5590 | wxPenList * _arg0; | |
5591 | wxColour * _arg1; | |
5592 | int _arg2; | |
5593 | int _arg3; | |
5594 | PyObject * _argo0 = 0; | |
5595 | wxColour temp; | |
5596 | PyObject * _obj1 = 0; | |
5597 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5598 | char _ptemp[128]; | |
5599 | ||
5600 | self = self; | |
5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5602 | return NULL; | |
5603 | if (_argo0) { | |
5604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5607 | return NULL; | |
5608 | } | |
5609 | } | |
5610 | { | |
5611 | _arg1 = &temp; | |
5612 | if (! wxColour_helper(_obj1, &_arg1)) | |
5613 | return NULL; | |
5614 | } | |
5615 | { | |
474c48f9 | 5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
5617 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
5618 | ||
474c48f9 | 5619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5620 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5621 | } if (_result) { |
5622 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5623 | _resultobj = Py_BuildValue("s",_ptemp); | |
5624 | } else { | |
5625 | Py_INCREF(Py_None); | |
5626 | _resultobj = Py_None; | |
5627 | } | |
5628 | return _resultobj; | |
5629 | } | |
5630 | ||
5631 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5632 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5633 | PyObject * _resultobj; | |
5634 | wxPenList * _arg0; | |
5635 | wxPen * _arg1; | |
5636 | PyObject * _argo0 = 0; | |
5637 | PyObject * _argo1 = 0; | |
5638 | char *_kwnames[] = { "self","pen", NULL }; | |
5639 | ||
5640 | self = self; | |
5641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5642 | return NULL; | |
5643 | if (_argo0) { | |
5644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5647 | return NULL; | |
5648 | } | |
5649 | } | |
5650 | if (_argo1) { | |
5651 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5652 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
5657 | { | |
474c48f9 | 5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
5659 | wxPenList_RemovePen(_arg0,_arg1); |
5660 | ||
474c48f9 | 5661 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5662 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5663 | } Py_INCREF(Py_None); |
5664 | _resultobj = Py_None; | |
5665 | return _resultobj; | |
5666 | } | |
5667 | ||
7a9b33db RD |
5668 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
5669 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject * _resultobj; | |
5671 | int _result; | |
5672 | wxPenList * _arg0; | |
5673 | PyObject * _argo0 = 0; | |
5674 | char *_kwnames[] = { "self", NULL }; | |
5675 | ||
5676 | self = self; | |
5677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
5678 | return NULL; | |
5679 | if (_argo0) { | |
5680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
5683 | return NULL; | |
5684 | } | |
5685 | } | |
5686 | { | |
474c48f9 | 5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7a9b33db RD |
5688 | _result = (int )wxPenList_GetCount(_arg0); |
5689 | ||
474c48f9 | 5690 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
5691 | if (PyErr_Occurred()) return NULL; |
5692 | } _resultobj = Py_BuildValue("i",_result); | |
5693 | return _resultobj; | |
5694 | } | |
5695 | ||
9df61a29 RD |
5696 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5697 | wxBrush *src; | |
5698 | wxGDIObject *dest; | |
5699 | src = (wxBrush *) ptr; | |
5700 | dest = (wxGDIObject *) src; | |
5701 | return (void *) dest; | |
5702 | } | |
5703 | ||
5704 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5705 | wxBrush *src; | |
5706 | wxObject *dest; | |
5707 | src = (wxBrush *) ptr; | |
5708 | dest = (wxObject *) src; | |
5709 | return (void *) dest; | |
5710 | } | |
5711 | ||
5e40f9dd | 5712 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
107e4716 | 5713 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5714 | PyObject * _resultobj; |
5715 | wxBrush * _result; | |
5716 | wxColour * _arg0; | |
2d091820 | 5717 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
5718 | wxColour temp; |
5719 | PyObject * _obj0 = 0; | |
107e4716 | 5720 | char *_kwnames[] = { "colour","style", NULL }; |
70551f47 RD |
5721 | char _ptemp[128]; |
5722 | ||
5723 | self = self; | |
f6bcfd97 | 5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
70551f47 | 5725 | return NULL; |
f6bcfd97 BP |
5726 | { |
5727 | _arg0 = &temp; | |
5728 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 5729 | return NULL; |
f6bcfd97 | 5730 | } |
ab9bc19b | 5731 | { |
474c48f9 | 5732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd | 5733 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
ab9bc19b | 5734 | |
474c48f9 | 5735 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5736 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5737 | } if (_result) { |
5738 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5739 | _resultobj = Py_BuildValue("s",_ptemp); | |
5740 | } else { | |
5741 | Py_INCREF(Py_None); | |
5742 | _resultobj = Py_None; | |
5743 | } | |
70551f47 RD |
5744 | return _resultobj; |
5745 | } | |
5746 | ||
5e40f9dd RD |
5747 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
5748 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5749 | PyObject * _resultobj; | |
5750 | wxBrush * _arg0; | |
5751 | PyObject * _argo0 = 0; | |
5752 | char *_kwnames[] = { "self", NULL }; | |
5753 | ||
5754 | self = self; | |
5755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5756 | return NULL; | |
5757 | if (_argo0) { | |
5758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5761 | return NULL; | |
5762 | } | |
5763 | } | |
5764 | { | |
474c48f9 | 5765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
5766 | delete_wxBrush(_arg0); |
5767 | ||
474c48f9 | 5768 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5769 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5770 | } Py_INCREF(Py_None); |
5771 | _resultobj = Py_None; | |
5772 | return _resultobj; | |
5773 | } | |
5774 | ||
70551f47 | 5775 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
107e4716 | 5776 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5777 | PyObject * _resultobj; |
5778 | wxColour * _result; | |
5779 | wxBrush * _arg0; | |
2d091820 | 5780 | PyObject * _argo0 = 0; |
107e4716 | 5781 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5782 | char _ptemp[128]; |
5783 | ||
5784 | self = self; | |
107e4716 | 5785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
70551f47 | 5786 | return NULL; |
2d091820 RD |
5787 | if (_argo0) { |
5788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
5791 | return NULL; | |
5792 | } | |
5793 | } | |
ab9bc19b | 5794 | { |
474c48f9 | 5795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
84a81942 | 5796 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
ab9bc19b | 5797 | |
474c48f9 | 5798 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5799 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
5800 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5801 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5802 | return _resultobj; |
5803 | } | |
5804 | ||
5805 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
107e4716 | 5806 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5807 | PyObject * _resultobj; |
5808 | wxBitmap * _result; | |
5809 | wxBrush * _arg0; | |
2d091820 | 5810 | PyObject * _argo0 = 0; |
107e4716 | 5811 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5812 | char _ptemp[128]; |
5813 | ||
5814 | self = self; | |
107e4716 | 5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
70551f47 | 5816 | return NULL; |
2d091820 RD |
5817 | if (_argo0) { |
5818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
5821 | return NULL; | |
5822 | } | |
5823 | } | |
ab9bc19b | 5824 | { |
474c48f9 | 5825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5826 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
5827 | ||
474c48f9 | 5828 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5829 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5830 | } if (_result) { |
5831 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5832 | _resultobj = Py_BuildValue("s",_ptemp); | |
5833 | } else { | |
5834 | Py_INCREF(Py_None); | |
5835 | _resultobj = Py_None; | |
5836 | } | |
70551f47 RD |
5837 | return _resultobj; |
5838 | } | |
5839 | ||
5840 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 5841 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5842 | PyObject * _resultobj; |
5843 | int _result; | |
5844 | wxBrush * _arg0; | |
2d091820 | 5845 | PyObject * _argo0 = 0; |
107e4716 | 5846 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5847 | |
5848 | self = self; | |
107e4716 | 5849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
70551f47 | 5850 | return NULL; |
2d091820 RD |
5851 | if (_argo0) { |
5852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
5855 | return NULL; | |
5856 | } | |
5857 | } | |
ab9bc19b | 5858 | { |
474c48f9 | 5859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5860 | _result = (int )wxBrush_GetStyle(_arg0); |
5861 | ||
474c48f9 | 5862 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5863 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5864 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5865 | return _resultobj; |
5866 | } | |
5867 | ||
5868 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 5869 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5870 | PyObject * _resultobj; |
5871 | bool _result; | |
5872 | wxBrush * _arg0; | |
2d091820 | 5873 | PyObject * _argo0 = 0; |
107e4716 | 5874 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5875 | |
5876 | self = self; | |
107e4716 | 5877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
70551f47 | 5878 | return NULL; |
2d091820 RD |
5879 | if (_argo0) { |
5880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
5883 | return NULL; | |
5884 | } | |
5885 | } | |
ab9bc19b | 5886 | { |
474c48f9 | 5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5888 | _result = (bool )wxBrush_Ok(_arg0); |
5889 | ||
474c48f9 | 5890 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5891 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5892 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5893 | return _resultobj; |
5894 | } | |
5895 | ||
c95e68d8 | 5896 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) |
107e4716 | 5897 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5898 | PyObject * _resultobj; |
5899 | wxBrush * _arg0; | |
5900 | wxColour * _arg1; | |
2d091820 | 5901 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5902 | wxColour temp; |
5903 | PyObject * _obj1 = 0; | |
107e4716 | 5904 | char *_kwnames[] = { "self","colour", NULL }; |
c95e68d8 RD |
5905 | |
5906 | self = self; | |
f6bcfd97 | 5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 5908 | return NULL; |
2d091820 RD |
5909 | if (_argo0) { |
5910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
5913 | return NULL; | |
5914 | } | |
5915 | } | |
f6bcfd97 BP |
5916 | { |
5917 | _arg1 = &temp; | |
5918 | if (! wxColour_helper(_obj1, &_arg1)) | |
c95e68d8 | 5919 | return NULL; |
f6bcfd97 | 5920 | } |
ab9bc19b | 5921 | { |
474c48f9 | 5922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5923 | wxBrush_SetColour(_arg0,*_arg1); |
5924 | ||
474c48f9 | 5925 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5926 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5927 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5928 | _resultobj = Py_None; |
5929 | return _resultobj; | |
5930 | } | |
5931 | ||
5932 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
107e4716 | 5933 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5934 | PyObject * _resultobj; |
5935 | wxBrush * _arg0; | |
5936 | wxBitmap * _arg1; | |
2d091820 RD |
5937 | PyObject * _argo0 = 0; |
5938 | PyObject * _argo1 = 0; | |
107e4716 | 5939 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
5940 | |
5941 | self = self; | |
107e4716 | 5942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 5943 | return NULL; |
2d091820 RD |
5944 | if (_argo0) { |
5945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
5948 | return NULL; | |
5949 | } | |
5950 | } | |
2d091820 RD |
5951 | if (_argo1) { |
5952 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5953 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
5954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
5955 | return NULL; | |
5956 | } | |
5957 | } | |
ab9bc19b | 5958 | { |
474c48f9 | 5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5960 | wxBrush_SetStipple(_arg0,*_arg1); |
5961 | ||
474c48f9 | 5962 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5963 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5964 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5965 | _resultobj = Py_None; |
5966 | return _resultobj; | |
5967 | } | |
5968 | ||
5969 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 5970 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5971 | PyObject * _resultobj; |
5972 | wxBrush * _arg0; | |
5973 | int _arg1; | |
2d091820 | 5974 | PyObject * _argo0 = 0; |
107e4716 | 5975 | char *_kwnames[] = { "self","style", NULL }; |
c95e68d8 RD |
5976 | |
5977 | self = self; | |
107e4716 | 5978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 5979 | return NULL; |
2d091820 RD |
5980 | if (_argo0) { |
5981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
5984 | return NULL; | |
5985 | } | |
5986 | } | |
ab9bc19b | 5987 | { |
474c48f9 | 5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
5989 | wxBrush_SetStyle(_arg0,_arg1); |
5990 | ||
474c48f9 | 5991 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5992 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5993 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5994 | _resultobj = Py_None; |
5995 | return _resultobj; | |
5996 | } | |
5997 | ||
65191ae8 RD |
5998 | static void *SwigwxBrushListTowxObject(void *ptr) { |
5999 | wxBrushList *src; | |
6000 | wxObject *dest; | |
6001 | src = (wxBrushList *) ptr; | |
6002 | dest = (wxObject *) src; | |
6003 | return (void *) dest; | |
6004 | } | |
6005 | ||
5e40f9dd RD |
6006 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
6007 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6008 | PyObject * _resultobj; | |
6009 | wxBrushList * _arg0; | |
6010 | wxBrush * _arg1; | |
6011 | PyObject * _argo0 = 0; | |
6012 | PyObject * _argo1 = 0; | |
6013 | char *_kwnames[] = { "self","brush", NULL }; | |
6014 | ||
6015 | self = self; | |
6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6017 | return NULL; | |
6018 | if (_argo0) { | |
6019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6022 | return NULL; | |
6023 | } | |
6024 | } | |
6025 | if (_argo1) { | |
6026 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6027 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6029 | return NULL; | |
6030 | } | |
6031 | } | |
6032 | { | |
474c48f9 | 6033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
6034 | wxBrushList_AddBrush(_arg0,_arg1); |
6035 | ||
474c48f9 | 6036 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6037 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
6038 | } Py_INCREF(Py_None); |
6039 | _resultobj = Py_None; | |
6040 | return _resultobj; | |
6041 | } | |
6042 | ||
6043 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6044 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6045 | PyObject * _resultobj; | |
6046 | wxBrush * _result; | |
6047 | wxBrushList * _arg0; | |
6048 | wxColour * _arg1; | |
6049 | int _arg2; | |
6050 | PyObject * _argo0 = 0; | |
6051 | wxColour temp; | |
6052 | PyObject * _obj1 = 0; | |
6053 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6054 | char _ptemp[128]; | |
6055 | ||
6056 | self = self; | |
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6058 | return NULL; | |
6059 | if (_argo0) { | |
6060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6063 | return NULL; | |
6064 | } | |
6065 | } | |
6066 | { | |
6067 | _arg1 = &temp; | |
6068 | if (! wxColour_helper(_obj1, &_arg1)) | |
6069 | return NULL; | |
6070 | } | |
6071 | { | |
474c48f9 | 6072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
6073 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
6074 | ||
474c48f9 | 6075 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6076 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
6077 | } if (_result) { |
6078 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6079 | _resultobj = Py_BuildValue("s",_ptemp); | |
6080 | } else { | |
6081 | Py_INCREF(Py_None); | |
6082 | _resultobj = Py_None; | |
6083 | } | |
6084 | return _resultobj; | |
6085 | } | |
6086 | ||
6087 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
6088 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject * _resultobj; | |
6090 | wxBrushList * _arg0; | |
6091 | wxBrush * _arg1; | |
6092 | PyObject * _argo0 = 0; | |
6093 | PyObject * _argo1 = 0; | |
6094 | char *_kwnames[] = { "self","brush", NULL }; | |
6095 | ||
6096 | self = self; | |
6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
6098 | return NULL; | |
6099 | if (_argo0) { | |
6100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
6103 | return NULL; | |
6104 | } | |
6105 | } | |
6106 | if (_argo1) { | |
6107 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6108 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
6110 | return NULL; | |
6111 | } | |
6112 | } | |
6113 | { | |
474c48f9 | 6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5e40f9dd RD |
6115 | wxBrushList_RemoveBrush(_arg0,_arg1); |
6116 | ||
474c48f9 | 6117 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6118 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
6119 | } Py_INCREF(Py_None); |
6120 | _resultobj = Py_None; | |
6121 | return _resultobj; | |
6122 | } | |
6123 | ||
7a9b33db RD |
6124 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
6125 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6126 | PyObject * _resultobj; | |
6127 | int _result; | |
6128 | wxBrushList * _arg0; | |
6129 | PyObject * _argo0 = 0; | |
6130 | char *_kwnames[] = { "self", NULL }; | |
6131 | ||
6132 | self = self; | |
6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
6134 | return NULL; | |
6135 | if (_argo0) { | |
6136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
6139 | return NULL; | |
6140 | } | |
6141 | } | |
6142 | { | |
474c48f9 | 6143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7a9b33db RD |
6144 | _result = (int )wxBrushList_GetCount(_arg0); |
6145 | ||
474c48f9 | 6146 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
6147 | if (PyErr_Occurred()) return NULL; |
6148 | } _resultobj = Py_BuildValue("i",_result); | |
6149 | return _resultobj; | |
6150 | } | |
6151 | ||
9df61a29 RD |
6152 | static void *SwigwxDCTowxObject(void *ptr) { |
6153 | wxDC *src; | |
6154 | wxObject *dest; | |
6155 | src = (wxDC *) ptr; | |
6156 | dest = (wxObject *) src; | |
6157 | return (void *) dest; | |
6158 | } | |
6159 | ||
70551f47 | 6160 | #define delete_wxDC(_swigobj) (delete _swigobj) |
107e4716 | 6161 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6162 | PyObject * _resultobj; |
6163 | wxDC * _arg0; | |
2d091820 | 6164 | PyObject * _argo0 = 0; |
107e4716 | 6165 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6166 | |
6167 | self = self; | |
107e4716 | 6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
70551f47 | 6169 | return NULL; |
2d091820 RD |
6170 | if (_argo0) { |
6171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
ab9bc19b | 6177 | { |
474c48f9 | 6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6179 | delete_wxDC(_arg0); |
6180 | ||
474c48f9 | 6181 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6182 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6183 | } Py_INCREF(Py_None); |
70551f47 RD |
6184 | _resultobj = Py_None; |
6185 | return _resultobj; | |
6186 | } | |
6187 | ||
6188 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
107e4716 | 6189 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6190 | PyObject * _resultobj; |
6191 | wxDC * _arg0; | |
2d091820 | 6192 | PyObject * _argo0 = 0; |
107e4716 | 6193 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6194 | |
6195 | self = self; | |
107e4716 | 6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
70551f47 | 6197 | return NULL; |
2d091820 RD |
6198 | if (_argo0) { |
6199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
6202 | return NULL; | |
6203 | } | |
6204 | } | |
ab9bc19b | 6205 | { |
474c48f9 | 6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6207 | wxDC_BeginDrawing(_arg0); |
6208 | ||
474c48f9 | 6209 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6210 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6211 | } Py_INCREF(Py_None); |
70551f47 RD |
6212 | _resultobj = Py_None; |
6213 | return _resultobj; | |
6214 | } | |
6215 | ||
107e4716 RD |
6216 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
6217 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6218 | PyObject * _resultobj; |
6219 | bool _result; | |
6220 | wxDC * _arg0; | |
6221 | long _arg1; | |
6222 | long _arg2; | |
6223 | long _arg3; | |
6224 | long _arg4; | |
6225 | wxDC * _arg5; | |
6226 | long _arg6; | |
6227 | long _arg7; | |
107e4716 RD |
6228 | int _arg8 = (int ) wxCOPY; |
6229 | int _arg9 = (int ) FALSE; | |
2d091820 RD |
6230 | PyObject * _argo0 = 0; |
6231 | PyObject * _argo5 = 0; | |
107e4716 | 6232 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
70551f47 RD |
6233 | |
6234 | self = self; | |
107e4716 | 6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
70551f47 | 6236 | return NULL; |
2d091820 RD |
6237 | if (_argo0) { |
6238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
6241 | return NULL; | |
6242 | } | |
6243 | } | |
2d091820 RD |
6244 | if (_argo5) { |
6245 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6246 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
70551f47 RD |
6247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
6248 | return NULL; | |
6249 | } | |
6250 | } | |
ab9bc19b | 6251 | { |
474c48f9 | 6252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
107e4716 | 6253 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
ab9bc19b | 6254 | |
474c48f9 | 6255 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6256 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6257 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6258 | return _resultobj; |
6259 | } | |
6260 | ||
6261 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 6262 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6263 | PyObject * _resultobj; |
6264 | wxDC * _arg0; | |
2d091820 | 6265 | PyObject * _argo0 = 0; |
107e4716 | 6266 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6267 | |
6268 | self = self; | |
107e4716 | 6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
70551f47 | 6270 | return NULL; |
2d091820 RD |
6271 | if (_argo0) { |
6272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
6275 | return NULL; | |
6276 | } | |
6277 | } | |
ab9bc19b | 6278 | { |
474c48f9 | 6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6280 | wxDC_Clear(_arg0); |
6281 | ||
474c48f9 | 6282 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6283 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6284 | } Py_INCREF(Py_None); |
70551f47 RD |
6285 | _resultobj = Py_None; |
6286 | return _resultobj; | |
6287 | } | |
6288 | ||
6289 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
107e4716 | 6290 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6291 | PyObject * _resultobj; |
6292 | wxDC * _arg0; | |
6293 | long _arg1; | |
6294 | long _arg2; | |
2d091820 | 6295 | PyObject * _argo0 = 0; |
107e4716 | 6296 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6297 | |
6298 | self = self; | |
107e4716 | 6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6300 | return NULL; |
2d091820 RD |
6301 | if (_argo0) { |
6302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
6305 | return NULL; | |
6306 | } | |
6307 | } | |
ab9bc19b | 6308 | { |
474c48f9 | 6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6310 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
6311 | ||
474c48f9 | 6312 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6313 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6314 | } Py_INCREF(Py_None); |
70551f47 RD |
6315 | _resultobj = Py_None; |
6316 | return _resultobj; | |
6317 | } | |
6318 | ||
6319 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
107e4716 | 6320 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6321 | PyObject * _resultobj; |
6322 | wxDC * _arg0; | |
2d091820 | 6323 | PyObject * _argo0 = 0; |
107e4716 | 6324 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6325 | |
6326 | self = self; | |
107e4716 | 6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
70551f47 | 6328 | return NULL; |
2d091820 RD |
6329 | if (_argo0) { |
6330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
6333 | return NULL; | |
6334 | } | |
6335 | } | |
ab9bc19b | 6336 | { |
474c48f9 | 6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6338 | wxDC_DestroyClippingRegion(_arg0); |
6339 | ||
474c48f9 | 6340 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6341 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6342 | } Py_INCREF(Py_None); |
70551f47 RD |
6343 | _resultobj = Py_None; |
6344 | return _resultobj; | |
6345 | } | |
6346 | ||
6347 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
107e4716 | 6348 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6349 | PyObject * _resultobj; |
6350 | long _result; | |
6351 | wxDC * _arg0; | |
6352 | long _arg1; | |
2d091820 | 6353 | PyObject * _argo0 = 0; |
107e4716 | 6354 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6355 | |
6356 | self = self; | |
107e4716 | 6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6358 | return NULL; |
2d091820 RD |
6359 | if (_argo0) { |
6360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
6363 | return NULL; | |
6364 | } | |
6365 | } | |
ab9bc19b | 6366 | { |
474c48f9 | 6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6368 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
6369 | ||
474c48f9 | 6370 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6371 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6372 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6373 | return _resultobj; |
6374 | } | |
6375 | ||
6376 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
107e4716 | 6377 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6378 | PyObject * _resultobj; |
6379 | long _result; | |
6380 | wxDC * _arg0; | |
6381 | long _arg1; | |
2d091820 | 6382 | PyObject * _argo0 = 0; |
107e4716 | 6383 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6384 | |
6385 | self = self; | |
107e4716 | 6386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6387 | return NULL; |
2d091820 RD |
6388 | if (_argo0) { |
6389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
6392 | return NULL; | |
6393 | } | |
6394 | } | |
ab9bc19b | 6395 | { |
474c48f9 | 6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6397 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
6398 | ||
474c48f9 | 6399 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6400 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6401 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6402 | return _resultobj; |
6403 | } | |
6404 | ||
6405 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
107e4716 | 6406 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6407 | PyObject * _resultobj; |
6408 | long _result; | |
6409 | wxDC * _arg0; | |
6410 | long _arg1; | |
2d091820 | 6411 | PyObject * _argo0 = 0; |
107e4716 | 6412 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6413 | |
6414 | self = self; | |
107e4716 | 6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6416 | return NULL; |
2d091820 RD |
6417 | if (_argo0) { |
6418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
6421 | return NULL; | |
6422 | } | |
6423 | } | |
ab9bc19b | 6424 | { |
474c48f9 | 6425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6426 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
6427 | ||
474c48f9 | 6428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6429 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6430 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6431 | return _resultobj; |
6432 | } | |
6433 | ||
6434 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
107e4716 | 6435 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6436 | PyObject * _resultobj; |
6437 | long _result; | |
6438 | wxDC * _arg0; | |
6439 | long _arg1; | |
2d091820 | 6440 | PyObject * _argo0 = 0; |
107e4716 | 6441 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6442 | |
6443 | self = self; | |
107e4716 | 6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6445 | return NULL; |
2d091820 RD |
6446 | if (_argo0) { |
6447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
6450 | return NULL; | |
6451 | } | |
6452 | } | |
ab9bc19b | 6453 | { |
474c48f9 | 6454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6455 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
6456 | ||
474c48f9 | 6457 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6458 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6459 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6460 | return _resultobj; |
6461 | } | |
6462 | ||
6463 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 6464 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6465 | PyObject * _resultobj; |
6466 | wxDC * _arg0; | |
6467 | long _arg1; | |
6468 | long _arg2; | |
6469 | long _arg3; | |
6470 | long _arg4; | |
6471 | long _arg5; | |
6472 | long _arg6; | |
2d091820 | 6473 | PyObject * _argo0 = 0; |
107e4716 | 6474 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
70551f47 RD |
6475 | |
6476 | self = self; | |
107e4716 | 6477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 6478 | return NULL; |
2d091820 RD |
6479 | if (_argo0) { |
6480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
6483 | return NULL; | |
6484 | } | |
6485 | } | |
ab9bc19b | 6486 | { |
474c48f9 | 6487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6488 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
6489 | ||
474c48f9 | 6490 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6491 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6492 | } Py_INCREF(Py_None); |
70551f47 RD |
6493 | _resultobj = Py_None; |
6494 | return _resultobj; | |
6495 | } | |
6496 | ||
d24a34bb | 6497 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 6498 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
6499 | PyObject * _resultobj; |
6500 | wxDC * _arg0; | |
6501 | long _arg1; | |
6502 | long _arg2; | |
6503 | long _arg3; | |
2d091820 | 6504 | PyObject * _argo0 = 0; |
107e4716 | 6505 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
d24a34bb RD |
6506 | |
6507 | self = self; | |
107e4716 | 6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
d24a34bb | 6509 | return NULL; |
2d091820 RD |
6510 | if (_argo0) { |
6511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
6513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
6514 | return NULL; | |
6515 | } | |
6516 | } | |
6517 | { | |
474c48f9 | 6518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb RD |
6519 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
6520 | ||
474c48f9 | 6521 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6522 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6523 | } Py_INCREF(Py_None); |
6524 | _resultobj = Py_None; | |
6525 | return _resultobj; | |
6526 | } | |
6527 | ||
70551f47 | 6528 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 6529 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6530 | PyObject * _resultobj; |
6531 | wxDC * _arg0; | |
6532 | long _arg1; | |
6533 | long _arg2; | |
6534 | long _arg3; | |
6535 | long _arg4; | |
2d091820 | 6536 | PyObject * _argo0 = 0; |
107e4716 | 6537 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
6538 | |
6539 | self = self; | |
107e4716 | 6540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6541 | return NULL; |
2d091820 RD |
6542 | if (_argo0) { |
6543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
6546 | return NULL; | |
6547 | } | |
6548 | } | |
ab9bc19b | 6549 | { |
474c48f9 | 6550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6551 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
6552 | ||
474c48f9 | 6553 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6554 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6555 | } Py_INCREF(Py_None); |
70551f47 RD |
6556 | _resultobj = Py_None; |
6557 | return _resultobj; | |
6558 | } | |
6559 | ||
6560 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 6561 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6562 | PyObject * _resultobj; |
6563 | wxDC * _arg0; | |
6564 | long _arg1; | |
6565 | long _arg2; | |
6566 | long _arg3; | |
6567 | long _arg4; | |
6568 | long _arg5; | |
6569 | long _arg6; | |
2d091820 | 6570 | PyObject * _argo0 = 0; |
107e4716 | 6571 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
70551f47 RD |
6572 | |
6573 | self = self; | |
107e4716 | 6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 6575 | return NULL; |
2d091820 RD |
6576 | if (_argo0) { |
6577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
6580 | return NULL; | |
6581 | } | |
6582 | } | |
ab9bc19b | 6583 | { |
474c48f9 | 6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6585 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
6586 | ||
474c48f9 | 6587 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6588 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6589 | } Py_INCREF(Py_None); |
70551f47 RD |
6590 | _resultobj = Py_None; |
6591 | return _resultobj; | |
6592 | } | |
6593 | ||
6594 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 6595 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6596 | PyObject * _resultobj; |
6597 | wxDC * _arg0; | |
6598 | wxIcon * _arg1; | |
6599 | long _arg2; | |
6600 | long _arg3; | |
2d091820 RD |
6601 | PyObject * _argo0 = 0; |
6602 | PyObject * _argo1 = 0; | |
107e4716 | 6603 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
70551f47 RD |
6604 | |
6605 | self = self; | |
107e4716 | 6606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
70551f47 | 6607 | return NULL; |
2d091820 RD |
6608 | if (_argo0) { |
6609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
6612 | return NULL; | |
6613 | } | |
6614 | } | |
2d091820 RD |
6615 | if (_argo1) { |
6616 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6617 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
70551f47 RD |
6618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
6619 | return NULL; | |
6620 | } | |
6621 | } | |
ab9bc19b | 6622 | { |
474c48f9 | 6623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6624 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
6625 | ||
474c48f9 | 6626 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6627 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6628 | } Py_INCREF(Py_None); |
70551f47 RD |
6629 | _resultobj = Py_None; |
6630 | return _resultobj; | |
6631 | } | |
6632 | ||
8cb49012 RD |
6633 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6634 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6635 | PyObject * _resultobj; | |
6636 | wxDC * _arg0; | |
6637 | wxString * _arg1; | |
6638 | wxRect * _arg2; | |
6639 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6640 | int _arg4 = (int ) -1; | |
6641 | PyObject * _argo0 = 0; | |
6642 | PyObject * _obj1 = 0; | |
6643 | wxRect temp; | |
6644 | PyObject * _obj2 = 0; | |
6645 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
6646 | ||
6647 | self = self; | |
6648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
6649 | return NULL; | |
6650 | if (_argo0) { | |
6651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
6654 | return NULL; | |
6655 | } | |
6656 | } | |
6657 | { | |
6658 | #if PYTHON_API_VERSION >= 1009 | |
6659 | char* tmpPtr; int tmpSize; | |
6660 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6661 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6662 | return NULL; | |
6663 | } | |
6664 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6665 | return NULL; | |
6666 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6667 | #else | |
6668 | if (!PyString_Check(_obj1)) { | |
6669 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6670 | return NULL; | |
6671 | } | |
6672 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6673 | #endif | |
6674 | } | |
6675 | { | |
6676 | _arg2 = &temp; | |
6677 | if (! wxRect_helper(_obj2, &_arg2)) | |
6678 | return NULL; | |
6679 | } | |
6680 | { | |
6681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6682 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
6683 | ||
6684 | wxPyEndAllowThreads(__tstate); | |
6685 | if (PyErr_Occurred()) return NULL; | |
6686 | } Py_INCREF(Py_None); | |
6687 | _resultobj = Py_None; | |
6688 | { | |
6689 | if (_obj1) | |
6690 | delete _arg1; | |
6691 | } | |
6692 | return _resultobj; | |
6693 | } | |
6694 | ||
6695 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
6696 | wxRect rv; | |
6697 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
6698 | return rv; | |
6699 | } | |
6700 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6701 | PyObject * _resultobj; | |
6702 | wxRect * _result; | |
6703 | wxDC * _arg0; | |
6704 | wxString * _arg1; | |
6705 | wxBitmap * _arg2; | |
6706 | wxRect * _arg3; | |
6707 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6708 | int _arg5 = (int ) -1; | |
6709 | PyObject * _argo0 = 0; | |
6710 | PyObject * _obj1 = 0; | |
6711 | PyObject * _argo2 = 0; | |
6712 | wxRect temp; | |
6713 | PyObject * _obj3 = 0; | |
6714 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
6715 | char _ptemp[128]; | |
6716 | ||
6717 | self = self; | |
6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
6719 | return NULL; | |
6720 | if (_argo0) { | |
6721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
6724 | return NULL; | |
6725 | } | |
6726 | } | |
6727 | { | |
6728 | #if PYTHON_API_VERSION >= 1009 | |
6729 | char* tmpPtr; int tmpSize; | |
6730 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6731 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6732 | return NULL; | |
6733 | } | |
6734 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6735 | return NULL; | |
6736 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6737 | #else | |
6738 | if (!PyString_Check(_obj1)) { | |
6739 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6740 | return NULL; | |
6741 | } | |
6742 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6743 | #endif | |
6744 | } | |
6745 | if (_argo2) { | |
6746 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6747 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
6748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
6749 | return NULL; | |
6750 | } | |
6751 | } | |
6752 | { | |
6753 | _arg3 = &temp; | |
6754 | if (! wxRect_helper(_obj3, &_arg3)) | |
6755 | return NULL; | |
6756 | } | |
6757 | { | |
6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6759 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); | |
6760 | ||
6761 | wxPyEndAllowThreads(__tstate); | |
6762 | if (PyErr_Occurred()) return NULL; | |
6763 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
6764 | _resultobj = Py_BuildValue("s",_ptemp); | |
6765 | { | |
6766 | if (_obj1) | |
6767 | delete _arg1; | |
6768 | } | |
6769 | return _resultobj; | |
6770 | } | |
6771 | ||
70551f47 | 6772 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 6773 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6774 | PyObject * _resultobj; |
6775 | wxDC * _arg0; | |
6776 | long _arg1; | |
6777 | long _arg2; | |
6778 | long _arg3; | |
6779 | long _arg4; | |
2d091820 | 6780 | PyObject * _argo0 = 0; |
107e4716 | 6781 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
70551f47 RD |
6782 | |
6783 | self = self; | |
107e4716 | 6784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6785 | return NULL; |
2d091820 RD |
6786 | if (_argo0) { |
6787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
6790 | return NULL; | |
6791 | } | |
6792 | } | |
ab9bc19b | 6793 | { |
474c48f9 | 6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6795 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
6796 | ||
474c48f9 | 6797 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6798 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6799 | } Py_INCREF(Py_None); |
70551f47 RD |
6800 | _resultobj = Py_None; |
6801 | return _resultobj; | |
6802 | } | |
6803 | ||
6804 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6805 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6806 | PyObject * _resultobj; |
6807 | wxDC * _arg0; | |
6808 | int _arg1; | |
6809 | wxPoint * _arg2; | |
2d091820 RD |
6810 | long _arg3 = (long ) 0; |
6811 | long _arg4 = (long ) 0; | |
6812 | PyObject * _argo0 = 0; | |
1c09ae54 | 6813 | int NPOINTS; |
70551f47 | 6814 | PyObject * _obj2 = 0; |
e02c03a4 | 6815 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
70551f47 RD |
6816 | |
6817 | self = self; | |
107e4716 | 6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
70551f47 | 6819 | return NULL; |
2d091820 RD |
6820 | if (_argo0) { |
6821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
6824 | return NULL; | |
6825 | } | |
6826 | } | |
6827 | if (_obj2) | |
6828 | { | |
1c09ae54 RD |
6829 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6830 | if (_arg2 == NULL) { | |
6831 | return NULL; | |
6832 | } | |
70551f47 RD |
6833 | } |
6834 | { | |
1c09ae54 | 6835 | _arg1 = NPOINTS; |
70551f47 | 6836 | } |
ab9bc19b | 6837 | { |
474c48f9 | 6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6839 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
6840 | ||
474c48f9 | 6841 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6842 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6843 | } Py_INCREF(Py_None); |
70551f47 RD |
6844 | _resultobj = Py_None; |
6845 | { | |
6846 | delete [] _arg2; | |
6847 | } | |
6848 | return _resultobj; | |
6849 | } | |
6850 | ||
6851 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 6852 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6853 | PyObject * _resultobj; |
6854 | wxDC * _arg0; | |
6855 | int _arg1; | |
6856 | wxPoint * _arg2; | |
2d091820 RD |
6857 | long _arg3 = (long ) 0; |
6858 | long _arg4 = (long ) 0; | |
6859 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6860 | PyObject * _argo0 = 0; | |
1c09ae54 | 6861 | int NPOINTS; |
70551f47 | 6862 | PyObject * _obj2 = 0; |
e02c03a4 | 6863 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
70551f47 RD |
6864 | |
6865 | self = self; | |
107e4716 | 6866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 6867 | return NULL; |
2d091820 RD |
6868 | if (_argo0) { |
6869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
6872 | return NULL; | |
6873 | } | |
6874 | } | |
6875 | if (_obj2) | |
6876 | { | |
1c09ae54 RD |
6877 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6878 | if (_arg2 == NULL) { | |
6879 | return NULL; | |
6880 | } | |
70551f47 RD |
6881 | } |
6882 | { | |
1c09ae54 | 6883 | _arg1 = NPOINTS; |
70551f47 | 6884 | } |
ab9bc19b | 6885 | { |
474c48f9 | 6886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6887 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
6888 | ||
474c48f9 | 6889 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6890 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6891 | } Py_INCREF(Py_None); |
70551f47 RD |
6892 | _resultobj = Py_None; |
6893 | { | |
6894 | delete [] _arg2; | |
6895 | } | |
6896 | return _resultobj; | |
6897 | } | |
6898 | ||
6899 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
107e4716 | 6900 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6901 | PyObject * _resultobj; |
6902 | wxDC * _arg0; | |
6903 | long _arg1; | |
6904 | long _arg2; | |
2d091820 | 6905 | PyObject * _argo0 = 0; |
107e4716 | 6906 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6907 | |
6908 | self = self; | |
107e4716 | 6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6910 | return NULL; |
2d091820 RD |
6911 | if (_argo0) { |
6912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
6915 | return NULL; | |
6916 | } | |
6917 | } | |
ab9bc19b | 6918 | { |
474c48f9 | 6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6920 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
6921 | ||
474c48f9 | 6922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6923 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6924 | } Py_INCREF(Py_None); |
70551f47 RD |
6925 | _resultobj = Py_None; |
6926 | return _resultobj; | |
6927 | } | |
6928 | ||
6929 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6930 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6931 | PyObject * _resultobj; |
6932 | wxDC * _arg0; | |
6933 | long _arg1; | |
6934 | long _arg2; | |
6935 | long _arg3; | |
6936 | long _arg4; | |
2d091820 | 6937 | PyObject * _argo0 = 0; |
107e4716 | 6938 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
6939 | |
6940 | self = self; | |
107e4716 | 6941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6942 | return NULL; |
2d091820 RD |
6943 | if (_argo0) { |
6944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
6947 | return NULL; | |
6948 | } | |
6949 | } | |
ab9bc19b | 6950 | { |
474c48f9 | 6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
6952 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
6953 | ||
474c48f9 | 6954 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6955 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6956 | } Py_INCREF(Py_None); |
70551f47 RD |
6957 | _resultobj = Py_None; |
6958 | return _resultobj; | |
6959 | } | |
6960 | ||
56f5d962 RD |
6961 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6962 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6963 | PyObject * _resultobj; | |
6964 | wxDC * _arg0; | |
6965 | wxString * _arg1; | |
6966 | wxCoord _arg2; | |
6967 | wxCoord _arg3; | |
6968 | double _arg4; | |
6969 | PyObject * _argo0 = 0; | |
6970 | PyObject * _obj1 = 0; | |
6971 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6972 | ||
6973 | self = self; | |
6974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6975 | return NULL; | |
6976 | if (_argo0) { | |
6977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6980 | return NULL; | |
6981 | } | |
6982 | } | |
6983 | { | |
2cd2fac8 RD |
6984 | #if PYTHON_API_VERSION >= 1009 |
6985 | char* tmpPtr; int tmpSize; | |
6986 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6987 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6988 | return NULL; |
6989 | } | |
6990 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6991 | return NULL; | |
6992 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6993 | #else | |
56f5d962 RD |
6994 | if (!PyString_Check(_obj1)) { |
6995 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6996 | return NULL; | |
6997 | } | |
2cd2fac8 RD |
6998 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6999 | #endif | |
56f5d962 RD |
7000 | } |
7001 | { | |
474c48f9 | 7002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
56f5d962 RD |
7003 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
7004 | ||
474c48f9 | 7005 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7006 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
7007 | } Py_INCREF(Py_None); |
7008 | _resultobj = Py_None; | |
7009 | { | |
7010 | if (_obj1) | |
7011 | delete _arg1; | |
7012 | } | |
7013 | return _resultobj; | |
7014 | } | |
7015 | ||
70551f47 | 7016 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 7017 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7018 | PyObject * _resultobj; |
7019 | wxDC * _arg0; | |
7020 | long _arg1; | |
7021 | long _arg2; | |
7022 | long _arg3; | |
7023 | long _arg4; | |
2d091820 RD |
7024 | long _arg5 = (long ) 20; |
7025 | PyObject * _argo0 = 0; | |
107e4716 | 7026 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
70551f47 RD |
7027 | |
7028 | self = self; | |
107e4716 | 7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 7030 | return NULL; |
2d091820 RD |
7031 | if (_argo0) { |
7032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
7035 | return NULL; | |
7036 | } | |
7037 | } | |
ab9bc19b | 7038 | { |
474c48f9 | 7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7040 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
7041 | ||
474c48f9 | 7042 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7043 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7044 | } Py_INCREF(Py_None); |
70551f47 RD |
7045 | _resultobj = Py_None; |
7046 | return _resultobj; | |
7047 | } | |
7048 | ||
7049 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
107e4716 | 7050 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7051 | PyObject * _resultobj; |
7052 | wxDC * _arg0; | |
7053 | int _arg1; | |
7054 | wxPoint * _arg2; | |
2d091820 | 7055 | PyObject * _argo0 = 0; |
1c09ae54 | 7056 | int NPOINTS; |
70551f47 | 7057 | PyObject * _obj2 = 0; |
e02c03a4 | 7058 | char *_kwnames[] = { "self","points", NULL }; |
70551f47 RD |
7059 | |
7060 | self = self; | |
107e4716 | 7061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
70551f47 | 7062 | return NULL; |
2d091820 RD |
7063 | if (_argo0) { |
7064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
7067 | return NULL; | |
7068 | } | |
7069 | } | |
7070 | if (_obj2) | |
7071 | { | |
1c09ae54 RD |
7072 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7073 | if (_arg2 == NULL) { | |
7074 | return NULL; | |
7075 | } | |
70551f47 RD |
7076 | } |
7077 | { | |
1c09ae54 | 7078 | _arg1 = NPOINTS; |
70551f47 | 7079 | } |
ab9bc19b | 7080 | { |
474c48f9 | 7081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7082 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
7083 | ||
474c48f9 | 7084 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7085 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7086 | } Py_INCREF(Py_None); |
70551f47 RD |
7087 | _resultobj = Py_None; |
7088 | { | |
7089 | delete [] _arg2; | |
7090 | } | |
7091 | return _resultobj; | |
7092 | } | |
7093 | ||
7094 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 7095 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7096 | PyObject * _resultobj; |
7097 | wxDC * _arg0; | |
7098 | wxString * _arg1; | |
7099 | long _arg2; | |
7100 | long _arg3; | |
2d091820 | 7101 | PyObject * _argo0 = 0; |
70551f47 | 7102 | PyObject * _obj1 = 0; |
107e4716 | 7103 | char *_kwnames[] = { "self","text","x","y", NULL }; |
70551f47 RD |
7104 | |
7105 | self = self; | |
107e4716 | 7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
70551f47 | 7107 | return NULL; |
2d091820 RD |
7108 | if (_argo0) { |
7109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
7112 | return NULL; | |
7113 | } | |
7114 | } | |
7115 | { | |
2cd2fac8 RD |
7116 | #if PYTHON_API_VERSION >= 1009 |
7117 | char* tmpPtr; int tmpSize; | |
7118 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7119 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7120 | return NULL; |
7121 | } | |
7122 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7123 | return NULL; | |
7124 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7125 | #else | |
70551f47 RD |
7126 | if (!PyString_Check(_obj1)) { |
7127 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7128 | return NULL; | |
7129 | } | |
2cd2fac8 RD |
7130 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7131 | #endif | |
70551f47 | 7132 | } |
ab9bc19b | 7133 | { |
474c48f9 | 7134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7135 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
7136 | ||
474c48f9 | 7137 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7138 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7139 | } Py_INCREF(Py_None); |
70551f47 RD |
7140 | _resultobj = Py_None; |
7141 | { | |
7142 | if (_obj1) | |
7143 | delete _arg1; | |
7144 | } | |
7145 | return _resultobj; | |
7146 | } | |
7147 | ||
7148 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
107e4716 | 7149 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7150 | PyObject * _resultobj; |
7151 | wxDC * _arg0; | |
2d091820 | 7152 | PyObject * _argo0 = 0; |
107e4716 | 7153 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7154 | |
7155 | self = self; | |
107e4716 | 7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
70551f47 | 7157 | return NULL; |
2d091820 RD |
7158 | if (_argo0) { |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
ab9bc19b | 7165 | { |
474c48f9 | 7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7167 | wxDC_EndDoc(_arg0); |
7168 | ||
474c48f9 | 7169 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7170 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7171 | } Py_INCREF(Py_None); |
70551f47 RD |
7172 | _resultobj = Py_None; |
7173 | return _resultobj; | |
7174 | } | |
7175 | ||
7176 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
107e4716 | 7177 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7178 | PyObject * _resultobj; |
7179 | wxDC * _arg0; | |
2d091820 | 7180 | PyObject * _argo0 = 0; |
107e4716 | 7181 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7182 | |
7183 | self = self; | |
107e4716 | 7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
70551f47 | 7185 | return NULL; |
2d091820 RD |
7186 | if (_argo0) { |
7187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
7190 | return NULL; | |
7191 | } | |
7192 | } | |
ab9bc19b | 7193 | { |
474c48f9 | 7194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7195 | wxDC_EndDrawing(_arg0); |
7196 | ||
474c48f9 | 7197 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7198 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7199 | } Py_INCREF(Py_None); |
70551f47 RD |
7200 | _resultobj = Py_None; |
7201 | return _resultobj; | |
7202 | } | |
7203 | ||
7204 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
107e4716 | 7205 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7206 | PyObject * _resultobj; |
7207 | wxDC * _arg0; | |
2d091820 | 7208 | PyObject * _argo0 = 0; |
107e4716 | 7209 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7210 | |
7211 | self = self; | |
107e4716 | 7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
70551f47 | 7213 | return NULL; |
2d091820 RD |
7214 | if (_argo0) { |
7215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
7218 | return NULL; | |
7219 | } | |
7220 | } | |
ab9bc19b | 7221 | { |
474c48f9 | 7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7223 | wxDC_EndPage(_arg0); |
7224 | ||
474c48f9 | 7225 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7226 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7227 | } Py_INCREF(Py_None); |
70551f47 RD |
7228 | _resultobj = Py_None; |
7229 | return _resultobj; | |
7230 | } | |
7231 | ||
7232 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 7233 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7234 | PyObject * _resultobj; |
7235 | wxDC * _arg0; | |
7236 | long _arg1; | |
7237 | long _arg2; | |
7238 | wxColour * _arg3; | |
2d091820 RD |
7239 | int _arg4 = (int ) wxFLOOD_SURFACE; |
7240 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
7241 | wxColour temp; |
7242 | PyObject * _obj3 = 0; | |
107e4716 | 7243 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
70551f47 RD |
7244 | |
7245 | self = self; | |
f6bcfd97 | 7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
70551f47 | 7247 | return NULL; |
2d091820 RD |
7248 | if (_argo0) { |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
7252 | return NULL; | |
7253 | } | |
7254 | } | |
f6bcfd97 BP |
7255 | { |
7256 | _arg3 = &temp; | |
7257 | if (! wxColour_helper(_obj3, &_arg3)) | |
70551f47 | 7258 | return NULL; |
f6bcfd97 | 7259 | } |
ab9bc19b | 7260 | { |
474c48f9 | 7261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7262 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
7263 | ||
474c48f9 | 7264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7265 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7266 | } Py_INCREF(Py_None); |
70551f47 RD |
7267 | _resultobj = Py_None; |
7268 | return _resultobj; | |
7269 | } | |
7270 | ||
7271 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
107e4716 | 7272 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7273 | PyObject * _resultobj; |
7274 | wxBrush * _result; | |
7275 | wxDC * _arg0; | |
2d091820 | 7276 | PyObject * _argo0 = 0; |
107e4716 | 7277 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7278 | char _ptemp[128]; |
7279 | ||
7280 | self = self; | |
107e4716 | 7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
70551f47 | 7282 | return NULL; |
2d091820 RD |
7283 | if (_argo0) { |
7284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
7287 | return NULL; | |
7288 | } | |
7289 | } | |
ab9bc19b | 7290 | { |
474c48f9 | 7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 7292 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
ab9bc19b | 7293 | |
474c48f9 | 7294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7295 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7296 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7297 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7298 | return _resultobj; |
7299 | } | |
7300 | ||
7301 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
107e4716 | 7302 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7303 | PyObject * _resultobj; |
7304 | wxBrush * _result; | |
7305 | wxDC * _arg0; | |
2d091820 | 7306 | PyObject * _argo0 = 0; |
107e4716 | 7307 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7308 | char _ptemp[128]; |
7309 | ||
7310 | self = self; | |
107e4716 | 7311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
70551f47 | 7312 | return NULL; |
2d091820 RD |
7313 | if (_argo0) { |
7314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
7317 | return NULL; | |
7318 | } | |
7319 | } | |
ab9bc19b | 7320 | { |
474c48f9 | 7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 7322 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
ab9bc19b | 7323 | |
474c48f9 | 7324 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7325 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7326 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7327 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7328 | return _resultobj; |
7329 | } | |
7330 | ||
7331 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
107e4716 | 7332 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7333 | PyObject * _resultobj; |
7334 | long _result; | |
7335 | wxDC * _arg0; | |
2d091820 | 7336 | PyObject * _argo0 = 0; |
107e4716 | 7337 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7338 | |
7339 | self = self; | |
107e4716 | 7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
70551f47 | 7341 | return NULL; |
2d091820 RD |
7342 | if (_argo0) { |
7343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
7346 | return NULL; | |
7347 | } | |
7348 | } | |
ab9bc19b | 7349 | { |
474c48f9 | 7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7351 | _result = (long )wxDC_GetCharHeight(_arg0); |
7352 | ||
474c48f9 | 7353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7354 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7355 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7356 | return _resultobj; |
7357 | } | |
7358 | ||
7359 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
107e4716 | 7360 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7361 | PyObject * _resultobj; |
7362 | long _result; | |
7363 | wxDC * _arg0; | |
2d091820 | 7364 | PyObject * _argo0 = 0; |
107e4716 | 7365 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7366 | |
7367 | self = self; | |
107e4716 | 7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
70551f47 | 7369 | return NULL; |
2d091820 RD |
7370 | if (_argo0) { |
7371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
7374 | return NULL; | |
7375 | } | |
7376 | } | |
ab9bc19b | 7377 | { |
474c48f9 | 7378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7379 | _result = (long )wxDC_GetCharWidth(_arg0); |
7380 | ||
474c48f9 | 7381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7382 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7383 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7384 | return _resultobj; |
7385 | } | |
7386 | ||
7387 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 7388 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7389 | PyObject * _resultobj; |
7390 | wxDC * _arg0; | |
7391 | long * _arg1; | |
7392 | long temp; | |
7393 | long * _arg2; | |
7394 | long temp0; | |
7395 | long * _arg3; | |
7396 | long temp1; | |
7397 | long * _arg4; | |
7398 | long temp2; | |
2d091820 | 7399 | PyObject * _argo0 = 0; |
107e4716 | 7400 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7401 | |
7402 | self = self; | |
7403 | { | |
7404 | _arg1 = &temp; | |
7405 | } | |
7406 | { | |
7407 | _arg2 = &temp0; | |
7408 | } | |
7409 | { | |
7410 | _arg3 = &temp1; | |
7411 | } | |
7412 | { | |
7413 | _arg4 = &temp2; | |
7414 | } | |
107e4716 | 7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
70551f47 | 7416 | return NULL; |
2d091820 RD |
7417 | if (_argo0) { |
7418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
7421 | return NULL; | |
7422 | } | |
7423 | } | |
ab9bc19b | 7424 | { |
474c48f9 | 7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7426 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
7427 | ||
474c48f9 | 7428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7429 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7430 | } Py_INCREF(Py_None); |
70551f47 RD |
7431 | _resultobj = Py_None; |
7432 | { | |
7433 | PyObject *o; | |
7434 | o = PyInt_FromLong((long) (*_arg1)); | |
7435 | _resultobj = t_output_helper(_resultobj, o); | |
7436 | } | |
7437 | { | |
7438 | PyObject *o; | |
7439 | o = PyInt_FromLong((long) (*_arg2)); | |
7440 | _resultobj = t_output_helper(_resultobj, o); | |
7441 | } | |
7442 | { | |
7443 | PyObject *o; | |
7444 | o = PyInt_FromLong((long) (*_arg3)); | |
7445 | _resultobj = t_output_helper(_resultobj, o); | |
7446 | } | |
7447 | { | |
7448 | PyObject *o; | |
7449 | o = PyInt_FromLong((long) (*_arg4)); | |
7450 | _resultobj = t_output_helper(_resultobj, o); | |
7451 | } | |
7452 | return _resultobj; | |
7453 | } | |
7454 | ||
7455 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
107e4716 | 7456 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7457 | PyObject * _resultobj; |
7458 | wxFont * _result; | |
7459 | wxDC * _arg0; | |
2d091820 | 7460 | PyObject * _argo0 = 0; |
107e4716 | 7461 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7462 | char _ptemp[128]; |
7463 | ||
7464 | self = self; | |
107e4716 | 7465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
70551f47 | 7466 | return NULL; |
2d091820 RD |
7467 | if (_argo0) { |
7468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
7471 | return NULL; | |
7472 | } | |
7473 | } | |
ab9bc19b | 7474 | { |
474c48f9 | 7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 7476 | _result = new wxFont (wxDC_GetFont(_arg0)); |
ab9bc19b | 7477 | |
474c48f9 | 7478 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7479 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7480 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
7481 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7482 | return _resultobj; |
7483 | } | |
7484 | ||
7485 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
107e4716 | 7486 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7487 | PyObject * _resultobj; |
7488 | int _result; | |
7489 | wxDC * _arg0; | |
2d091820 | 7490 | PyObject * _argo0 = 0; |
107e4716 | 7491 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7492 | |
7493 | self = self; | |
107e4716 | 7494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
70551f47 | 7495 | return NULL; |
2d091820 RD |
7496 | if (_argo0) { |
7497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
7500 | return NULL; | |
7501 | } | |
7502 | } | |
ab9bc19b | 7503 | { |
474c48f9 | 7504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7505 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
7506 | ||
474c48f9 | 7507 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7508 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7509 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7510 | return _resultobj; |
7511 | } | |
7512 | ||
e02c03a4 RD |
7513 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
7514 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7515 | PyObject * _resultobj; | |
7516 | wxDC * _arg0; | |
7517 | double * _arg1; | |
7518 | double temp; | |
7519 | double * _arg2; | |
7520 | double temp0; | |
7521 | PyObject * _argo0 = 0; | |
7522 | char *_kwnames[] = { "self", NULL }; | |
7523 | ||
7524 | self = self; | |
7525 | { | |
7526 | _arg1 = &temp; | |
7527 | } | |
7528 | { | |
7529 | _arg2 = &temp0; | |
7530 | } | |
7531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
7532 | return NULL; | |
7533 | if (_argo0) { | |
7534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
7537 | return NULL; | |
7538 | } | |
7539 | } | |
7540 | { | |
474c48f9 | 7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
7542 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
7543 | ||
474c48f9 | 7544 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7545 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7546 | } Py_INCREF(Py_None); |
7547 | _resultobj = Py_None; | |
7548 | { | |
7549 | PyObject *o; | |
7550 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7551 | _resultobj = t_output_helper(_resultobj, o); | |
7552 | } | |
7553 | { | |
7554 | PyObject *o; | |
7555 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7556 | _resultobj = t_output_helper(_resultobj, o); | |
7557 | } | |
7558 | return _resultobj; | |
7559 | } | |
7560 | ||
70551f47 | 7561 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
107e4716 | 7562 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7563 | PyObject * _resultobj; |
7564 | int _result; | |
7565 | wxDC * _arg0; | |
2d091820 | 7566 | PyObject * _argo0 = 0; |
107e4716 | 7567 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7568 | |
7569 | self = self; | |
107e4716 | 7570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
70551f47 | 7571 | return NULL; |
2d091820 RD |
7572 | if (_argo0) { |
7573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
7576 | return NULL; | |
7577 | } | |
7578 | } | |
ab9bc19b | 7579 | { |
474c48f9 | 7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7581 | _result = (int )wxDC_GetMapMode(_arg0); |
7582 | ||
474c48f9 | 7583 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7584 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7585 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7586 | return _resultobj; |
7587 | } | |
7588 | ||
7589 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
107e4716 | 7590 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7591 | PyObject * _resultobj; |
7592 | bool _result; | |
7593 | wxDC * _arg0; | |
2d091820 | 7594 | PyObject * _argo0 = 0; |
107e4716 | 7595 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7596 | |
7597 | self = self; | |
107e4716 | 7598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
70551f47 | 7599 | return NULL; |
2d091820 RD |
7600 | if (_argo0) { |
7601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
7604 | return NULL; | |
7605 | } | |
7606 | } | |
ab9bc19b | 7607 | { |
474c48f9 | 7608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7609 | _result = (bool )wxDC_GetOptimization(_arg0); |
7610 | ||
474c48f9 | 7611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7612 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7613 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7614 | return _resultobj; |
7615 | } | |
7616 | ||
7617 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
107e4716 | 7618 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7619 | PyObject * _resultobj; |
7620 | wxPen * _result; | |
7621 | wxDC * _arg0; | |
2d091820 | 7622 | PyObject * _argo0 = 0; |
107e4716 | 7623 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7624 | char _ptemp[128]; |
7625 | ||
7626 | self = self; | |
107e4716 | 7627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
70551f47 | 7628 | return NULL; |
2d091820 RD |
7629 | if (_argo0) { |
7630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
7633 | return NULL; | |
7634 | } | |
7635 | } | |
ab9bc19b | 7636 | { |
474c48f9 | 7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 7638 | _result = new wxPen (wxDC_GetPen(_arg0)); |
ab9bc19b | 7639 | |
474c48f9 | 7640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7641 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7642 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
7643 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7644 | return _resultobj; |
7645 | } | |
7646 | ||
7647 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
7648 | wxColour* wc = new wxColour(); | |
7649 | self->GetPixel(x, y, wc); | |
7650 | return wc; | |
7651 | } | |
107e4716 | 7652 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7653 | PyObject * _resultobj; |
7654 | wxColour * _result; | |
7655 | wxDC * _arg0; | |
7656 | long _arg1; | |
7657 | long _arg2; | |
2d091820 | 7658 | PyObject * _argo0 = 0; |
107e4716 | 7659 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
7660 | char _ptemp[128]; |
7661 | ||
7662 | self = self; | |
107e4716 | 7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7664 | return NULL; |
2d091820 RD |
7665 | if (_argo0) { |
7666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
7669 | return NULL; | |
7670 | } | |
7671 | } | |
ab9bc19b | 7672 | { |
474c48f9 | 7673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7674 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
7675 | ||
474c48f9 | 7676 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7677 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7678 | } if (_result) { |
7679 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7680 | _resultobj = Py_BuildValue("s",_ptemp); | |
7681 | } else { | |
7682 | Py_INCREF(Py_None); | |
7683 | _resultobj = Py_None; | |
7684 | } | |
70551f47 RD |
7685 | return _resultobj; |
7686 | } | |
7687 | ||
d24a34bb | 7688 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
107e4716 | 7689 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7690 | PyObject * _resultobj; |
7691 | wxDC * _arg0; | |
7692 | int * _arg1; | |
7693 | int temp; | |
7694 | int * _arg2; | |
7695 | int temp0; | |
2d091820 | 7696 | PyObject * _argo0 = 0; |
107e4716 | 7697 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7698 | |
7699 | self = self; | |
7700 | { | |
7701 | _arg1 = &temp; | |
7702 | } | |
7703 | { | |
7704 | _arg2 = &temp0; | |
7705 | } | |
107e4716 | 7706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
70551f47 | 7707 | return NULL; |
2d091820 RD |
7708 | if (_argo0) { |
7709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb | 7711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
70551f47 RD |
7712 | return NULL; |
7713 | } | |
7714 | } | |
ab9bc19b | 7715 | { |
474c48f9 | 7716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb | 7717 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
ab9bc19b | 7718 | |
474c48f9 | 7719 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7720 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7721 | } Py_INCREF(Py_None); |
70551f47 RD |
7722 | _resultobj = Py_None; |
7723 | { | |
7724 | PyObject *o; | |
7725 | o = PyInt_FromLong((long) (*_arg1)); | |
7726 | _resultobj = t_output_helper(_resultobj, o); | |
7727 | } | |
7728 | { | |
7729 | PyObject *o; | |
7730 | o = PyInt_FromLong((long) (*_arg2)); | |
7731 | _resultobj = t_output_helper(_resultobj, o); | |
7732 | } | |
7733 | return _resultobj; | |
7734 | } | |
7735 | ||
d24a34bb | 7736 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
107e4716 | 7737 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
7738 | PyObject * _resultobj; |
7739 | wxSize * _result; | |
7740 | wxDC * _arg0; | |
2d091820 | 7741 | PyObject * _argo0 = 0; |
107e4716 | 7742 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
7743 | char _ptemp[128]; |
7744 | ||
7745 | self = self; | |
107e4716 | 7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
d24a34bb | 7747 | return NULL; |
2d091820 RD |
7748 | if (_argo0) { |
7749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
7751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
7752 | return NULL; | |
7753 | } | |
7754 | } | |
7755 | { | |
474c48f9 | 7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb RD |
7757 | _result = new wxSize (wxDC_GetSize(_arg0)); |
7758 | ||
474c48f9 | 7759 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7760 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7761 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7762 | _resultobj = Py_BuildValue("s",_ptemp); | |
7763 | return _resultobj; | |
7764 | } | |
7765 | ||
e02c03a4 RD |
7766 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
7767 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7768 | PyObject * _resultobj; | |
7769 | wxSize * _result; | |
7770 | wxDC * _arg0; | |
7771 | PyObject * _argo0 = 0; | |
7772 | char *_kwnames[] = { "self", NULL }; | |
7773 | char _ptemp[128]; | |
7774 | ||
7775 | self = self; | |
7776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7777 | return NULL; | |
7778 | if (_argo0) { | |
7779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7782 | return NULL; | |
7783 | } | |
7784 | } | |
7785 | { | |
474c48f9 | 7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
7787 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
7788 | ||
474c48f9 | 7789 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7790 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7791 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7792 | _resultobj = Py_BuildValue("s",_ptemp); | |
7793 | return _resultobj; | |
7794 | } | |
7795 | ||
70551f47 | 7796 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
107e4716 | 7797 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7798 | PyObject * _resultobj; |
7799 | wxColour * _result; | |
7800 | wxDC * _arg0; | |
2d091820 | 7801 | PyObject * _argo0 = 0; |
107e4716 | 7802 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7803 | char _ptemp[128]; |
7804 | ||
7805 | self = self; | |
107e4716 | 7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
70551f47 | 7807 | return NULL; |
2d091820 RD |
7808 | if (_argo0) { |
7809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
7812 | return NULL; | |
7813 | } | |
7814 | } | |
ab9bc19b | 7815 | { |
474c48f9 | 7816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
84a81942 | 7817 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
ab9bc19b | 7818 | |
474c48f9 | 7819 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7820 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
7821 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7822 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7823 | return _resultobj; |
7824 | } | |
7825 | ||
21f8d7ea | 7826 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 7827 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7828 | PyObject * _resultobj; |
7829 | wxDC * _arg0; | |
7830 | wxString * _arg1; | |
7831 | long * _arg2; | |
7832 | long temp; | |
7833 | long * _arg3; | |
7834 | long temp0; | |
2d091820 | 7835 | PyObject * _argo0 = 0; |
21f8d7ea | 7836 | PyObject * _obj1 = 0; |
107e4716 | 7837 | char *_kwnames[] = { "self","string", NULL }; |
21f8d7ea RD |
7838 | |
7839 | self = self; | |
7840 | { | |
7841 | _arg2 = &temp; | |
7842 | } | |
7843 | { | |
7844 | _arg3 = &temp0; | |
7845 | } | |
107e4716 | 7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 7847 | return NULL; |
2d091820 RD |
7848 | if (_argo0) { |
7849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea RD |
7851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
7852 | return NULL; | |
7853 | } | |
7854 | } | |
7855 | { | |
2cd2fac8 RD |
7856 | #if PYTHON_API_VERSION >= 1009 |
7857 | char* tmpPtr; int tmpSize; | |
7858 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7859 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7860 | return NULL; |
7861 | } | |
7862 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7863 | return NULL; | |
7864 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7865 | #else | |
21f8d7ea RD |
7866 | if (!PyString_Check(_obj1)) { |
7867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7868 | return NULL; | |
7869 | } | |
2cd2fac8 RD |
7870 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7871 | #endif | |
21f8d7ea | 7872 | } |
ab9bc19b | 7873 | { |
474c48f9 | 7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7875 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
7876 | ||
474c48f9 | 7877 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7878 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7879 | } Py_INCREF(Py_None); |
21f8d7ea RD |
7880 | _resultobj = Py_None; |
7881 | { | |
7882 | PyObject *o; | |
7883 | o = PyInt_FromLong((long) (*_arg2)); | |
7884 | _resultobj = t_output_helper(_resultobj, o); | |
7885 | } | |
7886 | { | |
7887 | PyObject *o; | |
7888 | o = PyInt_FromLong((long) (*_arg3)); | |
7889 | _resultobj = t_output_helper(_resultobj, o); | |
7890 | } | |
7891 | { | |
7892 | if (_obj1) | |
7893 | delete _arg1; | |
7894 | } | |
7895 | return _resultobj; | |
7896 | } | |
7897 | ||
7898 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 7899 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7900 | PyObject * _resultobj; |
7901 | wxDC * _arg0; | |
7902 | wxString * _arg1; | |
7903 | long * _arg2; | |
7904 | long temp; | |
7905 | long * _arg3; | |
7906 | long temp0; | |
7907 | long * _arg4; | |
7908 | long temp1; | |
7909 | long * _arg5; | |
7910 | long temp2; | |
2d091820 RD |
7911 | wxFont * _arg6 = (wxFont *) NULL; |
7912 | PyObject * _argo0 = 0; | |
70551f47 | 7913 | PyObject * _obj1 = 0; |
2d091820 | 7914 | PyObject * _argo6 = 0; |
107e4716 | 7915 | char *_kwnames[] = { "self","string","font", NULL }; |
70551f47 RD |
7916 | |
7917 | self = self; | |
7918 | { | |
7919 | _arg2 = &temp; | |
7920 | } | |
7921 | { | |
7922 | _arg3 = &temp0; | |
7923 | } | |
7924 | { | |
7925 | _arg4 = &temp1; | |
7926 | } | |
7927 | { | |
7928 | _arg5 = &temp2; | |
7929 | } | |
107e4716 | 7930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
70551f47 | 7931 | return NULL; |
2d091820 RD |
7932 | if (_argo0) { |
7933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea | 7935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
70551f47 RD |
7936 | return NULL; |
7937 | } | |
7938 | } | |
7939 | { | |
2cd2fac8 RD |
7940 | #if PYTHON_API_VERSION >= 1009 |
7941 | char* tmpPtr; int tmpSize; | |
7942 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7943 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7944 | return NULL; |
7945 | } | |
7946 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7947 | return NULL; | |
7948 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7949 | #else | |
70551f47 RD |
7950 | if (!PyString_Check(_obj1)) { |
7951 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7952 | return NULL; | |
7953 | } | |
2cd2fac8 RD |
7954 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7955 | #endif | |
70551f47 | 7956 | } |
2d091820 RD |
7957 | if (_argo6) { |
7958 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7959 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
21f8d7ea RD |
7960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
7961 | return NULL; | |
7962 | } | |
7963 | } | |
ab9bc19b | 7964 | { |
474c48f9 | 7965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
7966 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
7967 | ||
474c48f9 | 7968 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7969 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7970 | } Py_INCREF(Py_None); |
70551f47 RD |
7971 | _resultobj = Py_None; |
7972 | { | |
7973 | PyObject *o; | |
7974 | o = PyInt_FromLong((long) (*_arg2)); | |
7975 | _resultobj = t_output_helper(_resultobj, o); | |
7976 | } | |
7977 | { | |
7978 | PyObject *o; | |
7979 | o = PyInt_FromLong((long) (*_arg3)); | |
7980 | _resultobj = t_output_helper(_resultobj, o); | |
7981 | } | |
7982 | { | |
7983 | PyObject *o; | |
7984 | o = PyInt_FromLong((long) (*_arg4)); | |
7985 | _resultobj = t_output_helper(_resultobj, o); | |
7986 | } | |
7987 | { | |
7988 | PyObject *o; | |
7989 | o = PyInt_FromLong((long) (*_arg5)); | |
7990 | _resultobj = t_output_helper(_resultobj, o); | |
7991 | } | |
7992 | { | |
7993 | if (_obj1) | |
7994 | delete _arg1; | |
7995 | } | |
7996 | return _resultobj; | |
7997 | } | |
7998 | ||
7999 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
107e4716 | 8000 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8001 | PyObject * _resultobj; |
8002 | wxColour * _result; | |
8003 | wxDC * _arg0; | |
2d091820 | 8004 | PyObject * _argo0 = 0; |
107e4716 | 8005 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8006 | char _ptemp[128]; |
8007 | ||
8008 | self = self; | |
107e4716 | 8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
70551f47 | 8010 | return NULL; |
2d091820 RD |
8011 | if (_argo0) { |
8012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
8015 | return NULL; | |
8016 | } | |
8017 | } | |
ab9bc19b | 8018 | { |
474c48f9 | 8019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
84a81942 | 8020 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
ab9bc19b | 8021 | |
474c48f9 | 8022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8023 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
8024 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8025 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
8026 | return _resultobj; |
8027 | } | |
8028 | ||
e02c03a4 RD |
8029 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
8030 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8031 | PyObject * _resultobj; | |
8032 | wxDC * _arg0; | |
8033 | double * _arg1; | |
8034 | double temp; | |
8035 | double * _arg2; | |
8036 | double temp0; | |
8037 | PyObject * _argo0 = 0; | |
8038 | char *_kwnames[] = { "self", NULL }; | |
8039 | ||
8040 | self = self; | |
8041 | { | |
8042 | _arg1 = &temp; | |
8043 | } | |
8044 | { | |
8045 | _arg2 = &temp0; | |
8046 | } | |
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
8048 | return NULL; | |
8049 | if (_argo0) { | |
8050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
8053 | return NULL; | |
8054 | } | |
8055 | } | |
8056 | { | |
474c48f9 | 8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
8058 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
8059 | ||
474c48f9 | 8060 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8061 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8062 | } Py_INCREF(Py_None); |
8063 | _resultobj = Py_None; | |
8064 | { | |
8065 | PyObject *o; | |
8066 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8067 | _resultobj = t_output_helper(_resultobj, o); | |
8068 | } | |
8069 | { | |
8070 | PyObject *o; | |
8071 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8072 | _resultobj = t_output_helper(_resultobj, o); | |
8073 | } | |
8074 | return _resultobj; | |
8075 | } | |
8076 | ||
70551f47 | 8077 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
107e4716 | 8078 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8079 | PyObject * _resultobj; |
8080 | long _result; | |
8081 | wxDC * _arg0; | |
8082 | long _arg1; | |
2d091820 | 8083 | PyObject * _argo0 = 0; |
107e4716 | 8084 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
8085 | |
8086 | self = self; | |
107e4716 | 8087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8088 | return NULL; |
2d091820 RD |
8089 | if (_argo0) { |
8090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
8093 | return NULL; | |
8094 | } | |
8095 | } | |
ab9bc19b | 8096 | { |
474c48f9 | 8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8098 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
8099 | ||
474c48f9 | 8100 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8101 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8102 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8103 | return _resultobj; |
8104 | } | |
8105 | ||
8106 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
107e4716 | 8107 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8108 | PyObject * _resultobj; |
8109 | long _result; | |
8110 | wxDC * _arg0; | |
8111 | long _arg1; | |
2d091820 | 8112 | PyObject * _argo0 = 0; |
107e4716 | 8113 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
8114 | |
8115 | self = self; | |
107e4716 | 8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8117 | return NULL; |
2d091820 RD |
8118 | if (_argo0) { |
8119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
8122 | return NULL; | |
8123 | } | |
8124 | } | |
ab9bc19b | 8125 | { |
474c48f9 | 8126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8127 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
8128 | ||
474c48f9 | 8129 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8130 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8131 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8132 | return _resultobj; |
8133 | } | |
8134 | ||
8135 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
107e4716 | 8136 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8137 | PyObject * _resultobj; |
8138 | long _result; | |
8139 | wxDC * _arg0; | |
8140 | long _arg1; | |
2d091820 | 8141 | PyObject * _argo0 = 0; |
107e4716 | 8142 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
8143 | |
8144 | self = self; | |
107e4716 | 8145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8146 | return NULL; |
2d091820 RD |
8147 | if (_argo0) { |
8148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
8151 | return NULL; | |
8152 | } | |
8153 | } | |
ab9bc19b | 8154 | { |
474c48f9 | 8155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8156 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
8157 | ||
474c48f9 | 8158 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8159 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8160 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8161 | return _resultobj; |
8162 | } | |
8163 | ||
8164 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
107e4716 | 8165 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8166 | PyObject * _resultobj; |
8167 | long _result; | |
8168 | wxDC * _arg0; | |
8169 | long _arg1; | |
2d091820 | 8170 | PyObject * _argo0 = 0; |
107e4716 | 8171 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
8172 | |
8173 | self = self; | |
107e4716 | 8174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8175 | return NULL; |
2d091820 RD |
8176 | if (_argo0) { |
8177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
8180 | return NULL; | |
8181 | } | |
8182 | } | |
ab9bc19b | 8183 | { |
474c48f9 | 8184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8185 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
8186 | ||
474c48f9 | 8187 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8188 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8189 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8190 | return _resultobj; |
8191 | } | |
8192 | ||
8193 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
107e4716 | 8194 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8195 | PyObject * _resultobj; |
8196 | long _result; | |
8197 | wxDC * _arg0; | |
2d091820 | 8198 | PyObject * _argo0 = 0; |
107e4716 | 8199 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8200 | |
8201 | self = self; | |
107e4716 | 8202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
70551f47 | 8203 | return NULL; |
2d091820 RD |
8204 | if (_argo0) { |
8205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
8208 | return NULL; | |
8209 | } | |
8210 | } | |
ab9bc19b | 8211 | { |
474c48f9 | 8212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8213 | _result = (long )wxDC_MaxX(_arg0); |
8214 | ||
474c48f9 | 8215 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8216 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8217 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8218 | return _resultobj; |
8219 | } | |
8220 | ||
8221 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
107e4716 | 8222 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8223 | PyObject * _resultobj; |
8224 | long _result; | |
8225 | wxDC * _arg0; | |
2d091820 | 8226 | PyObject * _argo0 = 0; |
107e4716 | 8227 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8228 | |
8229 | self = self; | |
107e4716 | 8230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
70551f47 | 8231 | return NULL; |
2d091820 RD |
8232 | if (_argo0) { |
8233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
8236 | return NULL; | |
8237 | } | |
8238 | } | |
ab9bc19b | 8239 | { |
474c48f9 | 8240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8241 | _result = (long )wxDC_MaxY(_arg0); |
8242 | ||
474c48f9 | 8243 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8244 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8245 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8246 | return _resultobj; |
8247 | } | |
8248 | ||
8249 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
107e4716 | 8250 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8251 | PyObject * _resultobj; |
8252 | long _result; | |
8253 | wxDC * _arg0; | |
2d091820 | 8254 | PyObject * _argo0 = 0; |
107e4716 | 8255 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8256 | |
8257 | self = self; | |
107e4716 | 8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
70551f47 | 8259 | return NULL; |
2d091820 RD |
8260 | if (_argo0) { |
8261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
8264 | return NULL; | |
8265 | } | |
8266 | } | |
ab9bc19b | 8267 | { |
474c48f9 | 8268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8269 | _result = (long )wxDC_MinX(_arg0); |
8270 | ||
474c48f9 | 8271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8272 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8273 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8274 | return _resultobj; |
8275 | } | |
8276 | ||
8277 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
107e4716 | 8278 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8279 | PyObject * _resultobj; |
8280 | long _result; | |
8281 | wxDC * _arg0; | |
2d091820 | 8282 | PyObject * _argo0 = 0; |
107e4716 | 8283 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8284 | |
8285 | self = self; | |
107e4716 | 8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
70551f47 | 8287 | return NULL; |
2d091820 RD |
8288 | if (_argo0) { |
8289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
8292 | return NULL; | |
8293 | } | |
8294 | } | |
ab9bc19b | 8295 | { |
474c48f9 | 8296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8297 | _result = (long )wxDC_MinY(_arg0); |
8298 | ||
474c48f9 | 8299 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8300 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8301 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8302 | return _resultobj; |
8303 | } | |
8304 | ||
8305 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 8306 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8307 | PyObject * _resultobj; |
8308 | bool _result; | |
8309 | wxDC * _arg0; | |
2d091820 | 8310 | PyObject * _argo0 = 0; |
107e4716 | 8311 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8312 | |
8313 | self = self; | |
107e4716 | 8314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
70551f47 | 8315 | return NULL; |
2d091820 RD |
8316 | if (_argo0) { |
8317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
ab9bc19b | 8323 | { |
474c48f9 | 8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8325 | _result = (bool )wxDC_Ok(_arg0); |
8326 | ||
474c48f9 | 8327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8328 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8329 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8330 | return _resultobj; |
8331 | } | |
8332 | ||
8333 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
107e4716 | 8334 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8335 | PyObject * _resultobj; |
8336 | wxDC * _arg0; | |
8337 | long _arg1; | |
8338 | long _arg2; | |
2d091820 | 8339 | PyObject * _argo0 = 0; |
107e4716 | 8340 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
8341 | |
8342 | self = self; | |
107e4716 | 8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8344 | return NULL; |
2d091820 RD |
8345 | if (_argo0) { |
8346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
8349 | return NULL; | |
8350 | } | |
8351 | } | |
ab9bc19b | 8352 | { |
474c48f9 | 8353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8354 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
8355 | ||
474c48f9 | 8356 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8357 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8358 | } Py_INCREF(Py_None); |
70551f47 RD |
8359 | _resultobj = Py_None; |
8360 | return _resultobj; | |
8361 | } | |
8362 | ||
8363 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
107e4716 | 8364 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8365 | PyObject * _resultobj; |
8366 | wxDC * _arg0; | |
8367 | wxBrush * _arg1; | |
2d091820 RD |
8368 | PyObject * _argo0 = 0; |
8369 | PyObject * _argo1 = 0; | |
107e4716 | 8370 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
8371 | |
8372 | self = self; | |
107e4716 | 8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8374 | return NULL; |
2d091820 RD |
8375 | if (_argo0) { |
8376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
8379 | return NULL; | |
8380 | } | |
8381 | } | |
2d091820 RD |
8382 | if (_argo1) { |
8383 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
ab9bc19b | 8389 | { |
474c48f9 | 8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8391 | wxDC_SetBackground(_arg0,*_arg1); |
8392 | ||
474c48f9 | 8393 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8394 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8395 | } Py_INCREF(Py_None); |
70551f47 RD |
8396 | _resultobj = Py_None; |
8397 | return _resultobj; | |
8398 | } | |
8399 | ||
8400 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
107e4716 | 8401 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8402 | PyObject * _resultobj; |
8403 | wxDC * _arg0; | |
8404 | int _arg1; | |
2d091820 | 8405 | PyObject * _argo0 = 0; |
107e4716 | 8406 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
8407 | |
8408 | self = self; | |
107e4716 | 8409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8410 | return NULL; |
2d091820 RD |
8411 | if (_argo0) { |
8412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
8415 | return NULL; | |
8416 | } | |
8417 | } | |
ab9bc19b | 8418 | { |
474c48f9 | 8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8420 | wxDC_SetBackgroundMode(_arg0,_arg1); |
8421 | ||
474c48f9 | 8422 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8423 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8424 | } Py_INCREF(Py_None); |
70551f47 RD |
8425 | _resultobj = Py_None; |
8426 | return _resultobj; | |
8427 | } | |
8428 | ||
8429 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 8430 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8431 | PyObject * _resultobj; |
8432 | wxDC * _arg0; | |
8433 | long _arg1; | |
8434 | long _arg2; | |
8435 | long _arg3; | |
8436 | long _arg4; | |
2d091820 | 8437 | PyObject * _argo0 = 0; |
107e4716 | 8438 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
8439 | |
8440 | self = self; | |
107e4716 | 8441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 8442 | return NULL; |
2d091820 RD |
8443 | if (_argo0) { |
8444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
8447 | return NULL; | |
8448 | } | |
8449 | } | |
ab9bc19b | 8450 | { |
474c48f9 | 8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8452 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
8453 | ||
474c48f9 | 8454 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8455 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8456 | } Py_INCREF(Py_None); |
70551f47 RD |
8457 | _resultobj = Py_None; |
8458 | return _resultobj; | |
8459 | } | |
8460 | ||
059a841c RD |
8461 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
8462 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8463 | PyObject * _resultobj; | |
8464 | wxDC * _arg0; | |
8465 | wxRegion * _arg1; | |
8466 | PyObject * _argo0 = 0; | |
8467 | PyObject * _argo1 = 0; | |
8468 | char *_kwnames[] = { "self","region", NULL }; | |
8469 | ||
8470 | self = self; | |
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
8472 | return NULL; | |
8473 | if (_argo0) { | |
8474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
8477 | return NULL; | |
8478 | } | |
8479 | } | |
8480 | if (_argo1) { | |
8481 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8482 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
8483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
8484 | return NULL; | |
8485 | } | |
8486 | } | |
8487 | { | |
474c48f9 | 8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
8489 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
8490 | ||
474c48f9 | 8491 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
8492 | if (PyErr_Occurred()) return NULL; |
8493 | } Py_INCREF(Py_None); | |
8494 | _resultobj = Py_None; | |
8495 | return _resultobj; | |
8496 | } | |
8497 | ||
70551f47 | 8498 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
107e4716 | 8499 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8500 | PyObject * _resultobj; |
8501 | wxDC * _arg0; | |
8502 | wxPalette * _arg1; | |
2d091820 RD |
8503 | PyObject * _argo0 = 0; |
8504 | PyObject * _argo1 = 0; | |
107e4716 | 8505 | char *_kwnames[] = { "self","colourMap", NULL }; |
70551f47 RD |
8506 | |
8507 | self = self; | |
107e4716 | 8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8509 | return NULL; |
2d091820 RD |
8510 | if (_argo0) { |
8511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
8514 | return NULL; | |
8515 | } | |
8516 | } | |
2d091820 RD |
8517 | if (_argo1) { |
8518 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8519 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
70551f47 RD |
8520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
8521 | return NULL; | |
8522 | } | |
8523 | } | |
ab9bc19b | 8524 | { |
474c48f9 | 8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8526 | wxDC_SetPalette(_arg0,*_arg1); |
8527 | ||
474c48f9 | 8528 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8529 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8530 | } Py_INCREF(Py_None); |
70551f47 RD |
8531 | _resultobj = Py_None; |
8532 | return _resultobj; | |
8533 | } | |
8534 | ||
8535 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
107e4716 | 8536 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8537 | PyObject * _resultobj; |
8538 | wxDC * _arg0; | |
8539 | wxBrush * _arg1; | |
2d091820 RD |
8540 | PyObject * _argo0 = 0; |
8541 | PyObject * _argo1 = 0; | |
107e4716 | 8542 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
8543 | |
8544 | self = self; | |
107e4716 | 8545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8546 | return NULL; |
2d091820 RD |
8547 | if (_argo0) { |
8548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
8551 | return NULL; | |
8552 | } | |
8553 | } | |
2d091820 RD |
8554 | if (_argo1) { |
8555 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8556 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
8557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
8558 | return NULL; | |
8559 | } | |
8560 | } | |
ab9bc19b | 8561 | { |
474c48f9 | 8562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8563 | wxDC_SetBrush(_arg0,*_arg1); |
8564 | ||
474c48f9 | 8565 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8566 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8567 | } Py_INCREF(Py_None); |
70551f47 RD |
8568 | _resultobj = Py_None; |
8569 | return _resultobj; | |
8570 | } | |
8571 | ||
8572 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
107e4716 | 8573 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8574 | PyObject * _resultobj; |
8575 | wxDC * _arg0; | |
8576 | wxFont * _arg1; | |
2d091820 RD |
8577 | PyObject * _argo0 = 0; |
8578 | PyObject * _argo1 = 0; | |
107e4716 | 8579 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
8580 | |
8581 | self = self; | |
107e4716 | 8582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8583 | return NULL; |
2d091820 RD |
8584 | if (_argo0) { |
8585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
8588 | return NULL; | |
8589 | } | |
8590 | } | |
2d091820 RD |
8591 | if (_argo1) { |
8592 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8593 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
8594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
8595 | return NULL; | |
8596 | } | |
8597 | } | |
ab9bc19b | 8598 | { |
474c48f9 | 8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8600 | wxDC_SetFont(_arg0,*_arg1); |
8601 | ||
474c48f9 | 8602 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8603 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8604 | } Py_INCREF(Py_None); |
70551f47 RD |
8605 | _resultobj = Py_None; |
8606 | return _resultobj; | |
8607 | } | |
8608 | ||
8609 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
107e4716 | 8610 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8611 | PyObject * _resultobj; |
8612 | wxDC * _arg0; | |
8613 | int _arg1; | |
2d091820 | 8614 | PyObject * _argo0 = 0; |
107e4716 | 8615 | char *_kwnames[] = { "self","function", NULL }; |
70551f47 RD |
8616 | |
8617 | self = self; | |
107e4716 | 8618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8619 | return NULL; |
2d091820 RD |
8620 | if (_argo0) { |
8621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
8624 | return NULL; | |
8625 | } | |
8626 | } | |
ab9bc19b | 8627 | { |
474c48f9 | 8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8629 | wxDC_SetLogicalFunction(_arg0,_arg1); |
8630 | ||
474c48f9 | 8631 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8632 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8633 | } Py_INCREF(Py_None); |
70551f47 RD |
8634 | _resultobj = Py_None; |
8635 | return _resultobj; | |
8636 | } | |
8637 | ||
e02c03a4 RD |
8638 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
8639 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8640 | PyObject * _resultobj; | |
8641 | wxDC * _arg0; | |
8642 | double _arg1; | |
8643 | double _arg2; | |
8644 | PyObject * _argo0 = 0; | |
8645 | char *_kwnames[] = { "self","x","y", NULL }; | |
8646 | ||
8647 | self = self; | |
8648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8649 | return NULL; | |
8650 | if (_argo0) { | |
8651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
8654 | return NULL; | |
8655 | } | |
8656 | } | |
8657 | { | |
474c48f9 | 8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
8659 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
8660 | ||
474c48f9 | 8661 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8662 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8663 | } Py_INCREF(Py_None); |
8664 | _resultobj = Py_None; | |
8665 | return _resultobj; | |
8666 | } | |
8667 | ||
70551f47 | 8668 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
107e4716 | 8669 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8670 | PyObject * _resultobj; |
8671 | wxDC * _arg0; | |
8672 | int _arg1; | |
2d091820 | 8673 | PyObject * _argo0 = 0; |
107e4716 | 8674 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
8675 | |
8676 | self = self; | |
107e4716 | 8677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8678 | return NULL; |
2d091820 RD |
8679 | if (_argo0) { |
8680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
8683 | return NULL; | |
8684 | } | |
8685 | } | |
ab9bc19b | 8686 | { |
474c48f9 | 8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8688 | wxDC_SetMapMode(_arg0,_arg1); |
8689 | ||
474c48f9 | 8690 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8691 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8692 | } Py_INCREF(Py_None); |
70551f47 RD |
8693 | _resultobj = Py_None; |
8694 | return _resultobj; | |
8695 | } | |
8696 | ||
8697 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
107e4716 | 8698 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8699 | PyObject * _resultobj; |
8700 | wxDC * _arg0; | |
8701 | bool _arg1; | |
2d091820 | 8702 | PyObject * _argo0 = 0; |
70551f47 | 8703 | int tempbool1; |
107e4716 | 8704 | char *_kwnames[] = { "self","optimize", NULL }; |
70551f47 RD |
8705 | |
8706 | self = self; | |
107e4716 | 8707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 8708 | return NULL; |
2d091820 RD |
8709 | if (_argo0) { |
8710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
8713 | return NULL; | |
8714 | } | |
8715 | } | |
8716 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 8717 | { |
474c48f9 | 8718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8719 | wxDC_SetOptimization(_arg0,_arg1); |
8720 | ||
474c48f9 | 8721 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8722 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8723 | } Py_INCREF(Py_None); |
70551f47 RD |
8724 | _resultobj = Py_None; |
8725 | return _resultobj; | |
8726 | } | |
8727 | ||
8728 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
107e4716 | 8729 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8730 | PyObject * _resultobj; |
8731 | wxDC * _arg0; | |
8732 | wxPen * _arg1; | |
2d091820 RD |
8733 | PyObject * _argo0 = 0; |
8734 | PyObject * _argo1 = 0; | |
107e4716 | 8735 | char *_kwnames[] = { "self","pen", NULL }; |
70551f47 RD |
8736 | |
8737 | self = self; | |
107e4716 | 8738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8739 | return NULL; |
2d091820 RD |
8740 | if (_argo0) { |
8741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
8744 | return NULL; | |
8745 | } | |
8746 | } | |
2d091820 RD |
8747 | if (_argo1) { |
8748 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8749 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
70551f47 RD |
8750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
8751 | return NULL; | |
8752 | } | |
8753 | } | |
ab9bc19b | 8754 | { |
474c48f9 | 8755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8756 | wxDC_SetPen(_arg0,*_arg1); |
8757 | ||
474c48f9 | 8758 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8759 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8760 | } Py_INCREF(Py_None); |
70551f47 RD |
8761 | _resultobj = Py_None; |
8762 | return _resultobj; | |
8763 | } | |
8764 | ||
8765 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
107e4716 | 8766 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8767 | PyObject * _resultobj; |
8768 | wxDC * _arg0; | |
8769 | wxColour * _arg1; | |
2d091820 | 8770 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8771 | wxColour temp; |
8772 | PyObject * _obj1 = 0; | |
107e4716 | 8773 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
8774 | |
8775 | self = self; | |
f6bcfd97 | 8776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8777 | return NULL; |
2d091820 RD |
8778 | if (_argo0) { |
8779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
8782 | return NULL; | |
8783 | } | |
8784 | } | |
f6bcfd97 BP |
8785 | { |
8786 | _arg1 = &temp; | |
8787 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 8788 | return NULL; |
f6bcfd97 | 8789 | } |
ab9bc19b | 8790 | { |
474c48f9 | 8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8792 | wxDC_SetTextBackground(_arg0,*_arg1); |
8793 | ||
474c48f9 | 8794 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8795 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8796 | } Py_INCREF(Py_None); |
70551f47 RD |
8797 | _resultobj = Py_None; |
8798 | return _resultobj; | |
8799 | } | |
8800 | ||
8801 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
107e4716 | 8802 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8803 | PyObject * _resultobj; |
8804 | wxDC * _arg0; | |
8805 | wxColour * _arg1; | |
2d091820 | 8806 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8807 | wxColour temp; |
8808 | PyObject * _obj1 = 0; | |
107e4716 | 8809 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
8810 | |
8811 | self = self; | |
f6bcfd97 | 8812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8813 | return NULL; |
2d091820 RD |
8814 | if (_argo0) { |
8815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
8818 | return NULL; | |
8819 | } | |
8820 | } | |
f6bcfd97 BP |
8821 | { |
8822 | _arg1 = &temp; | |
8823 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 8824 | return NULL; |
f6bcfd97 | 8825 | } |
ab9bc19b | 8826 | { |
474c48f9 | 8827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8828 | wxDC_SetTextForeground(_arg0,*_arg1); |
8829 | ||
474c48f9 | 8830 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8831 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8832 | } Py_INCREF(Py_None); |
70551f47 RD |
8833 | _resultobj = Py_None; |
8834 | return _resultobj; | |
8835 | } | |
8836 | ||
8837 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
107e4716 | 8838 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8839 | PyObject * _resultobj; |
8840 | wxDC * _arg0; | |
8841 | double _arg1; | |
8842 | double _arg2; | |
2d091820 | 8843 | PyObject * _argo0 = 0; |
107e4716 | 8844 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
70551f47 RD |
8845 | |
8846 | self = self; | |
107e4716 | 8847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8848 | return NULL; |
2d091820 RD |
8849 | if (_argo0) { |
8850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
8853 | return NULL; | |
8854 | } | |
8855 | } | |
ab9bc19b | 8856 | { |
474c48f9 | 8857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8858 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
8859 | ||
474c48f9 | 8860 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8861 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8862 | } Py_INCREF(Py_None); |
70551f47 RD |
8863 | _resultobj = Py_None; |
8864 | return _resultobj; | |
8865 | } | |
8866 | ||
8867 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
107e4716 | 8868 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8869 | PyObject * _resultobj; |
8870 | bool _result; | |
8871 | wxDC * _arg0; | |
8872 | wxString * _arg1; | |
2d091820 | 8873 | PyObject * _argo0 = 0; |
70551f47 | 8874 | PyObject * _obj1 = 0; |
107e4716 | 8875 | char *_kwnames[] = { "self","message", NULL }; |
70551f47 RD |
8876 | |
8877 | self = self; | |
107e4716 | 8878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8879 | return NULL; |
2d091820 RD |
8880 | if (_argo0) { |
8881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
8884 | return NULL; | |
8885 | } | |
8886 | } | |
8887 | { | |
2cd2fac8 RD |
8888 | #if PYTHON_API_VERSION >= 1009 |
8889 | char* tmpPtr; int tmpSize; | |
8890 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8891 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8892 | return NULL; |
8893 | } | |
8894 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8895 | return NULL; | |
8896 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8897 | #else | |
70551f47 RD |
8898 | if (!PyString_Check(_obj1)) { |
8899 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8900 | return NULL; | |
8901 | } | |
2cd2fac8 RD |
8902 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8903 | #endif | |
70551f47 | 8904 | } |
ab9bc19b | 8905 | { |
474c48f9 | 8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8907 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
8908 | ||
474c48f9 | 8909 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8910 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8911 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8912 | { |
8913 | if (_obj1) | |
8914 | delete _arg1; | |
8915 | } | |
8916 | return _resultobj; | |
8917 | } | |
8918 | ||
8919 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
107e4716 | 8920 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8921 | PyObject * _resultobj; |
8922 | wxDC * _arg0; | |
2d091820 | 8923 | PyObject * _argo0 = 0; |
107e4716 | 8924 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8925 | |
8926 | self = self; | |
107e4716 | 8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
70551f47 | 8928 | return NULL; |
2d091820 RD |
8929 | if (_argo0) { |
8930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
8933 | return NULL; | |
8934 | } | |
8935 | } | |
ab9bc19b | 8936 | { |
474c48f9 | 8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8938 | wxDC_StartPage(_arg0); |
8939 | ||
474c48f9 | 8940 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8941 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8942 | } Py_INCREF(Py_None); |
70551f47 RD |
8943 | _resultobj = Py_None; |
8944 | return _resultobj; | |
8945 | } | |
8946 | ||
107e4716 RD |
8947 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8948 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8949 | PyObject * _resultobj; |
8950 | wxDC * _arg0; | |
8951 | wxBitmap * _arg1; | |
8952 | long _arg2; | |
8953 | long _arg3; | |
107e4716 | 8954 | int _arg4 = (int ) FALSE; |
2d091820 RD |
8955 | PyObject * _argo0 = 0; |
8956 | PyObject * _argo1 = 0; | |
107e4716 | 8957 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
70551f47 RD |
8958 | |
8959 | self = self; | |
107e4716 | 8960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 8961 | return NULL; |
2d091820 RD |
8962 | if (_argo0) { |
8963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
8966 | return NULL; | |
8967 | } | |
8968 | } | |
2d091820 RD |
8969 | if (_argo1) { |
8970 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8971 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
8972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
8973 | return NULL; | |
8974 | } | |
8975 | } | |
ab9bc19b | 8976 | { |
474c48f9 | 8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
8978 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
8979 | ||
474c48f9 | 8980 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8981 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8982 | } Py_INCREF(Py_None); |
70551f47 RD |
8983 | _resultobj = Py_None; |
8984 | return _resultobj; | |
8985 | } | |
8986 | ||
e02c03a4 RD |
8987 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
8988 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8989 | PyObject * _resultobj; | |
8990 | bool _result; | |
8991 | wxDC * _arg0; | |
8992 | PyObject * _argo0 = 0; | |
8993 | char *_kwnames[] = { "self", NULL }; | |
8994 | ||
8995 | self = self; | |
8996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
8997 | return NULL; | |
8998 | if (_argo0) { | |
8999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9002 | return NULL; | |
9003 | } | |
9004 | } | |
9005 | { | |
474c48f9 | 9006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9007 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
9008 | ||
474c48f9 | 9009 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9010 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9011 | } _resultobj = Py_BuildValue("i",_result); |
9012 | return _resultobj; | |
9013 | } | |
9014 | ||
9015 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9016 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9017 | PyObject * _resultobj; | |
9018 | bool _result; | |
9019 | wxDC * _arg0; | |
9020 | PyObject * _argo0 = 0; | |
9021 | char *_kwnames[] = { "self", NULL }; | |
9022 | ||
9023 | self = self; | |
9024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9025 | return NULL; | |
9026 | if (_argo0) { | |
9027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9030 | return NULL; | |
9031 | } | |
9032 | } | |
9033 | { | |
474c48f9 | 9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9035 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
9036 | ||
474c48f9 | 9037 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9038 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9039 | } _resultobj = Py_BuildValue("i",_result); |
9040 | return _resultobj; | |
9041 | } | |
9042 | ||
9043 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9044 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9045 | PyObject * _resultobj; | |
9046 | int _result; | |
9047 | wxDC * _arg0; | |
9048 | PyObject * _argo0 = 0; | |
9049 | char *_kwnames[] = { "self", NULL }; | |
9050 | ||
9051 | self = self; | |
9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
9053 | return NULL; | |
9054 | if (_argo0) { | |
9055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
9058 | return NULL; | |
9059 | } | |
9060 | } | |
9061 | { | |
474c48f9 | 9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9063 | _result = (int )wxDC_GetDepth(_arg0); |
9064 | ||
474c48f9 | 9065 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9066 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9067 | } _resultobj = Py_BuildValue("i",_result); |
9068 | return _resultobj; | |
9069 | } | |
9070 | ||
9071 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
9072 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9073 | PyObject * _resultobj; | |
9074 | wxSize * _result; | |
9075 | wxDC * _arg0; | |
9076 | PyObject * _argo0 = 0; | |
9077 | char *_kwnames[] = { "self", NULL }; | |
9078 | char _ptemp[128]; | |
9079 | ||
9080 | self = self; | |
9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
9082 | return NULL; | |
9083 | if (_argo0) { | |
9084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
9087 | return NULL; | |
9088 | } | |
9089 | } | |
9090 | { | |
474c48f9 | 9091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9092 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
9093 | ||
474c48f9 | 9094 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9095 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9096 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
9097 | _resultobj = Py_BuildValue("s",_ptemp); | |
9098 | return _resultobj; | |
9099 | } | |
9100 | ||
9101 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
9102 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9103 | PyObject * _resultobj; | |
9104 | wxDC * _arg0; | |
9105 | int * _arg1; | |
9106 | int temp; | |
9107 | int * _arg2; | |
9108 | int temp0; | |
9109 | PyObject * _argo0 = 0; | |
9110 | char *_kwnames[] = { "self", NULL }; | |
9111 | ||
9112 | self = self; | |
9113 | { | |
9114 | _arg1 = &temp; | |
9115 | } | |
9116 | { | |
9117 | _arg2 = &temp0; | |
9118 | } | |
9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
9120 | return NULL; | |
9121 | if (_argo0) { | |
9122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
9125 | return NULL; | |
9126 | } | |
9127 | } | |
9128 | { | |
474c48f9 | 9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9130 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
9131 | ||
474c48f9 | 9132 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9133 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9134 | } Py_INCREF(Py_None); |
9135 | _resultobj = Py_None; | |
9136 | { | |
9137 | PyObject *o; | |
9138 | o = PyInt_FromLong((long) (*_arg1)); | |
9139 | _resultobj = t_output_helper(_resultobj, o); | |
9140 | } | |
9141 | { | |
9142 | PyObject *o; | |
9143 | o = PyInt_FromLong((long) (*_arg2)); | |
9144 | _resultobj = t_output_helper(_resultobj, o); | |
9145 | } | |
9146 | return _resultobj; | |
9147 | } | |
9148 | ||
9149 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9150 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject * _resultobj; | |
9152 | wxDC * _arg0; | |
9153 | int _arg1; | |
9154 | int _arg2; | |
9155 | PyObject * _argo0 = 0; | |
9156 | char *_kwnames[] = { "self","x","y", NULL }; | |
9157 | ||
9158 | self = self; | |
9159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9160 | return NULL; | |
9161 | if (_argo0) { | |
9162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9165 | return NULL; | |
9166 | } | |
9167 | } | |
9168 | { | |
474c48f9 | 9169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9170 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
9171 | ||
474c48f9 | 9172 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9173 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9174 | } Py_INCREF(Py_None); |
9175 | _resultobj = Py_None; | |
9176 | return _resultobj; | |
9177 | } | |
9178 | ||
9179 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9180 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9181 | PyObject * _resultobj; | |
9182 | wxDC * _arg0; | |
9183 | int * _arg1; | |
9184 | int temp; | |
9185 | int * _arg2; | |
9186 | int temp0; | |
9187 | PyObject * _argo0 = 0; | |
9188 | char *_kwnames[] = { "self", NULL }; | |
9189 | ||
9190 | self = self; | |
9191 | { | |
9192 | _arg1 = &temp; | |
9193 | } | |
9194 | { | |
9195 | _arg2 = &temp0; | |
9196 | } | |
9197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9198 | return NULL; | |
9199 | if (_argo0) { | |
9200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9203 | return NULL; | |
9204 | } | |
9205 | } | |
9206 | { | |
474c48f9 | 9207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9208 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
9209 | ||
474c48f9 | 9210 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9211 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9212 | } Py_INCREF(Py_None); |
9213 | _resultobj = Py_None; | |
9214 | { | |
9215 | PyObject *o; | |
9216 | o = PyInt_FromLong((long) (*_arg1)); | |
9217 | _resultobj = t_output_helper(_resultobj, o); | |
9218 | } | |
9219 | { | |
9220 | PyObject *o; | |
9221 | o = PyInt_FromLong((long) (*_arg2)); | |
9222 | _resultobj = t_output_helper(_resultobj, o); | |
9223 | } | |
9224 | return _resultobj; | |
9225 | } | |
9226 | ||
9227 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
9228 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9229 | PyObject * _resultobj; | |
9230 | wxDC * _arg0; | |
9231 | bool _arg1; | |
9232 | bool _arg2; | |
9233 | PyObject * _argo0 = 0; | |
9234 | int tempbool1; | |
9235 | int tempbool2; | |
9236 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
9237 | ||
9238 | self = self; | |
9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
9240 | return NULL; | |
9241 | if (_argo0) { | |
9242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
9245 | return NULL; | |
9246 | } | |
9247 | } | |
9248 | _arg1 = (bool ) tempbool1; | |
9249 | _arg2 = (bool ) tempbool2; | |
9250 | { | |
474c48f9 | 9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e02c03a4 RD |
9252 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
9253 | ||
474c48f9 | 9254 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9255 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9256 | } Py_INCREF(Py_None); |
9257 | _resultobj = Py_None; | |
9258 | return _resultobj; | |
9259 | } | |
9260 | ||
f6bcfd97 BP |
9261 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
9262 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9263 | PyObject * _resultobj; | |
9264 | wxDC * _arg0; | |
9265 | int _arg1; | |
9266 | int _arg2; | |
9267 | PyObject * _argo0 = 0; | |
9268 | char *_kwnames[] = { "self","x","y", NULL }; | |
9269 | ||
9270 | self = self; | |
9271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9272 | return NULL; | |
9273 | if (_argo0) { | |
9274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9277 | return NULL; | |
9278 | } | |
9279 | } | |
9280 | { | |
474c48f9 | 9281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
9282 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
9283 | ||
474c48f9 | 9284 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9285 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9286 | } Py_INCREF(Py_None); |
9287 | _resultobj = Py_None; | |
9288 | return _resultobj; | |
9289 | } | |
9290 | ||
9291 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
9292 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9293 | PyObject * _resultobj; | |
9294 | wxDC * _arg0; | |
9295 | PyObject * _argo0 = 0; | |
9296 | char *_kwnames[] = { "self", NULL }; | |
9297 | ||
9298 | self = self; | |
9299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
9300 | return NULL; | |
9301 | if (_argo0) { | |
9302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
9305 | return NULL; | |
9306 | } | |
9307 | } | |
9308 | { | |
474c48f9 | 9309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
9310 | wxDC_ResetBoundingBox(_arg0); |
9311 | ||
474c48f9 | 9312 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9313 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9314 | } Py_INCREF(Py_None); |
9315 | _resultobj = Py_None; | |
9316 | return _resultobj; | |
9317 | } | |
9318 | ||
3bcd5e1c RD |
9319 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9320 | PyObject * _resultobj; | |
9321 | wxDC * _arg0; | |
9322 | int * _arg1; | |
9323 | int temp; | |
9324 | int * _arg2; | |
9325 | int temp0; | |
9326 | int * _arg3; | |
9327 | int temp1; | |
9328 | int * _arg4; | |
9329 | int temp2; | |
9330 | PyObject * _argo0 = 0; | |
9331 | char *_kwnames[] = { "self", NULL }; | |
9332 | ||
9333 | self = self; | |
9334 | { | |
9335 | _arg1 = &temp; | |
9336 | } | |
9337 | { | |
9338 | _arg2 = &temp0; | |
9339 | } | |
9340 | { | |
9341 | _arg3 = &temp1; | |
9342 | } | |
9343 | { | |
9344 | _arg4 = &temp2; | |
9345 | } | |
9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
9347 | return NULL; | |
9348 | if (_argo0) { | |
9349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
9352 | return NULL; | |
9353 | } | |
9354 | } | |
9355 | { | |
474c48f9 | 9356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3bcd5e1c RD |
9357 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
9358 | ||
474c48f9 | 9359 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
9360 | if (PyErr_Occurred()) return NULL; |
9361 | } Py_INCREF(Py_None); | |
9362 | _resultobj = Py_None; | |
9363 | { | |
9364 | PyObject *o; | |
9365 | o = PyInt_FromLong((long) (*_arg1)); | |
9366 | _resultobj = t_output_helper(_resultobj, o); | |
9367 | } | |
9368 | { | |
9369 | PyObject *o; | |
9370 | o = PyInt_FromLong((long) (*_arg2)); | |
9371 | _resultobj = t_output_helper(_resultobj, o); | |
9372 | } | |
9373 | { | |
9374 | PyObject *o; | |
9375 | o = PyInt_FromLong((long) (*_arg3)); | |
9376 | _resultobj = t_output_helper(_resultobj, o); | |
9377 | } | |
9378 | { | |
9379 | PyObject *o; | |
9380 | o = PyInt_FromLong((long) (*_arg4)); | |
9381 | _resultobj = t_output_helper(_resultobj, o); | |
9382 | } | |
9383 | return _resultobj; | |
9384 | } | |
9385 | ||
9386 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
9387 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
9388 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9389 | int numObjs = 0; | |
9390 | int numPens = 0; | |
9391 | wxPen* pen; | |
9392 | PyObject* obj; | |
9393 | int x1, y1; | |
9394 | int i = 0; | |
9395 | ||
9396 | if (!PySequence_Check(pyPoints)) { | |
9397 | goto err0; | |
9398 | } | |
9399 | if (!PySequence_Check(pyPens)) { | |
9400 | goto err1; | |
9401 | } | |
9402 | numObjs = PySequence_Length(pyPoints); | |
9403 | numPens = PySequence_Length(pyPens); | |
9404 | ||
9405 | for (i = 0; i < numObjs; i++) { | |
9406 | // Use a new pen? | |
9407 | if (i < numPens) { | |
9408 | if (isFastPens) { | |
9409 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9410 | } | |
9411 | else { | |
9412 | obj = PySequence_GetItem(pyPens, i); | |
9413 | } | |
9414 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9415 | if (!isFastPens) | |
9416 | Py_DECREF(obj); | |
9417 | goto err1; | |
9418 | } | |
9419 | ||
9420 | self->SetPen(*pen); | |
9421 | if (!isFastPens) | |
9422 | Py_DECREF(obj); | |
9423 | } | |
9424 | ||
9425 | // Get the point coordinants | |
9426 | if (isFastSeq) { | |
9427 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
9428 | } | |
9429 | else { | |
9430 | obj = PySequence_GetItem(pyPoints, i); | |
9431 | } | |
9432 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
9433 | if (!isFastPens) | |
9434 | Py_DECREF(obj); | |
9435 | goto err0; | |
9436 | } | |
9437 | ||
9438 | // Now draw the point | |
9439 | self->DrawPoint(x1, y1); | |
9440 | ||
9441 | if (!isFastSeq) | |
9442 | Py_DECREF(obj); | |
9443 | } | |
9444 | ||
9445 | Py_INCREF(Py_None); | |
9446 | return Py_None; | |
9447 | ||
9448 | err1: | |
9449 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9450 | return NULL; | |
9451 | err0: | |
9452 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
9453 | return NULL; | |
9454 | } | |
9455 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9456 | PyObject * _resultobj; | |
9457 | PyObject * _result; | |
9458 | wxDC * _arg0; | |
9459 | PyObject * _arg1; | |
9460 | PyObject * _arg2; | |
9461 | PyObject * _argo0 = 0; | |
9462 | PyObject * _obj1 = 0; | |
9463 | PyObject * _obj2 = 0; | |
9464 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
9465 | ||
9466 | self = self; | |
9467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9468 | return NULL; | |
9469 | if (_argo0) { | |
9470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
9473 | return NULL; | |
9474 | } | |
9475 | } | |
9476 | { | |
9477 | _arg1 = _obj1; | |
9478 | } | |
9479 | { | |
9480 | _arg2 = _obj2; | |
9481 | } | |
9482 | { | |
474c48f9 | 9483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3bcd5e1c RD |
9484 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
9485 | ||
474c48f9 | 9486 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
9487 | if (PyErr_Occurred()) return NULL; |
9488 | }{ | |
9489 | _resultobj = _result; | |
9490 | } | |
9491 | return _resultobj; | |
9492 | } | |
9493 | ||
9494 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
9495 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
9496 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9497 | int numObjs = 0; | |
9498 | int numPens = 0; | |
9499 | wxPen* pen; | |
9500 | PyObject* obj; | |
9501 | int x1, y1, x2, y2; | |
9502 | int i = 0; | |
9503 | ||
9504 | if (!PySequence_Check(pyLines)) { | |
9505 | goto err0; | |
9506 | } | |
9507 | if (!PySequence_Check(pyPens)) { | |
9508 | goto err1; | |
9509 | } | |
9510 | numObjs = PySequence_Length(pyLines); | |
9511 | numPens = PySequence_Length(pyPens); | |
9512 | ||
9513 | for (i = 0; i < numObjs; i++) { | |
9514 | // Use a new pen? | |
9515 | if (i < numPens) { | |
9516 | if (isFastPens) { | |
9517 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9518 | } | |
9519 | else { | |
9520 | obj = PySequence_GetItem(pyPens, i); | |
9521 | } | |
9522 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9523 | if (!isFastPens) | |
9524 | Py_DECREF(obj); | |
9525 | goto err1; | |
9526 | } | |
9527 | ||
9528 | self->SetPen(*pen); | |
9529 | if (!isFastPens) | |
9530 | Py_DECREF(obj); | |
9531 | } | |
9532 | ||
9533 | // Get the line coordinants | |
9534 | if (isFastSeq) { | |
9535 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
9536 | } | |
9537 | else { | |
9538 | obj = PySequence_GetItem(pyLines, i); | |
9539 | } | |
9540 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
9541 | if (!isFastPens) | |
9542 | Py_DECREF(obj); | |
9543 | goto err0; | |
9544 | } | |
9545 | ||
9546 | // Now draw the line | |
9547 | self->DrawLine(x1, y1, x2, y2); | |
9548 | ||
9549 | if (!isFastSeq) | |
9550 | Py_DECREF(obj); | |
9551 | } | |
9552 | ||
9553 | Py_INCREF(Py_None); | |
9554 | return Py_None; | |
9555 | ||
9556 | err1: | |
9557 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9558 | return NULL; | |
9559 | err0: | |
9560 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
9561 | return NULL; | |
9562 | } | |
9563 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9564 | PyObject * _resultobj; | |
9565 | PyObject * _result; | |
9566 | wxDC * _arg0; | |
9567 | PyObject * _arg1; | |
9568 | PyObject * _arg2; | |
9569 | PyObject * _argo0 = 0; | |
9570 | PyObject * _obj1 = 0; | |
9571 | PyObject * _obj2 = 0; | |
9572 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
9573 | ||
9574 | self = self; | |
9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9576 | return NULL; | |
9577 | if (_argo0) { | |
9578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
9581 | return NULL; | |
9582 | } | |
9583 | } | |
9584 | { | |
9585 | _arg1 = _obj1; | |
9586 | } | |
9587 | { | |
9588 | _arg2 = _obj2; | |
9589 | } | |
9590 | { | |
474c48f9 | 9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3bcd5e1c RD |
9592 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
9593 | ||
474c48f9 | 9594 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
9595 | if (PyErr_Occurred()) return NULL; |
9596 | }{ | |
9597 | _resultobj = _result; | |
9598 | } | |
9599 | return _resultobj; | |
9600 | } | |
9601 | ||
70551f47 RD |
9602 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
9603 | wxMemoryDC *src; | |
9604 | wxDC *dest; | |
9605 | src = (wxMemoryDC *) ptr; | |
9606 | dest = (wxDC *) src; | |
9607 | return (void *) dest; | |
9608 | } | |
9609 | ||
9df61a29 RD |
9610 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
9611 | wxMemoryDC *src; | |
9612 | wxObject *dest; | |
9613 | src = (wxMemoryDC *) ptr; | |
9614 | dest = (wxObject *) src; | |
9615 | return (void *) dest; | |
9616 | } | |
9617 | ||
70551f47 | 9618 | #define new_wxMemoryDC() (new wxMemoryDC()) |
107e4716 | 9619 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9620 | PyObject * _resultobj; |
9621 | wxMemoryDC * _result; | |
107e4716 | 9622 | char *_kwnames[] = { NULL }; |
70551f47 RD |
9623 | char _ptemp[128]; |
9624 | ||
9625 | self = self; | |
107e4716 | 9626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
70551f47 | 9627 | return NULL; |
ab9bc19b | 9628 | { |
474c48f9 | 9629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
9630 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
9631 | ||
474c48f9 | 9632 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9633 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9634 | } if (_result) { |
9635 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
9636 | _resultobj = Py_BuildValue("s",_ptemp); | |
9637 | } else { | |
9638 | Py_INCREF(Py_None); | |
9639 | _resultobj = Py_None; | |
9640 | } | |
70551f47 RD |
9641 | return _resultobj; |
9642 | } | |
9643 | ||
9644 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
107e4716 | 9645 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9646 | PyObject * _resultobj; |
9647 | wxMemoryDC * _arg0; | |
9648 | wxBitmap * _arg1; | |
2d091820 RD |
9649 | PyObject * _argo0 = 0; |
9650 | PyObject * _argo1 = 0; | |
107e4716 | 9651 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
9652 | |
9653 | self = self; | |
107e4716 | 9654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
70551f47 | 9655 | return NULL; |
2d091820 RD |
9656 | if (_argo0) { |
9657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
70551f47 RD |
9659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
9660 | return NULL; | |
9661 | } | |
9662 | } | |
2d091820 RD |
9663 | if (_argo1) { |
9664 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9665 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
9666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
9667 | return NULL; | |
9668 | } | |
9669 | } | |
ab9bc19b | 9670 | { |
474c48f9 | 9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
9672 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
9673 | ||
474c48f9 | 9674 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9675 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9676 | } Py_INCREF(Py_None); |
70551f47 RD |
9677 | _resultobj = Py_None; |
9678 | return _resultobj; | |
9679 | } | |
9680 | ||
9681 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
9682 | wxScreenDC *src; | |
9683 | wxDC *dest; | |
9684 | src = (wxScreenDC *) ptr; | |
9685 | dest = (wxDC *) src; | |
9686 | return (void *) dest; | |
9687 | } | |
9688 | ||
9df61a29 RD |
9689 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
9690 | wxScreenDC *src; | |
9691 | wxObject *dest; | |
9692 | src = (wxScreenDC *) ptr; | |
9693 | dest = (wxObject *) src; | |
9694 | return (void *) dest; | |
9695 | } | |
9696 | ||
70551f47 | 9697 | #define new_wxScreenDC() (new wxScreenDC()) |
107e4716 | 9698 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9699 | PyObject * _resultobj; |
9700 | wxScreenDC * _result; | |
107e4716 | 9701 | char *_kwnames[] = { NULL }; |
70551f47 RD |
9702 | char _ptemp[128]; |
9703 | ||
9704 | self = self; | |
107e4716 | 9705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
70551f47 | 9706 | return NULL; |
ab9bc19b | 9707 | { |
474c48f9 | 9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
9709 | _result = (wxScreenDC *)new_wxScreenDC(); |
9710 | ||
474c48f9 | 9711 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9712 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9713 | } if (_result) { |
9714 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9715 | _resultobj = Py_BuildValue("s",_ptemp); | |
9716 | } else { | |
9717 | Py_INCREF(Py_None); | |
9718 | _resultobj = Py_None; | |
9719 | } | |
70551f47 RD |
9720 | return _resultobj; |
9721 | } | |
9722 | ||
2fc99549 RD |
9723 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9724 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
9725 | PyObject * _resultobj; |
9726 | bool _result; | |
9727 | wxScreenDC * _arg0; | |
9728 | wxWindow * _arg1; | |
2d091820 RD |
9729 | PyObject * _argo0 = 0; |
9730 | PyObject * _argo1 = 0; | |
107e4716 | 9731 | char *_kwnames[] = { "self","window", NULL }; |
70551f47 RD |
9732 | |
9733 | self = self; | |
2fc99549 | 9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
70551f47 | 9735 | return NULL; |
2d091820 RD |
9736 | if (_argo0) { |
9737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 9739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
70551f47 RD |
9740 | return NULL; |
9741 | } | |
9742 | } | |
2d091820 RD |
9743 | if (_argo1) { |
9744 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9745 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2fc99549 | 9746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
70551f47 RD |
9747 | return NULL; |
9748 | } | |
9749 | } | |
ab9bc19b | 9750 | { |
474c48f9 | 9751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2fc99549 | 9752 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
ab9bc19b | 9753 | |
474c48f9 | 9754 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9755 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9756 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9757 | return _resultobj; |
9758 | } | |
9759 | ||
2fc99549 RD |
9760 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9761 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
9762 | PyObject * _resultobj; |
9763 | bool _result; | |
9764 | wxScreenDC * _arg0; | |
2d091820 RD |
9765 | wxRect * _arg1 = (wxRect *) NULL; |
9766 | PyObject * _argo0 = 0; | |
37f6a977 RD |
9767 | wxRect temp; |
9768 | PyObject * _obj1 = 0; | |
107e4716 | 9769 | char *_kwnames[] = { "self","rect", NULL }; |
70551f47 RD |
9770 | |
9771 | self = self; | |
2fc99549 | 9772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
70551f47 | 9773 | return NULL; |
2d091820 RD |
9774 | if (_argo0) { |
9775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 9777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
70551f47 RD |
9778 | return NULL; |
9779 | } | |
9780 | } | |
37f6a977 RD |
9781 | if (_obj1) |
9782 | { | |
9783 | _arg1 = &temp; | |
9784 | if (! wxRect_helper(_obj1, &_arg1)) | |
70551f47 | 9785 | return NULL; |
37f6a977 | 9786 | } |
ab9bc19b | 9787 | { |
474c48f9 | 9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2fc99549 | 9789 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
ab9bc19b | 9790 | |
474c48f9 | 9791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9792 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9793 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9794 | return _resultobj; |
9795 | } | |
9796 | ||
9797 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
107e4716 | 9798 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9799 | PyObject * _resultobj; |
9800 | bool _result; | |
9801 | wxScreenDC * _arg0; | |
2d091820 | 9802 | PyObject * _argo0 = 0; |
107e4716 | 9803 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9804 | |
9805 | self = self; | |
107e4716 | 9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
70551f47 | 9807 | return NULL; |
2d091820 RD |
9808 | if (_argo0) { |
9809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
70551f47 RD |
9811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
9812 | return NULL; | |
9813 | } | |
9814 | } | |
ab9bc19b | 9815 | { |
474c48f9 | 9816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
9817 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
9818 | ||
474c48f9 | 9819 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9820 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9821 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9822 | return _resultobj; |
9823 | } | |
9824 | ||
9825 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9826 | wxClientDC *src; | |
9827 | wxDC *dest; | |
9828 | src = (wxClientDC *) ptr; | |
9829 | dest = (wxDC *) src; | |
9830 | return (void *) dest; | |
9831 | } | |
9832 | ||
9df61a29 RD |
9833 | static void *SwigwxClientDCTowxObject(void *ptr) { |
9834 | wxClientDC *src; | |
9835 | wxObject *dest; | |
9836 | src = (wxClientDC *) ptr; | |
9837 | dest = (wxObject *) src; | |
9838 | return (void *) dest; | |
9839 | } | |
9840 | ||
70551f47 | 9841 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
107e4716 | 9842 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9843 | PyObject * _resultobj; |
9844 | wxClientDC * _result; | |
9845 | wxWindow * _arg0; | |
2d091820 | 9846 | PyObject * _argo0 = 0; |
107e4716 | 9847 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
9848 | char _ptemp[128]; |
9849 | ||
9850 | self = self; | |
107e4716 | 9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
70551f47 | 9852 | return NULL; |
2d091820 RD |
9853 | if (_argo0) { |
9854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
9857 | return NULL; | |
9858 | } | |
9859 | } | |
ab9bc19b | 9860 | { |
474c48f9 | 9861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
9862 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
9863 | ||
474c48f9 | 9864 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9865 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9866 | } if (_result) { |
9867 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9868 | _resultobj = Py_BuildValue("s",_ptemp); | |
9869 | } else { | |
9870 | Py_INCREF(Py_None); | |
9871 | _resultobj = Py_None; | |
9872 | } | |
70551f47 RD |
9873 | return _resultobj; |
9874 | } | |
9875 | ||
9876 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
9877 | wxPaintDC *src; | |
9878 | wxDC *dest; | |
9879 | src = (wxPaintDC *) ptr; | |
9880 | dest = (wxDC *) src; | |
9881 | return (void *) dest; | |
9882 | } | |
9883 | ||
9df61a29 RD |
9884 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
9885 | wxPaintDC *src; | |
9886 | wxObject *dest; | |
9887 | src = (wxPaintDC *) ptr; | |
9888 | dest = (wxObject *) src; | |
9889 | return (void *) dest; | |
9890 | } | |
9891 | ||
70551f47 | 9892 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
107e4716 | 9893 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9894 | PyObject * _resultobj; |
9895 | wxPaintDC * _result; | |
9896 | wxWindow * _arg0; | |
2d091820 | 9897 | PyObject * _argo0 = 0; |
107e4716 | 9898 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
9899 | char _ptemp[128]; |
9900 | ||
9901 | self = self; | |
107e4716 | 9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
70551f47 | 9903 | return NULL; |
2d091820 RD |
9904 | if (_argo0) { |
9905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
9908 | return NULL; | |
9909 | } | |
9910 | } | |
ab9bc19b | 9911 | { |
474c48f9 | 9912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
9913 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
9914 | ||
474c48f9 | 9915 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9916 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9917 | } if (_result) { |
9918 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
9919 | _resultobj = Py_BuildValue("s",_ptemp); | |
9920 | } else { | |
9921 | Py_INCREF(Py_None); | |
9922 | _resultobj = Py_None; | |
9923 | } | |
70551f47 RD |
9924 | return _resultobj; |
9925 | } | |
9926 | ||
c95e68d8 RD |
9927 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
9928 | wxWindowDC *src; | |
9929 | wxDC *dest; | |
9930 | src = (wxWindowDC *) ptr; | |
9931 | dest = (wxDC *) src; | |
9932 | return (void *) dest; | |
9933 | } | |
9934 | ||
9df61a29 RD |
9935 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
9936 | wxWindowDC *src; | |
9937 | wxObject *dest; | |
9938 | src = (wxWindowDC *) ptr; | |
9939 | dest = (wxObject *) src; | |
9940 | return (void *) dest; | |
9941 | } | |
9942 | ||
c95e68d8 | 9943 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
107e4716 | 9944 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
9945 | PyObject * _resultobj; |
9946 | wxWindowDC * _result; | |
9947 | wxWindow * _arg0; | |
2d091820 | 9948 | PyObject * _argo0 = 0; |
107e4716 | 9949 | char *_kwnames[] = { "win", NULL }; |
c95e68d8 RD |
9950 | char _ptemp[128]; |
9951 | ||
9952 | self = self; | |
107e4716 | 9953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
c95e68d8 | 9954 | return NULL; |
2d091820 RD |
9955 | if (_argo0) { |
9956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
9958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
9959 | return NULL; | |
9960 | } | |
9961 | } | |
ab9bc19b | 9962 | { |
474c48f9 | 9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
9964 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
9965 | ||
474c48f9 | 9966 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9967 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9968 | } if (_result) { |
9969 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
9970 | _resultobj = Py_BuildValue("s",_ptemp); | |
9971 | } else { | |
9972 | Py_INCREF(Py_None); | |
9973 | _resultobj = Py_None; | |
9974 | } | |
c95e68d8 RD |
9975 | return _resultobj; |
9976 | } | |
9977 | ||
9df61a29 RD |
9978 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
9979 | wxPalette *src; | |
9980 | wxGDIObject *dest; | |
9981 | src = (wxPalette *) ptr; | |
9982 | dest = (wxGDIObject *) src; | |
9983 | return (void *) dest; | |
9984 | } | |
9985 | ||
9986 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9987 | wxPalette *src; | |
9988 | wxObject *dest; | |
9989 | src = (wxPalette *) ptr; | |
9990 | dest = (wxObject *) src; | |
9991 | return (void *) dest; | |
9992 | } | |
9993 | ||
105e45b9 | 9994 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 9995 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
9996 | PyObject * _resultobj; |
9997 | wxPalette * _result; | |
9998 | int _arg0; | |
9999 | byte * _arg1; | |
10000 | byte * _arg2; | |
10001 | byte * _arg3; | |
10002 | PyObject * _obj1 = 0; | |
10003 | PyObject * _obj2 = 0; | |
10004 | PyObject * _obj3 = 0; | |
e02c03a4 | 10005 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
105e45b9 RD |
10006 | char _ptemp[128]; |
10007 | ||
10008 | self = self; | |
107e4716 | 10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
105e45b9 RD |
10010 | return NULL; |
10011 | { | |
10012 | _arg1 = byte_LIST_helper(_obj1); | |
10013 | if (_arg1 == NULL) { | |
10014 | return NULL; | |
10015 | } | |
10016 | } | |
10017 | { | |
10018 | _arg2 = byte_LIST_helper(_obj2); | |
10019 | if (_arg2 == NULL) { | |
10020 | return NULL; | |
10021 | } | |
10022 | } | |
10023 | if (_obj3) | |
10024 | { | |
10025 | _arg3 = byte_LIST_helper(_obj3); | |
10026 | if (_arg3 == NULL) { | |
10027 | return NULL; | |
10028 | } | |
10029 | } | |
10030 | { | |
ab9bc19b RD |
10031 | if (_obj1) { |
10032 | _arg0 = PyList_Size(_obj1); | |
10033 | } | |
10034 | else { | |
10035 | _arg0 = 0; | |
10036 | } | |
105e45b9 | 10037 | } |
ab9bc19b | 10038 | { |
474c48f9 | 10039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10040 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
10041 | ||
474c48f9 | 10042 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10043 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
10044 | } if (_result) { |
10045 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
10046 | _resultobj = Py_BuildValue("s",_ptemp); | |
10047 | } else { | |
10048 | Py_INCREF(Py_None); | |
10049 | _resultobj = Py_None; | |
10050 | } | |
105e45b9 RD |
10051 | { |
10052 | delete [] _arg1; | |
10053 | } | |
10054 | { | |
10055 | delete [] _arg2; | |
10056 | } | |
10057 | { | |
10058 | delete [] _arg3; | |
10059 | } | |
10060 | return _resultobj; | |
10061 | } | |
10062 | ||
10063 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
107e4716 | 10064 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10065 | PyObject * _resultobj; |
10066 | wxPalette * _arg0; | |
2d091820 | 10067 | PyObject * _argo0 = 0; |
107e4716 | 10068 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
10069 | |
10070 | self = self; | |
107e4716 | 10071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
105e45b9 | 10072 | return NULL; |
2d091820 RD |
10073 | if (_argo0) { |
10074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
10077 | return NULL; | |
10078 | } | |
10079 | } | |
ab9bc19b | 10080 | { |
474c48f9 | 10081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10082 | delete_wxPalette(_arg0); |
10083 | ||
474c48f9 | 10084 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10085 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10086 | } Py_INCREF(Py_None); |
105e45b9 RD |
10087 | _resultobj = Py_None; |
10088 | return _resultobj; | |
10089 | } | |
10090 | ||
10091 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 10092 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10093 | PyObject * _resultobj; |
10094 | int _result; | |
10095 | wxPalette * _arg0; | |
10096 | byte _arg1; | |
10097 | byte _arg2; | |
10098 | byte _arg3; | |
2d091820 | 10099 | PyObject * _argo0 = 0; |
107e4716 | 10100 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
105e45b9 RD |
10101 | |
10102 | self = self; | |
107e4716 | 10103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
105e45b9 | 10104 | return NULL; |
2d091820 RD |
10105 | if (_argo0) { |
10106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
10109 | return NULL; | |
10110 | } | |
10111 | } | |
ab9bc19b | 10112 | { |
474c48f9 | 10113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10114 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
10115 | ||
474c48f9 | 10116 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10117 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10118 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
10119 | return _resultobj; |
10120 | } | |
10121 | ||
10122 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 10123 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10124 | PyObject * _resultobj; |
10125 | bool _result; | |
10126 | wxPalette * _arg0; | |
10127 | int _arg1; | |
10128 | byte * _arg2; | |
ef2060fa | 10129 | int temp; |
105e45b9 | 10130 | byte * _arg3; |
ef2060fa | 10131 | int temp0; |
105e45b9 | 10132 | byte * _arg4; |
ef2060fa | 10133 | int temp1; |
2d091820 | 10134 | PyObject * _argo0 = 0; |
ef2060fa | 10135 | char *_kwnames[] = { "self","pixel", NULL }; |
105e45b9 RD |
10136 | |
10137 | self = self; | |
ef2060fa RD |
10138 | { |
10139 | _arg2 = (byte*)&temp; | |
10140 | } | |
10141 | { | |
10142 | _arg3 = (byte*)&temp0; | |
10143 | } | |
10144 | { | |
10145 | _arg4 = (byte*)&temp1; | |
10146 | } | |
10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
105e45b9 | 10148 | return NULL; |
2d091820 RD |
10149 | if (_argo0) { |
10150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
10153 | return NULL; | |
10154 | } | |
10155 | } | |
ab9bc19b | 10156 | { |
474c48f9 | 10157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10158 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
10159 | ||
474c48f9 | 10160 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10161 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10162 | } _resultobj = Py_BuildValue("i",_result); |
ef2060fa RD |
10163 | { |
10164 | PyObject *o; | |
10165 | o = PyInt_FromLong((long) (*_arg2)); | |
10166 | _resultobj = t_output_helper(_resultobj, o); | |
10167 | } | |
10168 | { | |
10169 | PyObject *o; | |
10170 | o = PyInt_FromLong((long) (*_arg3)); | |
10171 | _resultobj = t_output_helper(_resultobj, o); | |
10172 | } | |
10173 | { | |
10174 | PyObject *o; | |
10175 | o = PyInt_FromLong((long) (*_arg4)); | |
10176 | _resultobj = t_output_helper(_resultobj, o); | |
10177 | } | |
105e45b9 RD |
10178 | return _resultobj; |
10179 | } | |
10180 | ||
10181 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 10182 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10183 | PyObject * _resultobj; |
10184 | bool _result; | |
10185 | wxPalette * _arg0; | |
2d091820 | 10186 | PyObject * _argo0 = 0; |
107e4716 | 10187 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
10188 | |
10189 | self = self; | |
107e4716 | 10190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
105e45b9 | 10191 | return NULL; |
2d091820 RD |
10192 | if (_argo0) { |
10193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
10196 | return NULL; | |
10197 | } | |
10198 | } | |
ab9bc19b | 10199 | { |
474c48f9 | 10200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10201 | _result = (bool )wxPalette_Ok(_arg0); |
10202 | ||
474c48f9 | 10203 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10204 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10205 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
10206 | return _resultobj; |
10207 | } | |
10208 | ||
9df61a29 RD |
10209 | static void *SwigwxImageListTowxObject(void *ptr) { |
10210 | wxImageList *src; | |
10211 | wxObject *dest; | |
10212 | src = (wxImageList *) ptr; | |
10213 | dest = (wxObject *) src; | |
10214 | return (void *) dest; | |
10215 | } | |
10216 | ||
21f8d7ea | 10217 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 10218 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10219 | PyObject * _resultobj; |
10220 | wxImageList * _result; | |
10221 | int _arg0; | |
10222 | int _arg1; | |
7ff49f0c | 10223 | int _arg2 = (int ) TRUE; |
2d091820 | 10224 | int _arg3 = (int ) 1; |
107e4716 | 10225 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
21f8d7ea RD |
10226 | char _ptemp[128]; |
10227 | ||
10228 | self = self; | |
56f5d962 | 10229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
21f8d7ea | 10230 | return NULL; |
ab9bc19b | 10231 | { |
474c48f9 | 10232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10233 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
10234 | ||
474c48f9 | 10235 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10236 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
10237 | } if (_result) { |
10238 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
10239 | _resultobj = Py_BuildValue("s",_ptemp); | |
10240 | } else { | |
10241 | Py_INCREF(Py_None); | |
10242 | _resultobj = Py_None; | |
10243 | } | |
21f8d7ea RD |
10244 | return _resultobj; |
10245 | } | |
10246 | ||
10247 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
107e4716 | 10248 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10249 | PyObject * _resultobj; |
10250 | wxImageList * _arg0; | |
2d091820 | 10251 | PyObject * _argo0 = 0; |
107e4716 | 10252 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
10253 | |
10254 | self = self; | |
107e4716 | 10255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
21f8d7ea | 10256 | return NULL; |
2d091820 RD |
10257 | if (_argo0) { |
10258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
10261 | return NULL; | |
10262 | } | |
10263 | } | |
ab9bc19b | 10264 | { |
474c48f9 | 10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10266 | delete_wxImageList(_arg0); |
10267 | ||
474c48f9 | 10268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10269 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10270 | } Py_INCREF(Py_None); |
21f8d7ea RD |
10271 | _resultobj = Py_None; |
10272 | return _resultobj; | |
10273 | } | |
10274 | ||
f6bcfd97 | 10275 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) |
107e4716 | 10276 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10277 | PyObject * _resultobj; |
10278 | int _result; | |
10279 | wxImageList * _arg0; | |
10280 | wxBitmap * _arg1; | |
f6bcfd97 | 10281 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
2d091820 RD |
10282 | PyObject * _argo0 = 0; |
10283 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
10284 | PyObject * _argo2 = 0; |
10285 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
21f8d7ea RD |
10286 | |
10287 | self = self; | |
f6bcfd97 | 10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
21f8d7ea | 10289 | return NULL; |
2d091820 RD |
10290 | if (_argo0) { |
10291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
10294 | return NULL; | |
10295 | } | |
10296 | } | |
2d091820 RD |
10297 | if (_argo1) { |
10298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
21f8d7ea RD |
10300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
10301 | return NULL; | |
10302 | } | |
10303 | } | |
f6bcfd97 BP |
10304 | if (_argo2) { |
10305 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10306 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
10308 | return NULL; | |
10309 | } | |
10310 | } | |
10311 | { | |
474c48f9 | 10312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10313 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
10314 | ||
474c48f9 | 10315 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10316 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10317 | } _resultobj = Py_BuildValue("i",_result); |
10318 | return _resultobj; | |
10319 | } | |
10320 | ||
10321 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10322 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject * _resultobj; | |
10324 | int _result; | |
10325 | wxImageList * _arg0; | |
10326 | wxBitmap * _arg1; | |
10327 | wxColour * _arg2; | |
10328 | PyObject * _argo0 = 0; | |
10329 | PyObject * _argo1 = 0; | |
10330 | wxColour temp; | |
10331 | PyObject * _obj2 = 0; | |
10332 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
10333 | ||
10334 | self = self; | |
10335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
10336 | return NULL; | |
10337 | if (_argo0) { | |
10338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
10341 | return NULL; | |
10342 | } | |
10343 | } | |
10344 | if (_argo1) { | |
10345 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10346 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
10348 | return NULL; | |
10349 | } | |
10350 | } | |
10351 | { | |
10352 | _arg2 = &temp; | |
10353 | if (! wxColour_helper(_obj2, &_arg2)) | |
10354 | return NULL; | |
10355 | } | |
ab9bc19b | 10356 | { |
474c48f9 | 10357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10358 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
10359 | ||
474c48f9 | 10360 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10361 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10362 | } _resultobj = Py_BuildValue("i",_result); |
10363 | return _resultobj; | |
10364 | } | |
10365 | ||
10366 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
10367 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10368 | PyObject * _resultobj; | |
10369 | int _result; | |
10370 | wxImageList * _arg0; | |
10371 | wxIcon * _arg1; | |
10372 | PyObject * _argo0 = 0; | |
10373 | PyObject * _argo1 = 0; | |
10374 | char *_kwnames[] = { "self","icon", NULL }; | |
10375 | ||
10376 | self = self; | |
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
10378 | return NULL; | |
10379 | if (_argo0) { | |
10380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
10383 | return NULL; | |
10384 | } | |
10385 | } | |
10386 | if (_argo1) { | |
10387 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10388 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
10389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
10390 | return NULL; | |
10391 | } | |
10392 | } | |
10393 | { | |
474c48f9 | 10394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 10395 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
ab9bc19b | 10396 | |
474c48f9 | 10397 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10398 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10399 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10400 | return _resultobj; |
10401 | } | |
10402 | ||
10403 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
107e4716 | 10404 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10405 | PyObject * _resultobj; |
10406 | bool _result; | |
10407 | wxImageList * _arg0; | |
10408 | int _arg1; | |
10409 | wxBitmap * _arg2; | |
2d091820 RD |
10410 | PyObject * _argo0 = 0; |
10411 | PyObject * _argo2 = 0; | |
107e4716 | 10412 | char *_kwnames[] = { "self","index","bitmap", NULL }; |
21f8d7ea RD |
10413 | |
10414 | self = self; | |
107e4716 | 10415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) |
21f8d7ea | 10416 | return NULL; |
2d091820 RD |
10417 | if (_argo0) { |
10418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
10421 | return NULL; | |
10422 | } | |
10423 | } | |
2d091820 RD |
10424 | if (_argo2) { |
10425 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10426 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea RD |
10427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
10428 | return NULL; | |
10429 | } | |
10430 | } | |
ab9bc19b | 10431 | { |
474c48f9 | 10432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10433 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); |
10434 | ||
474c48f9 | 10435 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10436 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10437 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10438 | return _resultobj; |
10439 | } | |
10440 | ||
10441 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 10442 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10443 | PyObject * _resultobj; |
10444 | bool _result; | |
10445 | wxImageList * _arg0; | |
10446 | int _arg1; | |
10447 | wxDC * _arg2; | |
10448 | int _arg3; | |
10449 | int _arg4; | |
2d091820 RD |
10450 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
10451 | bool _arg6 = (bool ) FALSE; | |
10452 | PyObject * _argo0 = 0; | |
10453 | PyObject * _argo2 = 0; | |
10454 | int tempbool6 = (int) FALSE; | |
107e4716 | 10455 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
21f8d7ea RD |
10456 | |
10457 | self = self; | |
107e4716 | 10458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
21f8d7ea | 10459 | return NULL; |
2d091820 RD |
10460 | if (_argo0) { |
10461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
10464 | return NULL; | |
10465 | } | |
10466 | } | |
2d091820 RD |
10467 | if (_argo2) { |
10468 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10469 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
10470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
10471 | return NULL; | |
10472 | } | |
10473 | } | |
10474 | _arg6 = (bool ) tempbool6; | |
ab9bc19b | 10475 | { |
474c48f9 | 10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10477 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
10478 | ||
474c48f9 | 10479 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10480 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10481 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10482 | return _resultobj; |
10483 | } | |
10484 | ||
10485 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
107e4716 | 10486 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10487 | PyObject * _resultobj; |
10488 | int _result; | |
10489 | wxImageList * _arg0; | |
2d091820 | 10490 | PyObject * _argo0 = 0; |
107e4716 | 10491 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
10492 | |
10493 | self = self; | |
107e4716 | 10494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
21f8d7ea | 10495 | return NULL; |
2d091820 RD |
10496 | if (_argo0) { |
10497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
10500 | return NULL; | |
10501 | } | |
10502 | } | |
ab9bc19b | 10503 | { |
474c48f9 | 10504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10505 | _result = (int )wxImageList_GetImageCount(_arg0); |
10506 | ||
474c48f9 | 10507 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10508 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10509 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10510 | return _resultobj; |
10511 | } | |
10512 | ||
10513 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
107e4716 | 10514 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10515 | PyObject * _resultobj; |
10516 | bool _result; | |
10517 | wxImageList * _arg0; | |
10518 | int _arg1; | |
2d091820 | 10519 | PyObject * _argo0 = 0; |
107e4716 | 10520 | char *_kwnames[] = { "self","index", NULL }; |
21f8d7ea RD |
10521 | |
10522 | self = self; | |
107e4716 | 10523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
21f8d7ea | 10524 | return NULL; |
2d091820 RD |
10525 | if (_argo0) { |
10526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
10529 | return NULL; | |
10530 | } | |
10531 | } | |
ab9bc19b | 10532 | { |
474c48f9 | 10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10534 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
10535 | ||
474c48f9 | 10536 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10537 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10538 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10539 | return _resultobj; |
10540 | } | |
10541 | ||
10542 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
107e4716 | 10543 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10544 | PyObject * _resultobj; |
10545 | bool _result; | |
10546 | wxImageList * _arg0; | |
2d091820 | 10547 | PyObject * _argo0 = 0; |
107e4716 | 10548 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
10549 | |
10550 | self = self; | |
107e4716 | 10551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
21f8d7ea | 10552 | return NULL; |
2d091820 RD |
10553 | if (_argo0) { |
10554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
10557 | return NULL; | |
10558 | } | |
10559 | } | |
ab9bc19b | 10560 | { |
474c48f9 | 10561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
10562 | _result = (bool )wxImageList_RemoveAll(_arg0); |
10563 | ||
474c48f9 | 10564 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10565 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10566 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10567 | return _resultobj; |
10568 | } | |
10569 | ||
f6bcfd97 BP |
10570 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
10571 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10572 | PyObject * _resultobj; | |
10573 | wxImageList * _arg0; | |
10574 | int _arg1; | |
10575 | int * _arg2; | |
10576 | int temp; | |
10577 | int * _arg3; | |
10578 | int temp0; | |
10579 | PyObject * _argo0 = 0; | |
10580 | char *_kwnames[] = { "self","index", NULL }; | |
10581 | ||
10582 | self = self; | |
10583 | { | |
10584 | _arg2 = &temp; | |
10585 | } | |
10586 | { | |
10587 | _arg3 = &temp0; | |
10588 | } | |
10589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
10590 | return NULL; | |
10591 | if (_argo0) { | |
10592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
10595 | return NULL; | |
10596 | } | |
10597 | } | |
10598 | { | |
474c48f9 | 10599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10600 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
10601 | ||
474c48f9 | 10602 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10603 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10604 | } Py_INCREF(Py_None); |
10605 | _resultobj = Py_None; | |
10606 | { | |
10607 | PyObject *o; | |
10608 | o = PyInt_FromLong((long) (*_arg2)); | |
10609 | _resultobj = t_output_helper(_resultobj, o); | |
10610 | } | |
10611 | { | |
10612 | PyObject *o; | |
10613 | o = PyInt_FromLong((long) (*_arg3)); | |
10614 | _resultobj = t_output_helper(_resultobj, o); | |
10615 | } | |
10616 | return _resultobj; | |
10617 | } | |
10618 | ||
9df61a29 RD |
10619 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
10620 | wxRegion *src; | |
10621 | wxGDIObject *dest; | |
10622 | src = (wxRegion *) ptr; | |
10623 | dest = (wxGDIObject *) src; | |
10624 | return (void *) dest; | |
10625 | } | |
10626 | ||
10627 | static void *SwigwxRegionTowxObject(void *ptr) { | |
10628 | wxRegion *src; | |
10629 | wxObject *dest; | |
10630 | src = (wxRegion *) ptr; | |
10631 | dest = (wxObject *) src; | |
10632 | return (void *) dest; | |
10633 | } | |
10634 | ||
10635 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10636 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject * _resultobj; | |
10638 | wxRegion * _result; | |
10639 | long _arg0 = (long ) 0; | |
10640 | long _arg1 = (long ) 0; | |
10641 | long _arg2 = (long ) 0; | |
10642 | long _arg3 = (long ) 0; | |
10643 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
10644 | char _ptemp[128]; | |
10645 | ||
10646 | self = self; | |
10647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10648 | return NULL; | |
10649 | { | |
474c48f9 | 10650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10651 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
10652 | ||
474c48f9 | 10653 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10654 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10655 | } if (_result) { |
10656 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10657 | _resultobj = Py_BuildValue("s",_ptemp); | |
10658 | } else { | |
10659 | Py_INCREF(Py_None); | |
10660 | _resultobj = Py_None; | |
10661 | } | |
10662 | return _resultobj; | |
10663 | } | |
10664 | ||
10665 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
10666 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10667 | PyObject * _resultobj; | |
10668 | wxRegion * _arg0; | |
10669 | PyObject * _argo0 = 0; | |
10670 | char *_kwnames[] = { "self", NULL }; | |
10671 | ||
10672 | self = self; | |
10673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10674 | return NULL; | |
10675 | if (_argo0) { | |
10676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10679 | return NULL; | |
10680 | } | |
10681 | } | |
10682 | { | |
474c48f9 | 10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10684 | delete_wxRegion(_arg0); |
10685 | ||
474c48f9 | 10686 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10687 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10688 | } Py_INCREF(Py_None); |
10689 | _resultobj = Py_None; | |
10690 | return _resultobj; | |
10691 | } | |
10692 | ||
10693 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10694 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10695 | PyObject * _resultobj; | |
10696 | wxRegion * _arg0; | |
10697 | PyObject * _argo0 = 0; | |
10698 | char *_kwnames[] = { "self", NULL }; | |
10699 | ||
10700 | self = self; | |
10701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10702 | return NULL; | |
10703 | if (_argo0) { | |
10704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10707 | return NULL; | |
10708 | } | |
10709 | } | |
10710 | { | |
474c48f9 | 10711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10712 | wxRegion_Clear(_arg0); |
10713 | ||
474c48f9 | 10714 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10715 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10716 | } Py_INCREF(Py_None); |
10717 | _resultobj = Py_None; | |
10718 | return _resultobj; | |
10719 | } | |
10720 | ||
8cb49012 RD |
10721 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) |
10722 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10723 | PyObject * _resultobj; | |
10724 | bool _result; | |
10725 | wxRegion * _arg0; | |
10726 | wxCoord _arg1; | |
10727 | wxCoord _arg2; | |
10728 | PyObject * _argo0 = 0; | |
10729 | char *_kwnames[] = { "self","x","y", NULL }; | |
10730 | ||
10731 | self = self; | |
10732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10733 | return NULL; | |
10734 | if (_argo0) { | |
10735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
10738 | return NULL; | |
10739 | } | |
10740 | } | |
10741 | { | |
10742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10743 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); | |
10744 | ||
10745 | wxPyEndAllowThreads(__tstate); | |
10746 | if (PyErr_Occurred()) return NULL; | |
10747 | } _resultobj = Py_BuildValue("i",_result); | |
10748 | return _resultobj; | |
10749 | } | |
10750 | ||
9df61a29 RD |
10751 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) |
10752 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10753 | PyObject * _resultobj; | |
10754 | wxRegionContain _result; | |
10755 | wxRegion * _arg0; | |
10756 | long _arg1; | |
10757 | long _arg2; | |
10758 | PyObject * _argo0 = 0; | |
10759 | char *_kwnames[] = { "self","x","y", NULL }; | |
10760 | ||
10761 | self = self; | |
10762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10763 | return NULL; | |
10764 | if (_argo0) { | |
10765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10768 | return NULL; | |
10769 | } | |
10770 | } | |
10771 | { | |
474c48f9 | 10772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10773 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
10774 | ||
474c48f9 | 10775 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10776 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10777 | } _resultobj = Py_BuildValue("i",_result); |
10778 | return _resultobj; | |
10779 | } | |
10780 | ||
10781 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10782 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10783 | PyObject * _resultobj; | |
10784 | wxRegionContain _result; | |
10785 | wxRegion * _arg0; | |
10786 | wxPoint * _arg1; | |
10787 | PyObject * _argo0 = 0; | |
10788 | wxPoint temp; | |
10789 | PyObject * _obj1 = 0; | |
10790 | char *_kwnames[] = { "self","pt", NULL }; | |
10791 | ||
10792 | self = self; | |
10793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10794 | return NULL; | |
10795 | if (_argo0) { | |
10796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10799 | return NULL; | |
10800 | } | |
10801 | } | |
10802 | { | |
10803 | _arg1 = &temp; | |
10804 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10805 | return NULL; | |
10806 | } | |
10807 | { | |
474c48f9 | 10808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10809 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
10810 | ||
474c48f9 | 10811 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10812 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10813 | } _resultobj = Py_BuildValue("i",_result); |
10814 | return _resultobj; | |
10815 | } | |
10816 | ||
10817 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10818 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10819 | PyObject * _resultobj; | |
10820 | wxRegionContain _result; | |
10821 | wxRegion * _arg0; | |
10822 | wxRect * _arg1; | |
10823 | PyObject * _argo0 = 0; | |
10824 | wxRect temp; | |
10825 | PyObject * _obj1 = 0; | |
10826 | char *_kwnames[] = { "self","rect", NULL }; | |
10827 | ||
10828 | self = self; | |
10829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
10830 | return NULL; | |
10831 | if (_argo0) { | |
10832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
10835 | return NULL; | |
10836 | } | |
10837 | } | |
10838 | { | |
10839 | _arg1 = &temp; | |
10840 | if (! wxRect_helper(_obj1, &_arg1)) | |
10841 | return NULL; | |
10842 | } | |
10843 | { | |
474c48f9 | 10844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10845 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
10846 | ||
474c48f9 | 10847 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10848 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10849 | } _resultobj = Py_BuildValue("i",_result); |
10850 | return _resultobj; | |
10851 | } | |
10852 | ||
10853 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10854 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject * _resultobj; | |
10856 | wxRegionContain _result; | |
10857 | wxRegion * _arg0; | |
10858 | long _arg1; | |
10859 | long _arg2; | |
10860 | long _arg3; | |
10861 | long _arg4; | |
10862 | PyObject * _argo0 = 0; | |
10863 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
10864 | ||
10865 | self = self; | |
10866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10867 | return NULL; | |
10868 | if (_argo0) { | |
10869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
10872 | return NULL; | |
10873 | } | |
10874 | } | |
10875 | { | |
474c48f9 | 10876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10877 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
10878 | ||
474c48f9 | 10879 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10880 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10881 | } _resultobj = Py_BuildValue("i",_result); |
10882 | return _resultobj; | |
10883 | } | |
10884 | ||
10885 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
10886 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10887 | PyObject * _resultobj; | |
10888 | wxRect * _result; | |
10889 | wxRegion * _arg0; | |
10890 | PyObject * _argo0 = 0; | |
10891 | char *_kwnames[] = { "self", NULL }; | |
10892 | char _ptemp[128]; | |
10893 | ||
10894 | self = self; | |
10895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
10896 | return NULL; | |
10897 | if (_argo0) { | |
10898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
10901 | return NULL; | |
10902 | } | |
10903 | } | |
10904 | { | |
474c48f9 | 10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10906 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
10907 | ||
474c48f9 | 10908 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10909 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10910 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
10911 | _resultobj = Py_BuildValue("s",_ptemp); | |
10912 | return _resultobj; | |
10913 | } | |
10914 | ||
10915 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10916 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10917 | PyObject * _resultobj; | |
10918 | bool _result; | |
10919 | wxRegion * _arg0; | |
10920 | long _arg1; | |
10921 | long _arg2; | |
10922 | long _arg3; | |
10923 | long _arg4; | |
10924 | PyObject * _argo0 = 0; | |
10925 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10926 | ||
10927 | self = self; | |
10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10929 | return NULL; | |
10930 | if (_argo0) { | |
10931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
10934 | return NULL; | |
10935 | } | |
10936 | } | |
10937 | { | |
474c48f9 | 10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10939 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
10940 | ||
474c48f9 | 10941 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10942 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10943 | } _resultobj = Py_BuildValue("i",_result); |
10944 | return _resultobj; | |
10945 | } | |
10946 | ||
10947 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10948 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10949 | PyObject * _resultobj; | |
10950 | bool _result; | |
10951 | wxRegion * _arg0; | |
10952 | wxRect * _arg1; | |
10953 | PyObject * _argo0 = 0; | |
10954 | wxRect temp; | |
10955 | PyObject * _obj1 = 0; | |
10956 | char *_kwnames[] = { "self","rect", NULL }; | |
10957 | ||
10958 | self = self; | |
10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
10960 | return NULL; | |
10961 | if (_argo0) { | |
10962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
10965 | return NULL; | |
10966 | } | |
10967 | } | |
10968 | { | |
10969 | _arg1 = &temp; | |
10970 | if (! wxRect_helper(_obj1, &_arg1)) | |
10971 | return NULL; | |
10972 | } | |
10973 | { | |
474c48f9 | 10974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
10975 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
10976 | ||
474c48f9 | 10977 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10978 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10979 | } _resultobj = Py_BuildValue("i",_result); |
10980 | return _resultobj; | |
10981 | } | |
10982 | ||
10983 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10984 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10985 | PyObject * _resultobj; | |
10986 | bool _result; | |
10987 | wxRegion * _arg0; | |
10988 | wxRegion * _arg1; | |
10989 | PyObject * _argo0 = 0; | |
10990 | PyObject * _argo1 = 0; | |
10991 | char *_kwnames[] = { "self","region", NULL }; | |
10992 | ||
10993 | self = self; | |
10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
10995 | return NULL; | |
10996 | if (_argo0) { | |
10997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11000 | return NULL; | |
11001 | } | |
11002 | } | |
11003 | if (_argo1) { | |
11004 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11005 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11007 | return NULL; | |
11008 | } | |
11009 | } | |
11010 | { | |
474c48f9 | 11011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11012 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
11013 | ||
474c48f9 | 11014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11015 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11016 | } _resultobj = Py_BuildValue("i",_result); |
11017 | return _resultobj; | |
11018 | } | |
11019 | ||
11020 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
11021 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11022 | PyObject * _resultobj; | |
11023 | bool _result; | |
11024 | wxRegion * _arg0; | |
11025 | PyObject * _argo0 = 0; | |
11026 | char *_kwnames[] = { "self", NULL }; | |
11027 | ||
11028 | self = self; | |
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
11030 | return NULL; | |
11031 | if (_argo0) { | |
11032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
11035 | return NULL; | |
11036 | } | |
11037 | } | |
11038 | { | |
474c48f9 | 11039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11040 | _result = (bool )wxRegion_IsEmpty(_arg0); |
11041 | ||
474c48f9 | 11042 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11043 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11044 | } _resultobj = Py_BuildValue("i",_result); |
11045 | return _resultobj; | |
11046 | } | |
11047 | ||
11048 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11049 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11050 | PyObject * _resultobj; | |
11051 | bool _result; | |
11052 | wxRegion * _arg0; | |
11053 | long _arg1; | |
11054 | long _arg2; | |
11055 | long _arg3; | |
11056 | long _arg4; | |
11057 | PyObject * _argo0 = 0; | |
11058 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11059 | ||
11060 | self = self; | |
11061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11062 | return NULL; | |
11063 | if (_argo0) { | |
11064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
11067 | return NULL; | |
11068 | } | |
11069 | } | |
11070 | { | |
474c48f9 | 11071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11072 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
11073 | ||
474c48f9 | 11074 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11075 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11076 | } _resultobj = Py_BuildValue("i",_result); |
11077 | return _resultobj; | |
11078 | } | |
11079 | ||
11080 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11081 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11082 | PyObject * _resultobj; | |
11083 | bool _result; | |
11084 | wxRegion * _arg0; | |
11085 | wxRect * _arg1; | |
11086 | PyObject * _argo0 = 0; | |
11087 | wxRect temp; | |
11088 | PyObject * _obj1 = 0; | |
11089 | char *_kwnames[] = { "self","rect", NULL }; | |
11090 | ||
11091 | self = self; | |
11092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
11093 | return NULL; | |
11094 | if (_argo0) { | |
11095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
11098 | return NULL; | |
11099 | } | |
11100 | } | |
11101 | { | |
11102 | _arg1 = &temp; | |
11103 | if (! wxRect_helper(_obj1, &_arg1)) | |
11104 | return NULL; | |
11105 | } | |
11106 | { | |
474c48f9 | 11107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11108 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
11109 | ||
474c48f9 | 11110 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11111 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11112 | } _resultobj = Py_BuildValue("i",_result); |
11113 | return _resultobj; | |
11114 | } | |
11115 | ||
11116 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11117 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11118 | PyObject * _resultobj; | |
11119 | bool _result; | |
11120 | wxRegion * _arg0; | |
11121 | wxRegion * _arg1; | |
11122 | PyObject * _argo0 = 0; | |
11123 | PyObject * _argo1 = 0; | |
11124 | char *_kwnames[] = { "self","region", NULL }; | |
11125 | ||
11126 | self = self; | |
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
11128 | return NULL; | |
11129 | if (_argo0) { | |
11130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11133 | return NULL; | |
11134 | } | |
11135 | } | |
11136 | if (_argo1) { | |
11137 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11138 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11140 | return NULL; | |
11141 | } | |
11142 | } | |
11143 | { | |
474c48f9 | 11144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11145 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
11146 | ||
474c48f9 | 11147 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11148 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11149 | } _resultobj = Py_BuildValue("i",_result); |
11150 | return _resultobj; | |
11151 | } | |
11152 | ||
11153 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11154 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11155 | PyObject * _resultobj; | |
11156 | bool _result; | |
11157 | wxRegion * _arg0; | |
11158 | long _arg1; | |
11159 | long _arg2; | |
11160 | long _arg3; | |
11161 | long _arg4; | |
11162 | PyObject * _argo0 = 0; | |
11163 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11164 | ||
11165 | self = self; | |
11166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11167 | return NULL; | |
11168 | if (_argo0) { | |
11169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
11172 | return NULL; | |
11173 | } | |
11174 | } | |
11175 | { | |
474c48f9 | 11176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11177 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
11178 | ||
474c48f9 | 11179 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11180 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11181 | } _resultobj = Py_BuildValue("i",_result); |
11182 | return _resultobj; | |
11183 | } | |
11184 | ||
11185 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11186 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11187 | PyObject * _resultobj; | |
11188 | bool _result; | |
11189 | wxRegion * _arg0; | |
11190 | wxRect * _arg1; | |
11191 | PyObject * _argo0 = 0; | |
11192 | wxRect temp; | |
11193 | PyObject * _obj1 = 0; | |
11194 | char *_kwnames[] = { "self","rect", NULL }; | |
11195 | ||
11196 | self = self; | |
11197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
11198 | return NULL; | |
11199 | if (_argo0) { | |
11200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
11203 | return NULL; | |
11204 | } | |
11205 | } | |
11206 | { | |
11207 | _arg1 = &temp; | |
11208 | if (! wxRect_helper(_obj1, &_arg1)) | |
11209 | return NULL; | |
11210 | } | |
11211 | { | |
474c48f9 | 11212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11213 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
11214 | ||
474c48f9 | 11215 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11216 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11217 | } _resultobj = Py_BuildValue("i",_result); |
11218 | return _resultobj; | |
11219 | } | |
11220 | ||
11221 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11222 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11223 | PyObject * _resultobj; | |
11224 | bool _result; | |
11225 | wxRegion * _arg0; | |
11226 | wxRegion * _arg1; | |
11227 | PyObject * _argo0 = 0; | |
11228 | PyObject * _argo1 = 0; | |
11229 | char *_kwnames[] = { "self","region", NULL }; | |
11230 | ||
11231 | self = self; | |
11232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
11233 | return NULL; | |
11234 | if (_argo0) { | |
11235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11238 | return NULL; | |
11239 | } | |
11240 | } | |
11241 | if (_argo1) { | |
11242 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11243 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11245 | return NULL; | |
11246 | } | |
11247 | } | |
11248 | { | |
474c48f9 | 11249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11250 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
11251 | ||
474c48f9 | 11252 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11253 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11254 | } _resultobj = Py_BuildValue("i",_result); |
11255 | return _resultobj; | |
11256 | } | |
11257 | ||
11258 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11259 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11260 | PyObject * _resultobj; | |
11261 | bool _result; | |
11262 | wxRegion * _arg0; | |
11263 | long _arg1; | |
11264 | long _arg2; | |
11265 | long _arg3; | |
11266 | long _arg4; | |
11267 | PyObject * _argo0 = 0; | |
11268 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11269 | ||
11270 | self = self; | |
11271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11272 | return NULL; | |
11273 | if (_argo0) { | |
11274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
11277 | return NULL; | |
11278 | } | |
11279 | } | |
11280 | { | |
474c48f9 | 11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11282 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
11283 | ||
474c48f9 | 11284 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11285 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11286 | } _resultobj = Py_BuildValue("i",_result); |
11287 | return _resultobj; | |
11288 | } | |
11289 | ||
11290 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11291 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11292 | PyObject * _resultobj; | |
11293 | bool _result; | |
11294 | wxRegion * _arg0; | |
11295 | wxRect * _arg1; | |
11296 | PyObject * _argo0 = 0; | |
11297 | wxRect temp; | |
11298 | PyObject * _obj1 = 0; | |
11299 | char *_kwnames[] = { "self","rect", NULL }; | |
11300 | ||
11301 | self = self; | |
11302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
11303 | return NULL; | |
11304 | if (_argo0) { | |
11305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
11308 | return NULL; | |
11309 | } | |
11310 | } | |
11311 | { | |
11312 | _arg1 = &temp; | |
11313 | if (! wxRect_helper(_obj1, &_arg1)) | |
11314 | return NULL; | |
11315 | } | |
11316 | { | |
474c48f9 | 11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11318 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
11319 | ||
474c48f9 | 11320 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11321 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11322 | } _resultobj = Py_BuildValue("i",_result); |
11323 | return _resultobj; | |
11324 | } | |
11325 | ||
11326 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11327 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11328 | PyObject * _resultobj; | |
11329 | bool _result; | |
11330 | wxRegion * _arg0; | |
11331 | wxRegion * _arg1; | |
11332 | PyObject * _argo0 = 0; | |
11333 | PyObject * _argo1 = 0; | |
11334 | char *_kwnames[] = { "self","region", NULL }; | |
11335 | ||
11336 | self = self; | |
11337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11338 | return NULL; | |
11339 | if (_argo0) { | |
11340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11343 | return NULL; | |
11344 | } | |
11345 | } | |
11346 | if (_argo1) { | |
11347 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11348 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11350 | return NULL; | |
11351 | } | |
11352 | } | |
11353 | { | |
474c48f9 | 11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11355 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
11356 | ||
474c48f9 | 11357 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11358 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11359 | } _resultobj = Py_BuildValue("i",_result); |
11360 | return _resultobj; | |
11361 | } | |
11362 | ||
11363 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11364 | wxRegionIterator *src; | |
11365 | wxObject *dest; | |
11366 | src = (wxRegionIterator *) ptr; | |
11367 | dest = (wxObject *) src; | |
11368 | return (void *) dest; | |
11369 | } | |
11370 | ||
11371 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11372 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11373 | PyObject * _resultobj; | |
11374 | wxRegionIterator * _result; | |
11375 | wxRegion * _arg0; | |
11376 | PyObject * _argo0 = 0; | |
11377 | char *_kwnames[] = { "region", NULL }; | |
11378 | char _ptemp[128]; | |
11379 | ||
11380 | self = self; | |
11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11382 | return NULL; | |
11383 | if (_argo0) { | |
11384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
11387 | return NULL; | |
11388 | } | |
11389 | } | |
11390 | { | |
474c48f9 | 11391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11392 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
11393 | ||
474c48f9 | 11394 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11395 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11396 | } if (_result) { |
11397 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11398 | _resultobj = Py_BuildValue("s",_ptemp); | |
11399 | } else { | |
11400 | Py_INCREF(Py_None); | |
11401 | _resultobj = Py_None; | |
11402 | } | |
11403 | return _resultobj; | |
11404 | } | |
11405 | ||
11406 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11407 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11408 | PyObject * _resultobj; | |
11409 | wxRegionIterator * _arg0; | |
11410 | PyObject * _argo0 = 0; | |
11411 | char *_kwnames[] = { "self", NULL }; | |
11412 | ||
11413 | self = self; | |
11414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11415 | return NULL; | |
11416 | if (_argo0) { | |
11417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11420 | return NULL; | |
11421 | } | |
11422 | } | |
11423 | { | |
474c48f9 | 11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11425 | delete_wxRegionIterator(_arg0); |
11426 | ||
474c48f9 | 11427 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11428 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11429 | } Py_INCREF(Py_None); |
11430 | _resultobj = Py_None; | |
11431 | return _resultobj; | |
11432 | } | |
11433 | ||
11434 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11435 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11436 | PyObject * _resultobj; | |
11437 | long _result; | |
11438 | wxRegionIterator * _arg0; | |
11439 | PyObject * _argo0 = 0; | |
11440 | char *_kwnames[] = { "self", NULL }; | |
11441 | ||
11442 | self = self; | |
11443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11444 | return NULL; | |
11445 | if (_argo0) { | |
11446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11449 | return NULL; | |
11450 | } | |
11451 | } | |
11452 | { | |
474c48f9 | 11453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11454 | _result = (long )wxRegionIterator_GetX(_arg0); |
11455 | ||
474c48f9 | 11456 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11457 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11458 | } _resultobj = Py_BuildValue("l",_result); |
11459 | return _resultobj; | |
11460 | } | |
11461 | ||
11462 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11463 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11464 | PyObject * _resultobj; | |
11465 | long _result; | |
11466 | wxRegionIterator * _arg0; | |
11467 | PyObject * _argo0 = 0; | |
11468 | char *_kwnames[] = { "self", NULL }; | |
11469 | ||
11470 | self = self; | |
11471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11472 | return NULL; | |
11473 | if (_argo0) { | |
11474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11477 | return NULL; | |
11478 | } | |
11479 | } | |
11480 | { | |
474c48f9 | 11481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11482 | _result = (long )wxRegionIterator_GetY(_arg0); |
11483 | ||
474c48f9 | 11484 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11485 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11486 | } _resultobj = Py_BuildValue("l",_result); |
11487 | return _resultobj; | |
11488 | } | |
11489 | ||
11490 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11491 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11492 | PyObject * _resultobj; | |
11493 | long _result; | |
11494 | wxRegionIterator * _arg0; | |
11495 | PyObject * _argo0 = 0; | |
11496 | char *_kwnames[] = { "self", NULL }; | |
11497 | ||
11498 | self = self; | |
11499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11500 | return NULL; | |
11501 | if (_argo0) { | |
11502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
11505 | return NULL; | |
11506 | } | |
11507 | } | |
11508 | { | |
474c48f9 | 11509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11510 | _result = (long )wxRegionIterator_GetW(_arg0); |
11511 | ||
474c48f9 | 11512 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11513 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11514 | } _resultobj = Py_BuildValue("l",_result); |
11515 | return _resultobj; | |
11516 | } | |
11517 | ||
11518 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11519 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11520 | PyObject * _resultobj; | |
11521 | long _result; | |
11522 | wxRegionIterator * _arg0; | |
11523 | PyObject * _argo0 = 0; | |
11524 | char *_kwnames[] = { "self", NULL }; | |
11525 | ||
11526 | self = self; | |
11527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
11528 | return NULL; | |
11529 | if (_argo0) { | |
11530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
11533 | return NULL; | |
11534 | } | |
11535 | } | |
11536 | { | |
474c48f9 | 11537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11538 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
11539 | ||
474c48f9 | 11540 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11541 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11542 | } _resultobj = Py_BuildValue("l",_result); |
11543 | return _resultobj; | |
11544 | } | |
11545 | ||
11546 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
11547 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11548 | PyObject * _resultobj; | |
11549 | long _result; | |
11550 | wxRegionIterator * _arg0; | |
11551 | PyObject * _argo0 = 0; | |
11552 | char *_kwnames[] = { "self", NULL }; | |
11553 | ||
11554 | self = self; | |
11555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
11556 | return NULL; | |
11557 | if (_argo0) { | |
11558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
11561 | return NULL; | |
11562 | } | |
11563 | } | |
11564 | { | |
474c48f9 | 11565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11566 | _result = (long )wxRegionIterator_GetH(_arg0); |
11567 | ||
474c48f9 | 11568 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11569 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11570 | } _resultobj = Py_BuildValue("l",_result); |
11571 | return _resultobj; | |
11572 | } | |
11573 | ||
11574 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11575 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11576 | PyObject * _resultobj; | |
11577 | long _result; | |
11578 | wxRegionIterator * _arg0; | |
11579 | PyObject * _argo0 = 0; | |
11580 | char *_kwnames[] = { "self", NULL }; | |
11581 | ||
11582 | self = self; | |
11583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
11584 | return NULL; | |
11585 | if (_argo0) { | |
11586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
11589 | return NULL; | |
11590 | } | |
11591 | } | |
11592 | { | |
474c48f9 | 11593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11594 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
11595 | ||
474c48f9 | 11596 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11597 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11598 | } _resultobj = Py_BuildValue("l",_result); |
11599 | return _resultobj; | |
11600 | } | |
11601 | ||
11602 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
11603 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11604 | PyObject * _resultobj; | |
11605 | wxRect * _result; | |
11606 | wxRegionIterator * _arg0; | |
11607 | PyObject * _argo0 = 0; | |
11608 | char *_kwnames[] = { "self", NULL }; | |
11609 | char _ptemp[128]; | |
11610 | ||
11611 | self = self; | |
11612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
11613 | return NULL; | |
11614 | if (_argo0) { | |
11615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
11618 | return NULL; | |
11619 | } | |
11620 | } | |
11621 | { | |
474c48f9 | 11622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11623 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
11624 | ||
474c48f9 | 11625 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11626 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11627 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
11628 | _resultobj = Py_BuildValue("s",_ptemp); | |
11629 | return _resultobj; | |
11630 | } | |
11631 | ||
11632 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
11633 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11634 | PyObject * _resultobj; | |
11635 | bool _result; | |
11636 | wxRegionIterator * _arg0; | |
11637 | PyObject * _argo0 = 0; | |
11638 | char *_kwnames[] = { "self", NULL }; | |
11639 | ||
11640 | self = self; | |
11641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
11642 | return NULL; | |
11643 | if (_argo0) { | |
11644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
11647 | return NULL; | |
11648 | } | |
11649 | } | |
11650 | { | |
474c48f9 | 11651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11652 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
11653 | ||
474c48f9 | 11654 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11655 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11656 | } _resultobj = Py_BuildValue("i",_result); |
11657 | return _resultobj; | |
11658 | } | |
11659 | ||
11660 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
11661 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11662 | PyObject * _resultobj; | |
11663 | wxRegionIterator * _arg0; | |
11664 | PyObject * _argo0 = 0; | |
11665 | char *_kwnames[] = { "self", NULL }; | |
11666 | ||
11667 | self = self; | |
11668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
11669 | return NULL; | |
11670 | if (_argo0) { | |
11671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
11674 | return NULL; | |
11675 | } | |
11676 | } | |
11677 | { | |
474c48f9 | 11678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11679 | wxRegionIterator_Reset(_arg0); |
11680 | ||
474c48f9 | 11681 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11682 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11683 | } Py_INCREF(Py_None); |
11684 | _resultobj = Py_None; | |
11685 | return _resultobj; | |
11686 | } | |
11687 | ||
11688 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11689 | (*self) ++; | |
11690 | } | |
11691 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11692 | PyObject * _resultobj; | |
11693 | wxRegionIterator * _arg0; | |
11694 | PyObject * _argo0 = 0; | |
11695 | char *_kwnames[] = { "self", NULL }; | |
11696 | ||
11697 | self = self; | |
11698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11699 | return NULL; | |
11700 | if (_argo0) { | |
11701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11704 | return NULL; | |
11705 | } | |
11706 | } | |
11707 | { | |
474c48f9 | 11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9df61a29 RD |
11709 | wxRegionIterator_Next(_arg0); |
11710 | ||
474c48f9 | 11711 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11712 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11713 | } Py_INCREF(Py_None); |
11714 | _resultobj = Py_None; | |
11715 | return _resultobj; | |
11716 | } | |
11717 | ||
70551f47 | 11718 | static PyMethodDef gdicMethods[] = { |
9df61a29 RD |
11719 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
11720 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11721 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11722 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11723 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11724 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11726 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11727 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11728 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11729 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11730 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11731 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11732 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11735 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11736 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11737 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11738 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11739 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11740 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11741 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11742 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11743 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11744 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11745 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11746 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11747 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11749 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
11750 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, |
11751 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11752 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11753 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11754 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
11755 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11756 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11757 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
11758 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11759 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, |
11760 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11761 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, |
11762 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11763 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11764 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11765 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11766 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11767 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11768 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11769 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
11770 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11771 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11772 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11773 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 11774 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11775 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
11776 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
11777 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
3bcd5e1c RD |
11778 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
11779 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
11780 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11781 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
11782 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
11783 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
11784 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11785 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11786 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11787 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11788 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11789 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11790 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11791 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
11792 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11793 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11794 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11795 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11796 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11797 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11798 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11800 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11801 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11802 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11803 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11804 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 11805 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11806 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
11807 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11808 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11809 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11810 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11811 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11812 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11813 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11814 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11815 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11817 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11818 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11819 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11820 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
11821 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11822 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11823 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11824 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11825 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
11826 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11828 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
11829 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11830 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11831 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11832 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11833 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11834 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
11835 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11836 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11837 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11838 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11839 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
11840 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
11841 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11842 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
11843 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
11844 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
11845 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11846 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11847 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
11848 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
11849 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
11850 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
11851 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 RD |
11852 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
11853 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11854 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
11855 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
11856 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
11857 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
11858 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
11859 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
11860 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
11861 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
11862 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
11863 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11864 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
11865 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11866 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
11867 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11868 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
7a9b33db | 11869 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11870 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
11871 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
11872 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11873 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
11874 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11875 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11876 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11877 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11878 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11879 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 11880 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11881 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 11882 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11883 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
11884 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
11885 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 RD |
11886 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
11887 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11888 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11889 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11890 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
11891 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11892 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11893 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11894 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
11895 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11896 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11897 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11898 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11900 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 11901 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11902 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11903 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
11904 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11906 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
11907 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
11908 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11909 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
11910 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
11911 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
11912 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
7a9b33db | 11914 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11915 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
11916 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
11917 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
11918 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
11919 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc RD |
11920 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
11921 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
11922 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
1893b029 | 11923 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11924 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
134d79dc | 11925 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11926 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
11927 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
11928 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11929 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11930 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11931 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
1893b029 RD |
11932 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
11933 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 11934 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
db34b2d4 | 11935 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, |
134d79dc | 11936 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11937 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11938 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11939 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11940 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11941 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11942 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 11943 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd | 11944 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11945 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11946 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
11947 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
11948 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
11949 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
11950 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
11951 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
11952 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
11953 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
11954 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11955 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11956 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11957 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11958 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
1893b029 RD |
11959 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
11960 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
11961 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
11962 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
11963 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
1893b029 RD |
11964 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, |
11965 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
85247b36 | 11966 | { "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS }, |
1893b029 | 11967 | { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS }, |
85247b36 | 11968 | { "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
1893b029 | 11969 | { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11970 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
11971 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 11972 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11973 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
11974 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, |
11975 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11976 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11977 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11978 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11979 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, |
11980 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11981 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
11982 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 11983 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11984 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 | 11985 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11986 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
11987 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
11988 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11989 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
11990 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, |
11991 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11992 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11993 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11994 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11995 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11996 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11997 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
11998 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11999 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
12000 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9df61a29 RD |
12001 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
12002 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12003 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12004 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
12005 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12006 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
12007 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
12008 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca RD |
12009 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
12010 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12011 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a | 12012 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
12013 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
12014 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12015 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
12016 | { NULL, NULL } |
12017 | }; | |
2d091820 RD |
12018 | #ifdef __cplusplus |
12019 | } | |
12020 | #endif | |
12021 | /* | |
12022 | * This table is used by the pointer type-checker | |
12023 | */ | |
12024 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 12025 | { "_signed_long","_long",0}, |
4120ef2b | 12026 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
12027 | { "_wxPrintQuality","_int",0}, |
12028 | { "_wxPrintQuality","_signed_int",0}, | |
12029 | { "_wxPrintQuality","_unsigned_int",0}, | |
12030 | { "_wxPrintQuality","_wxWindowID",0}, | |
12031 | { "_wxPrintQuality","_uint",0}, | |
12032 | { "_wxPrintQuality","_EBool",0}, | |
12033 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 12034 | { "_wxPrintQuality","_time_t",0}, |
65191ae8 | 12035 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
2d091820 | 12036 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
12037 | { "_long","_unsigned_long",0}, |
12038 | { "_long","_signed_long",0}, | |
9df61a29 | 12039 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9df61a29 | 12040 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9df61a29 | 12041 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
65191ae8 | 12042 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9df61a29 | 12043 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9df61a29 | 12044 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9df61a29 | 12045 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9df61a29 | 12046 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9df61a29 | 12047 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
2d091820 | 12048 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
2d091820 | 12049 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
2d091820 | 12050 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
2d091820 | 12051 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
2d091820 | 12052 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
4120ef2b | 12053 | { "_size_t","_wxCoord",0}, |
2d091820 | 12054 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 12055 | { "_size_t","_time_t",0}, |
2d091820 RD |
12056 | { "_size_t","_unsigned_int",0}, |
12057 | { "_size_t","_int",0}, | |
12058 | { "_size_t","_wxWindowID",0}, | |
12059 | { "_size_t","_uint",0}, | |
4120ef2b | 12060 | { "_uint","_wxCoord",0}, |
2d091820 | 12061 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 12062 | { "_uint","_time_t",0}, |
2d091820 RD |
12063 | { "_uint","_size_t",0}, |
12064 | { "_uint","_unsigned_int",0}, | |
12065 | { "_uint","_int",0}, | |
12066 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 12067 | { "_wxChar","_char",0}, |
f6bcfd97 | 12068 | { "_char","_wxChar",0}, |
059a841c | 12069 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 12070 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
12071 | { "_EBool","_wxPrintQuality",0}, |
12072 | { "_EBool","_signed_int",0}, | |
12073 | { "_EBool","_int",0}, | |
12074 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 12075 | { "_unsigned_long","_long",0}, |
059a841c | 12076 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 12077 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
12078 | { "_signed_int","_wxPrintQuality",0}, |
12079 | { "_signed_int","_EBool",0}, | |
12080 | { "_signed_int","_wxWindowID",0}, | |
12081 | { "_signed_int","_int",0}, | |
2d091820 RD |
12082 | { "_WXTYPE","_short",0}, |
12083 | { "_WXTYPE","_signed_short",0}, | |
12084 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
12085 | { "_unsigned_short","_WXTYPE",0}, |
12086 | { "_unsigned_short","_short",0}, | |
9df61a29 | 12087 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9df61a29 | 12088 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9df61a29 | 12089 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9df61a29 | 12090 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9df61a29 | 12091 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9df61a29 | 12092 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9df61a29 | 12093 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9df61a29 | 12094 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
9df61a29 | 12095 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9df61a29 | 12096 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
65191ae8 | 12097 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9df61a29 | 12098 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9df61a29 | 12099 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
65191ae8 | 12100 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9df61a29 | 12101 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9df61a29 | 12102 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9df61a29 | 12103 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9df61a29 | 12104 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9df61a29 | 12105 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9df61a29 | 12106 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9df61a29 | 12107 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9df61a29 | 12108 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9df61a29 | 12109 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9df61a29 | 12110 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
2d091820 RD |
12111 | { "_signed_short","_WXTYPE",0}, |
12112 | { "_signed_short","_short",0}, | |
2d091820 | 12113 | { "_unsigned_char","_byte",0}, |
4120ef2b | 12114 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 12115 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12116 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
12117 | { "_unsigned_int","_size_t",0}, |
12118 | { "_unsigned_int","_uint",0}, | |
12119 | { "_unsigned_int","_wxWindowID",0}, | |
12120 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
12121 | { "_short","_WXTYPE",0}, |
12122 | { "_short","_unsigned_short",0}, | |
12123 | { "_short","_signed_short",0}, | |
4120ef2b | 12124 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 12125 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12126 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
12127 | { "_wxWindowID","_size_t",0}, |
12128 | { "_wxWindowID","_EBool",0}, | |
12129 | { "_wxWindowID","_uint",0}, | |
12130 | { "_wxWindowID","_int",0}, | |
12131 | { "_wxWindowID","_signed_int",0}, | |
12132 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 12133 | { "_int","_wxCoord",0}, |
2d091820 | 12134 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12135 | { "_int","_time_t",0}, |
2d091820 RD |
12136 | { "_int","_size_t",0}, |
12137 | { "_int","_EBool",0}, | |
12138 | { "_int","_uint",0}, | |
12139 | { "_int","_wxWindowID",0}, | |
12140 | { "_int","_unsigned_int",0}, | |
12141 | { "_int","_signed_int",0}, | |
c368d904 RD |
12142 | { "_time_t","_wxCoord",0}, |
12143 | { "_time_t","_wxPrintQuality",0}, | |
12144 | { "_time_t","_unsigned_int",0}, | |
12145 | { "_time_t","_int",0}, | |
12146 | { "_time_t","_wxWindowID",0}, | |
12147 | { "_time_t","_uint",0}, | |
12148 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
12149 | { "_wxCoord","_int",0}, |
12150 | { "_wxCoord","_signed_int",0}, | |
12151 | { "_wxCoord","_unsigned_int",0}, | |
12152 | { "_wxCoord","_wxWindowID",0}, | |
12153 | { "_wxCoord","_uint",0}, | |
12154 | { "_wxCoord","_EBool",0}, | |
12155 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12156 | { "_wxCoord","_time_t",0}, |
4120ef2b | 12157 | { "_wxCoord","_wxPrintQuality",0}, |
2d091820 RD |
12158 | {0,0,0}}; |
12159 | ||
70551f47 RD |
12160 | static PyObject *SWIG_globals; |
12161 | #ifdef __cplusplus | |
12162 | extern "C" | |
12163 | #endif | |
2d091820 | 12164 | SWIGEXPORT(void) initgdic() { |
70551f47 RD |
12165 | PyObject *m, *d; |
12166 | SWIG_globals = SWIG_newvarlink(); | |
12167 | m = Py_InitModule("gdic", gdicMethods); | |
12168 | d = PyModule_GetDict(m); | |
059a841c RD |
12169 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
12170 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
12171 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
12172 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
12173 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
12174 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
12175 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
12176 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
85247b36 | 12177 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); |
059a841c RD |
12178 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); |
12179 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
12180 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
12181 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
12182 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
12183 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
12184 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
12185 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
134d79dc RD |
12186 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
12187 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
12188 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
12189 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
12190 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
12191 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
12192 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
12193 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
12194 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
12195 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
12196 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
12197 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
12198 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
12199 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
12200 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
12201 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
12202 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
059a841c | 12203 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
134d79dc RD |
12204 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
12205 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
12206 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
12207 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
12208 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
12209 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
12210 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
12211 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
059a841c | 12212 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
a57d56d6 RD |
12213 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
12214 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
12215 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
12216 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
134d79dc RD |
12217 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
12218 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
12219 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
059a841c RD |
12220 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
12221 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
12222 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
12223 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
12224 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
12225 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
12226 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
12227 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
12228 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
134d79dc | 12229 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
3e212503 RD |
12230 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
12231 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
12232 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
12233 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
12234 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
12235 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
12236 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
12237 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
12238 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
12239 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
70551f47 RD |
12240 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12241 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
12242 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
12243 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
12244 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
12245 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
12246 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
12247 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
12248 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
12249 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
12250 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
12251 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
12252 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
12253 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
12254 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
12255 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
12256 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
12257 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
12258 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
12259 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
12260 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
12261 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
12262 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
12263 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
12264 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
12265 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
12266 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
12267 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
12268 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
12269 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
12270 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
12271 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
12272 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
12273 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
12274 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
12275 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
12276 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
12277 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
12278 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
12279 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
12280 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
12281 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
12282 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
5e40f9dd RD |
12283 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
12284 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
12285 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
12286 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
2d091820 RD |
12287 | { |
12288 | int i; | |
12289 | for (i = 0; _swig_mapping[i].n1; i++) | |
12290 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12291 | } | |
70551f47 | 12292 | } |