]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/gdi.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
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) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
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 *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initgdic | |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/imaglist.h> | |
e6056257 RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
64 | ||
65 | ||
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
70 | if (!target) { | |
71 | target = o; | |
72 | } else if (target == Py_None) { | |
73 | Py_DECREF(Py_None); | |
74 | target = o; | |
75 | } else { | |
76 | if (!PyTuple_Check(target)) { | |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
81 | o3 = PyTuple_New(1); | |
82 | PyTuple_SetItem(o3, 0, o); | |
83 | ||
84 | o2 = target; | |
85 | target = PySequence_Concat(o2, o3); | |
86 | Py_DECREF(o2); | |
87 | Py_DECREF(o3); | |
88 | } | |
89 | return target; | |
90 | } | |
91 | ||
92 | #if PYTHON_API_VERSION >= 1009 | |
93 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
94 | #else | |
95 | static char* wxStringErrorMsg = "String type required"; | |
96 | #endif | |
e6056257 RD |
97 | // Implementations of some alternate "constructors" |
98 | ||
99 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { | |
100 | return new wxBitmap(width, height, depth); | |
101 | } | |
102 | ||
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 | ||
121 | ||
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 | ||
140 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { | |
141 | return new wxBitmap(bits, width, height, depth); | |
142 | } | |
143 | ||
144 | ||
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 | |
155 | ||
156 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { | |
157 | return new wxMask(bitmap, colour); | |
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; | |
174 | } | |
175 | // Alternate 'constructor' | |
176 | wxCursor* wxPyStockCursor(int id) { | |
177 | return new wxCursor(id); | |
178 | } | |
179 | // Alternate 'constructor' | |
180 | wxColour* wxNamedColour(const wxString& colorName) { | |
181 | return new wxColour(colorName); | |
182 | } | |
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) | |
80cb3dbc | 191 | delete [] m_dash; |
e6056257 RD |
192 | } |
193 | ||
194 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
80cb3dbc RD |
195 | if (m_dash) |
196 | delete [] m_dash; | |
e6056257 | 197 | m_dash = new wxDash[nb_dashes]; |
80cb3dbc | 198 | for (int i=0; i<nb_dashes; i++) { |
e6056257 | 199 | m_dash[i] = dash[i]; |
80cb3dbc | 200 | } |
e6056257 RD |
201 | wxPen::SetDashes(nb_dashes, m_dash); |
202 | } | |
203 | ||
204 | private: | |
205 | wxDash* m_dash; | |
206 | }; | |
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 | } | |
214 | // Alternate 'constructor' | |
215 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
216 | return new wxMemoryDC(oldDC); | |
217 | } | |
218 | ||
219 | #if 0 | |
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; | |
262 | extern wxFontList * wxTheFontList; | |
263 | extern wxPenList * wxThePenList; | |
264 | extern wxBrushList * wxTheBrushList; | |
265 | extern wxColourDatabase * wxTheColourDatabase; | |
266 | ||
267 | #endif | |
268 | #ifdef __cplusplus | |
269 | extern "C" { | |
270 | #endif | |
271 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
272 | PyObject * _resultobj; | |
273 | wxBitmap * _result; | |
274 | int _arg0; | |
275 | int _arg1; | |
276 | int _arg2 = (int ) -1; | |
277 | char *_kwnames[] = { "width","height","depth", NULL }; | |
278 | char _ptemp[128]; | |
279 | ||
280 | self = self; | |
281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) | |
282 | return NULL; | |
283 | { | |
0e2ff151 | 284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
285 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
286 | ||
0e2ff151 | 287 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
288 | if (PyErr_Occurred()) return NULL; |
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 | } | |
296 | return _resultobj; | |
297 | } | |
298 | ||
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 | { | |
0e2ff151 | 314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
315 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
316 | ||
0e2ff151 | 317 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
318 | if (PyErr_Occurred()) return NULL; |
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 | { | |
0e2ff151 | 348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
349 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
350 | ||
0e2ff151 | 351 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
352 | if (PyErr_Occurred()) return NULL; |
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 | ||
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 | { | |
0e2ff151 | 377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
378 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
379 | ||
0e2ff151 | 380 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | ||
392 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
393 | PyObject * _resultobj; | |
394 | wxMask * _result; | |
395 | wxBitmap * _arg0; | |
396 | wxColour * _arg1; | |
397 | PyObject * _argo0 = 0; | |
398 | wxColour temp; | |
399 | PyObject * _obj1 = 0; | |
400 | char *_kwnames[] = { "bitmap","colour", NULL }; | |
401 | char _ptemp[128]; | |
402 | ||
403 | self = self; | |
404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) | |
405 | return NULL; | |
406 | if (_argo0) { | |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
410 | return NULL; | |
411 | } | |
412 | } | |
413 | { | |
414 | _arg1 = &temp; | |
415 | if (! wxColour_helper(_obj1, &_arg1)) | |
416 | return NULL; | |
417 | } | |
418 | { | |
0e2ff151 | 419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
420 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
421 | ||
0e2ff151 | 422 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
423 | if (PyErr_Occurred()) return NULL; |
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 | } | |
431 | return _resultobj; | |
432 | } | |
433 | ||
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 | { | |
0e2ff151 | 444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
445 | _result = (wxIcon *)wxEmptyIcon(); |
446 | ||
0e2ff151 | 447 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
448 | if (PyErr_Occurred()) return NULL; |
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 | { | |
0e2ff151 | 474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
475 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
476 | ||
0e2ff151 | 477 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
478 | if (PyErr_Occurred()) return NULL; |
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 | ||
489 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
490 | PyObject * _resultobj; | |
491 | wxCursor * _result; | |
492 | int _arg0; | |
493 | char *_kwnames[] = { "id", NULL }; | |
494 | char _ptemp[128]; | |
495 | ||
496 | self = self; | |
497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) | |
498 | return NULL; | |
499 | { | |
0e2ff151 | 500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
501 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
502 | ||
0e2ff151 | 503 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
504 | if (PyErr_Occurred()) return NULL; |
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 | } | |
512 | return _resultobj; | |
513 | } | |
514 | ||
515 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
516 | PyObject * _resultobj; | |
517 | wxColour * _result; | |
518 | wxString * _arg0; | |
519 | PyObject * _obj0 = 0; | |
520 | char *_kwnames[] = { "colorName", NULL }; | |
521 | char _ptemp[128]; | |
522 | ||
523 | self = self; | |
524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) | |
525 | return NULL; | |
526 | { | |
527 | #if PYTHON_API_VERSION >= 1009 | |
528 | char* tmpPtr; int tmpSize; | |
529 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
531 | return NULL; | |
532 | } | |
533 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
534 | return NULL; | |
535 | _arg0 = new wxString(tmpPtr, tmpSize); | |
536 | #else | |
537 | if (!PyString_Check(_obj0)) { | |
538 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
539 | return NULL; | |
540 | } | |
541 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
542 | #endif | |
543 | } | |
544 | { | |
0e2ff151 | 545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
546 | _result = (wxColour *)wxNamedColour(*_arg0); |
547 | ||
0e2ff151 | 548 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
549 | if (PyErr_Occurred()) return NULL; |
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 | } | |
557 | { | |
558 | if (_obj0) | |
559 | delete _arg0; | |
560 | } | |
561 | return _resultobj; | |
562 | } | |
563 | ||
564 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
565 | PyObject * _resultobj; | |
566 | wxMemoryDC * _result; | |
567 | wxDC * _arg0; | |
568 | PyObject * _argo0 = 0; | |
569 | char *_kwnames[] = { "oldDC", NULL }; | |
570 | char _ptemp[128]; | |
571 | ||
572 | self = self; | |
573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) | |
574 | return NULL; | |
575 | if (_argo0) { | |
576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
579 | return NULL; | |
580 | } | |
581 | } | |
582 | { | |
0e2ff151 | 583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
584 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
585 | ||
0e2ff151 | 586 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
587 | if (PyErr_Occurred()) return NULL; |
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 | } | |
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 | ||
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 | ||
1268 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); | |
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 | ||
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 | { | |
0e2ff151 | 1307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1308 | _result = (wxGDIObject *)new_wxGDIObject(); |
1309 | ||
0e2ff151 | 1310 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1311 | if (PyErr_Occurred()) return NULL; |
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 | { | |
0e2ff151 | 1340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1341 | delete_wxGDIObject(_arg0); |
1342 | ||
0e2ff151 | 1343 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1344 | if (PyErr_Occurred()) return NULL; |
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 | { | |
0e2ff151 | 1369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1370 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
1371 | ||
0e2ff151 | 1372 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1373 | if (PyErr_Occurred()) return NULL; |
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 | { | |
0e2ff151 | 1399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1400 | wxGDIObject_SetVisible(_arg0,_arg1); |
1401 | ||
0e2ff151 | 1402 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1403 | if (PyErr_Occurred()) return NULL; |
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 | { | |
0e2ff151 | 1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1429 | _result = (bool )wxGDIObject_IsNull(_arg0); |
1430 | ||
0e2ff151 | 1431 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1432 | if (PyErr_Occurred()) return NULL; |
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 | ||
1453 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
1454 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1455 | PyObject * _resultobj; | |
1456 | wxBitmap * _result; | |
1457 | wxString * _arg0; | |
1458 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP; | |
1459 | PyObject * _obj0 = 0; | |
1460 | char *_kwnames[] = { "name","type", NULL }; | |
1461 | char _ptemp[128]; | |
1462 | ||
1463 | self = self; | |
1464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) | |
1465 | return NULL; | |
1466 | { | |
1467 | #if PYTHON_API_VERSION >= 1009 | |
1468 | char* tmpPtr; int tmpSize; | |
1469 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1470 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1471 | return NULL; | |
1472 | } | |
1473 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1474 | return NULL; | |
1475 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1476 | #else | |
1477 | if (!PyString_Check(_obj0)) { | |
1478 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1479 | return NULL; | |
1480 | } | |
1481 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1482 | #endif | |
1483 | } | |
1484 | { | |
0e2ff151 | 1485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1486 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
1487 | ||
0e2ff151 | 1488 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1489 | if (PyErr_Occurred()) return NULL; |
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 | } | |
1497 | { | |
1498 | if (_obj0) | |
1499 | delete _arg0; | |
1500 | } | |
1501 | return _resultobj; | |
1502 | } | |
1503 | ||
1504 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
1505 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1506 | PyObject * _resultobj; | |
1507 | wxBitmap * _arg0; | |
1508 | PyObject * _argo0 = 0; | |
1509 | char *_kwnames[] = { "self", NULL }; | |
1510 | ||
1511 | self = self; | |
1512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) | |
1513 | return NULL; | |
1514 | if (_argo0) { | |
1515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
1518 | return NULL; | |
1519 | } | |
1520 | } | |
1521 | { | |
0e2ff151 | 1522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1523 | delete_wxBitmap(_arg0); |
1524 | ||
0e2ff151 | 1525 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1526 | if (PyErr_Occurred()) return NULL; |
1527 | } Py_INCREF(Py_None); | |
1528 | _resultobj = Py_None; | |
1529 | return _resultobj; | |
1530 | } | |
1531 | ||
1532 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1533 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1534 | PyObject * _resultobj; | |
1535 | wxPalette * _result; | |
1536 | wxBitmap * _arg0; | |
1537 | PyObject * _argo0 = 0; | |
1538 | char *_kwnames[] = { "self", NULL }; | |
1539 | char _ptemp[128]; | |
1540 | ||
1541 | self = self; | |
1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) | |
1543 | return NULL; | |
1544 | if (_argo0) { | |
1545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1548 | return NULL; | |
1549 | } | |
1550 | } | |
1551 | { | |
0e2ff151 | 1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1553 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
1554 | ||
0e2ff151 | 1555 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1556 | if (PyErr_Occurred()) return NULL; |
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 | } | |
1564 | return _resultobj; | |
1565 | } | |
1566 | ||
1567 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1568 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject * _resultobj; | |
1570 | wxMask * _result; | |
1571 | wxBitmap * _arg0; | |
1572 | PyObject * _argo0 = 0; | |
1573 | char *_kwnames[] = { "self", NULL }; | |
1574 | char _ptemp[128]; | |
1575 | ||
1576 | self = self; | |
1577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) | |
1578 | return NULL; | |
1579 | if (_argo0) { | |
1580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1583 | return NULL; | |
1584 | } | |
1585 | } | |
1586 | { | |
0e2ff151 | 1587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1588 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
1589 | ||
0e2ff151 | 1590 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1591 | if (PyErr_Occurred()) return NULL; |
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 | } | |
1599 | return _resultobj; | |
1600 | } | |
1601 | ||
1602 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1603 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1604 | PyObject * _resultobj; | |
1605 | bool _result; | |
1606 | wxBitmap * _arg0; | |
1607 | wxString * _arg1; | |
1608 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP; | |
1609 | PyObject * _argo0 = 0; | |
1610 | PyObject * _obj1 = 0; | |
1611 | char *_kwnames[] = { "self","name","type", NULL }; | |
1612 | ||
1613 | self = self; | |
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1615 | return NULL; | |
1616 | if (_argo0) { | |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1620 | return NULL; | |
1621 | } | |
1622 | } | |
1623 | { | |
1624 | #if PYTHON_API_VERSION >= 1009 | |
1625 | char* tmpPtr; int tmpSize; | |
1626 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1627 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1628 | return NULL; | |
1629 | } | |
1630 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1631 | return NULL; | |
1632 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1633 | #else | |
1634 | if (!PyString_Check(_obj1)) { | |
1635 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1636 | return NULL; | |
1637 | } | |
1638 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1639 | #endif | |
1640 | } | |
1641 | { | |
0e2ff151 | 1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1643 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
1644 | ||
0e2ff151 | 1645 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1646 | if (PyErr_Occurred()) return NULL; |
1647 | } _resultobj = Py_BuildValue("i",_result); | |
1648 | { | |
1649 | if (_obj1) | |
1650 | delete _arg1; | |
1651 | } | |
1652 | return _resultobj; | |
1653 | } | |
1654 | ||
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) { | |
1657 | PyObject * _resultobj; | |
1658 | bool _result; | |
1659 | wxBitmap * _arg0; | |
1660 | wxString * _arg1; | |
1661 | wxBitmapType _arg2; | |
1662 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1663 | PyObject * _argo0 = 0; | |
1664 | PyObject * _obj1 = 0; | |
1665 | PyObject * _argo3 = 0; | |
1666 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
1667 | ||
1668 | self = self; | |
1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) | |
1670 | return NULL; | |
1671 | if (_argo0) { | |
1672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1675 | return NULL; | |
1676 | } | |
1677 | } | |
1678 | { | |
1679 | #if PYTHON_API_VERSION >= 1009 | |
1680 | char* tmpPtr; int tmpSize; | |
1681 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1683 | return NULL; | |
1684 | } | |
1685 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1686 | return NULL; | |
1687 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1688 | #else | |
1689 | if (!PyString_Check(_obj1)) { | |
1690 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1691 | return NULL; | |
1692 | } | |
1693 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1694 | #endif | |
1695 | } | |
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 | } | |
1703 | { | |
0e2ff151 | 1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1705 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
1706 | ||
0e2ff151 | 1707 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1708 | if (PyErr_Occurred()) return NULL; |
1709 | } _resultobj = Py_BuildValue("i",_result); | |
1710 | { | |
1711 | if (_obj1) | |
1712 | delete _arg1; | |
1713 | } | |
1714 | return _resultobj; | |
1715 | } | |
1716 | ||
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 | { | |
0e2ff151 | 1744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1745 | wxBitmap_SetMask(_arg0,_arg1); |
1746 | ||
0e2ff151 | 1747 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1748 | if (PyErr_Occurred()) return NULL; |
1749 | } Py_INCREF(Py_None); | |
1750 | _resultobj = Py_None; | |
1751 | return _resultobj; | |
1752 | } | |
1753 | ||
1754 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1755 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1756 | PyObject * _resultobj; | |
1757 | bool _result; | |
1758 | wxBitmap * _arg0; | |
1759 | PyObject * _argo0 = 0; | |
1760 | char *_kwnames[] = { "self", NULL }; | |
1761 | ||
1762 | self = self; | |
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1764 | return NULL; | |
1765 | if (_argo0) { | |
1766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1769 | return NULL; | |
1770 | } | |
1771 | } | |
1772 | { | |
0e2ff151 | 1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1774 | _result = (bool )wxBitmap_Ok(_arg0); |
1775 | ||
0e2ff151 | 1776 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1777 | if (PyErr_Occurred()) return NULL; |
1778 | } _resultobj = Py_BuildValue("i",_result); | |
1779 | return _resultobj; | |
1780 | } | |
1781 | ||
1782 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1783 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1784 | PyObject * _resultobj; | |
1785 | int _result; | |
1786 | wxBitmap * _arg0; | |
1787 | PyObject * _argo0 = 0; | |
1788 | char *_kwnames[] = { "self", NULL }; | |
1789 | ||
1790 | self = self; | |
1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1792 | return NULL; | |
1793 | if (_argo0) { | |
1794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1797 | return NULL; | |
1798 | } | |
1799 | } | |
1800 | { | |
0e2ff151 | 1801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1802 | _result = (int )wxBitmap_GetWidth(_arg0); |
1803 | ||
0e2ff151 | 1804 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1805 | if (PyErr_Occurred()) return NULL; |
1806 | } _resultobj = Py_BuildValue("i",_result); | |
1807 | return _resultobj; | |
1808 | } | |
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."); | |
1825 | return NULL; | |
1826 | } | |
1827 | } | |
1828 | { | |
0e2ff151 | 1829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1830 | _result = (int )wxBitmap_GetHeight(_arg0); |
1831 | ||
0e2ff151 | 1832 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1833 | if (PyErr_Occurred()) return NULL; |
1834 | } _resultobj = Py_BuildValue("i",_result); | |
1835 | return _resultobj; | |
1836 | } | |
1837 | ||
1838 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1839 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject * _resultobj; | |
1841 | int _result; | |
1842 | wxBitmap * _arg0; | |
1843 | PyObject * _argo0 = 0; | |
1844 | char *_kwnames[] = { "self", NULL }; | |
1845 | ||
1846 | self = self; | |
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) | |
1848 | return NULL; | |
1849 | if (_argo0) { | |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1853 | return NULL; | |
1854 | } | |
1855 | } | |
1856 | { | |
0e2ff151 | 1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1858 | _result = (int )wxBitmap_GetDepth(_arg0); |
1859 | ||
0e2ff151 | 1860 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1861 | if (PyErr_Occurred()) return NULL; |
1862 | } _resultobj = Py_BuildValue("i",_result); | |
1863 | return _resultobj; | |
1864 | } | |
1865 | ||
1866 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1867 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject * _resultobj; | |
1869 | wxBitmap * _arg0; | |
1870 | int _arg1; | |
1871 | PyObject * _argo0 = 0; | |
1872 | char *_kwnames[] = { "self","w", NULL }; | |
1873 | ||
1874 | self = self; | |
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1876 | return NULL; | |
1877 | if (_argo0) { | |
1878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1881 | return NULL; | |
1882 | } | |
1883 | } | |
1884 | { | |
0e2ff151 | 1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1886 | wxBitmap_SetWidth(_arg0,_arg1); |
1887 | ||
0e2ff151 | 1888 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1889 | if (PyErr_Occurred()) return NULL; |
1890 | } Py_INCREF(Py_None); | |
1891 | _resultobj = Py_None; | |
1892 | return _resultobj; | |
1893 | } | |
1894 | ||
1895 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1896 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject * _resultobj; | |
1898 | wxBitmap * _arg0; | |
1899 | int _arg1; | |
1900 | PyObject * _argo0 = 0; | |
1901 | char *_kwnames[] = { "self","h", NULL }; | |
1902 | ||
1903 | self = self; | |
1904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) | |
1905 | return NULL; | |
1906 | if (_argo0) { | |
1907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
1910 | return NULL; | |
1911 | } | |
1912 | } | |
1913 | { | |
0e2ff151 | 1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1915 | wxBitmap_SetHeight(_arg0,_arg1); |
1916 | ||
0e2ff151 | 1917 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1918 | if (PyErr_Occurred()) return NULL; |
1919 | } Py_INCREF(Py_None); | |
1920 | _resultobj = Py_None; | |
1921 | return _resultobj; | |
1922 | } | |
1923 | ||
1924 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1925 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1926 | PyObject * _resultobj; | |
1927 | wxBitmap * _arg0; | |
1928 | int _arg1; | |
1929 | PyObject * _argo0 = 0; | |
1930 | char *_kwnames[] = { "self","d", NULL }; | |
1931 | ||
1932 | self = self; | |
1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
1934 | return NULL; | |
1935 | if (_argo0) { | |
1936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
1939 | return NULL; | |
1940 | } | |
1941 | } | |
1942 | { | |
0e2ff151 | 1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1944 | wxBitmap_SetDepth(_arg0,_arg1); |
1945 | ||
0e2ff151 | 1946 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1947 | if (PyErr_Occurred()) return NULL; |
1948 | } Py_INCREF(Py_None); | |
1949 | _resultobj = Py_None; | |
1950 | return _resultobj; | |
1951 | } | |
1952 | ||
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 | { | |
0e2ff151 | 1981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1982 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
1983 | ||
0e2ff151 | 1984 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1985 | if (PyErr_Occurred()) return NULL; |
1986 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1987 | _resultobj = Py_BuildValue("s",_ptemp); | |
1988 | return _resultobj; | |
1989 | } | |
1990 | ||
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 | { | |
0e2ff151 | 2019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2020 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
2021 | ||
0e2ff151 | 2022 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2023 | if (PyErr_Occurred()) return NULL; |
2024 | } _resultobj = Py_BuildValue("i",_result); | |
2025 | return _resultobj; | |
2026 | } | |
2027 | ||
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 | ||
2036 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
2037 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2038 | PyObject * _resultobj; | |
2039 | wxMask * _result; | |
2040 | wxBitmap * _arg0; | |
2041 | PyObject * _argo0 = 0; | |
2042 | char *_kwnames[] = { "bitmap", NULL }; | |
2043 | char _ptemp[128]; | |
2044 | ||
2045 | self = self; | |
2046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2047 | return NULL; | |
2048 | if (_argo0) { | |
2049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2052 | return NULL; | |
2053 | } | |
2054 | } | |
2055 | { | |
0e2ff151 | 2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2057 | _result = (wxMask *)new_wxMask(*_arg0); |
2058 | ||
0e2ff151 | 2059 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2060 | if (PyErr_Occurred()) return NULL; |
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 | } | |
2068 | return _resultobj; | |
2069 | } | |
2070 | ||
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 | { | |
0e2ff151 | 2089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2090 | wxMask_Destroy(_arg0); |
2091 | ||
0e2ff151 | 2092 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2093 | if (PyErr_Occurred()) return NULL; |
2094 | } Py_INCREF(Py_None); | |
2095 | _resultobj = Py_None; | |
2096 | return _resultobj; | |
2097 | } | |
2098 | ||
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 | ||
2115 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2116 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2117 | PyObject * _resultobj; | |
2118 | wxIcon * _result; | |
2119 | wxString * _arg0; | |
2120 | long _arg1; | |
2121 | int _arg2 = (int ) -1; | |
2122 | int _arg3 = (int ) -1; | |
2123 | PyObject * _obj0 = 0; | |
2124 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; | |
2125 | char _ptemp[128]; | |
2126 | ||
2127 | self = self; | |
2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2129 | return NULL; | |
2130 | { | |
2131 | #if PYTHON_API_VERSION >= 1009 | |
2132 | char* tmpPtr; int tmpSize; | |
2133 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2134 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2135 | return NULL; | |
2136 | } | |
2137 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2138 | return NULL; | |
2139 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2140 | #else | |
2141 | if (!PyString_Check(_obj0)) { | |
2142 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2143 | return NULL; | |
2144 | } | |
2145 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2146 | #endif | |
2147 | } | |
2148 | { | |
0e2ff151 | 2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2150 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
2151 | ||
0e2ff151 | 2152 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2153 | if (PyErr_Occurred()) return NULL; |
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 | } | |
2161 | { | |
2162 | if (_obj0) | |
2163 | delete _arg0; | |
2164 | } | |
2165 | return _resultobj; | |
2166 | } | |
2167 | ||
2168 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
2169 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2170 | PyObject * _resultobj; | |
2171 | wxIcon * _arg0; | |
2172 | PyObject * _argo0 = 0; | |
2173 | char *_kwnames[] = { "self", NULL }; | |
2174 | ||
2175 | self = self; | |
2176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) | |
2177 | return NULL; | |
2178 | if (_argo0) { | |
2179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
2182 | return NULL; | |
2183 | } | |
2184 | } | |
2185 | { | |
0e2ff151 | 2186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2187 | delete_wxIcon(_arg0); |
2188 | ||
0e2ff151 | 2189 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2190 | if (PyErr_Occurred()) return NULL; |
2191 | } Py_INCREF(Py_None); | |
2192 | _resultobj = Py_None; | |
2193 | return _resultobj; | |
2194 | } | |
2195 | ||
e6056257 RD |
2196 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
2197 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2198 | PyObject * _resultobj; | |
2199 | bool _result; | |
2200 | wxIcon * _arg0; | |
2201 | PyObject * _argo0 = 0; | |
2202 | char *_kwnames[] = { "self", NULL }; | |
2203 | ||
2204 | self = self; | |
2205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2206 | return NULL; | |
2207 | if (_argo0) { | |
2208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2211 | return NULL; | |
2212 | } | |
2213 | } | |
2214 | { | |
0e2ff151 | 2215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2216 | _result = (bool )wxIcon_Ok(_arg0); |
2217 | ||
0e2ff151 | 2218 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2219 | if (PyErr_Occurred()) return NULL; |
2220 | } _resultobj = Py_BuildValue("i",_result); | |
2221 | return _resultobj; | |
2222 | } | |
2223 | ||
2224 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2225 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2226 | PyObject * _resultobj; | |
2227 | int _result; | |
2228 | wxIcon * _arg0; | |
2229 | PyObject * _argo0 = 0; | |
2230 | char *_kwnames[] = { "self", NULL }; | |
2231 | ||
2232 | self = self; | |
2233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2234 | return NULL; | |
2235 | if (_argo0) { | |
2236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2239 | return NULL; | |
2240 | } | |
2241 | } | |
2242 | { | |
0e2ff151 | 2243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2244 | _result = (int )wxIcon_GetWidth(_arg0); |
2245 | ||
0e2ff151 | 2246 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2247 | if (PyErr_Occurred()) return NULL; |
2248 | } _resultobj = Py_BuildValue("i",_result); | |
2249 | return _resultobj; | |
2250 | } | |
2251 | ||
2252 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2253 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2254 | PyObject * _resultobj; | |
2255 | int _result; | |
2256 | wxIcon * _arg0; | |
2257 | PyObject * _argo0 = 0; | |
2258 | char *_kwnames[] = { "self", NULL }; | |
2259 | ||
2260 | self = self; | |
2261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2262 | return NULL; | |
2263 | if (_argo0) { | |
2264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2267 | return NULL; | |
2268 | } | |
2269 | } | |
2270 | { | |
0e2ff151 | 2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2272 | _result = (int )wxIcon_GetHeight(_arg0); |
2273 | ||
0e2ff151 | 2274 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2275 | if (PyErr_Occurred()) return NULL; |
2276 | } _resultobj = Py_BuildValue("i",_result); | |
2277 | return _resultobj; | |
2278 | } | |
2279 | ||
2280 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2281 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2282 | PyObject * _resultobj; | |
2283 | int _result; | |
2284 | wxIcon * _arg0; | |
2285 | PyObject * _argo0 = 0; | |
2286 | char *_kwnames[] = { "self", NULL }; | |
2287 | ||
2288 | self = self; | |
2289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2290 | return NULL; | |
2291 | if (_argo0) { | |
2292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2295 | return NULL; | |
2296 | } | |
2297 | } | |
2298 | { | |
0e2ff151 | 2299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2300 | _result = (int )wxIcon_GetDepth(_arg0); |
2301 | ||
0e2ff151 | 2302 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2303 | if (PyErr_Occurred()) return NULL; |
2304 | } _resultobj = Py_BuildValue("i",_result); | |
2305 | return _resultobj; | |
2306 | } | |
2307 | ||
2308 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2309 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2310 | PyObject * _resultobj; | |
2311 | wxIcon * _arg0; | |
2312 | int _arg1; | |
2313 | PyObject * _argo0 = 0; | |
2314 | char *_kwnames[] = { "self","w", NULL }; | |
2315 | ||
2316 | self = self; | |
2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2318 | return NULL; | |
2319 | if (_argo0) { | |
2320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2323 | return NULL; | |
2324 | } | |
2325 | } | |
2326 | { | |
0e2ff151 | 2327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2328 | wxIcon_SetWidth(_arg0,_arg1); |
2329 | ||
0e2ff151 | 2330 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2331 | if (PyErr_Occurred()) return NULL; |
2332 | } Py_INCREF(Py_None); | |
2333 | _resultobj = Py_None; | |
2334 | return _resultobj; | |
2335 | } | |
2336 | ||
2337 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2338 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2339 | PyObject * _resultobj; | |
2340 | wxIcon * _arg0; | |
2341 | int _arg1; | |
2342 | PyObject * _argo0 = 0; | |
2343 | char *_kwnames[] = { "self","h", NULL }; | |
2344 | ||
2345 | self = self; | |
2346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2347 | return NULL; | |
2348 | if (_argo0) { | |
2349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2352 | return NULL; | |
2353 | } | |
2354 | } | |
2355 | { | |
0e2ff151 | 2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2357 | wxIcon_SetHeight(_arg0,_arg1); |
2358 | ||
0e2ff151 | 2359 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2360 | if (PyErr_Occurred()) return NULL; |
2361 | } Py_INCREF(Py_None); | |
2362 | _resultobj = Py_None; | |
2363 | return _resultobj; | |
2364 | } | |
2365 | ||
2366 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2367 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2368 | PyObject * _resultobj; | |
2369 | wxIcon * _arg0; | |
2370 | int _arg1; | |
2371 | PyObject * _argo0 = 0; | |
2372 | char *_kwnames[] = { "self","d", NULL }; | |
2373 | ||
2374 | self = self; | |
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2376 | return NULL; | |
2377 | if (_argo0) { | |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2381 | return NULL; | |
2382 | } | |
2383 | } | |
2384 | { | |
0e2ff151 | 2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2386 | wxIcon_SetDepth(_arg0,_arg1); |
2387 | ||
0e2ff151 | 2388 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2389 | if (PyErr_Occurred()) return NULL; |
2390 | } Py_INCREF(Py_None); | |
2391 | _resultobj = Py_None; | |
2392 | return _resultobj; | |
2393 | } | |
2394 | ||
2395 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) | |
2396 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2397 | PyObject * _resultobj; | |
2398 | wxIcon * _arg0; | |
2399 | wxBitmap * _arg1; | |
2400 | PyObject * _argo0 = 0; | |
6abe8375 RD |
2401 | PyObject * _argo1 = 0; |
2402 | char *_kwnames[] = { "self","bmp", NULL }; | |
2403 | ||
2404 | self = self; | |
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2406 | return NULL; | |
2407 | if (_argo0) { | |
2408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2411 | return NULL; | |
2412 | } | |
2413 | } | |
2414 | if (_argo1) { | |
2415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2418 | return NULL; | |
2419 | } | |
2420 | } | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2423 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2424 | ||
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) return NULL; | |
2427 | } Py_INCREF(Py_None); | |
2428 | _resultobj = Py_None; | |
2429 | return _resultobj; | |
2430 | } | |
2431 | ||
2432 | static void *SwigwxCursorTowxGDIObject(void *ptr) { | |
2433 | wxCursor *src; | |
2434 | wxGDIObject *dest; | |
2435 | src = (wxCursor *) ptr; | |
2436 | dest = (wxGDIObject *) src; | |
2437 | return (void *) dest; | |
2438 | } | |
2439 | ||
2440 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2441 | wxCursor *src; | |
2442 | wxObject *dest; | |
2443 | src = (wxCursor *) ptr; | |
2444 | dest = (wxObject *) src; | |
2445 | return (void *) dest; | |
2446 | } | |
2447 | ||
2448 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2449 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject * _resultobj; | |
2451 | wxCursor * _arg0; | |
2452 | PyObject * _argo0 = 0; | |
2453 | char *_kwnames[] = { "self", NULL }; | |
2454 | ||
2455 | self = self; | |
2456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2457 | return NULL; | |
2458 | if (_argo0) { | |
2459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2462 | return NULL; | |
2463 | } | |
2464 | } | |
2465 | { | |
2466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2467 | delete_wxCursor(_arg0); | |
2468 | ||
2469 | wxPyEndAllowThreads(__tstate); | |
2470 | if (PyErr_Occurred()) return NULL; | |
2471 | } Py_INCREF(Py_None); | |
2472 | _resultobj = Py_None; | |
2473 | return _resultobj; | |
2474 | } | |
2475 | ||
2476 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2477 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject * _resultobj; | |
2479 | bool _result; | |
2480 | wxCursor * _arg0; | |
2481 | PyObject * _argo0 = 0; | |
2482 | char *_kwnames[] = { "self", NULL }; | |
2483 | ||
2484 | self = self; | |
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2486 | return NULL; | |
2487 | if (_argo0) { | |
2488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2491 | return NULL; | |
2492 | } | |
2493 | } | |
2494 | { | |
2495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2496 | _result = (bool )wxCursor_Ok(_arg0); | |
2497 | ||
2498 | wxPyEndAllowThreads(__tstate); | |
2499 | if (PyErr_Occurred()) return NULL; | |
2500 | } _resultobj = Py_BuildValue("i",_result); | |
2501 | return _resultobj; | |
2502 | } | |
2503 | ||
2504 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) | |
2505 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2506 | PyObject * _resultobj; | |
2507 | wxNativeFontInfo * _result; | |
2508 | char *_kwnames[] = { NULL }; | |
2509 | char _ptemp[128]; | |
2510 | ||
2511 | self = self; | |
2512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
2513 | return NULL; | |
2514 | { | |
2515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2516 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); | |
2517 | ||
2518 | wxPyEndAllowThreads(__tstate); | |
2519 | if (PyErr_Occurred()) return NULL; | |
2520 | } if (_result) { | |
2521 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
2522 | _resultobj = Py_BuildValue("s",_ptemp); | |
2523 | } else { | |
2524 | Py_INCREF(Py_None); | |
2525 | _resultobj = Py_None; | |
2526 | } | |
2527 | return _resultobj; | |
2528 | } | |
2529 | ||
2530 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
2531 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject * _resultobj; | |
2533 | wxNativeFontInfo * _arg0; | |
2534 | PyObject * _argo0 = 0; | |
2535 | char *_kwnames[] = { "self", NULL }; | |
2536 | ||
2537 | self = self; | |
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
2539 | return NULL; | |
2540 | if (_argo0) { | |
2541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
2544 | return NULL; | |
2545 | } | |
2546 | } | |
2547 | { | |
2548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2549 | wxNativeFontInfo_Init(_arg0); | |
2550 | ||
2551 | wxPyEndAllowThreads(__tstate); | |
2552 | if (PyErr_Occurred()) return NULL; | |
2553 | } Py_INCREF(Py_None); | |
2554 | _resultobj = Py_None; | |
2555 | return _resultobj; | |
2556 | } | |
2557 | ||
2558 | #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
2559 | static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2560 | PyObject * _resultobj; | |
2561 | int _result; | |
2562 | wxNativeFontInfo * _arg0; | |
2563 | PyObject * _argo0 = 0; | |
2564 | char *_kwnames[] = { "self", NULL }; | |
2565 | ||
2566 | self = self; | |
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0)) | |
2568 | return NULL; | |
2569 | if (_argo0) { | |
2570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p."); | |
2573 | return NULL; | |
2574 | } | |
2575 | } | |
2576 | { | |
2577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2578 | _result = (int )wxNativeFontInfo_GetPointSize(_arg0); | |
2579 | ||
2580 | wxPyEndAllowThreads(__tstate); | |
2581 | if (PyErr_Occurred()) return NULL; | |
2582 | } _resultobj = Py_BuildValue("i",_result); | |
2583 | return _resultobj; | |
2584 | } | |
2585 | ||
2586 | #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
2587 | static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2588 | PyObject * _resultobj; | |
2589 | wxFontStyle _result; | |
2590 | wxNativeFontInfo * _arg0; | |
2591 | PyObject * _argo0 = 0; | |
2592 | char *_kwnames[] = { "self", NULL }; | |
2593 | ||
2594 | self = self; | |
2595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0)) | |
2596 | return NULL; | |
2597 | if (_argo0) { | |
2598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p."); | |
2601 | return NULL; | |
2602 | } | |
2603 | } | |
2604 | { | |
2605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2606 | _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0); | |
2607 | ||
2608 | wxPyEndAllowThreads(__tstate); | |
2609 | if (PyErr_Occurred()) return NULL; | |
2610 | } _resultobj = Py_BuildValue("i",_result); | |
2611 | return _resultobj; | |
2612 | } | |
2613 | ||
2614 | #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
2615 | static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2616 | PyObject * _resultobj; | |
2617 | wxFontWeight _result; | |
2618 | wxNativeFontInfo * _arg0; | |
2619 | PyObject * _argo0 = 0; | |
2620 | char *_kwnames[] = { "self", NULL }; | |
2621 | ||
2622 | self = self; | |
2623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0)) | |
2624 | return NULL; | |
2625 | if (_argo0) { | |
2626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p."); | |
2629 | return NULL; | |
2630 | } | |
2631 | } | |
2632 | { | |
2633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2634 | _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0); | |
2635 | ||
2636 | wxPyEndAllowThreads(__tstate); | |
2637 | if (PyErr_Occurred()) return NULL; | |
2638 | } _resultobj = Py_BuildValue("i",_result); | |
2639 | return _resultobj; | |
2640 | } | |
2641 | ||
2642 | #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
2643 | static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2644 | PyObject * _resultobj; | |
2645 | bool _result; | |
2646 | wxNativeFontInfo * _arg0; | |
2647 | PyObject * _argo0 = 0; | |
2648 | char *_kwnames[] = { "self", NULL }; | |
2649 | ||
2650 | self = self; | |
2651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0)) | |
2652 | return NULL; | |
2653 | if (_argo0) { | |
2654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p."); | |
2657 | return NULL; | |
2658 | } | |
2659 | } | |
2660 | { | |
2661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2662 | _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0); | |
2663 | ||
2664 | wxPyEndAllowThreads(__tstate); | |
2665 | if (PyErr_Occurred()) return NULL; | |
2666 | } _resultobj = Py_BuildValue("i",_result); | |
2667 | return _resultobj; | |
2668 | } | |
2669 | ||
2670 | #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
2671 | static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2672 | PyObject * _resultobj; | |
2673 | wxString * _result; | |
2674 | wxNativeFontInfo * _arg0; | |
2675 | PyObject * _argo0 = 0; | |
2676 | char *_kwnames[] = { "self", NULL }; | |
2677 | ||
2678 | self = self; | |
2679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0)) | |
2680 | return NULL; | |
2681 | if (_argo0) { | |
2682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p."); | |
2685 | return NULL; | |
2686 | } | |
2687 | } | |
2688 | { | |
2689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2690 | _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0)); | |
2691 | ||
2692 | wxPyEndAllowThreads(__tstate); | |
2693 | if (PyErr_Occurred()) return NULL; | |
2694 | }{ | |
2695 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2696 | } | |
2697 | { | |
2698 | delete _result; | |
2699 | } | |
2700 | return _resultobj; | |
2701 | } | |
2702 | ||
2703 | #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
2704 | static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2705 | PyObject * _resultobj; | |
2706 | wxFontFamily _result; | |
2707 | wxNativeFontInfo * _arg0; | |
2708 | PyObject * _argo0 = 0; | |
2709 | char *_kwnames[] = { "self", NULL }; | |
2710 | ||
2711 | self = self; | |
2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0)) | |
2713 | return NULL; | |
2714 | if (_argo0) { | |
2715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p."); | |
2718 | return NULL; | |
2719 | } | |
2720 | } | |
2721 | { | |
2722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2723 | _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0); | |
2724 | ||
2725 | wxPyEndAllowThreads(__tstate); | |
2726 | if (PyErr_Occurred()) return NULL; | |
2727 | } _resultobj = Py_BuildValue("i",_result); | |
2728 | return _resultobj; | |
2729 | } | |
2730 | ||
2731 | #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
2732 | static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2733 | PyObject * _resultobj; | |
2734 | wxFontEncoding _result; | |
2735 | wxNativeFontInfo * _arg0; | |
2736 | PyObject * _argo0 = 0; | |
2737 | char *_kwnames[] = { "self", NULL }; | |
2738 | ||
2739 | self = self; | |
2740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0)) | |
2741 | return NULL; | |
2742 | if (_argo0) { | |
2743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p."); | |
2746 | return NULL; | |
2747 | } | |
2748 | } | |
2749 | { | |
2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2751 | _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0); | |
2752 | ||
2753 | wxPyEndAllowThreads(__tstate); | |
2754 | if (PyErr_Occurred()) return NULL; | |
2755 | } _resultobj = Py_BuildValue("i",_result); | |
2756 | return _resultobj; | |
2757 | } | |
2758 | ||
2759 | #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
2760 | static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2761 | PyObject * _resultobj; | |
2762 | wxNativeFontInfo * _arg0; | |
2763 | int _arg1; | |
2764 | PyObject * _argo0 = 0; | |
2765 | char *_kwnames[] = { "self","pointsize", NULL }; | |
2766 | ||
2767 | self = self; | |
2768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
2769 | return NULL; | |
2770 | if (_argo0) { | |
2771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p."); | |
2774 | return NULL; | |
2775 | } | |
2776 | } | |
2777 | { | |
2778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2779 | wxNativeFontInfo_SetPointSize(_arg0,_arg1); | |
2780 | ||
2781 | wxPyEndAllowThreads(__tstate); | |
2782 | if (PyErr_Occurred()) return NULL; | |
2783 | } Py_INCREF(Py_None); | |
2784 | _resultobj = Py_None; | |
2785 | return _resultobj; | |
2786 | } | |
2787 | ||
2788 | #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
2789 | static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2790 | PyObject * _resultobj; | |
2791 | wxNativeFontInfo * _arg0; | |
2792 | wxFontStyle _arg1; | |
2793 | PyObject * _argo0 = 0; | |
2794 | char *_kwnames[] = { "self","style", NULL }; | |
2795 | ||
2796 | self = self; | |
2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1)) | |
2798 | return NULL; | |
2799 | if (_argo0) { | |
2800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p."); | |
2803 | return NULL; | |
2804 | } | |
2805 | } | |
2806 | { | |
2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2808 | wxNativeFontInfo_SetStyle(_arg0,_arg1); | |
2809 | ||
2810 | wxPyEndAllowThreads(__tstate); | |
2811 | if (PyErr_Occurred()) return NULL; | |
2812 | } Py_INCREF(Py_None); | |
2813 | _resultobj = Py_None; | |
2814 | return _resultobj; | |
2815 | } | |
2816 | ||
2817 | #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
2818 | static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2819 | PyObject * _resultobj; | |
2820 | wxNativeFontInfo * _arg0; | |
2821 | wxFontWeight _arg1; | |
2822 | PyObject * _argo0 = 0; | |
2823 | char *_kwnames[] = { "self","weight", NULL }; | |
2824 | ||
2825 | self = self; | |
2826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1)) | |
2827 | return NULL; | |
2828 | if (_argo0) { | |
2829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p."); | |
2832 | return NULL; | |
2833 | } | |
2834 | } | |
2835 | { | |
2836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2837 | wxNativeFontInfo_SetWeight(_arg0,_arg1); | |
2838 | ||
2839 | wxPyEndAllowThreads(__tstate); | |
2840 | if (PyErr_Occurred()) return NULL; | |
2841 | } Py_INCREF(Py_None); | |
2842 | _resultobj = Py_None; | |
2843 | return _resultobj; | |
2844 | } | |
2845 | ||
2846 | #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
2847 | static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2848 | PyObject * _resultobj; | |
2849 | wxNativeFontInfo * _arg0; | |
2850 | bool _arg1; | |
2851 | PyObject * _argo0 = 0; | |
2852 | int tempbool1; | |
2853 | char *_kwnames[] = { "self","underlined", NULL }; | |
2854 | ||
2855 | self = self; | |
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
2857 | return NULL; | |
2858 | if (_argo0) { | |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p."); | |
2862 | return NULL; | |
2863 | } | |
2864 | } | |
2865 | _arg1 = (bool ) tempbool1; | |
2866 | { | |
2867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2868 | wxNativeFontInfo_SetUnderlined(_arg0,_arg1); | |
2869 | ||
2870 | wxPyEndAllowThreads(__tstate); | |
2871 | if (PyErr_Occurred()) return NULL; | |
2872 | } Py_INCREF(Py_None); | |
2873 | _resultobj = Py_None; | |
2874 | return _resultobj; | |
2875 | } | |
2876 | ||
2877 | #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
2878 | static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2879 | PyObject * _resultobj; | |
2880 | wxNativeFontInfo * _arg0; | |
2881 | wxString * _arg1; | |
2882 | PyObject * _argo0 = 0; | |
2883 | PyObject * _obj1 = 0; | |
2884 | char *_kwnames[] = { "self","facename", NULL }; | |
e6056257 RD |
2885 | |
2886 | self = self; | |
6abe8375 | 2887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
2888 | return NULL; |
2889 | if (_argo0) { | |
2890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6abe8375 RD |
2891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p."); | |
e6056257 RD |
2893 | return NULL; |
2894 | } | |
2895 | } | |
6abe8375 RD |
2896 | { |
2897 | #if PYTHON_API_VERSION >= 1009 | |
2898 | char* tmpPtr; int tmpSize; | |
2899 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2900 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2901 | return NULL; | |
2902 | } | |
2903 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2904 | return NULL; | |
2905 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2906 | #else | |
2907 | if (!PyString_Check(_obj1)) { | |
2908 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
e6056257 | 2909 | return NULL; |
e6056257 | 2910 | } |
6abe8375 RD |
2911 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2912 | #endif | |
2913 | } | |
e6056257 | 2914 | { |
0e2ff151 | 2915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6abe8375 | 2916 | wxNativeFontInfo_SetFaceName(_arg0,*_arg1); |
e6056257 | 2917 | |
0e2ff151 | 2918 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2919 | if (PyErr_Occurred()) return NULL; |
2920 | } Py_INCREF(Py_None); | |
2921 | _resultobj = Py_None; | |
6abe8375 RD |
2922 | { |
2923 | if (_obj1) | |
2924 | delete _arg1; | |
e6056257 | 2925 | } |
6abe8375 | 2926 | return _resultobj; |
e6056257 RD |
2927 | } |
2928 | ||
6abe8375 RD |
2929 | #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) |
2930 | static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2931 | PyObject * _resultobj; |
6abe8375 RD |
2932 | wxNativeFontInfo * _arg0; |
2933 | wxFontFamily _arg1; | |
e6056257 | 2934 | PyObject * _argo0 = 0; |
6abe8375 | 2935 | char *_kwnames[] = { "self","family", NULL }; |
e6056257 RD |
2936 | |
2937 | self = self; | |
6abe8375 | 2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
2939 | return NULL; |
2940 | if (_argo0) { | |
2941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6abe8375 RD |
2942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p."); | |
e6056257 RD |
2944 | return NULL; |
2945 | } | |
2946 | } | |
2947 | { | |
0e2ff151 | 2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6abe8375 | 2949 | wxNativeFontInfo_SetFamily(_arg0,_arg1); |
e6056257 | 2950 | |
0e2ff151 | 2951 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2952 | if (PyErr_Occurred()) return NULL; |
2953 | } Py_INCREF(Py_None); | |
2954 | _resultobj = Py_None; | |
2955 | return _resultobj; | |
2956 | } | |
2957 | ||
6abe8375 RD |
2958 | #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
2959 | static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2960 | PyObject * _resultobj; |
6abe8375 RD |
2961 | wxNativeFontInfo * _arg0; |
2962 | wxFontEncoding _arg1; | |
e6056257 | 2963 | PyObject * _argo0 = 0; |
6abe8375 | 2964 | char *_kwnames[] = { "self","encoding", NULL }; |
e6056257 RD |
2965 | |
2966 | self = self; | |
6abe8375 | 2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
2968 | return NULL; |
2969 | if (_argo0) { | |
2970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6abe8375 RD |
2971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p."); | |
e6056257 RD |
2973 | return NULL; |
2974 | } | |
2975 | } | |
2976 | { | |
0e2ff151 | 2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6abe8375 | 2978 | wxNativeFontInfo_SetEncoding(_arg0,_arg1); |
e6056257 | 2979 | |
0e2ff151 | 2980 | wxPyEndAllowThreads(__tstate); |
e6056257 | 2981 | if (PyErr_Occurred()) return NULL; |
6abe8375 RD |
2982 | } Py_INCREF(Py_None); |
2983 | _resultobj = Py_None; | |
e6056257 RD |
2984 | return _resultobj; |
2985 | } | |
2986 | ||
2987 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) | |
2988 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2989 | PyObject * _resultobj; | |
2990 | bool _result; | |
2991 | wxNativeFontInfo * _arg0; | |
2992 | wxString * _arg1; | |
2993 | PyObject * _argo0 = 0; | |
2994 | PyObject * _obj1 = 0; | |
2995 | char *_kwnames[] = { "self","s", NULL }; | |
2996 | ||
2997 | self = self; | |
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
2999 | return NULL; | |
3000 | if (_argo0) { | |
3001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
3004 | return NULL; | |
3005 | } | |
3006 | } | |
3007 | { | |
3008 | #if PYTHON_API_VERSION >= 1009 | |
3009 | char* tmpPtr; int tmpSize; | |
3010 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3011 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3012 | return NULL; | |
3013 | } | |
3014 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3015 | return NULL; | |
3016 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3017 | #else | |
3018 | if (!PyString_Check(_obj1)) { | |
3019 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3020 | return NULL; | |
3021 | } | |
3022 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3023 | #endif | |
3024 | } | |
3025 | { | |
0e2ff151 | 3026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3027 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
3028 | ||
0e2ff151 | 3029 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3030 | if (PyErr_Occurred()) return NULL; |
3031 | } _resultobj = Py_BuildValue("i",_result); | |
3032 | { | |
3033 | if (_obj1) | |
3034 | delete _arg1; | |
3035 | } | |
3036 | return _resultobj; | |
3037 | } | |
3038 | ||
3039 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) | |
3040 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3041 | PyObject * _resultobj; | |
3042 | wxString * _result; | |
3043 | wxNativeFontInfo * _arg0; | |
3044 | PyObject * _argo0 = 0; | |
3045 | char *_kwnames[] = { "self", NULL }; | |
3046 | ||
3047 | self = self; | |
3048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3049 | return NULL; | |
3050 | if (_argo0) { | |
3051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3054 | return NULL; | |
3055 | } | |
3056 | } | |
3057 | { | |
0e2ff151 | 3058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3059 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
3060 | ||
0e2ff151 | 3061 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3062 | if (PyErr_Occurred()) return NULL; |
3063 | }{ | |
3064 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3065 | } | |
3066 | { | |
3067 | delete _result; | |
3068 | } | |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3073 | return self->ToString(); | |
3074 | } | |
3075 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3076 | PyObject * _resultobj; | |
3077 | wxString * _result; | |
3078 | wxNativeFontInfo * _arg0; | |
3079 | PyObject * _argo0 = 0; | |
3080 | char *_kwnames[] = { "self", NULL }; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3084 | return NULL; | |
3085 | if (_argo0) { | |
3086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3089 | return NULL; | |
3090 | } | |
3091 | } | |
3092 | { | |
0e2ff151 | 3093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3094 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
3095 | ||
0e2ff151 | 3096 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3097 | if (PyErr_Occurred()) return NULL; |
3098 | }{ | |
3099 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3100 | } | |
3101 | { | |
3102 | delete _result; | |
3103 | } | |
3104 | return _resultobj; | |
3105 | } | |
3106 | ||
6abe8375 RD |
3107 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
3108 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3109 | PyObject * _resultobj; | |
3110 | bool _result; | |
3111 | wxNativeFontInfo * _arg0; | |
3112 | wxString * _arg1; | |
3113 | PyObject * _argo0 = 0; | |
3114 | PyObject * _obj1 = 0; | |
3115 | char *_kwnames[] = { "self","s", NULL }; | |
3116 | ||
3117 | self = self; | |
3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
3119 | return NULL; | |
3120 | if (_argo0) { | |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
3127 | { | |
3128 | #if PYTHON_API_VERSION >= 1009 | |
3129 | char* tmpPtr; int tmpSize; | |
3130 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3131 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3132 | return NULL; | |
3133 | } | |
3134 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3135 | return NULL; | |
3136 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3137 | #else | |
3138 | if (!PyString_Check(_obj1)) { | |
3139 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3140 | return NULL; | |
3141 | } | |
3142 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3143 | #endif | |
3144 | } | |
3145 | { | |
3146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3147 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); | |
3148 | ||
3149 | wxPyEndAllowThreads(__tstate); | |
3150 | if (PyErr_Occurred()) return NULL; | |
3151 | } _resultobj = Py_BuildValue("i",_result); | |
3152 | { | |
3153 | if (_obj1) | |
3154 | delete _arg1; | |
3155 | } | |
3156 | return _resultobj; | |
3157 | } | |
3158 | ||
3159 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
3160 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject * _resultobj; | |
3162 | wxString * _result; | |
3163 | wxNativeFontInfo * _arg0; | |
3164 | PyObject * _argo0 = 0; | |
3165 | char *_kwnames[] = { "self", NULL }; | |
3166 | ||
3167 | self = self; | |
3168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
3169 | return NULL; | |
3170 | if (_argo0) { | |
3171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
3174 | return NULL; | |
3175 | } | |
3176 | } | |
3177 | { | |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) return NULL; | |
3183 | }{ | |
3184 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3185 | } | |
3186 | { | |
3187 | delete _result; | |
3188 | } | |
3189 | return _resultobj; | |
3190 | } | |
3191 | ||
e6056257 RD |
3192 | #define new_wxFontMapper() (new wxFontMapper()) |
3193 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3194 | PyObject * _resultobj; | |
3195 | wxFontMapper * _result; | |
3196 | char *_kwnames[] = { NULL }; | |
3197 | char _ptemp[128]; | |
3198 | ||
3199 | self = self; | |
3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) | |
3201 | return NULL; | |
3202 | { | |
0e2ff151 | 3203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3204 | _result = (wxFontMapper *)new_wxFontMapper(); |
3205 | ||
0e2ff151 | 3206 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3207 | if (PyErr_Occurred()) return NULL; |
3208 | } if (_result) { | |
3209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); | |
3210 | _resultobj = Py_BuildValue("s",_ptemp); | |
3211 | } else { | |
3212 | Py_INCREF(Py_None); | |
3213 | _resultobj = Py_None; | |
3214 | } | |
3215 | return _resultobj; | |
3216 | } | |
3217 | ||
3218 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) | |
3219 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3220 | PyObject * _resultobj; | |
3221 | wxFontMapper * _arg0; | |
3222 | PyObject * _argo0 = 0; | |
3223 | char *_kwnames[] = { "self", NULL }; | |
3224 | ||
3225 | self = self; | |
3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) | |
3227 | return NULL; | |
3228 | if (_argo0) { | |
3229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
3232 | return NULL; | |
3233 | } | |
3234 | } | |
3235 | { | |
0e2ff151 | 3236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3237 | delete_wxFontMapper(_arg0); |
3238 | ||
0e2ff151 | 3239 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3240 | if (PyErr_Occurred()) return NULL; |
3241 | } Py_INCREF(Py_None); | |
3242 | _resultobj = Py_None; | |
3243 | return _resultobj; | |
3244 | } | |
3245 | ||
3246 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { | |
3247 | wxFontEncoding alt_enc; | |
3248 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3249 | return PyInt_FromLong(alt_enc); | |
3250 | else { | |
3251 | Py_INCREF(Py_None); | |
3252 | return Py_None; | |
3253 | } | |
3254 | } | |
3255 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3256 | PyObject * _resultobj; | |
3257 | PyObject * _result; | |
3258 | wxFontMapper * _arg0; | |
3259 | wxFontEncoding _arg1; | |
3260 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3261 | bool _arg3 = (bool ) TRUE; | |
3262 | PyObject * _argo0 = 0; | |
3263 | PyObject * _obj2 = 0; | |
3264 | int tempbool3 = (int) TRUE; | |
3265 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
3266 | ||
3267 | self = self; | |
3268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
3269 | return NULL; | |
3270 | if (_argo0) { | |
3271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
3274 | return NULL; | |
3275 | } | |
3276 | } | |
3277 | if (_obj2) | |
3278 | { | |
3279 | #if PYTHON_API_VERSION >= 1009 | |
3280 | char* tmpPtr; int tmpSize; | |
3281 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3282 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3283 | return NULL; | |
3284 | } | |
3285 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3286 | return NULL; | |
3287 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3288 | #else | |
3289 | if (!PyString_Check(_obj2)) { | |
3290 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3291 | return NULL; | |
3292 | } | |
3293 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3294 | #endif | |
3295 | } | |
3296 | _arg3 = (bool ) tempbool3; | |
3297 | { | |
0e2ff151 | 3298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3299 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
3300 | ||
0e2ff151 | 3301 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3302 | if (PyErr_Occurred()) return NULL; |
3303 | }{ | |
3304 | _resultobj = _result; | |
3305 | } | |
3306 | { | |
3307 | if (_obj2) | |
3308 | delete _arg2; | |
3309 | } | |
3310 | return _resultobj; | |
3311 | } | |
3312 | ||
3313 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) | |
3314 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3315 | PyObject * _resultobj; | |
3316 | bool _result; | |
3317 | wxFontMapper * _arg0; | |
3318 | wxFontEncoding _arg1; | |
3319 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3320 | PyObject * _argo0 = 0; | |
3321 | PyObject * _obj2 = 0; | |
3322 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
3323 | ||
3324 | self = self; | |
3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3326 | return NULL; | |
3327 | if (_argo0) { | |
3328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
3331 | return NULL; | |
3332 | } | |
3333 | } | |
3334 | if (_obj2) | |
3335 | { | |
3336 | #if PYTHON_API_VERSION >= 1009 | |
3337 | char* tmpPtr; int tmpSize; | |
3338 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3339 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3340 | return NULL; | |
3341 | } | |
3342 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3343 | return NULL; | |
3344 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3345 | #else | |
3346 | if (!PyString_Check(_obj2)) { | |
3347 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3348 | return NULL; | |
3349 | } | |
3350 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3351 | #endif | |
3352 | } | |
3353 | { | |
0e2ff151 | 3354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3355 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
3356 | ||
0e2ff151 | 3357 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3358 | if (PyErr_Occurred()) return NULL; |
3359 | } _resultobj = Py_BuildValue("i",_result); | |
3360 | { | |
3361 | if (_obj2) | |
3362 | delete _arg2; | |
3363 | } | |
3364 | return _resultobj; | |
3365 | } | |
3366 | ||
3367 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) | |
3368 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject * _resultobj; | |
3370 | wxFontEncoding _result; | |
3371 | wxFontMapper * _arg0; | |
3372 | wxString * _arg1; | |
3373 | bool _arg2 = (bool ) TRUE; | |
3374 | PyObject * _argo0 = 0; | |
3375 | PyObject * _obj1 = 0; | |
3376 | int tempbool2 = (int) TRUE; | |
3377 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
3378 | ||
3379 | self = self; | |
3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
3381 | return NULL; | |
3382 | if (_argo0) { | |
3383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
3386 | return NULL; | |
3387 | } | |
3388 | } | |
3389 | { | |
3390 | #if PYTHON_API_VERSION >= 1009 | |
3391 | char* tmpPtr; int tmpSize; | |
3392 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3393 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3394 | return NULL; | |
3395 | } | |
3396 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3397 | return NULL; | |
3398 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3399 | #else | |
3400 | if (!PyString_Check(_obj1)) { | |
3401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3402 | return NULL; | |
3403 | } | |
3404 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3405 | #endif | |
3406 | } | |
3407 | _arg2 = (bool ) tempbool2; | |
3408 | { | |
0e2ff151 | 3409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3410 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
3411 | ||
0e2ff151 | 3412 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3413 | if (PyErr_Occurred()) return NULL; |
3414 | } _resultobj = Py_BuildValue("i",_result); | |
3415 | { | |
3416 | if (_obj1) | |
3417 | delete _arg1; | |
3418 | } | |
3419 | return _resultobj; | |
3420 | } | |
3421 | ||
3422 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3423 | PyObject * _resultobj; | |
3424 | wxString * _result; | |
3425 | wxFontEncoding _arg0; | |
3426 | char *_kwnames[] = { "encoding", NULL }; | |
3427 | ||
3428 | self = self; | |
3429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
3430 | return NULL; | |
3431 | { | |
0e2ff151 | 3432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3433 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
3434 | ||
0e2ff151 | 3435 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3436 | if (PyErr_Occurred()) return NULL; |
3437 | }{ | |
3438 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3439 | } | |
3440 | { | |
3441 | delete _result; | |
3442 | } | |
3443 | return _resultobj; | |
3444 | } | |
3445 | ||
3446 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3447 | PyObject * _resultobj; | |
3448 | wxString * _result; | |
3449 | wxFontEncoding _arg0; | |
3450 | char *_kwnames[] = { "encoding", NULL }; | |
3451 | ||
3452 | self = self; | |
3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
3454 | return NULL; | |
3455 | { | |
0e2ff151 | 3456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3457 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
3458 | ||
0e2ff151 | 3459 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3460 | if (PyErr_Occurred()) return NULL; |
3461 | }{ | |
3462 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3463 | } | |
3464 | { | |
3465 | delete _result; | |
3466 | } | |
3467 | return _resultobj; | |
3468 | } | |
3469 | ||
3470 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
3471 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3472 | PyObject * _resultobj; | |
3473 | wxFontMapper * _arg0; | |
3474 | wxWindow * _arg1; | |
3475 | PyObject * _argo0 = 0; | |
3476 | PyObject * _argo1 = 0; | |
3477 | char *_kwnames[] = { "self","parent", NULL }; | |
3478 | ||
3479 | self = self; | |
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
3481 | return NULL; | |
3482 | if (_argo0) { | |
3483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
3486 | return NULL; | |
3487 | } | |
3488 | } | |
3489 | if (_argo1) { | |
3490 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3491 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
3493 | return NULL; | |
3494 | } | |
3495 | } | |
3496 | { | |
0e2ff151 | 3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3498 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
3499 | ||
0e2ff151 | 3500 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3501 | if (PyErr_Occurred()) return NULL; |
3502 | } Py_INCREF(Py_None); | |
3503 | _resultobj = Py_None; | |
3504 | return _resultobj; | |
3505 | } | |
3506 | ||
3507 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
3508 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3509 | PyObject * _resultobj; | |
3510 | wxFontMapper * _arg0; | |
3511 | wxString * _arg1; | |
3512 | PyObject * _argo0 = 0; | |
3513 | PyObject * _obj1 = 0; | |
3514 | char *_kwnames[] = { "self","title", NULL }; | |
3515 | ||
3516 | self = self; | |
3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3518 | return NULL; | |
3519 | if (_argo0) { | |
3520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3523 | return NULL; | |
3524 | } | |
3525 | } | |
3526 | { | |
3527 | #if PYTHON_API_VERSION >= 1009 | |
3528 | char* tmpPtr; int tmpSize; | |
3529 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3531 | return NULL; | |
3532 | } | |
3533 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3534 | return NULL; | |
3535 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3536 | #else | |
3537 | if (!PyString_Check(_obj1)) { | |
3538 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3539 | return NULL; | |
3540 | } | |
3541 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3542 | #endif | |
3543 | } | |
3544 | { | |
0e2ff151 | 3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3546 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
3547 | ||
0e2ff151 | 3548 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3549 | if (PyErr_Occurred()) return NULL; |
3550 | } Py_INCREF(Py_None); | |
3551 | _resultobj = Py_None; | |
3552 | { | |
3553 | if (_obj1) | |
3554 | delete _arg1; | |
3555 | } | |
3556 | return _resultobj; | |
3557 | } | |
3558 | ||
3559 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3560 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3561 | PyObject * _resultobj; | |
3562 | wxFontMapper * _arg0; | |
3563 | wxConfigBase * _arg1; | |
3564 | PyObject * _argo0 = 0; | |
3565 | PyObject * _argo1 = 0; | |
3566 | char *_kwnames[] = { "self","config", NULL }; | |
3567 | ||
3568 | self = self; | |
3569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3570 | return NULL; | |
3571 | if (_argo0) { | |
3572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3575 | return NULL; | |
3576 | } | |
3577 | } | |
3578 | if (_argo1) { | |
3579 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | { | |
0e2ff151 | 3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3587 | wxFontMapper_SetConfig(_arg0,_arg1); |
3588 | ||
0e2ff151 | 3589 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3590 | if (PyErr_Occurred()) return NULL; |
3591 | } Py_INCREF(Py_None); | |
3592 | _resultobj = Py_None; | |
3593 | return _resultobj; | |
3594 | } | |
3595 | ||
3596 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3597 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3598 | PyObject * _resultobj; | |
3599 | wxFontMapper * _arg0; | |
3600 | wxString * _arg1; | |
3601 | PyObject * _argo0 = 0; | |
3602 | PyObject * _obj1 = 0; | |
3603 | char *_kwnames[] = { "self","prefix", NULL }; | |
3604 | ||
3605 | self = self; | |
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3607 | return NULL; | |
3608 | if (_argo0) { | |
3609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3612 | return NULL; | |
3613 | } | |
3614 | } | |
3615 | { | |
3616 | #if PYTHON_API_VERSION >= 1009 | |
3617 | char* tmpPtr; int tmpSize; | |
3618 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3619 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3620 | return NULL; | |
3621 | } | |
3622 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3623 | return NULL; | |
3624 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3625 | #else | |
3626 | if (!PyString_Check(_obj1)) { | |
3627 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3628 | return NULL; | |
3629 | } | |
3630 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3631 | #endif | |
3632 | } | |
3633 | { | |
0e2ff151 | 3634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3635 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
3636 | ||
0e2ff151 | 3637 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3638 | if (PyErr_Occurred()) return NULL; |
3639 | } Py_INCREF(Py_None); | |
3640 | _resultobj = Py_None; | |
3641 | { | |
3642 | if (_obj1) | |
3643 | delete _arg1; | |
3644 | } | |
3645 | return _resultobj; | |
3646 | } | |
3647 | ||
3648 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3649 | PyObject * _resultobj; | |
3650 | wxChar * _result; | |
3651 | char *_kwnames[] = { NULL }; | |
3652 | ||
3653 | self = self; | |
3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3655 | return NULL; | |
3656 | { | |
0e2ff151 | 3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3658 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); |
3659 | ||
0e2ff151 | 3660 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3661 | if (PyErr_Occurred()) return NULL; |
3662 | } _resultobj = Py_BuildValue("s", _result); | |
3663 | return _resultobj; | |
3664 | } | |
3665 | ||
3666 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3667 | wxFont *src; | |
3668 | wxGDIObject *dest; | |
3669 | src = (wxFont *) ptr; | |
3670 | dest = (wxGDIObject *) src; | |
3671 | return (void *) dest; | |
3672 | } | |
3673 | ||
3674 | static void *SwigwxFontTowxObject(void *ptr) { | |
3675 | wxFont *src; | |
3676 | wxObject *dest; | |
3677 | src = (wxFont *) ptr; | |
3678 | dest = (wxObject *) src; | |
3679 | return (void *) dest; | |
3680 | } | |
3681 | ||
3682 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3683 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3684 | PyObject * _resultobj; | |
3685 | wxFont * _result; | |
3686 | int _arg0; | |
3687 | int _arg1; | |
3688 | int _arg2; | |
3689 | int _arg3; | |
3690 | int _arg4 = (int ) FALSE; | |
3691 | char * _arg5 = (char *) ""; | |
3692 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3693 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3694 | char _ptemp[128]; | |
3695 | ||
3696 | self = self; | |
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3698 | return NULL; | |
3699 | { | |
0e2ff151 | 3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3701 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
3702 | ||
0e2ff151 | 3703 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3704 | if (PyErr_Occurred()) return NULL; |
3705 | } if (_result) { | |
3706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3707 | _resultobj = Py_BuildValue("s",_ptemp); | |
3708 | } else { | |
3709 | Py_INCREF(Py_None); | |
3710 | _resultobj = Py_None; | |
3711 | } | |
3712 | return _resultobj; | |
3713 | } | |
3714 | ||
3715 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3716 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject * _resultobj; | |
3718 | wxFont * _result; | |
3719 | wxNativeFontInfo * _arg0; | |
3720 | PyObject * _argo0 = 0; | |
3721 | char *_kwnames[] = { "info", NULL }; | |
3722 | char _ptemp[128]; | |
3723 | ||
3724 | self = self; | |
3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3726 | return NULL; | |
3727 | if (_argo0) { | |
3728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3731 | return NULL; | |
3732 | } | |
3733 | } | |
3734 | { | |
0e2ff151 | 3735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3736 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
3737 | ||
0e2ff151 | 3738 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3739 | if (PyErr_Occurred()) return NULL; |
3740 | } if (_result) { | |
3741 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3742 | _resultobj = Py_BuildValue("s",_ptemp); | |
3743 | } else { | |
3744 | Py_INCREF(Py_None); | |
3745 | _resultobj = Py_None; | |
3746 | } | |
3747 | return _resultobj; | |
3748 | } | |
3749 | ||
3750 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3751 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3752 | PyObject * _resultobj; | |
3753 | wxFont * _arg0; | |
3754 | PyObject * _argo0 = 0; | |
3755 | char *_kwnames[] = { "self", NULL }; | |
3756 | ||
3757 | self = self; | |
3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3759 | return NULL; | |
3760 | if (_argo0) { | |
3761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3764 | return NULL; | |
3765 | } | |
3766 | } | |
3767 | { | |
0e2ff151 | 3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3769 | delete_wxFont(_arg0); |
3770 | ||
0e2ff151 | 3771 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3772 | if (PyErr_Occurred()) return NULL; |
3773 | } Py_INCREF(Py_None); | |
3774 | _resultobj = Py_None; | |
3775 | return _resultobj; | |
3776 | } | |
3777 | ||
3778 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3779 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3780 | PyObject * _resultobj; | |
3781 | bool _result; | |
3782 | wxFont * _arg0; | |
3783 | PyObject * _argo0 = 0; | |
3784 | char *_kwnames[] = { "self", NULL }; | |
3785 | ||
3786 | self = self; | |
3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3788 | return NULL; | |
3789 | if (_argo0) { | |
3790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3793 | return NULL; | |
3794 | } | |
3795 | } | |
3796 | { | |
0e2ff151 | 3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3798 | _result = (bool )wxFont_Ok(_arg0); |
3799 | ||
0e2ff151 | 3800 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3801 | if (PyErr_Occurred()) return NULL; |
3802 | } _resultobj = Py_BuildValue("i",_result); | |
3803 | return _resultobj; | |
3804 | } | |
3805 | ||
3806 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3807 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3808 | PyObject * _resultobj; | |
3809 | int _result; | |
3810 | wxFont * _arg0; | |
3811 | PyObject * _argo0 = 0; | |
3812 | char *_kwnames[] = { "self", NULL }; | |
3813 | ||
3814 | self = self; | |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3816 | return NULL; | |
3817 | if (_argo0) { | |
3818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
3821 | return NULL; | |
3822 | } | |
3823 | } | |
3824 | { | |
0e2ff151 | 3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3826 | _result = (int )wxFont_GetPointSize(_arg0); |
3827 | ||
0e2ff151 | 3828 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3829 | if (PyErr_Occurred()) return NULL; |
3830 | } _resultobj = Py_BuildValue("i",_result); | |
3831 | return _resultobj; | |
3832 | } | |
3833 | ||
3834 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3835 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3836 | PyObject * _resultobj; | |
3837 | int _result; | |
3838 | wxFont * _arg0; | |
3839 | PyObject * _argo0 = 0; | |
3840 | char *_kwnames[] = { "self", NULL }; | |
3841 | ||
3842 | self = self; | |
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
3844 | return NULL; | |
3845 | if (_argo0) { | |
3846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
3849 | return NULL; | |
3850 | } | |
3851 | } | |
3852 | { | |
0e2ff151 | 3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3854 | _result = (int )wxFont_GetFamily(_arg0); |
3855 | ||
0e2ff151 | 3856 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3857 | if (PyErr_Occurred()) return NULL; |
3858 | } _resultobj = Py_BuildValue("i",_result); | |
3859 | return _resultobj; | |
3860 | } | |
3861 | ||
3862 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3863 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3864 | PyObject * _resultobj; | |
3865 | int _result; | |
3866 | wxFont * _arg0; | |
3867 | PyObject * _argo0 = 0; | |
3868 | char *_kwnames[] = { "self", NULL }; | |
3869 | ||
3870 | self = self; | |
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
3872 | return NULL; | |
3873 | if (_argo0) { | |
3874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
3877 | return NULL; | |
3878 | } | |
3879 | } | |
3880 | { | |
0e2ff151 | 3881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3882 | _result = (int )wxFont_GetStyle(_arg0); |
3883 | ||
0e2ff151 | 3884 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3885 | if (PyErr_Occurred()) return NULL; |
3886 | } _resultobj = Py_BuildValue("i",_result); | |
3887 | return _resultobj; | |
3888 | } | |
3889 | ||
3890 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3891 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3892 | PyObject * _resultobj; | |
3893 | int _result; | |
3894 | wxFont * _arg0; | |
3895 | PyObject * _argo0 = 0; | |
3896 | char *_kwnames[] = { "self", NULL }; | |
3897 | ||
3898 | self = self; | |
3899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
3900 | return NULL; | |
3901 | if (_argo0) { | |
3902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
3905 | return NULL; | |
3906 | } | |
3907 | } | |
3908 | { | |
0e2ff151 | 3909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3910 | _result = (int )wxFont_GetWeight(_arg0); |
3911 | ||
0e2ff151 | 3912 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3913 | if (PyErr_Occurred()) return NULL; |
3914 | } _resultobj = Py_BuildValue("i",_result); | |
3915 | return _resultobj; | |
3916 | } | |
3917 | ||
3918 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3919 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3920 | PyObject * _resultobj; | |
3921 | bool _result; | |
3922 | wxFont * _arg0; | |
3923 | PyObject * _argo0 = 0; | |
3924 | char *_kwnames[] = { "self", NULL }; | |
3925 | ||
3926 | self = self; | |
3927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
3928 | return NULL; | |
3929 | if (_argo0) { | |
3930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
3933 | return NULL; | |
3934 | } | |
3935 | } | |
3936 | { | |
0e2ff151 | 3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3938 | _result = (bool )wxFont_GetUnderlined(_arg0); |
3939 | ||
0e2ff151 | 3940 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3941 | if (PyErr_Occurred()) return NULL; |
3942 | } _resultobj = Py_BuildValue("i",_result); | |
3943 | return _resultobj; | |
3944 | } | |
3945 | ||
3946 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3947 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3948 | PyObject * _resultobj; | |
3949 | wxString * _result; | |
3950 | wxFont * _arg0; | |
3951 | PyObject * _argo0 = 0; | |
3952 | char *_kwnames[] = { "self", NULL }; | |
3953 | ||
3954 | self = self; | |
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
3956 | return NULL; | |
3957 | if (_argo0) { | |
3958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
3961 | return NULL; | |
3962 | } | |
3963 | } | |
3964 | { | |
0e2ff151 | 3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3966 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
3967 | ||
0e2ff151 | 3968 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3969 | if (PyErr_Occurred()) return NULL; |
3970 | }{ | |
3971 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3972 | } | |
3973 | { | |
3974 | delete _result; | |
3975 | } | |
3976 | return _resultobj; | |
3977 | } | |
3978 | ||
3979 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3980 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3981 | PyObject * _resultobj; | |
3982 | wxFontEncoding _result; | |
3983 | wxFont * _arg0; | |
3984 | PyObject * _argo0 = 0; | |
3985 | char *_kwnames[] = { "self", NULL }; | |
3986 | ||
3987 | self = self; | |
3988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
3989 | return NULL; | |
3990 | if (_argo0) { | |
3991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
3994 | return NULL; | |
3995 | } | |
3996 | } | |
3997 | { | |
0e2ff151 | 3998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3999 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
4000 | ||
0e2ff151 | 4001 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4002 | if (PyErr_Occurred()) return NULL; |
4003 | } _resultobj = Py_BuildValue("i",_result); | |
4004 | return _resultobj; | |
4005 | } | |
4006 | ||
d1e76a37 RD |
4007 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) |
4008 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4009 | PyObject * _resultobj; | |
4010 | bool _result; | |
4011 | wxFont * _arg0; | |
4012 | PyObject * _argo0 = 0; | |
4013 | char *_kwnames[] = { "self", NULL }; | |
4014 | ||
4015 | self = self; | |
4016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
4017 | return NULL; | |
4018 | if (_argo0) { | |
4019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
4022 | return NULL; | |
4023 | } | |
4024 | } | |
4025 | { | |
4026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4027 | _result = (bool )wxFont_IsFixedWidth(_arg0); | |
4028 | ||
4029 | wxPyEndAllowThreads(__tstate); | |
4030 | if (PyErr_Occurred()) return NULL; | |
4031 | } _resultobj = Py_BuildValue("i",_result); | |
4032 | return _resultobj; | |
4033 | } | |
4034 | ||
e6056257 RD |
4035 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
4036 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4037 | PyObject * _resultobj; | |
4038 | wxNativeFontInfo * _result; | |
4039 | wxFont * _arg0; | |
4040 | PyObject * _argo0 = 0; | |
4041 | char *_kwnames[] = { "self", NULL }; | |
4042 | char _ptemp[128]; | |
4043 | ||
4044 | self = self; | |
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) | |
4046 | return NULL; | |
4047 | if (_argo0) { | |
4048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); | |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
0e2ff151 | 4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4056 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
4057 | ||
0e2ff151 | 4058 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4059 | if (PyErr_Occurred()) return NULL; |
4060 | } if (_result) { | |
4061 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
4062 | _resultobj = Py_BuildValue("s",_ptemp); | |
4063 | } else { | |
4064 | Py_INCREF(Py_None); | |
4065 | _resultobj = Py_None; | |
4066 | } | |
4067 | return _resultobj; | |
4068 | } | |
4069 | ||
6abe8375 RD |
4070 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
4071 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4072 | PyObject * _resultobj; | |
4073 | wxString * _result; | |
4074 | wxFont * _arg0; | |
4075 | PyObject * _argo0 = 0; | |
4076 | char *_kwnames[] = { "self", NULL }; | |
4077 | ||
4078 | self = self; | |
4079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
4080 | return NULL; | |
4081 | if (_argo0) { | |
4082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
4085 | return NULL; | |
4086 | } | |
4087 | } | |
4088 | { | |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4090 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) return NULL; | |
4094 | }{ | |
4095 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4096 | } | |
4097 | { | |
4098 | delete _result; | |
4099 | } | |
4100 | return _resultobj; | |
4101 | } | |
4102 | ||
4103 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
4104 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject * _resultobj; | |
4106 | wxString * _result; | |
4107 | wxFont * _arg0; | |
4108 | PyObject * _argo0 = 0; | |
4109 | char *_kwnames[] = { "self", NULL }; | |
4110 | ||
4111 | self = self; | |
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
4113 | return NULL; | |
4114 | if (_argo0) { | |
4115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4118 | return NULL; | |
4119 | } | |
4120 | } | |
4121 | { | |
4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4123 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) return NULL; | |
4127 | }{ | |
4128 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4129 | } | |
4130 | { | |
4131 | delete _result; | |
4132 | } | |
4133 | return _resultobj; | |
4134 | } | |
4135 | ||
e6056257 RD |
4136 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
4137 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4138 | PyObject * _resultobj; | |
4139 | wxFont * _arg0; | |
4140 | int _arg1; | |
4141 | PyObject * _argo0 = 0; | |
4142 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4143 | ||
4144 | self = self; | |
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
4146 | return NULL; | |
4147 | if (_argo0) { | |
4148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
4151 | return NULL; | |
4152 | } | |
4153 | } | |
4154 | { | |
0e2ff151 | 4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4156 | wxFont_SetPointSize(_arg0,_arg1); |
4157 | ||
0e2ff151 | 4158 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4159 | if (PyErr_Occurred()) return NULL; |
4160 | } Py_INCREF(Py_None); | |
4161 | _resultobj = Py_None; | |
4162 | return _resultobj; | |
4163 | } | |
4164 | ||
4165 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
4166 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4167 | PyObject * _resultobj; | |
4168 | wxFont * _arg0; | |
4169 | int _arg1; | |
4170 | PyObject * _argo0 = 0; | |
4171 | char *_kwnames[] = { "self","family", NULL }; | |
4172 | ||
4173 | self = self; | |
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) | |
4175 | return NULL; | |
4176 | if (_argo0) { | |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); | |
4180 | return NULL; | |
4181 | } | |
4182 | } | |
4183 | { | |
0e2ff151 | 4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4185 | wxFont_SetFamily(_arg0,_arg1); |
4186 | ||
0e2ff151 | 4187 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4188 | if (PyErr_Occurred()) return NULL; |
4189 | } Py_INCREF(Py_None); | |
4190 | _resultobj = Py_None; | |
4191 | return _resultobj; | |
4192 | } | |
4193 | ||
4194 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4195 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4196 | PyObject * _resultobj; | |
4197 | wxFont * _arg0; | |
4198 | int _arg1; | |
4199 | PyObject * _argo0 = 0; | |
4200 | char *_kwnames[] = { "self","style", NULL }; | |
4201 | ||
4202 | self = self; | |
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4204 | return NULL; | |
4205 | if (_argo0) { | |
4206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); | |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
4212 | { | |
0e2ff151 | 4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4214 | wxFont_SetStyle(_arg0,_arg1); |
4215 | ||
0e2ff151 | 4216 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4217 | if (PyErr_Occurred()) return NULL; |
4218 | } Py_INCREF(Py_None); | |
4219 | _resultobj = Py_None; | |
4220 | return _resultobj; | |
4221 | } | |
4222 | ||
4223 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
4224 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4225 | PyObject * _resultobj; | |
4226 | wxFont * _arg0; | |
4227 | int _arg1; | |
4228 | PyObject * _argo0 = 0; | |
4229 | char *_kwnames[] = { "self","weight", NULL }; | |
4230 | ||
4231 | self = self; | |
4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) | |
4233 | return NULL; | |
4234 | if (_argo0) { | |
4235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); | |
4238 | return NULL; | |
4239 | } | |
4240 | } | |
4241 | { | |
0e2ff151 | 4242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4243 | wxFont_SetWeight(_arg0,_arg1); |
4244 | ||
0e2ff151 | 4245 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4246 | if (PyErr_Occurred()) return NULL; |
4247 | } Py_INCREF(Py_None); | |
4248 | _resultobj = Py_None; | |
4249 | return _resultobj; | |
4250 | } | |
4251 | ||
4252 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4253 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4254 | PyObject * _resultobj; | |
4255 | wxFont * _arg0; | |
4256 | wxString * _arg1; | |
4257 | PyObject * _argo0 = 0; | |
4258 | PyObject * _obj1 = 0; | |
4259 | char *_kwnames[] = { "self","faceName", NULL }; | |
4260 | ||
4261 | self = self; | |
4262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4263 | return NULL; | |
4264 | if (_argo0) { | |
4265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4268 | return NULL; | |
4269 | } | |
4270 | } | |
4271 | { | |
4272 | #if PYTHON_API_VERSION >= 1009 | |
4273 | char* tmpPtr; int tmpSize; | |
4274 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4275 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4276 | return NULL; | |
4277 | } | |
4278 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4279 | return NULL; | |
4280 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4281 | #else | |
4282 | if (!PyString_Check(_obj1)) { | |
4283 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4284 | return NULL; | |
4285 | } | |
4286 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4287 | #endif | |
4288 | } | |
4289 | { | |
0e2ff151 | 4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4291 | wxFont_SetFaceName(_arg0,*_arg1); |
4292 | ||
0e2ff151 | 4293 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4294 | if (PyErr_Occurred()) return NULL; |
4295 | } Py_INCREF(Py_None); | |
4296 | _resultobj = Py_None; | |
4297 | { | |
4298 | if (_obj1) | |
4299 | delete _arg1; | |
4300 | } | |
4301 | return _resultobj; | |
4302 | } | |
4303 | ||
4304 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
4305 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject * _resultobj; | |
4307 | wxFont * _arg0; | |
4308 | bool _arg1; | |
4309 | PyObject * _argo0 = 0; | |
4310 | int tempbool1; | |
4311 | char *_kwnames[] = { "self","underlined", NULL }; | |
4312 | ||
4313 | self = self; | |
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
4315 | return NULL; | |
4316 | if (_argo0) { | |
4317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); | |
4320 | return NULL; | |
4321 | } | |
4322 | } | |
4323 | _arg1 = (bool ) tempbool1; | |
4324 | { | |
0e2ff151 | 4325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4326 | wxFont_SetUnderlined(_arg0,_arg1); |
4327 | ||
0e2ff151 | 4328 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4329 | if (PyErr_Occurred()) return NULL; |
4330 | } Py_INCREF(Py_None); | |
4331 | _resultobj = Py_None; | |
4332 | return _resultobj; | |
4333 | } | |
4334 | ||
4335 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
4336 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4337 | PyObject * _resultobj; | |
4338 | wxFont * _arg0; | |
4339 | wxFontEncoding _arg1; | |
4340 | PyObject * _argo0 = 0; | |
4341 | char *_kwnames[] = { "self","encoding", NULL }; | |
4342 | ||
4343 | self = self; | |
4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
4345 | return NULL; | |
4346 | if (_argo0) { | |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
4350 | return NULL; | |
4351 | } | |
4352 | } | |
4353 | { | |
0e2ff151 | 4354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4355 | wxFont_SetEncoding(_arg0,_arg1); |
4356 | ||
0e2ff151 | 4357 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4358 | if (PyErr_Occurred()) return NULL; |
4359 | } Py_INCREF(Py_None); | |
4360 | _resultobj = Py_None; | |
4361 | return _resultobj; | |
4362 | } | |
4363 | ||
4364 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) | |
4365 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject * _resultobj; | |
4367 | wxFont * _arg0; | |
4368 | wxNativeFontInfo * _arg1; | |
4369 | PyObject * _argo0 = 0; | |
4370 | PyObject * _argo1 = 0; | |
4371 | char *_kwnames[] = { "self","info", NULL }; | |
4372 | ||
4373 | self = self; | |
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) | |
4375 | return NULL; | |
4376 | if (_argo0) { | |
4377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); | |
4380 | return NULL; | |
4381 | } | |
4382 | } | |
4383 | if (_argo1) { | |
4384 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4385 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
4387 | return NULL; | |
4388 | } | |
4389 | } | |
4390 | { | |
0e2ff151 | 4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4392 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
4393 | ||
0e2ff151 | 4394 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4395 | if (PyErr_Occurred()) return NULL; |
4396 | } Py_INCREF(Py_None); | |
4397 | _resultobj = Py_None; | |
4398 | return _resultobj; | |
4399 | } | |
4400 | ||
6abe8375 RD |
4401 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
4402 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4403 | PyObject * _resultobj; | |
4404 | wxFont * _arg0; | |
4405 | wxString * _arg1; | |
4406 | PyObject * _argo0 = 0; | |
4407 | PyObject * _obj1 = 0; | |
4408 | char *_kwnames[] = { "self","info", NULL }; | |
4409 | ||
4410 | self = self; | |
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
4412 | return NULL; | |
4413 | if (_argo0) { | |
4414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4417 | return NULL; | |
4418 | } | |
4419 | } | |
4420 | { | |
4421 | #if PYTHON_API_VERSION >= 1009 | |
4422 | char* tmpPtr; int tmpSize; | |
4423 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4424 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4425 | return NULL; | |
4426 | } | |
4427 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4428 | return NULL; | |
4429 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4430 | #else | |
4431 | if (!PyString_Check(_obj1)) { | |
4432 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4433 | return NULL; | |
4434 | } | |
4435 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4436 | #endif | |
4437 | } | |
4438 | { | |
4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4440 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); | |
4441 | ||
4442 | wxPyEndAllowThreads(__tstate); | |
4443 | if (PyErr_Occurred()) return NULL; | |
4444 | } Py_INCREF(Py_None); | |
4445 | _resultobj = Py_None; | |
4446 | { | |
4447 | if (_obj1) | |
4448 | delete _arg1; | |
4449 | } | |
4450 | return _resultobj; | |
4451 | } | |
4452 | ||
e6056257 RD |
4453 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
4454 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4455 | PyObject * _resultobj; | |
4456 | wxString * _result; | |
4457 | wxFont * _arg0; | |
4458 | PyObject * _argo0 = 0; | |
4459 | char *_kwnames[] = { "self", NULL }; | |
4460 | ||
4461 | self = self; | |
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
4463 | return NULL; | |
4464 | if (_argo0) { | |
4465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
4468 | return NULL; | |
4469 | } | |
4470 | } | |
4471 | { | |
0e2ff151 | 4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4473 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
4474 | ||
0e2ff151 | 4475 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4476 | if (PyErr_Occurred()) return NULL; |
4477 | }{ | |
4478 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4479 | } | |
4480 | { | |
4481 | delete _result; | |
4482 | } | |
4483 | return _resultobj; | |
4484 | } | |
4485 | ||
4486 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
4487 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4488 | PyObject * _resultobj; | |
4489 | wxString * _result; | |
4490 | wxFont * _arg0; | |
4491 | PyObject * _argo0 = 0; | |
4492 | char *_kwnames[] = { "self", NULL }; | |
4493 | ||
4494 | self = self; | |
4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
4496 | return NULL; | |
4497 | if (_argo0) { | |
4498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
4501 | return NULL; | |
4502 | } | |
4503 | } | |
4504 | { | |
0e2ff151 | 4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4506 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
4507 | ||
0e2ff151 | 4508 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4509 | if (PyErr_Occurred()) return NULL; |
4510 | }{ | |
4511 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4512 | } | |
4513 | { | |
4514 | delete _result; | |
4515 | } | |
4516 | return _resultobj; | |
4517 | } | |
4518 | ||
4519 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
4520 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4521 | PyObject * _resultobj; | |
4522 | wxString * _result; | |
4523 | wxFont * _arg0; | |
4524 | PyObject * _argo0 = 0; | |
4525 | char *_kwnames[] = { "self", NULL }; | |
4526 | ||
4527 | self = self; | |
4528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
4529 | return NULL; | |
4530 | if (_argo0) { | |
4531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
4534 | return NULL; | |
4535 | } | |
4536 | } | |
4537 | { | |
0e2ff151 | 4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4539 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
4540 | ||
0e2ff151 | 4541 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4542 | if (PyErr_Occurred()) return NULL; |
4543 | }{ | |
4544 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4545 | } | |
4546 | { | |
4547 | delete _result; | |
4548 | } | |
4549 | return _resultobj; | |
4550 | } | |
4551 | ||
4552 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4553 | PyObject * _resultobj; | |
4554 | wxFontEncoding _result; | |
4555 | char *_kwnames[] = { NULL }; | |
4556 | ||
4557 | self = self; | |
4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
4559 | return NULL; | |
4560 | { | |
0e2ff151 | 4561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4562 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
4563 | ||
0e2ff151 | 4564 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4565 | if (PyErr_Occurred()) return NULL; |
4566 | } _resultobj = Py_BuildValue("i",_result); | |
4567 | return _resultobj; | |
4568 | } | |
4569 | ||
4570 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4571 | PyObject * _resultobj; | |
4572 | wxFontEncoding _arg0; | |
4573 | char *_kwnames[] = { "encoding", NULL }; | |
4574 | ||
4575 | self = self; | |
4576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
4577 | return NULL; | |
4578 | { | |
0e2ff151 | 4579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4580 | wxFont::SetDefaultEncoding(_arg0); |
4581 | ||
0e2ff151 | 4582 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4583 | if (PyErr_Occurred()) return NULL; |
4584 | } Py_INCREF(Py_None); | |
4585 | _resultobj = Py_None; | |
4586 | return _resultobj; | |
4587 | } | |
4588 | ||
4589 | static void *SwigwxFontListTowxObject(void *ptr) { | |
4590 | wxFontList *src; | |
4591 | wxObject *dest; | |
4592 | src = (wxFontList *) ptr; | |
4593 | dest = (wxObject *) src; | |
4594 | return (void *) dest; | |
4595 | } | |
4596 | ||
4597 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) | |
4598 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4599 | PyObject * _resultobj; | |
4600 | wxFontList * _arg0; | |
4601 | wxFont * _arg1; | |
4602 | PyObject * _argo0 = 0; | |
4603 | PyObject * _argo1 = 0; | |
4604 | char *_kwnames[] = { "self","font", NULL }; | |
4605 | ||
4606 | self = self; | |
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
4608 | return NULL; | |
4609 | if (_argo0) { | |
4610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
4613 | return NULL; | |
4614 | } | |
4615 | } | |
4616 | if (_argo1) { | |
4617 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4618 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
4620 | return NULL; | |
4621 | } | |
4622 | } | |
4623 | { | |
0e2ff151 | 4624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4625 | wxFontList_AddFont(_arg0,_arg1); |
4626 | ||
0e2ff151 | 4627 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4628 | if (PyErr_Occurred()) return NULL; |
4629 | } Py_INCREF(Py_None); | |
4630 | _resultobj = Py_None; | |
4631 | return _resultobj; | |
4632 | } | |
4633 | ||
4634 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4635 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4636 | PyObject * _resultobj; | |
4637 | wxFont * _result; | |
4638 | wxFontList * _arg0; | |
4639 | int _arg1; | |
4640 | int _arg2; | |
4641 | int _arg3; | |
4642 | int _arg4; | |
4643 | bool _arg5 = (bool ) FALSE; | |
4644 | char * _arg6 = (char *) NULL; | |
4645 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4646 | PyObject * _argo0 = 0; | |
4647 | int tempbool5 = (int) FALSE; | |
4648 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
4649 | char _ptemp[128]; | |
4650 | ||
4651 | self = self; | |
4652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
4653 | return NULL; | |
4654 | if (_argo0) { | |
4655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
4658 | return NULL; | |
4659 | } | |
4660 | } | |
4661 | _arg5 = (bool ) tempbool5; | |
4662 | { | |
0e2ff151 | 4663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4664 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
4665 | ||
0e2ff151 | 4666 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4667 | if (PyErr_Occurred()) return NULL; |
4668 | } if (_result) { | |
4669 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4670 | _resultobj = Py_BuildValue("s",_ptemp); | |
4671 | } else { | |
4672 | Py_INCREF(Py_None); | |
4673 | _resultobj = Py_None; | |
4674 | } | |
4675 | return _resultobj; | |
4676 | } | |
4677 | ||
4678 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4679 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4680 | PyObject * _resultobj; | |
4681 | wxFontList * _arg0; | |
4682 | wxFont * _arg1; | |
4683 | PyObject * _argo0 = 0; | |
4684 | PyObject * _argo1 = 0; | |
4685 | char *_kwnames[] = { "self","font", NULL }; | |
4686 | ||
4687 | self = self; | |
4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4689 | return NULL; | |
4690 | if (_argo0) { | |
4691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4694 | return NULL; | |
4695 | } | |
4696 | } | |
4697 | if (_argo1) { | |
4698 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4699 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4701 | return NULL; | |
4702 | } | |
4703 | } | |
4704 | { | |
0e2ff151 | 4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4706 | wxFontList_RemoveFont(_arg0,_arg1); |
4707 | ||
0e2ff151 | 4708 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4709 | if (PyErr_Occurred()) return NULL; |
4710 | } Py_INCREF(Py_None); | |
4711 | _resultobj = Py_None; | |
4712 | return _resultobj; | |
4713 | } | |
4714 | ||
00360d46 RD |
4715 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
4716 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4717 | PyObject * _resultobj; | |
4718 | int _result; | |
4719 | wxFontList * _arg0; | |
4720 | PyObject * _argo0 = 0; | |
4721 | char *_kwnames[] = { "self", NULL }; | |
4722 | ||
4723 | self = self; | |
4724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
4725 | return NULL; | |
4726 | if (_argo0) { | |
4727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
4730 | return NULL; | |
4731 | } | |
4732 | } | |
4733 | { | |
0e2ff151 | 4734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 RD |
4735 | _result = (int )wxFontList_GetCount(_arg0); |
4736 | ||
0e2ff151 | 4737 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
4738 | if (PyErr_Occurred()) return NULL; |
4739 | } _resultobj = Py_BuildValue("i",_result); | |
4740 | return _resultobj; | |
4741 | } | |
4742 | ||
e6056257 RD |
4743 | static void *SwigwxColourTowxObject(void *ptr) { |
4744 | wxColour *src; | |
4745 | wxObject *dest; | |
4746 | src = (wxColour *) ptr; | |
4747 | dest = (wxObject *) src; | |
4748 | return (void *) dest; | |
4749 | } | |
4750 | ||
4751 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) | |
4752 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4753 | PyObject * _resultobj; | |
4754 | wxColour * _result; | |
4755 | unsigned char _arg0 = (unsigned char ) 0; | |
4756 | unsigned char _arg1 = (unsigned char ) 0; | |
4757 | unsigned char _arg2 = (unsigned char ) 0; | |
4758 | char *_kwnames[] = { "red","green","blue", NULL }; | |
4759 | char _ptemp[128]; | |
4760 | ||
4761 | self = self; | |
4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) | |
4763 | return NULL; | |
4764 | { | |
0e2ff151 | 4765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4766 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
4767 | ||
0e2ff151 | 4768 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4769 | if (PyErr_Occurred()) return NULL; |
4770 | } if (_result) { | |
4771 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4772 | _resultobj = Py_BuildValue("s",_ptemp); | |
4773 | } else { | |
4774 | Py_INCREF(Py_None); | |
4775 | _resultobj = Py_None; | |
4776 | } | |
4777 | return _resultobj; | |
4778 | } | |
4779 | ||
4780 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
4781 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject * _resultobj; | |
4783 | wxColour * _arg0; | |
4784 | wxColour temp; | |
4785 | PyObject * _obj0 = 0; | |
4786 | char *_kwnames[] = { "self", NULL }; | |
4787 | ||
4788 | self = self; | |
4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) | |
4790 | return NULL; | |
4791 | { | |
4792 | _arg0 = &temp; | |
4793 | if (! wxColour_helper(_obj0, &_arg0)) | |
4794 | return NULL; | |
4795 | } | |
4796 | { | |
0e2ff151 | 4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4798 | delete_wxColour(_arg0); |
4799 | ||
0e2ff151 | 4800 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4801 | if (PyErr_Occurred()) return NULL; |
4802 | } Py_INCREF(Py_None); | |
4803 | _resultobj = Py_None; | |
4804 | return _resultobj; | |
4805 | } | |
4806 | ||
4807 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
4808 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4809 | PyObject * _resultobj; | |
4810 | unsigned char _result; | |
4811 | wxColour * _arg0; | |
4812 | wxColour temp; | |
4813 | PyObject * _obj0 = 0; | |
4814 | char *_kwnames[] = { "self", NULL }; | |
4815 | ||
4816 | self = self; | |
4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) | |
4818 | return NULL; | |
4819 | { | |
4820 | _arg0 = &temp; | |
4821 | if (! wxColour_helper(_obj0, &_arg0)) | |
4822 | return NULL; | |
4823 | } | |
4824 | { | |
0e2ff151 | 4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4826 | _result = (unsigned char )wxColour_Red(_arg0); |
4827 | ||
0e2ff151 | 4828 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4829 | if (PyErr_Occurred()) return NULL; |
4830 | } _resultobj = Py_BuildValue("b",_result); | |
4831 | return _resultobj; | |
4832 | } | |
4833 | ||
4834 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
4835 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4836 | PyObject * _resultobj; | |
4837 | unsigned char _result; | |
4838 | wxColour * _arg0; | |
4839 | wxColour temp; | |
4840 | PyObject * _obj0 = 0; | |
4841 | char *_kwnames[] = { "self", NULL }; | |
4842 | ||
4843 | self = self; | |
4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) | |
4845 | return NULL; | |
4846 | { | |
4847 | _arg0 = &temp; | |
4848 | if (! wxColour_helper(_obj0, &_arg0)) | |
4849 | return NULL; | |
4850 | } | |
4851 | { | |
0e2ff151 | 4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4853 | _result = (unsigned char )wxColour_Green(_arg0); |
4854 | ||
0e2ff151 | 4855 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4856 | if (PyErr_Occurred()) return NULL; |
4857 | } _resultobj = Py_BuildValue("b",_result); | |
4858 | return _resultobj; | |
4859 | } | |
4860 | ||
4861 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
4862 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4863 | PyObject * _resultobj; | |
4864 | unsigned char _result; | |
4865 | wxColour * _arg0; | |
4866 | wxColour temp; | |
4867 | PyObject * _obj0 = 0; | |
4868 | char *_kwnames[] = { "self", NULL }; | |
4869 | ||
4870 | self = self; | |
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) | |
4872 | return NULL; | |
4873 | { | |
4874 | _arg0 = &temp; | |
4875 | if (! wxColour_helper(_obj0, &_arg0)) | |
4876 | return NULL; | |
4877 | } | |
4878 | { | |
0e2ff151 | 4879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4880 | _result = (unsigned char )wxColour_Blue(_arg0); |
4881 | ||
0e2ff151 | 4882 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4883 | if (PyErr_Occurred()) return NULL; |
4884 | } _resultobj = Py_BuildValue("b",_result); | |
4885 | return _resultobj; | |
4886 | } | |
4887 | ||
4888 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
4889 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4890 | PyObject * _resultobj; | |
4891 | bool _result; | |
4892 | wxColour * _arg0; | |
4893 | wxColour temp; | |
4894 | PyObject * _obj0 = 0; | |
4895 | char *_kwnames[] = { "self", NULL }; | |
4896 | ||
4897 | self = self; | |
4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) | |
4899 | return NULL; | |
4900 | { | |
4901 | _arg0 = &temp; | |
4902 | if (! wxColour_helper(_obj0, &_arg0)) | |
4903 | return NULL; | |
4904 | } | |
4905 | { | |
0e2ff151 | 4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4907 | _result = (bool )wxColour_Ok(_arg0); |
4908 | ||
0e2ff151 | 4909 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4910 | if (PyErr_Occurred()) return NULL; |
4911 | } _resultobj = Py_BuildValue("i",_result); | |
4912 | return _resultobj; | |
4913 | } | |
4914 | ||
4915 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
4916 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4917 | PyObject * _resultobj; | |
4918 | wxColour * _arg0; | |
4919 | unsigned char _arg1; | |
4920 | unsigned char _arg2; | |
4921 | unsigned char _arg3; | |
4922 | wxColour temp; | |
4923 | PyObject * _obj0 = 0; | |
4924 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
4925 | ||
4926 | self = self; | |
4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
4928 | return NULL; | |
4929 | { | |
4930 | _arg0 = &temp; | |
4931 | if (! wxColour_helper(_obj0, &_arg0)) | |
4932 | return NULL; | |
4933 | } | |
4934 | { | |
0e2ff151 | 4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4936 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
4937 | ||
0e2ff151 | 4938 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4939 | if (PyErr_Occurred()) return NULL; |
4940 | } Py_INCREF(Py_None); | |
4941 | _resultobj = Py_None; | |
4942 | return _resultobj; | |
4943 | } | |
4944 | ||
4945 | static PyObject * wxColour_Get(wxColour *self) { | |
4946 | PyObject* rv = PyTuple_New(3); | |
4947 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4948 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4949 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4950 | return rv; | |
4951 | } | |
4952 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4953 | PyObject * _resultobj; | |
4954 | PyObject * _result; | |
4955 | wxColour * _arg0; | |
4956 | wxColour temp; | |
4957 | PyObject * _obj0 = 0; | |
4958 | char *_kwnames[] = { "self", NULL }; | |
4959 | ||
4960 | self = self; | |
4961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) | |
4962 | return NULL; | |
4963 | { | |
4964 | _arg0 = &temp; | |
4965 | if (! wxColour_helper(_obj0, &_arg0)) | |
4966 | return NULL; | |
4967 | } | |
4968 | { | |
0e2ff151 | 4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4970 | _result = (PyObject *)wxColour_Get(_arg0); |
4971 | ||
0e2ff151 | 4972 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4973 | if (PyErr_Occurred()) return NULL; |
4974 | }{ | |
4975 | _resultobj = _result; | |
4976 | } | |
4977 | return _resultobj; | |
4978 | } | |
4979 | ||
4980 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { | |
4981 | wxColourDatabase *src; | |
4982 | wxObject *dest; | |
4983 | src = (wxColourDatabase *) ptr; | |
4984 | dest = (wxObject *) src; | |
4985 | return (void *) dest; | |
4986 | } | |
4987 | ||
4988 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) | |
4989 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4990 | PyObject * _resultobj; | |
4991 | wxColour * _result; | |
4992 | wxColourDatabase * _arg0; | |
4993 | wxString * _arg1; | |
4994 | PyObject * _argo0 = 0; | |
4995 | PyObject * _obj1 = 0; | |
4996 | char *_kwnames[] = { "self","colour", NULL }; | |
4997 | char _ptemp[128]; | |
4998 | ||
4999 | self = self; | |
5000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
5001 | return NULL; | |
5002 | if (_argo0) { | |
5003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
5006 | return NULL; | |
5007 | } | |
5008 | } | |
5009 | { | |
5010 | #if PYTHON_API_VERSION >= 1009 | |
5011 | char* tmpPtr; int tmpSize; | |
5012 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5013 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5014 | return NULL; | |
5015 | } | |
5016 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5017 | return NULL; | |
5018 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5019 | #else | |
5020 | if (!PyString_Check(_obj1)) { | |
5021 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5022 | return NULL; | |
5023 | } | |
5024 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5025 | #endif | |
5026 | } | |
5027 | { | |
0e2ff151 | 5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5029 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
5030 | ||
0e2ff151 | 5031 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5032 | if (PyErr_Occurred()) return NULL; |
5033 | } if (_result) { | |
5034 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5035 | _resultobj = Py_BuildValue("s",_ptemp); | |
5036 | } else { | |
5037 | Py_INCREF(Py_None); | |
5038 | _resultobj = Py_None; | |
5039 | } | |
5040 | { | |
5041 | if (_obj1) | |
5042 | delete _arg1; | |
5043 | } | |
5044 | return _resultobj; | |
5045 | } | |
5046 | ||
5047 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
5048 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject * _resultobj; | |
5050 | wxString * _result; | |
5051 | wxColourDatabase * _arg0; | |
5052 | wxColour * _arg1; | |
5053 | PyObject * _argo0 = 0; | |
5054 | wxColour temp; | |
5055 | PyObject * _obj1 = 0; | |
5056 | char *_kwnames[] = { "self","colour", NULL }; | |
5057 | ||
5058 | self = self; | |
5059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
5060 | return NULL; | |
5061 | if (_argo0) { | |
5062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
5065 | return NULL; | |
5066 | } | |
5067 | } | |
5068 | { | |
5069 | _arg1 = &temp; | |
5070 | if (! wxColour_helper(_obj1, &_arg1)) | |
5071 | return NULL; | |
5072 | } | |
5073 | { | |
0e2ff151 | 5074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5075 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
5076 | ||
0e2ff151 | 5077 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5078 | if (PyErr_Occurred()) return NULL; |
5079 | }{ | |
5080 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5081 | } | |
5082 | { | |
5083 | delete _result; | |
5084 | } | |
5085 | return _resultobj; | |
5086 | } | |
5087 | ||
5088 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
a341e32e RD |
5089 | // first see if the name is already there |
5090 | wxString cName = name; | |
5091 | cName.MakeUpper(); | |
5092 | wxString cName2 = cName; | |
5093 | if ( !cName2.Replace("GRAY", "GREY") ) | |
5094 | cName2.clear(); | |
5095 | ||
5096 | wxNode *node = self->First(); | |
5097 | while ( node ) { | |
5098 | const wxChar *key = node->GetKeyString(); | |
5099 | if ( cName == key || cName2 == key ) { | |
5100 | wxColour* c = (wxColour *)node->Data(); | |
5101 | c->Set(red, green, blue); | |
5102 | return; | |
5103 | } | |
5104 | node = node->Next(); | |
5105 | } | |
5106 | ||
5107 | // otherwise append the new colour | |
e6056257 RD |
5108 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
5109 | } | |
5110 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5111 | PyObject * _resultobj; | |
5112 | wxColourDatabase * _arg0; | |
5113 | wxString * _arg1; | |
5114 | int _arg2; | |
5115 | int _arg3; | |
5116 | int _arg4; | |
5117 | PyObject * _argo0 = 0; | |
5118 | PyObject * _obj1 = 0; | |
5119 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5120 | ||
5121 | self = self; | |
5122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5123 | return NULL; | |
5124 | if (_argo0) { | |
5125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5128 | return NULL; | |
5129 | } | |
5130 | } | |
5131 | { | |
5132 | #if PYTHON_API_VERSION >= 1009 | |
5133 | char* tmpPtr; int tmpSize; | |
5134 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5135 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5136 | return NULL; | |
5137 | } | |
5138 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5139 | return NULL; | |
5140 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5141 | #else | |
5142 | if (!PyString_Check(_obj1)) { | |
5143 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5144 | return NULL; | |
5145 | } | |
5146 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5147 | #endif | |
5148 | } | |
5149 | { | |
0e2ff151 | 5150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5151 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
5152 | ||
0e2ff151 | 5153 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5154 | if (PyErr_Occurred()) return NULL; |
5155 | } Py_INCREF(Py_None); | |
5156 | _resultobj = Py_None; | |
5157 | { | |
5158 | if (_obj1) | |
5159 | delete _arg1; | |
5160 | } | |
5161 | return _resultobj; | |
5162 | } | |
5163 | ||
5164 | static void *SwigwxPenTowxGDIObject(void *ptr) { | |
5165 | wxPen *src; | |
5166 | wxGDIObject *dest; | |
5167 | src = (wxPen *) ptr; | |
5168 | dest = (wxGDIObject *) src; | |
5169 | return (void *) dest; | |
5170 | } | |
5171 | ||
5172 | static void *SwigwxPenTowxObject(void *ptr) { | |
5173 | wxPen *src; | |
5174 | wxObject *dest; | |
5175 | src = (wxPen *) ptr; | |
5176 | dest = (wxObject *) src; | |
5177 | return (void *) dest; | |
5178 | } | |
5179 | ||
5180 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
5181 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5182 | PyObject * _resultobj; | |
5183 | wxPen * _result; | |
5184 | wxColour * _arg0; | |
5185 | int _arg1 = (int ) 1; | |
5186 | int _arg2 = (int ) wxSOLID; | |
5187 | wxColour temp; | |
5188 | PyObject * _obj0 = 0; | |
5189 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5190 | char _ptemp[128]; | |
5191 | ||
5192 | self = self; | |
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5194 | return NULL; | |
5195 | { | |
5196 | _arg0 = &temp; | |
5197 | if (! wxColour_helper(_obj0, &_arg0)) | |
5198 | return NULL; | |
5199 | } | |
5200 | { | |
0e2ff151 | 5201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5202 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
5203 | ||
0e2ff151 | 5204 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5205 | if (PyErr_Occurred()) return NULL; |
5206 | } if (_result) { | |
5207 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5208 | _resultobj = Py_BuildValue("s",_ptemp); | |
5209 | } else { | |
5210 | Py_INCREF(Py_None); | |
5211 | _resultobj = Py_None; | |
5212 | } | |
5213 | return _resultobj; | |
5214 | } | |
5215 | ||
5216 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
5217 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5218 | PyObject * _resultobj; | |
5219 | wxPen * _arg0; | |
5220 | PyObject * _argo0 = 0; | |
5221 | char *_kwnames[] = { "self", NULL }; | |
5222 | ||
5223 | self = self; | |
5224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5225 | return NULL; | |
5226 | if (_argo0) { | |
5227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5230 | return NULL; | |
5231 | } | |
5232 | } | |
5233 | { | |
0e2ff151 | 5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5235 | delete_wxPen(_arg0); |
5236 | ||
0e2ff151 | 5237 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5238 | if (PyErr_Occurred()) return NULL; |
5239 | } Py_INCREF(Py_None); | |
5240 | _resultobj = Py_None; | |
5241 | return _resultobj; | |
5242 | } | |
5243 | ||
5244 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
5245 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5246 | PyObject * _resultobj; | |
5247 | int _result; | |
5248 | wxPen * _arg0; | |
5249 | PyObject * _argo0 = 0; | |
5250 | char *_kwnames[] = { "self", NULL }; | |
5251 | ||
5252 | self = self; | |
5253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
5254 | return NULL; | |
5255 | if (_argo0) { | |
5256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
5259 | return NULL; | |
5260 | } | |
5261 | } | |
5262 | { | |
0e2ff151 | 5263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5264 | _result = (int )wxPen_GetCap(_arg0); |
5265 | ||
0e2ff151 | 5266 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5267 | if (PyErr_Occurred()) return NULL; |
5268 | } _resultobj = Py_BuildValue("i",_result); | |
5269 | return _resultobj; | |
5270 | } | |
5271 | ||
5272 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
5273 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5274 | PyObject * _resultobj; | |
5275 | wxColour * _result; | |
5276 | wxPen * _arg0; | |
5277 | PyObject * _argo0 = 0; | |
5278 | char *_kwnames[] = { "self", NULL }; | |
5279 | char _ptemp[128]; | |
5280 | ||
5281 | self = self; | |
5282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
5283 | return NULL; | |
5284 | if (_argo0) { | |
5285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
5288 | return NULL; | |
5289 | } | |
5290 | } | |
5291 | { | |
0e2ff151 | 5292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5293 | _result = new wxColour (wxPen_GetColour(_arg0)); |
5294 | ||
0e2ff151 | 5295 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5296 | if (PyErr_Occurred()) return NULL; |
5297 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5298 | _resultobj = Py_BuildValue("s",_ptemp); | |
5299 | return _resultobj; | |
5300 | } | |
5301 | ||
5302 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
5303 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5304 | PyObject * _resultobj; | |
5305 | int _result; | |
5306 | wxPen * _arg0; | |
5307 | PyObject * _argo0 = 0; | |
5308 | char *_kwnames[] = { "self", NULL }; | |
5309 | ||
5310 | self = self; | |
5311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) | |
5312 | return NULL; | |
5313 | if (_argo0) { | |
5314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
5317 | return NULL; | |
5318 | } | |
5319 | } | |
5320 | { | |
0e2ff151 | 5321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5322 | _result = (int )wxPen_GetJoin(_arg0); |
5323 | ||
0e2ff151 | 5324 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5325 | if (PyErr_Occurred()) return NULL; |
5326 | } _resultobj = Py_BuildValue("i",_result); | |
5327 | return _resultobj; | |
5328 | } | |
5329 | ||
5330 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
5331 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5332 | PyObject * _resultobj; | |
5333 | int _result; | |
5334 | wxPen * _arg0; | |
5335 | PyObject * _argo0 = 0; | |
5336 | char *_kwnames[] = { "self", NULL }; | |
5337 | ||
5338 | self = self; | |
5339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) | |
5340 | return NULL; | |
5341 | if (_argo0) { | |
5342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
5345 | return NULL; | |
5346 | } | |
5347 | } | |
5348 | { | |
0e2ff151 | 5349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5350 | _result = (int )wxPen_GetStyle(_arg0); |
5351 | ||
0e2ff151 | 5352 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5353 | if (PyErr_Occurred()) return NULL; |
5354 | } _resultobj = Py_BuildValue("i",_result); | |
5355 | return _resultobj; | |
5356 | } | |
5357 | ||
5358 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
5359 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5360 | PyObject * _resultobj; | |
5361 | int _result; | |
5362 | wxPen * _arg0; | |
5363 | PyObject * _argo0 = 0; | |
5364 | char *_kwnames[] = { "self", NULL }; | |
5365 | ||
5366 | self = self; | |
5367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) | |
5368 | return NULL; | |
5369 | if (_argo0) { | |
5370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
5373 | return NULL; | |
5374 | } | |
5375 | } | |
5376 | { | |
0e2ff151 | 5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5378 | _result = (int )wxPen_GetWidth(_arg0); |
5379 | ||
0e2ff151 | 5380 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5381 | if (PyErr_Occurred()) return NULL; |
5382 | } _resultobj = Py_BuildValue("i",_result); | |
5383 | return _resultobj; | |
5384 | } | |
5385 | ||
5386 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
5387 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5388 | PyObject * _resultobj; | |
5389 | bool _result; | |
5390 | wxPen * _arg0; | |
5391 | PyObject * _argo0 = 0; | |
5392 | char *_kwnames[] = { "self", NULL }; | |
5393 | ||
5394 | self = self; | |
5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) | |
5396 | return NULL; | |
5397 | if (_argo0) { | |
5398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
5401 | return NULL; | |
5402 | } | |
5403 | } | |
5404 | { | |
0e2ff151 | 5405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5406 | _result = (bool )wxPen_Ok(_arg0); |
5407 | ||
0e2ff151 | 5408 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5409 | if (PyErr_Occurred()) return NULL; |
5410 | } _resultobj = Py_BuildValue("i",_result); | |
5411 | return _resultobj; | |
5412 | } | |
5413 | ||
5414 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
5415 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5416 | PyObject * _resultobj; | |
5417 | wxPen * _arg0; | |
5418 | int _arg1; | |
5419 | PyObject * _argo0 = 0; | |
5420 | char *_kwnames[] = { "self","cap_style", NULL }; | |
5421 | ||
5422 | self = self; | |
5423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) | |
5424 | return NULL; | |
5425 | if (_argo0) { | |
5426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
5429 | return NULL; | |
5430 | } | |
5431 | } | |
5432 | { | |
0e2ff151 | 5433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5434 | wxPen_SetCap(_arg0,_arg1); |
5435 | ||
0e2ff151 | 5436 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5437 | if (PyErr_Occurred()) return NULL; |
5438 | } Py_INCREF(Py_None); | |
5439 | _resultobj = Py_None; | |
5440 | return _resultobj; | |
5441 | } | |
5442 | ||
5443 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
5444 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5445 | PyObject * _resultobj; | |
5446 | wxPen * _arg0; | |
5447 | wxColour * _arg1; | |
5448 | PyObject * _argo0 = 0; | |
5449 | wxColour temp; | |
5450 | PyObject * _obj1 = 0; | |
5451 | char *_kwnames[] = { "self","colour", NULL }; | |
5452 | ||
5453 | self = self; | |
5454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) | |
5455 | return NULL; | |
5456 | if (_argo0) { | |
5457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
5460 | return NULL; | |
5461 | } | |
5462 | } | |
5463 | { | |
5464 | _arg1 = &temp; | |
5465 | if (! wxColour_helper(_obj1, &_arg1)) | |
5466 | return NULL; | |
5467 | } | |
5468 | { | |
0e2ff151 | 5469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5470 | wxPen_SetColour(_arg0,*_arg1); |
5471 | ||
0e2ff151 | 5472 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5473 | if (PyErr_Occurred()) return NULL; |
5474 | } Py_INCREF(Py_None); | |
5475 | _resultobj = Py_None; | |
5476 | return _resultobj; | |
5477 | } | |
5478 | ||
5479 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
5480 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5481 | PyObject * _resultobj; | |
5482 | wxPen * _arg0; | |
5483 | int _arg1; | |
5484 | PyObject * _argo0 = 0; | |
5485 | char *_kwnames[] = { "self","join_style", NULL }; | |
5486 | ||
5487 | self = self; | |
5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) | |
5489 | return NULL; | |
5490 | if (_argo0) { | |
5491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
5494 | return NULL; | |
5495 | } | |
5496 | } | |
5497 | { | |
0e2ff151 | 5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5499 | wxPen_SetJoin(_arg0,_arg1); |
5500 | ||
0e2ff151 | 5501 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5502 | if (PyErr_Occurred()) return NULL; |
5503 | } Py_INCREF(Py_None); | |
5504 | _resultobj = Py_None; | |
5505 | return _resultobj; | |
5506 | } | |
5507 | ||
5508 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
5509 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5510 | PyObject * _resultobj; | |
5511 | wxPen * _arg0; | |
5512 | int _arg1; | |
5513 | PyObject * _argo0 = 0; | |
5514 | char *_kwnames[] = { "self","style", NULL }; | |
5515 | ||
5516 | self = self; | |
5517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) | |
5518 | return NULL; | |
5519 | if (_argo0) { | |
5520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
5523 | return NULL; | |
5524 | } | |
5525 | } | |
5526 | { | |
0e2ff151 | 5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5528 | wxPen_SetStyle(_arg0,_arg1); |
5529 | ||
0e2ff151 | 5530 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5531 | if (PyErr_Occurred()) return NULL; |
5532 | } Py_INCREF(Py_None); | |
5533 | _resultobj = Py_None; | |
5534 | return _resultobj; | |
5535 | } | |
5536 | ||
5537 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
5538 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject * _resultobj; | |
5540 | wxPen * _arg0; | |
5541 | int _arg1; | |
5542 | PyObject * _argo0 = 0; | |
5543 | char *_kwnames[] = { "self","width", NULL }; | |
5544 | ||
5545 | self = self; | |
5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) | |
5547 | return NULL; | |
5548 | if (_argo0) { | |
5549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
5552 | return NULL; | |
5553 | } | |
5554 | } | |
5555 | { | |
0e2ff151 | 5556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5557 | wxPen_SetWidth(_arg0,_arg1); |
5558 | ||
0e2ff151 | 5559 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5560 | if (PyErr_Occurred()) return NULL; |
5561 | } Py_INCREF(Py_None); | |
5562 | _resultobj = Py_None; | |
5563 | return _resultobj; | |
5564 | } | |
5565 | ||
5566 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
5567 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5568 | PyObject * _resultobj; | |
5569 | wxPen * _arg0; | |
5570 | int _arg1; | |
5571 | wxDash * _arg2; | |
5572 | PyObject * _argo0 = 0; | |
5573 | PyObject * _obj2 = 0; | |
5574 | char *_kwnames[] = { "self","choices", NULL }; | |
5575 | ||
5576 | self = self; | |
5577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5578 | return NULL; | |
5579 | if (_argo0) { | |
5580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
5583 | return NULL; | |
5584 | } | |
5585 | } | |
5586 | if (_obj2) | |
5587 | { | |
5588 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5589 | if (_arg2 == NULL) { | |
5590 | return NULL; | |
5591 | } | |
5592 | } | |
5593 | { | |
5594 | if (_obj2) { | |
5595 | _arg1 = PyList_Size(_obj2); | |
5596 | } | |
5597 | else { | |
5598 | _arg1 = 0; | |
5599 | } | |
5600 | } | |
5601 | { | |
0e2ff151 | 5602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5603 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
5604 | ||
0e2ff151 | 5605 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5606 | if (PyErr_Occurred()) return NULL; |
5607 | } Py_INCREF(Py_None); | |
5608 | _resultobj = Py_None; | |
5609 | { | |
5610 | delete [] _arg2; | |
5611 | } | |
5612 | return _resultobj; | |
5613 | } | |
5614 | ||
5615 | static void *SwigwxPyPenTowxPen(void *ptr) { | |
5616 | wxPyPen *src; | |
5617 | wxPen *dest; | |
5618 | src = (wxPyPen *) ptr; | |
5619 | dest = (wxPen *) src; | |
5620 | return (void *) dest; | |
5621 | } | |
5622 | ||
5623 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
5624 | wxPyPen *src; | |
5625 | wxGDIObject *dest; | |
5626 | src = (wxPyPen *) ptr; | |
5627 | dest = (wxGDIObject *) src; | |
5628 | return (void *) dest; | |
5629 | } | |
5630 | ||
5631 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
5632 | wxPyPen *src; | |
5633 | wxObject *dest; | |
5634 | src = (wxPyPen *) ptr; | |
5635 | dest = (wxObject *) src; | |
5636 | return (void *) dest; | |
5637 | } | |
5638 | ||
5639 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
5640 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5641 | PyObject * _resultobj; | |
5642 | wxPyPen * _result; | |
5643 | wxColour * _arg0; | |
5644 | int _arg1 = (int ) 1; | |
5645 | int _arg2 = (int ) wxSOLID; | |
5646 | wxColour temp; | |
5647 | PyObject * _obj0 = 0; | |
5648 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5649 | char _ptemp[128]; | |
5650 | ||
5651 | self = self; | |
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5653 | return NULL; | |
5654 | { | |
5655 | _arg0 = &temp; | |
5656 | if (! wxColour_helper(_obj0, &_arg0)) | |
5657 | return NULL; | |
5658 | } | |
5659 | { | |
0e2ff151 | 5660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5661 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
5662 | ||
0e2ff151 | 5663 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5664 | if (PyErr_Occurred()) return NULL; |
5665 | } if (_result) { | |
5666 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
5667 | _resultobj = Py_BuildValue("s",_ptemp); | |
5668 | } else { | |
5669 | Py_INCREF(Py_None); | |
5670 | _resultobj = Py_None; | |
5671 | } | |
5672 | return _resultobj; | |
5673 | } | |
5674 | ||
5675 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
5676 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5677 | PyObject * _resultobj; | |
5678 | wxPyPen * _arg0; | |
5679 | PyObject * _argo0 = 0; | |
5680 | char *_kwnames[] = { "self", NULL }; | |
5681 | ||
5682 | self = self; | |
5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
5684 | return NULL; | |
5685 | if (_argo0) { | |
5686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
5689 | return NULL; | |
5690 | } | |
5691 | } | |
5692 | { | |
0e2ff151 | 5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5694 | delete_wxPyPen(_arg0); |
5695 | ||
0e2ff151 | 5696 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5697 | if (PyErr_Occurred()) return NULL; |
5698 | } Py_INCREF(Py_None); | |
5699 | _resultobj = Py_None; | |
5700 | return _resultobj; | |
5701 | } | |
5702 | ||
5703 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
5704 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5705 | PyObject * _resultobj; | |
5706 | wxPyPen * _arg0; | |
5707 | int _arg1; | |
5708 | wxDash * _arg2; | |
5709 | PyObject * _argo0 = 0; | |
5710 | PyObject * _obj2 = 0; | |
5711 | char *_kwnames[] = { "self","choices", NULL }; | |
5712 | ||
5713 | self = self; | |
5714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5715 | return NULL; | |
5716 | if (_argo0) { | |
5717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
5720 | return NULL; | |
5721 | } | |
5722 | } | |
5723 | if (_obj2) | |
5724 | { | |
5725 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5726 | if (_arg2 == NULL) { | |
5727 | return NULL; | |
5728 | } | |
5729 | } | |
5730 | { | |
5731 | if (_obj2) { | |
5732 | _arg1 = PyList_Size(_obj2); | |
5733 | } | |
5734 | else { | |
5735 | _arg1 = 0; | |
5736 | } | |
5737 | } | |
5738 | { | |
0e2ff151 | 5739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5740 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
5741 | ||
0e2ff151 | 5742 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5743 | if (PyErr_Occurred()) return NULL; |
5744 | } Py_INCREF(Py_None); | |
5745 | _resultobj = Py_None; | |
5746 | { | |
5747 | delete [] _arg2; | |
5748 | } | |
5749 | return _resultobj; | |
5750 | } | |
5751 | ||
5752 | static void *SwigwxPenListTowxObject(void *ptr) { | |
5753 | wxPenList *src; | |
5754 | wxObject *dest; | |
5755 | src = (wxPenList *) ptr; | |
5756 | dest = (wxObject *) src; | |
5757 | return (void *) dest; | |
5758 | } | |
5759 | ||
5760 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) | |
5761 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5762 | PyObject * _resultobj; | |
5763 | wxPenList * _arg0; | |
5764 | wxPen * _arg1; | |
5765 | PyObject * _argo0 = 0; | |
5766 | PyObject * _argo1 = 0; | |
5767 | char *_kwnames[] = { "self","pen", NULL }; | |
5768 | ||
5769 | self = self; | |
5770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5771 | return NULL; | |
5772 | if (_argo0) { | |
5773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5776 | return NULL; | |
5777 | } | |
5778 | } | |
5779 | if (_argo1) { | |
5780 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5781 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5783 | return NULL; | |
5784 | } | |
5785 | } | |
5786 | { | |
0e2ff151 | 5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5788 | wxPenList_AddPen(_arg0,_arg1); |
5789 | ||
0e2ff151 | 5790 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5791 | if (PyErr_Occurred()) return NULL; |
5792 | } Py_INCREF(Py_None); | |
5793 | _resultobj = Py_None; | |
5794 | return _resultobj; | |
5795 | } | |
5796 | ||
5797 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5798 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5799 | PyObject * _resultobj; | |
5800 | wxPen * _result; | |
5801 | wxPenList * _arg0; | |
5802 | wxColour * _arg1; | |
5803 | int _arg2; | |
5804 | int _arg3; | |
5805 | PyObject * _argo0 = 0; | |
5806 | wxColour temp; | |
5807 | PyObject * _obj1 = 0; | |
5808 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5809 | char _ptemp[128]; | |
5810 | ||
5811 | self = self; | |
5812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5813 | return NULL; | |
5814 | if (_argo0) { | |
5815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5818 | return NULL; | |
5819 | } | |
5820 | } | |
5821 | { | |
5822 | _arg1 = &temp; | |
5823 | if (! wxColour_helper(_obj1, &_arg1)) | |
5824 | return NULL; | |
5825 | } | |
5826 | { | |
0e2ff151 | 5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5828 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
5829 | ||
0e2ff151 | 5830 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5831 | if (PyErr_Occurred()) return NULL; |
5832 | } if (_result) { | |
5833 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5834 | _resultobj = Py_BuildValue("s",_ptemp); | |
5835 | } else { | |
5836 | Py_INCREF(Py_None); | |
5837 | _resultobj = Py_None; | |
5838 | } | |
5839 | return _resultobj; | |
5840 | } | |
5841 | ||
5842 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5843 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5844 | PyObject * _resultobj; | |
5845 | wxPenList * _arg0; | |
5846 | wxPen * _arg1; | |
5847 | PyObject * _argo0 = 0; | |
5848 | PyObject * _argo1 = 0; | |
5849 | char *_kwnames[] = { "self","pen", NULL }; | |
5850 | ||
5851 | self = self; | |
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5853 | return NULL; | |
5854 | if (_argo0) { | |
5855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5858 | return NULL; | |
5859 | } | |
5860 | } | |
5861 | if (_argo1) { | |
5862 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5863 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5865 | return NULL; | |
5866 | } | |
5867 | } | |
5868 | { | |
0e2ff151 | 5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5870 | wxPenList_RemovePen(_arg0,_arg1); |
5871 | ||
0e2ff151 | 5872 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5873 | if (PyErr_Occurred()) return NULL; |
5874 | } Py_INCREF(Py_None); | |
5875 | _resultobj = Py_None; | |
5876 | return _resultobj; | |
5877 | } | |
5878 | ||
00360d46 RD |
5879 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
5880 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5881 | PyObject * _resultobj; | |
5882 | int _result; | |
5883 | wxPenList * _arg0; | |
5884 | PyObject * _argo0 = 0; | |
5885 | char *_kwnames[] = { "self", NULL }; | |
5886 | ||
5887 | self = self; | |
5888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
5889 | return NULL; | |
5890 | if (_argo0) { | |
5891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
5894 | return NULL; | |
5895 | } | |
5896 | } | |
5897 | { | |
0e2ff151 | 5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 RD |
5899 | _result = (int )wxPenList_GetCount(_arg0); |
5900 | ||
0e2ff151 | 5901 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
5902 | if (PyErr_Occurred()) return NULL; |
5903 | } _resultobj = Py_BuildValue("i",_result); | |
5904 | return _resultobj; | |
5905 | } | |
5906 | ||
e6056257 RD |
5907 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5908 | wxBrush *src; | |
5909 | wxGDIObject *dest; | |
5910 | src = (wxBrush *) ptr; | |
5911 | dest = (wxGDIObject *) src; | |
5912 | return (void *) dest; | |
5913 | } | |
5914 | ||
5915 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5916 | wxBrush *src; | |
5917 | wxObject *dest; | |
5918 | src = (wxBrush *) ptr; | |
5919 | dest = (wxObject *) src; | |
5920 | return (void *) dest; | |
5921 | } | |
5922 | ||
5923 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
5924 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5925 | PyObject * _resultobj; | |
5926 | wxBrush * _result; | |
5927 | wxColour * _arg0; | |
5928 | int _arg1 = (int ) wxSOLID; | |
5929 | wxColour temp; | |
5930 | PyObject * _obj0 = 0; | |
5931 | char *_kwnames[] = { "colour","style", NULL }; | |
5932 | char _ptemp[128]; | |
5933 | ||
5934 | self = self; | |
5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) | |
5936 | return NULL; | |
5937 | { | |
5938 | _arg0 = &temp; | |
5939 | if (! wxColour_helper(_obj0, &_arg0)) | |
5940 | return NULL; | |
5941 | } | |
5942 | { | |
0e2ff151 | 5943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5944 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
5945 | ||
0e2ff151 | 5946 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5947 | if (PyErr_Occurred()) return NULL; |
5948 | } if (_result) { | |
5949 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5950 | _resultobj = Py_BuildValue("s",_ptemp); | |
5951 | } else { | |
5952 | Py_INCREF(Py_None); | |
5953 | _resultobj = Py_None; | |
5954 | } | |
5955 | return _resultobj; | |
5956 | } | |
5957 | ||
5958 | #define delete_wxBrush(_swigobj) (delete _swigobj) | |
5959 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5960 | PyObject * _resultobj; | |
5961 | wxBrush * _arg0; | |
5962 | PyObject * _argo0 = 0; | |
5963 | char *_kwnames[] = { "self", NULL }; | |
5964 | ||
5965 | self = self; | |
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5967 | return NULL; | |
5968 | if (_argo0) { | |
5969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5972 | return NULL; | |
5973 | } | |
5974 | } | |
5975 | { | |
0e2ff151 | 5976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5977 | delete_wxBrush(_arg0); |
5978 | ||
0e2ff151 | 5979 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5980 | if (PyErr_Occurred()) return NULL; |
5981 | } Py_INCREF(Py_None); | |
5982 | _resultobj = Py_None; | |
5983 | return _resultobj; | |
5984 | } | |
5985 | ||
5986 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
5987 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject * _resultobj; | |
5989 | wxColour * _result; | |
5990 | wxBrush * _arg0; | |
5991 | PyObject * _argo0 = 0; | |
5992 | char *_kwnames[] = { "self", NULL }; | |
5993 | char _ptemp[128]; | |
5994 | ||
5995 | self = self; | |
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) | |
5997 | return NULL; | |
5998 | if (_argo0) { | |
5999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
6002 | return NULL; | |
6003 | } | |
6004 | } | |
6005 | { | |
0e2ff151 | 6006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6007 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
6008 | ||
0e2ff151 | 6009 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6010 | if (PyErr_Occurred()) return NULL; |
6011 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6012 | _resultobj = Py_BuildValue("s",_ptemp); | |
6013 | return _resultobj; | |
6014 | } | |
6015 | ||
6016 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
6017 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6018 | PyObject * _resultobj; | |
6019 | wxBitmap * _result; | |
6020 | wxBrush * _arg0; | |
6021 | PyObject * _argo0 = 0; | |
6022 | char *_kwnames[] = { "self", NULL }; | |
6023 | char _ptemp[128]; | |
6024 | ||
6025 | self = self; | |
6026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) | |
6027 | return NULL; | |
6028 | if (_argo0) { | |
6029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
6032 | return NULL; | |
6033 | } | |
6034 | } | |
6035 | { | |
0e2ff151 | 6036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6037 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
6038 | ||
0e2ff151 | 6039 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6040 | if (PyErr_Occurred()) return NULL; |
6041 | } if (_result) { | |
6042 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6043 | _resultobj = Py_BuildValue("s",_ptemp); | |
6044 | } else { | |
6045 | Py_INCREF(Py_None); | |
6046 | _resultobj = Py_None; | |
6047 | } | |
6048 | return _resultobj; | |
6049 | } | |
6050 | ||
6051 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
6052 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6053 | PyObject * _resultobj; | |
6054 | int _result; | |
6055 | wxBrush * _arg0; | |
6056 | PyObject * _argo0 = 0; | |
6057 | char *_kwnames[] = { "self", NULL }; | |
6058 | ||
6059 | self = self; | |
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) | |
6061 | return NULL; | |
6062 | if (_argo0) { | |
6063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
6066 | return NULL; | |
6067 | } | |
6068 | } | |
6069 | { | |
0e2ff151 | 6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6071 | _result = (int )wxBrush_GetStyle(_arg0); |
6072 | ||
0e2ff151 | 6073 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6074 | if (PyErr_Occurred()) return NULL; |
6075 | } _resultobj = Py_BuildValue("i",_result); | |
6076 | return _resultobj; | |
6077 | } | |
6078 | ||
6079 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
6080 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject * _resultobj; | |
6082 | bool _result; | |
6083 | wxBrush * _arg0; | |
6084 | PyObject * _argo0 = 0; | |
6085 | char *_kwnames[] = { "self", NULL }; | |
6086 | ||
6087 | self = self; | |
6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) | |
6089 | return NULL; | |
6090 | if (_argo0) { | |
6091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
6094 | return NULL; | |
6095 | } | |
6096 | } | |
6097 | { | |
0e2ff151 | 6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6099 | _result = (bool )wxBrush_Ok(_arg0); |
6100 | ||
0e2ff151 | 6101 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6102 | if (PyErr_Occurred()) return NULL; |
6103 | } _resultobj = Py_BuildValue("i",_result); | |
6104 | return _resultobj; | |
6105 | } | |
6106 | ||
6107 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
6108 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6109 | PyObject * _resultobj; | |
6110 | wxBrush * _arg0; | |
6111 | wxColour * _arg1; | |
6112 | PyObject * _argo0 = 0; | |
6113 | wxColour temp; | |
6114 | PyObject * _obj1 = 0; | |
6115 | char *_kwnames[] = { "self","colour", NULL }; | |
6116 | ||
6117 | self = self; | |
6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) | |
6119 | return NULL; | |
6120 | if (_argo0) { | |
6121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
6124 | return NULL; | |
6125 | } | |
6126 | } | |
6127 | { | |
6128 | _arg1 = &temp; | |
6129 | if (! wxColour_helper(_obj1, &_arg1)) | |
6130 | return NULL; | |
6131 | } | |
6132 | { | |
0e2ff151 | 6133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6134 | wxBrush_SetColour(_arg0,*_arg1); |
6135 | ||
0e2ff151 | 6136 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6137 | if (PyErr_Occurred()) return NULL; |
6138 | } Py_INCREF(Py_None); | |
6139 | _resultobj = Py_None; | |
6140 | return _resultobj; | |
6141 | } | |
6142 | ||
6143 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
6144 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6145 | PyObject * _resultobj; | |
6146 | wxBrush * _arg0; | |
6147 | wxBitmap * _arg1; | |
6148 | PyObject * _argo0 = 0; | |
6149 | PyObject * _argo1 = 0; | |
6150 | char *_kwnames[] = { "self","bitmap", NULL }; | |
6151 | ||
6152 | self = self; | |
6153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) | |
6154 | return NULL; | |
6155 | if (_argo0) { | |
6156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
6159 | return NULL; | |
6160 | } | |
6161 | } | |
6162 | if (_argo1) { | |
6163 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6164 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
6165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
6166 | return NULL; | |
6167 | } | |
6168 | } | |
6169 | { | |
0e2ff151 | 6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6171 | wxBrush_SetStipple(_arg0,*_arg1); |
6172 | ||
0e2ff151 | 6173 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6174 | if (PyErr_Occurred()) return NULL; |
6175 | } Py_INCREF(Py_None); | |
6176 | _resultobj = Py_None; | |
6177 | return _resultobj; | |
6178 | } | |
6179 | ||
6180 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
6181 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject * _resultobj; | |
6183 | wxBrush * _arg0; | |
6184 | int _arg1; | |
6185 | PyObject * _argo0 = 0; | |
6186 | char *_kwnames[] = { "self","style", NULL }; | |
6187 | ||
6188 | self = self; | |
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) | |
6190 | return NULL; | |
6191 | if (_argo0) { | |
6192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
6195 | return NULL; | |
6196 | } | |
6197 | } | |
6198 | { | |
0e2ff151 | 6199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6200 | wxBrush_SetStyle(_arg0,_arg1); |
6201 | ||
0e2ff151 | 6202 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6203 | if (PyErr_Occurred()) return NULL; |
6204 | } Py_INCREF(Py_None); | |
6205 | _resultobj = Py_None; | |
6206 | return _resultobj; | |
6207 | } | |
6208 | ||
6209 | static void *SwigwxBrushListTowxObject(void *ptr) { | |
6210 | wxBrushList *src; | |
6211 | wxObject *dest; | |
6212 | src = (wxBrushList *) ptr; | |
6213 | dest = (wxObject *) src; | |
6214 | return (void *) dest; | |
6215 | } | |
6216 | ||
6217 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) | |
6218 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject * _resultobj; | |
6220 | wxBrushList * _arg0; | |
6221 | wxBrush * _arg1; | |
6222 | PyObject * _argo0 = 0; | |
6223 | PyObject * _argo1 = 0; | |
6224 | char *_kwnames[] = { "self","brush", NULL }; | |
6225 | ||
6226 | self = self; | |
6227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6228 | return NULL; | |
6229 | if (_argo0) { | |
6230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6233 | return NULL; | |
6234 | } | |
6235 | } | |
6236 | if (_argo1) { | |
6237 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6238 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6240 | return NULL; | |
6241 | } | |
6242 | } | |
6243 | { | |
0e2ff151 | 6244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6245 | wxBrushList_AddBrush(_arg0,_arg1); |
6246 | ||
0e2ff151 | 6247 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6248 | if (PyErr_Occurred()) return NULL; |
6249 | } Py_INCREF(Py_None); | |
6250 | _resultobj = Py_None; | |
6251 | return _resultobj; | |
6252 | } | |
6253 | ||
6254 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6255 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6256 | PyObject * _resultobj; | |
6257 | wxBrush * _result; | |
6258 | wxBrushList * _arg0; | |
6259 | wxColour * _arg1; | |
6260 | int _arg2; | |
6261 | PyObject * _argo0 = 0; | |
6262 | wxColour temp; | |
6263 | PyObject * _obj1 = 0; | |
6264 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6265 | char _ptemp[128]; | |
6266 | ||
6267 | self = self; | |
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6269 | return NULL; | |
6270 | if (_argo0) { | |
6271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6274 | return NULL; | |
6275 | } | |
6276 | } | |
6277 | { | |
6278 | _arg1 = &temp; | |
6279 | if (! wxColour_helper(_obj1, &_arg1)) | |
6280 | return NULL; | |
6281 | } | |
6282 | { | |
0e2ff151 | 6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6284 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
6285 | ||
0e2ff151 | 6286 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6287 | if (PyErr_Occurred()) return NULL; |
6288 | } if (_result) { | |
6289 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6290 | _resultobj = Py_BuildValue("s",_ptemp); | |
6291 | } else { | |
6292 | Py_INCREF(Py_None); | |
6293 | _resultobj = Py_None; | |
6294 | } | |
6295 | return _resultobj; | |
6296 | } | |
6297 | ||
6298 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
6299 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject * _resultobj; | |
6301 | wxBrushList * _arg0; | |
6302 | wxBrush * _arg1; | |
6303 | PyObject * _argo0 = 0; | |
6304 | PyObject * _argo1 = 0; | |
6305 | char *_kwnames[] = { "self","brush", NULL }; | |
6306 | ||
6307 | self = self; | |
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
6309 | return NULL; | |
6310 | if (_argo0) { | |
6311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
6314 | return NULL; | |
6315 | } | |
6316 | } | |
6317 | if (_argo1) { | |
6318 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6319 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
6321 | return NULL; | |
6322 | } | |
6323 | } | |
6324 | { | |
0e2ff151 | 6325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6326 | wxBrushList_RemoveBrush(_arg0,_arg1); |
6327 | ||
0e2ff151 | 6328 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6329 | if (PyErr_Occurred()) return NULL; |
6330 | } Py_INCREF(Py_None); | |
6331 | _resultobj = Py_None; | |
6332 | return _resultobj; | |
6333 | } | |
6334 | ||
00360d46 RD |
6335 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
6336 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6337 | PyObject * _resultobj; | |
6338 | int _result; | |
6339 | wxBrushList * _arg0; | |
6340 | PyObject * _argo0 = 0; | |
6341 | char *_kwnames[] = { "self", NULL }; | |
6342 | ||
6343 | self = self; | |
6344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
6345 | return NULL; | |
6346 | if (_argo0) { | |
6347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
6350 | return NULL; | |
6351 | } | |
6352 | } | |
6353 | { | |
0e2ff151 | 6354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 RD |
6355 | _result = (int )wxBrushList_GetCount(_arg0); |
6356 | ||
0e2ff151 | 6357 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
6358 | if (PyErr_Occurred()) return NULL; |
6359 | } _resultobj = Py_BuildValue("i",_result); | |
6360 | return _resultobj; | |
6361 | } | |
6362 | ||
e6056257 RD |
6363 | static void *SwigwxDCTowxObject(void *ptr) { |
6364 | wxDC *src; | |
6365 | wxObject *dest; | |
6366 | src = (wxDC *) ptr; | |
6367 | dest = (wxObject *) src; | |
6368 | return (void *) dest; | |
6369 | } | |
6370 | ||
6371 | #define delete_wxDC(_swigobj) (delete _swigobj) | |
6372 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6373 | PyObject * _resultobj; | |
6374 | wxDC * _arg0; | |
6375 | PyObject * _argo0 = 0; | |
6376 | char *_kwnames[] = { "self", NULL }; | |
6377 | ||
6378 | self = self; | |
6379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) | |
6380 | return NULL; | |
6381 | if (_argo0) { | |
6382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
6385 | return NULL; | |
6386 | } | |
6387 | } | |
6388 | { | |
0e2ff151 | 6389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6390 | delete_wxDC(_arg0); |
6391 | ||
0e2ff151 | 6392 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6393 | if (PyErr_Occurred()) return NULL; |
6394 | } Py_INCREF(Py_None); | |
6395 | _resultobj = Py_None; | |
6396 | return _resultobj; | |
6397 | } | |
6398 | ||
6399 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
6400 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6401 | PyObject * _resultobj; | |
6402 | wxDC * _arg0; | |
6403 | PyObject * _argo0 = 0; | |
6404 | char *_kwnames[] = { "self", NULL }; | |
6405 | ||
6406 | self = self; | |
6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) | |
6408 | return NULL; | |
6409 | if (_argo0) { | |
6410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
6413 | return NULL; | |
6414 | } | |
6415 | } | |
6416 | { | |
0e2ff151 | 6417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6418 | wxDC_BeginDrawing(_arg0); |
6419 | ||
0e2ff151 | 6420 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6421 | if (PyErr_Occurred()) return NULL; |
6422 | } Py_INCREF(Py_None); | |
6423 | _resultobj = Py_None; | |
6424 | return _resultobj; | |
6425 | } | |
6426 | ||
6427 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
6428 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6429 | PyObject * _resultobj; | |
6430 | bool _result; | |
6431 | wxDC * _arg0; | |
6432 | long _arg1; | |
6433 | long _arg2; | |
6434 | long _arg3; | |
6435 | long _arg4; | |
6436 | wxDC * _arg5; | |
6437 | long _arg6; | |
6438 | long _arg7; | |
6439 | int _arg8 = (int ) wxCOPY; | |
6440 | int _arg9 = (int ) FALSE; | |
6441 | PyObject * _argo0 = 0; | |
6442 | PyObject * _argo5 = 0; | |
6443 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; | |
6444 | ||
6445 | self = self; | |
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
6447 | return NULL; | |
6448 | if (_argo0) { | |
6449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
6452 | return NULL; | |
6453 | } | |
6454 | } | |
6455 | if (_argo5) { | |
6456 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6457 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
6458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
6459 | return NULL; | |
6460 | } | |
6461 | } | |
6462 | { | |
0e2ff151 | 6463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6464 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
6465 | ||
0e2ff151 | 6466 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6467 | if (PyErr_Occurred()) return NULL; |
6468 | } _resultobj = Py_BuildValue("i",_result); | |
6469 | return _resultobj; | |
6470 | } | |
6471 | ||
6472 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
6473 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6474 | PyObject * _resultobj; | |
6475 | wxDC * _arg0; | |
6476 | PyObject * _argo0 = 0; | |
6477 | char *_kwnames[] = { "self", NULL }; | |
6478 | ||
6479 | self = self; | |
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) | |
6481 | return NULL; | |
6482 | if (_argo0) { | |
6483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
6486 | return NULL; | |
6487 | } | |
6488 | } | |
6489 | { | |
0e2ff151 | 6490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6491 | wxDC_Clear(_arg0); |
6492 | ||
0e2ff151 | 6493 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6494 | if (PyErr_Occurred()) return NULL; |
6495 | } Py_INCREF(Py_None); | |
6496 | _resultobj = Py_None; | |
6497 | return _resultobj; | |
6498 | } | |
6499 | ||
6500 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
6501 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6502 | PyObject * _resultobj; | |
6503 | wxDC * _arg0; | |
6504 | long _arg1; | |
6505 | long _arg2; | |
6506 | PyObject * _argo0 = 0; | |
6507 | char *_kwnames[] = { "self","x","y", NULL }; | |
6508 | ||
6509 | self = self; | |
6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6511 | return NULL; | |
6512 | if (_argo0) { | |
6513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
6516 | return NULL; | |
6517 | } | |
6518 | } | |
6519 | { | |
0e2ff151 | 6520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6521 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
6522 | ||
0e2ff151 | 6523 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6524 | if (PyErr_Occurred()) return NULL; |
6525 | } Py_INCREF(Py_None); | |
6526 | _resultobj = Py_None; | |
6527 | return _resultobj; | |
6528 | } | |
6529 | ||
6530 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
6531 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6532 | PyObject * _resultobj; | |
6533 | wxDC * _arg0; | |
6534 | PyObject * _argo0 = 0; | |
6535 | char *_kwnames[] = { "self", NULL }; | |
6536 | ||
6537 | self = self; | |
6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) | |
6539 | return NULL; | |
6540 | if (_argo0) { | |
6541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
6544 | return NULL; | |
6545 | } | |
6546 | } | |
6547 | { | |
0e2ff151 | 6548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6549 | wxDC_DestroyClippingRegion(_arg0); |
6550 | ||
0e2ff151 | 6551 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6552 | if (PyErr_Occurred()) return NULL; |
6553 | } Py_INCREF(Py_None); | |
6554 | _resultobj = Py_None; | |
6555 | return _resultobj; | |
6556 | } | |
6557 | ||
6558 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
6559 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6560 | PyObject * _resultobj; | |
6561 | long _result; | |
6562 | wxDC * _arg0; | |
6563 | long _arg1; | |
6564 | PyObject * _argo0 = 0; | |
6565 | char *_kwnames[] = { "self","x", NULL }; | |
6566 | ||
6567 | self = self; | |
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) | |
6569 | return NULL; | |
6570 | if (_argo0) { | |
6571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
6574 | return NULL; | |
6575 | } | |
6576 | } | |
6577 | { | |
0e2ff151 | 6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6579 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
6580 | ||
0e2ff151 | 6581 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6582 | if (PyErr_Occurred()) return NULL; |
6583 | } _resultobj = Py_BuildValue("l",_result); | |
6584 | return _resultobj; | |
6585 | } | |
6586 | ||
6587 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
6588 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6589 | PyObject * _resultobj; | |
6590 | long _result; | |
6591 | wxDC * _arg0; | |
6592 | long _arg1; | |
6593 | PyObject * _argo0 = 0; | |
6594 | char *_kwnames[] = { "self","x", NULL }; | |
6595 | ||
6596 | self = self; | |
6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) | |
6598 | return NULL; | |
6599 | if (_argo0) { | |
6600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
6603 | return NULL; | |
6604 | } | |
6605 | } | |
6606 | { | |
0e2ff151 | 6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6608 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
6609 | ||
0e2ff151 | 6610 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6611 | if (PyErr_Occurred()) return NULL; |
6612 | } _resultobj = Py_BuildValue("l",_result); | |
6613 | return _resultobj; | |
6614 | } | |
6615 | ||
6616 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
6617 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject * _resultobj; | |
6619 | long _result; | |
6620 | wxDC * _arg0; | |
6621 | long _arg1; | |
6622 | PyObject * _argo0 = 0; | |
6623 | char *_kwnames[] = { "self","y", NULL }; | |
6624 | ||
6625 | self = self; | |
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) | |
6627 | return NULL; | |
6628 | if (_argo0) { | |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
6632 | return NULL; | |
6633 | } | |
6634 | } | |
6635 | { | |
0e2ff151 | 6636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6637 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
6638 | ||
0e2ff151 | 6639 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6640 | if (PyErr_Occurred()) return NULL; |
6641 | } _resultobj = Py_BuildValue("l",_result); | |
6642 | return _resultobj; | |
6643 | } | |
6644 | ||
6645 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
6646 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6647 | PyObject * _resultobj; | |
6648 | long _result; | |
6649 | wxDC * _arg0; | |
6650 | long _arg1; | |
6651 | PyObject * _argo0 = 0; | |
6652 | char *_kwnames[] = { "self","y", NULL }; | |
6653 | ||
6654 | self = self; | |
6655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) | |
6656 | return NULL; | |
6657 | if (_argo0) { | |
6658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
6661 | return NULL; | |
6662 | } | |
6663 | } | |
6664 | { | |
0e2ff151 | 6665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6666 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
6667 | ||
0e2ff151 | 6668 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6669 | if (PyErr_Occurred()) return NULL; |
6670 | } _resultobj = Py_BuildValue("l",_result); | |
6671 | return _resultobj; | |
6672 | } | |
6673 | ||
6674 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6675 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6676 | PyObject * _resultobj; | |
6677 | wxDC * _arg0; | |
6678 | long _arg1; | |
6679 | long _arg2; | |
6680 | long _arg3; | |
6681 | long _arg4; | |
6682 | long _arg5; | |
6683 | long _arg6; | |
6684 | PyObject * _argo0 = 0; | |
6685 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; | |
6686 | ||
6687 | self = self; | |
6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
6689 | return NULL; | |
6690 | if (_argo0) { | |
6691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
6694 | return NULL; | |
6695 | } | |
6696 | } | |
6697 | { | |
0e2ff151 | 6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6699 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
6700 | ||
0e2ff151 | 6701 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6702 | if (PyErr_Occurred()) return NULL; |
6703 | } Py_INCREF(Py_None); | |
6704 | _resultobj = Py_None; | |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
6708 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) | |
6709 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6710 | PyObject * _resultobj; | |
6711 | wxDC * _arg0; | |
6712 | long _arg1; | |
6713 | long _arg2; | |
6714 | long _arg3; | |
6715 | PyObject * _argo0 = 0; | |
6716 | char *_kwnames[] = { "self","x","y","radius", NULL }; | |
6717 | ||
6718 | self = self; | |
6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
6720 | return NULL; | |
6721 | if (_argo0) { | |
6722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); | |
6725 | return NULL; | |
6726 | } | |
6727 | } | |
6728 | { | |
0e2ff151 | 6729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6730 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
6731 | ||
0e2ff151 | 6732 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6733 | if (PyErr_Occurred()) return NULL; |
6734 | } Py_INCREF(Py_None); | |
6735 | _resultobj = Py_None; | |
6736 | return _resultobj; | |
6737 | } | |
6738 | ||
6739 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6740 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6741 | PyObject * _resultobj; | |
6742 | wxDC * _arg0; | |
6743 | long _arg1; | |
6744 | long _arg2; | |
6745 | long _arg3; | |
6746 | long _arg4; | |
6747 | PyObject * _argo0 = 0; | |
6748 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
6749 | ||
6750 | self = self; | |
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6752 | return NULL; | |
6753 | if (_argo0) { | |
6754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
6757 | return NULL; | |
6758 | } | |
6759 | } | |
6760 | { | |
0e2ff151 | 6761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6762 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
6763 | ||
0e2ff151 | 6764 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6765 | if (PyErr_Occurred()) return NULL; |
6766 | } Py_INCREF(Py_None); | |
6767 | _resultobj = Py_None; | |
6768 | return _resultobj; | |
6769 | } | |
6770 | ||
6771 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6772 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6773 | PyObject * _resultobj; | |
6774 | wxDC * _arg0; | |
6775 | long _arg1; | |
6776 | long _arg2; | |
6777 | long _arg3; | |
6778 | long _arg4; | |
6779 | long _arg5; | |
6780 | long _arg6; | |
6781 | PyObject * _argo0 = 0; | |
6782 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; | |
6783 | ||
6784 | self = self; | |
6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
6786 | return NULL; | |
6787 | if (_argo0) { | |
6788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
6791 | return NULL; | |
6792 | } | |
6793 | } | |
6794 | { | |
0e2ff151 | 6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6796 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
6797 | ||
0e2ff151 | 6798 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6799 | if (PyErr_Occurred()) return NULL; |
6800 | } Py_INCREF(Py_None); | |
6801 | _resultobj = Py_None; | |
6802 | return _resultobj; | |
6803 | } | |
6804 | ||
6805 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
6806 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6807 | PyObject * _resultobj; | |
6808 | wxDC * _arg0; | |
6809 | wxIcon * _arg1; | |
6810 | long _arg2; | |
6811 | long _arg3; | |
6812 | PyObject * _argo0 = 0; | |
6813 | PyObject * _argo1 = 0; | |
6814 | char *_kwnames[] = { "self","icon","x","y", NULL }; | |
6815 | ||
6816 | self = self; | |
6817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
6818 | return NULL; | |
6819 | if (_argo0) { | |
6820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
6823 | return NULL; | |
6824 | } | |
6825 | } | |
6826 | if (_argo1) { | |
6827 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6828 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
6829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
6830 | return NULL; | |
6831 | } | |
6832 | } | |
6833 | { | |
0e2ff151 | 6834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6835 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
6836 | ||
0e2ff151 | 6837 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6838 | if (PyErr_Occurred()) return NULL; |
6839 | } Py_INCREF(Py_None); | |
6840 | _resultobj = Py_None; | |
6841 | return _resultobj; | |
6842 | } | |
6843 | ||
a341e32e RD |
6844 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6845 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6846 | PyObject * _resultobj; | |
6847 | wxDC * _arg0; | |
6848 | wxString * _arg1; | |
6849 | wxRect * _arg2; | |
6850 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6851 | int _arg4 = (int ) -1; | |
6852 | PyObject * _argo0 = 0; | |
6853 | PyObject * _obj1 = 0; | |
6854 | wxRect temp; | |
6855 | PyObject * _obj2 = 0; | |
6856 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
6857 | ||
6858 | self = self; | |
6859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
6860 | return NULL; | |
6861 | if (_argo0) { | |
6862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
6865 | return NULL; | |
6866 | } | |
6867 | } | |
6868 | { | |
6869 | #if PYTHON_API_VERSION >= 1009 | |
6870 | char* tmpPtr; int tmpSize; | |
6871 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6872 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6873 | return NULL; | |
6874 | } | |
6875 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6876 | return NULL; | |
6877 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6878 | #else | |
6879 | if (!PyString_Check(_obj1)) { | |
6880 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6881 | return NULL; | |
6882 | } | |
6883 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6884 | #endif | |
6885 | } | |
6886 | { | |
6887 | _arg2 = &temp; | |
6888 | if (! wxRect_helper(_obj2, &_arg2)) | |
6889 | return NULL; | |
6890 | } | |
6891 | { | |
6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6893 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
6894 | ||
6895 | wxPyEndAllowThreads(__tstate); | |
6896 | if (PyErr_Occurred()) return NULL; | |
6897 | } Py_INCREF(Py_None); | |
6898 | _resultobj = Py_None; | |
6899 | { | |
6900 | if (_obj1) | |
6901 | delete _arg1; | |
6902 | } | |
6903 | return _resultobj; | |
6904 | } | |
6905 | ||
6906 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
6907 | wxRect rv; | |
6908 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
6909 | return rv; | |
6910 | } | |
6911 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6912 | PyObject * _resultobj; | |
6913 | wxRect * _result; | |
6914 | wxDC * _arg0; | |
6915 | wxString * _arg1; | |
6916 | wxBitmap * _arg2; | |
6917 | wxRect * _arg3; | |
6918 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6919 | int _arg5 = (int ) -1; | |
6920 | PyObject * _argo0 = 0; | |
6921 | PyObject * _obj1 = 0; | |
6922 | PyObject * _argo2 = 0; | |
6923 | wxRect temp; | |
6924 | PyObject * _obj3 = 0; | |
6925 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
6926 | char _ptemp[128]; | |
6927 | ||
6928 | self = self; | |
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
6930 | return NULL; | |
6931 | if (_argo0) { | |
6932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
6935 | return NULL; | |
6936 | } | |
6937 | } | |
6938 | { | |
6939 | #if PYTHON_API_VERSION >= 1009 | |
6940 | char* tmpPtr; int tmpSize; | |
6941 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6942 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6943 | return NULL; | |
6944 | } | |
6945 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6946 | return NULL; | |
6947 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6948 | #else | |
6949 | if (!PyString_Check(_obj1)) { | |
6950 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6951 | return NULL; | |
6952 | } | |
6953 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6954 | #endif | |
6955 | } | |
6956 | if (_argo2) { | |
6957 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6958 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
6959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
6960 | return NULL; | |
6961 | } | |
6962 | } | |
6963 | { | |
6964 | _arg3 = &temp; | |
6965 | if (! wxRect_helper(_obj3, &_arg3)) | |
6966 | return NULL; | |
6967 | } | |
6968 | { | |
6969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6970 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); | |
6971 | ||
6972 | wxPyEndAllowThreads(__tstate); | |
6973 | if (PyErr_Occurred()) return NULL; | |
6974 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
6975 | _resultobj = Py_BuildValue("s",_ptemp); | |
6976 | { | |
6977 | if (_obj1) | |
6978 | delete _arg1; | |
6979 | } | |
6980 | return _resultobj; | |
6981 | } | |
6982 | ||
e6056257 RD |
6983 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6984 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6985 | PyObject * _resultobj; | |
6986 | wxDC * _arg0; | |
6987 | long _arg1; | |
6988 | long _arg2; | |
6989 | long _arg3; | |
6990 | long _arg4; | |
6991 | PyObject * _argo0 = 0; | |
6992 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
6993 | ||
6994 | self = self; | |
6995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6996 | return NULL; | |
6997 | if (_argo0) { | |
6998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
7001 | return NULL; | |
7002 | } | |
7003 | } | |
7004 | { | |
0e2ff151 | 7005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7006 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
7007 | ||
0e2ff151 | 7008 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7009 | if (PyErr_Occurred()) return NULL; |
7010 | } Py_INCREF(Py_None); | |
7011 | _resultobj = Py_None; | |
7012 | return _resultobj; | |
7013 | } | |
7014 | ||
7015 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7016 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7017 | PyObject * _resultobj; | |
7018 | wxDC * _arg0; | |
7019 | int _arg1; | |
7020 | wxPoint * _arg2; | |
7021 | long _arg3 = (long ) 0; | |
7022 | long _arg4 = (long ) 0; | |
7023 | PyObject * _argo0 = 0; | |
7024 | int NPOINTS; | |
7025 | PyObject * _obj2 = 0; | |
7026 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; | |
7027 | ||
7028 | self = self; | |
7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) | |
7030 | return NULL; | |
7031 | if (_argo0) { | |
7032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
7035 | return NULL; | |
7036 | } | |
7037 | } | |
7038 | if (_obj2) | |
7039 | { | |
7040 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
7041 | if (_arg2 == NULL) { | |
7042 | return NULL; | |
7043 | } | |
7044 | } | |
7045 | { | |
7046 | _arg1 = NPOINTS; | |
7047 | } | |
7048 | { | |
0e2ff151 | 7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7050 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
7051 | ||
0e2ff151 | 7052 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7053 | if (PyErr_Occurred()) return NULL; |
7054 | } Py_INCREF(Py_None); | |
7055 | _resultobj = Py_None; | |
7056 | { | |
7057 | delete [] _arg2; | |
7058 | } | |
7059 | return _resultobj; | |
7060 | } | |
7061 | ||
7062 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7063 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7064 | PyObject * _resultobj; | |
7065 | wxDC * _arg0; | |
7066 | int _arg1; | |
7067 | wxPoint * _arg2; | |
7068 | long _arg3 = (long ) 0; | |
7069 | long _arg4 = (long ) 0; | |
7070 | int _arg5 = (int ) wxODDEVEN_RULE; | |
7071 | PyObject * _argo0 = 0; | |
7072 | int NPOINTS; | |
7073 | PyObject * _obj2 = 0; | |
7074 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; | |
7075 | ||
7076 | self = self; | |
7077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
7078 | return NULL; | |
7079 | if (_argo0) { | |
7080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
7083 | return NULL; | |
7084 | } | |
7085 | } | |
7086 | if (_obj2) | |
7087 | { | |
7088 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
7089 | if (_arg2 == NULL) { | |
7090 | return NULL; | |
7091 | } | |
7092 | } | |
7093 | { | |
7094 | _arg1 = NPOINTS; | |
7095 | } | |
7096 | { | |
0e2ff151 | 7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7098 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
7099 | ||
0e2ff151 | 7100 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7101 | if (PyErr_Occurred()) return NULL; |
7102 | } Py_INCREF(Py_None); | |
7103 | _resultobj = Py_None; | |
7104 | { | |
7105 | delete [] _arg2; | |
7106 | } | |
7107 | return _resultobj; | |
7108 | } | |
7109 | ||
7110 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
7111 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject * _resultobj; | |
7113 | wxDC * _arg0; | |
7114 | long _arg1; | |
7115 | long _arg2; | |
7116 | PyObject * _argo0 = 0; | |
7117 | char *_kwnames[] = { "self","x","y", NULL }; | |
7118 | ||
7119 | self = self; | |
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7121 | return NULL; | |
7122 | if (_argo0) { | |
7123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
7126 | return NULL; | |
7127 | } | |
7128 | } | |
7129 | { | |
0e2ff151 | 7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7131 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
7132 | ||
0e2ff151 | 7133 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7134 | if (PyErr_Occurred()) return NULL; |
7135 | } Py_INCREF(Py_None); | |
7136 | _resultobj = Py_None; | |
7137 | return _resultobj; | |
7138 | } | |
7139 | ||
7140 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7141 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7142 | PyObject * _resultobj; | |
7143 | wxDC * _arg0; | |
7144 | long _arg1; | |
7145 | long _arg2; | |
7146 | long _arg3; | |
7147 | long _arg4; | |
7148 | PyObject * _argo0 = 0; | |
7149 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
7150 | ||
7151 | self = self; | |
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7153 | return NULL; | |
7154 | if (_argo0) { | |
7155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
7158 | return NULL; | |
7159 | } | |
7160 | } | |
7161 | { | |
0e2ff151 | 7162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7163 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
7164 | ||
0e2ff151 | 7165 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7166 | if (PyErr_Occurred()) return NULL; |
7167 | } Py_INCREF(Py_None); | |
7168 | _resultobj = Py_None; | |
7169 | return _resultobj; | |
7170 | } | |
7171 | ||
7172 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7173 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7174 | PyObject * _resultobj; | |
7175 | wxDC * _arg0; | |
7176 | wxString * _arg1; | |
7177 | wxCoord _arg2; | |
7178 | wxCoord _arg3; | |
7179 | double _arg4; | |
7180 | PyObject * _argo0 = 0; | |
7181 | PyObject * _obj1 = 0; | |
7182 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
7183 | ||
7184 | self = self; | |
7185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
7186 | return NULL; | |
7187 | if (_argo0) { | |
7188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
7191 | return NULL; | |
7192 | } | |
7193 | } | |
7194 | { | |
7195 | #if PYTHON_API_VERSION >= 1009 | |
7196 | char* tmpPtr; int tmpSize; | |
7197 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7199 | return NULL; | |
7200 | } | |
7201 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7202 | return NULL; | |
7203 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7204 | #else | |
7205 | if (!PyString_Check(_obj1)) { | |
7206 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7207 | return NULL; | |
7208 | } | |
7209 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7210 | #endif | |
7211 | } | |
7212 | { | |
0e2ff151 | 7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7214 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
7215 | ||
0e2ff151 | 7216 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7217 | if (PyErr_Occurred()) return NULL; |
7218 | } Py_INCREF(Py_None); | |
7219 | _resultobj = Py_None; | |
7220 | { | |
7221 | if (_obj1) | |
7222 | delete _arg1; | |
7223 | } | |
7224 | return _resultobj; | |
7225 | } | |
7226 | ||
7227 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7228 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7229 | PyObject * _resultobj; | |
7230 | wxDC * _arg0; | |
7231 | long _arg1; | |
7232 | long _arg2; | |
7233 | long _arg3; | |
7234 | long _arg4; | |
7235 | long _arg5 = (long ) 20; | |
7236 | PyObject * _argo0 = 0; | |
7237 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; | |
7238 | ||
7239 | self = self; | |
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
7241 | return NULL; | |
7242 | if (_argo0) { | |
7243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
7246 | return NULL; | |
7247 | } | |
7248 | } | |
7249 | { | |
0e2ff151 | 7250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7251 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
7252 | ||
0e2ff151 | 7253 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7254 | if (PyErr_Occurred()) return NULL; |
7255 | } Py_INCREF(Py_None); | |
7256 | _resultobj = Py_None; | |
7257 | return _resultobj; | |
7258 | } | |
7259 | ||
7260 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
7261 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7262 | PyObject * _resultobj; | |
7263 | wxDC * _arg0; | |
7264 | int _arg1; | |
7265 | wxPoint * _arg2; | |
7266 | PyObject * _argo0 = 0; | |
7267 | int NPOINTS; | |
7268 | PyObject * _obj2 = 0; | |
7269 | char *_kwnames[] = { "self","points", NULL }; | |
7270 | ||
7271 | self = self; | |
7272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) | |
7273 | return NULL; | |
7274 | if (_argo0) { | |
7275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
7278 | return NULL; | |
7279 | } | |
7280 | } | |
7281 | if (_obj2) | |
7282 | { | |
7283 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
7284 | if (_arg2 == NULL) { | |
7285 | return NULL; | |
7286 | } | |
7287 | } | |
7288 | { | |
7289 | _arg1 = NPOINTS; | |
7290 | } | |
7291 | { | |
0e2ff151 | 7292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7293 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
7294 | ||
0e2ff151 | 7295 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7296 | if (PyErr_Occurred()) return NULL; |
7297 | } Py_INCREF(Py_None); | |
7298 | _resultobj = Py_None; | |
7299 | { | |
7300 | delete [] _arg2; | |
7301 | } | |
7302 | return _resultobj; | |
7303 | } | |
7304 | ||
7305 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
7306 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7307 | PyObject * _resultobj; | |
7308 | wxDC * _arg0; | |
7309 | wxString * _arg1; | |
7310 | long _arg2; | |
7311 | long _arg3; | |
7312 | PyObject * _argo0 = 0; | |
7313 | PyObject * _obj1 = 0; | |
7314 | char *_kwnames[] = { "self","text","x","y", NULL }; | |
7315 | ||
7316 | self = self; | |
7317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
7318 | return NULL; | |
7319 | if (_argo0) { | |
7320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); | |
7323 | return NULL; | |
7324 | } | |
7325 | } | |
7326 | { | |
7327 | #if PYTHON_API_VERSION >= 1009 | |
7328 | char* tmpPtr; int tmpSize; | |
7329 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7330 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7331 | return NULL; | |
7332 | } | |
7333 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7334 | return NULL; | |
7335 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7336 | #else | |
7337 | if (!PyString_Check(_obj1)) { | |
7338 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7339 | return NULL; | |
7340 | } | |
7341 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7342 | #endif | |
7343 | } | |
7344 | { | |
0e2ff151 | 7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7346 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
7347 | ||
0e2ff151 | 7348 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7349 | if (PyErr_Occurred()) return NULL; |
7350 | } Py_INCREF(Py_None); | |
7351 | _resultobj = Py_None; | |
7352 | { | |
7353 | if (_obj1) | |
7354 | delete _arg1; | |
7355 | } | |
7356 | return _resultobj; | |
7357 | } | |
7358 | ||
7359 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
7360 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject * _resultobj; | |
7362 | wxDC * _arg0; | |
7363 | PyObject * _argo0 = 0; | |
7364 | char *_kwnames[] = { "self", NULL }; | |
7365 | ||
7366 | self = self; | |
7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) | |
7368 | return NULL; | |
7369 | if (_argo0) { | |
7370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
7373 | return NULL; | |
7374 | } | |
7375 | } | |
7376 | { | |
0e2ff151 | 7377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7378 | wxDC_EndDoc(_arg0); |
7379 | ||
0e2ff151 | 7380 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7381 | if (PyErr_Occurred()) return NULL; |
7382 | } Py_INCREF(Py_None); | |
7383 | _resultobj = Py_None; | |
7384 | return _resultobj; | |
7385 | } | |
7386 | ||
7387 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
7388 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7389 | PyObject * _resultobj; | |
7390 | wxDC * _arg0; | |
7391 | PyObject * _argo0 = 0; | |
7392 | char *_kwnames[] = { "self", NULL }; | |
7393 | ||
7394 | self = self; | |
7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) | |
7396 | return NULL; | |
7397 | if (_argo0) { | |
7398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
7401 | return NULL; | |
7402 | } | |
7403 | } | |
7404 | { | |
0e2ff151 | 7405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7406 | wxDC_EndDrawing(_arg0); |
7407 | ||
0e2ff151 | 7408 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7409 | if (PyErr_Occurred()) return NULL; |
7410 | } Py_INCREF(Py_None); | |
7411 | _resultobj = Py_None; | |
7412 | return _resultobj; | |
7413 | } | |
7414 | ||
7415 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
7416 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7417 | PyObject * _resultobj; | |
7418 | wxDC * _arg0; | |
7419 | PyObject * _argo0 = 0; | |
7420 | char *_kwnames[] = { "self", NULL }; | |
7421 | ||
7422 | self = self; | |
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) | |
7424 | return NULL; | |
7425 | if (_argo0) { | |
7426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
7429 | return NULL; | |
7430 | } | |
7431 | } | |
7432 | { | |
0e2ff151 | 7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7434 | wxDC_EndPage(_arg0); |
7435 | ||
0e2ff151 | 7436 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7437 | if (PyErr_Occurred()) return NULL; |
7438 | } Py_INCREF(Py_None); | |
7439 | _resultobj = Py_None; | |
7440 | return _resultobj; | |
7441 | } | |
7442 | ||
7443 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7444 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject * _resultobj; | |
7446 | wxDC * _arg0; | |
7447 | long _arg1; | |
7448 | long _arg2; | |
7449 | wxColour * _arg3; | |
7450 | int _arg4 = (int ) wxFLOOD_SURFACE; | |
7451 | PyObject * _argo0 = 0; | |
7452 | wxColour temp; | |
7453 | PyObject * _obj3 = 0; | |
7454 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; | |
7455 | ||
7456 | self = self; | |
7457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
7458 | return NULL; | |
7459 | if (_argo0) { | |
7460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
7463 | return NULL; | |
7464 | } | |
7465 | } | |
7466 | { | |
7467 | _arg3 = &temp; | |
7468 | if (! wxColour_helper(_obj3, &_arg3)) | |
7469 | return NULL; | |
7470 | } | |
7471 | { | |
0e2ff151 | 7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7473 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
7474 | ||
0e2ff151 | 7475 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7476 | if (PyErr_Occurred()) return NULL; |
7477 | } Py_INCREF(Py_None); | |
7478 | _resultobj = Py_None; | |
7479 | return _resultobj; | |
7480 | } | |
7481 | ||
7482 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
7483 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7484 | PyObject * _resultobj; | |
7485 | wxBrush * _result; | |
7486 | wxDC * _arg0; | |
7487 | PyObject * _argo0 = 0; | |
7488 | char *_kwnames[] = { "self", NULL }; | |
7489 | char _ptemp[128]; | |
7490 | ||
7491 | self = self; | |
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) | |
7493 | return NULL; | |
7494 | if (_argo0) { | |
7495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
7498 | return NULL; | |
7499 | } | |
7500 | } | |
7501 | { | |
0e2ff151 | 7502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 7503 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
e6056257 | 7504 | |
0e2ff151 | 7505 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7506 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7507 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7508 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7509 | return _resultobj; |
7510 | } | |
7511 | ||
7512 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
7513 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7514 | PyObject * _resultobj; | |
7515 | wxBrush * _result; | |
7516 | wxDC * _arg0; | |
7517 | PyObject * _argo0 = 0; | |
7518 | char *_kwnames[] = { "self", NULL }; | |
7519 | char _ptemp[128]; | |
7520 | ||
7521 | self = self; | |
7522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) | |
7523 | return NULL; | |
7524 | if (_argo0) { | |
7525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
7528 | return NULL; | |
7529 | } | |
7530 | } | |
7531 | { | |
0e2ff151 | 7532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 7533 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
e6056257 | 7534 | |
0e2ff151 | 7535 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7536 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7538 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7539 | return _resultobj; |
7540 | } | |
7541 | ||
7542 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
7543 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7544 | PyObject * _resultobj; | |
7545 | long _result; | |
7546 | wxDC * _arg0; | |
7547 | PyObject * _argo0 = 0; | |
7548 | char *_kwnames[] = { "self", NULL }; | |
7549 | ||
7550 | self = self; | |
7551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) | |
7552 | return NULL; | |
7553 | if (_argo0) { | |
7554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
7557 | return NULL; | |
7558 | } | |
7559 | } | |
7560 | { | |
0e2ff151 | 7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7562 | _result = (long )wxDC_GetCharHeight(_arg0); |
7563 | ||
0e2ff151 | 7564 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7565 | if (PyErr_Occurred()) return NULL; |
7566 | } _resultobj = Py_BuildValue("l",_result); | |
7567 | return _resultobj; | |
7568 | } | |
7569 | ||
7570 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
7571 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7572 | PyObject * _resultobj; | |
7573 | long _result; | |
7574 | wxDC * _arg0; | |
7575 | PyObject * _argo0 = 0; | |
7576 | char *_kwnames[] = { "self", NULL }; | |
7577 | ||
7578 | self = self; | |
7579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) | |
7580 | return NULL; | |
7581 | if (_argo0) { | |
7582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
7585 | return NULL; | |
7586 | } | |
7587 | } | |
7588 | { | |
0e2ff151 | 7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7590 | _result = (long )wxDC_GetCharWidth(_arg0); |
7591 | ||
0e2ff151 | 7592 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7593 | if (PyErr_Occurred()) return NULL; |
7594 | } _resultobj = Py_BuildValue("l",_result); | |
7595 | return _resultobj; | |
7596 | } | |
7597 | ||
7598 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7599 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7600 | PyObject * _resultobj; | |
7601 | wxDC * _arg0; | |
7602 | long * _arg1; | |
7603 | long temp; | |
7604 | long * _arg2; | |
7605 | long temp0; | |
7606 | long * _arg3; | |
7607 | long temp1; | |
7608 | long * _arg4; | |
7609 | long temp2; | |
7610 | PyObject * _argo0 = 0; | |
7611 | char *_kwnames[] = { "self", NULL }; | |
7612 | ||
7613 | self = self; | |
7614 | { | |
7615 | _arg1 = &temp; | |
7616 | } | |
7617 | { | |
7618 | _arg2 = &temp0; | |
7619 | } | |
7620 | { | |
7621 | _arg3 = &temp1; | |
7622 | } | |
7623 | { | |
7624 | _arg4 = &temp2; | |
7625 | } | |
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) | |
7627 | return NULL; | |
7628 | if (_argo0) { | |
7629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
7632 | return NULL; | |
7633 | } | |
7634 | } | |
7635 | { | |
0e2ff151 | 7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7637 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
7638 | ||
0e2ff151 | 7639 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7640 | if (PyErr_Occurred()) return NULL; |
7641 | } Py_INCREF(Py_None); | |
7642 | _resultobj = Py_None; | |
7643 | { | |
7644 | PyObject *o; | |
7645 | o = PyInt_FromLong((long) (*_arg1)); | |
7646 | _resultobj = t_output_helper(_resultobj, o); | |
7647 | } | |
7648 | { | |
7649 | PyObject *o; | |
7650 | o = PyInt_FromLong((long) (*_arg2)); | |
7651 | _resultobj = t_output_helper(_resultobj, o); | |
7652 | } | |
7653 | { | |
7654 | PyObject *o; | |
7655 | o = PyInt_FromLong((long) (*_arg3)); | |
7656 | _resultobj = t_output_helper(_resultobj, o); | |
7657 | } | |
7658 | { | |
7659 | PyObject *o; | |
7660 | o = PyInt_FromLong((long) (*_arg4)); | |
7661 | _resultobj = t_output_helper(_resultobj, o); | |
7662 | } | |
7663 | return _resultobj; | |
7664 | } | |
7665 | ||
7666 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
7667 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7668 | PyObject * _resultobj; | |
7669 | wxFont * _result; | |
7670 | wxDC * _arg0; | |
7671 | PyObject * _argo0 = 0; | |
7672 | char *_kwnames[] = { "self", NULL }; | |
7673 | char _ptemp[128]; | |
7674 | ||
7675 | self = self; | |
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) | |
7677 | return NULL; | |
7678 | if (_argo0) { | |
7679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
7682 | return NULL; | |
7683 | } | |
7684 | } | |
7685 | { | |
0e2ff151 | 7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 7687 | _result = new wxFont (wxDC_GetFont(_arg0)); |
e6056257 | 7688 | |
0e2ff151 | 7689 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7690 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7691 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
7692 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7693 | return _resultobj; |
7694 | } | |
7695 | ||
7696 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
7697 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7698 | PyObject * _resultobj; | |
7699 | int _result; | |
7700 | wxDC * _arg0; | |
7701 | PyObject * _argo0 = 0; | |
7702 | char *_kwnames[] = { "self", NULL }; | |
7703 | ||
7704 | self = self; | |
7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) | |
7706 | return NULL; | |
7707 | if (_argo0) { | |
7708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
7711 | return NULL; | |
7712 | } | |
7713 | } | |
7714 | { | |
0e2ff151 | 7715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7716 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
7717 | ||
0e2ff151 | 7718 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7719 | if (PyErr_Occurred()) return NULL; |
7720 | } _resultobj = Py_BuildValue("i",_result); | |
7721 | return _resultobj; | |
7722 | } | |
7723 | ||
7724 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) | |
7725 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7726 | PyObject * _resultobj; | |
7727 | wxDC * _arg0; | |
7728 | double * _arg1; | |
7729 | double temp; | |
7730 | double * _arg2; | |
7731 | double temp0; | |
7732 | PyObject * _argo0 = 0; | |
7733 | char *_kwnames[] = { "self", NULL }; | |
7734 | ||
7735 | self = self; | |
7736 | { | |
7737 | _arg1 = &temp; | |
7738 | } | |
7739 | { | |
7740 | _arg2 = &temp0; | |
7741 | } | |
7742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
7743 | return NULL; | |
7744 | if (_argo0) { | |
7745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
7748 | return NULL; | |
7749 | } | |
7750 | } | |
7751 | { | |
0e2ff151 | 7752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7753 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
7754 | ||
0e2ff151 | 7755 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7756 | if (PyErr_Occurred()) return NULL; |
7757 | } Py_INCREF(Py_None); | |
7758 | _resultobj = Py_None; | |
7759 | { | |
7760 | PyObject *o; | |
7761 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7762 | _resultobj = t_output_helper(_resultobj, o); | |
7763 | } | |
7764 | { | |
7765 | PyObject *o; | |
7766 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7767 | _resultobj = t_output_helper(_resultobj, o); | |
7768 | } | |
7769 | return _resultobj; | |
7770 | } | |
7771 | ||
7772 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
7773 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject * _resultobj; | |
7775 | int _result; | |
7776 | wxDC * _arg0; | |
7777 | PyObject * _argo0 = 0; | |
7778 | char *_kwnames[] = { "self", NULL }; | |
7779 | ||
7780 | self = self; | |
7781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) | |
7782 | return NULL; | |
7783 | if (_argo0) { | |
7784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
7787 | return NULL; | |
7788 | } | |
7789 | } | |
7790 | { | |
0e2ff151 | 7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7792 | _result = (int )wxDC_GetMapMode(_arg0); |
7793 | ||
0e2ff151 | 7794 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7795 | if (PyErr_Occurred()) return NULL; |
7796 | } _resultobj = Py_BuildValue("i",_result); | |
7797 | return _resultobj; | |
7798 | } | |
7799 | ||
7800 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
7801 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject * _resultobj; | |
7803 | bool _result; | |
7804 | wxDC * _arg0; | |
7805 | PyObject * _argo0 = 0; | |
7806 | char *_kwnames[] = { "self", NULL }; | |
7807 | ||
7808 | self = self; | |
7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) | |
7810 | return NULL; | |
7811 | if (_argo0) { | |
7812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
7815 | return NULL; | |
7816 | } | |
7817 | } | |
7818 | { | |
0e2ff151 | 7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7820 | _result = (bool )wxDC_GetOptimization(_arg0); |
7821 | ||
0e2ff151 | 7822 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7823 | if (PyErr_Occurred()) return NULL; |
7824 | } _resultobj = Py_BuildValue("i",_result); | |
7825 | return _resultobj; | |
7826 | } | |
7827 | ||
7828 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
7829 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7830 | PyObject * _resultobj; | |
7831 | wxPen * _result; | |
7832 | wxDC * _arg0; | |
7833 | PyObject * _argo0 = 0; | |
7834 | char *_kwnames[] = { "self", NULL }; | |
7835 | char _ptemp[128]; | |
7836 | ||
7837 | self = self; | |
7838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) | |
7839 | return NULL; | |
7840 | if (_argo0) { | |
7841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
7844 | return NULL; | |
7845 | } | |
7846 | } | |
7847 | { | |
0e2ff151 | 7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 7849 | _result = new wxPen (wxDC_GetPen(_arg0)); |
e6056257 | 7850 | |
0e2ff151 | 7851 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7852 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7853 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
7854 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7855 | return _resultobj; |
7856 | } | |
7857 | ||
7858 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
7859 | wxColour* wc = new wxColour(); | |
7860 | self->GetPixel(x, y, wc); | |
7861 | return wc; | |
7862 | } | |
7863 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7864 | PyObject * _resultobj; | |
7865 | wxColour * _result; | |
7866 | wxDC * _arg0; | |
7867 | long _arg1; | |
7868 | long _arg2; | |
7869 | PyObject * _argo0 = 0; | |
7870 | char *_kwnames[] = { "self","x","y", NULL }; | |
7871 | char _ptemp[128]; | |
7872 | ||
7873 | self = self; | |
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7875 | return NULL; | |
7876 | if (_argo0) { | |
7877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
7880 | return NULL; | |
7881 | } | |
7882 | } | |
7883 | { | |
0e2ff151 | 7884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7885 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
7886 | ||
0e2ff151 | 7887 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7888 | if (PyErr_Occurred()) return NULL; |
7889 | } if (_result) { | |
7890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7891 | _resultobj = Py_BuildValue("s",_ptemp); | |
7892 | } else { | |
7893 | Py_INCREF(Py_None); | |
7894 | _resultobj = Py_None; | |
7895 | } | |
7896 | return _resultobj; | |
7897 | } | |
7898 | ||
7899 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
7900 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7901 | PyObject * _resultobj; | |
7902 | wxDC * _arg0; | |
7903 | int * _arg1; | |
7904 | int temp; | |
7905 | int * _arg2; | |
7906 | int temp0; | |
7907 | PyObject * _argo0 = 0; | |
7908 | char *_kwnames[] = { "self", NULL }; | |
7909 | ||
7910 | self = self; | |
7911 | { | |
7912 | _arg1 = &temp; | |
7913 | } | |
7914 | { | |
7915 | _arg2 = &temp0; | |
7916 | } | |
7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) | |
7918 | return NULL; | |
7919 | if (_argo0) { | |
7920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); | |
7923 | return NULL; | |
7924 | } | |
7925 | } | |
7926 | { | |
0e2ff151 | 7927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7928 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
7929 | ||
0e2ff151 | 7930 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7931 | if (PyErr_Occurred()) return NULL; |
7932 | } Py_INCREF(Py_None); | |
7933 | _resultobj = Py_None; | |
7934 | { | |
7935 | PyObject *o; | |
7936 | o = PyInt_FromLong((long) (*_arg1)); | |
7937 | _resultobj = t_output_helper(_resultobj, o); | |
7938 | } | |
7939 | { | |
7940 | PyObject *o; | |
7941 | o = PyInt_FromLong((long) (*_arg2)); | |
7942 | _resultobj = t_output_helper(_resultobj, o); | |
7943 | } | |
7944 | return _resultobj; | |
7945 | } | |
7946 | ||
7947 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) | |
7948 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7949 | PyObject * _resultobj; | |
7950 | wxSize * _result; | |
7951 | wxDC * _arg0; | |
7952 | PyObject * _argo0 = 0; | |
7953 | char *_kwnames[] = { "self", NULL }; | |
7954 | char _ptemp[128]; | |
7955 | ||
7956 | self = self; | |
7957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) | |
7958 | return NULL; | |
7959 | if (_argo0) { | |
7960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); | |
7963 | return NULL; | |
7964 | } | |
7965 | } | |
7966 | { | |
0e2ff151 | 7967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7968 | _result = new wxSize (wxDC_GetSize(_arg0)); |
7969 | ||
0e2ff151 | 7970 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7971 | if (PyErr_Occurred()) return NULL; |
7972 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7973 | _resultobj = Py_BuildValue("s",_ptemp); | |
7974 | return _resultobj; | |
7975 | } | |
7976 | ||
7977 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) | |
7978 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7979 | PyObject * _resultobj; | |
7980 | wxSize * _result; | |
7981 | wxDC * _arg0; | |
7982 | PyObject * _argo0 = 0; | |
7983 | char *_kwnames[] = { "self", NULL }; | |
7984 | char _ptemp[128]; | |
7985 | ||
7986 | self = self; | |
7987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7988 | return NULL; | |
7989 | if (_argo0) { | |
7990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7993 | return NULL; | |
7994 | } | |
7995 | } | |
7996 | { | |
0e2ff151 | 7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7998 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
7999 | ||
0e2ff151 | 8000 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8001 | if (PyErr_Occurred()) return NULL; |
8002 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
8003 | _resultobj = Py_BuildValue("s",_ptemp); | |
8004 | return _resultobj; | |
8005 | } | |
8006 | ||
8007 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
8008 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8009 | PyObject * _resultobj; | |
8010 | wxColour * _result; | |
8011 | wxDC * _arg0; | |
8012 | PyObject * _argo0 = 0; | |
8013 | char *_kwnames[] = { "self", NULL }; | |
8014 | char _ptemp[128]; | |
8015 | ||
8016 | self = self; | |
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) | |
8018 | return NULL; | |
8019 | if (_argo0) { | |
8020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
8023 | return NULL; | |
8024 | } | |
8025 | } | |
8026 | { | |
0e2ff151 | 8027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8028 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
8029 | ||
0e2ff151 | 8030 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8031 | if (PyErr_Occurred()) return NULL; |
8032 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8033 | _resultobj = Py_BuildValue("s",_ptemp); | |
8034 | return _resultobj; | |
8035 | } | |
8036 | ||
8037 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
8038 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject * _resultobj; | |
8040 | wxDC * _arg0; | |
8041 | wxString * _arg1; | |
8042 | long * _arg2; | |
8043 | long temp; | |
8044 | long * _arg3; | |
8045 | long temp0; | |
8046 | PyObject * _argo0 = 0; | |
8047 | PyObject * _obj1 = 0; | |
8048 | char *_kwnames[] = { "self","string", NULL }; | |
8049 | ||
8050 | self = self; | |
8051 | { | |
8052 | _arg2 = &temp; | |
8053 | } | |
8054 | { | |
8055 | _arg3 = &temp0; | |
8056 | } | |
8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
8058 | return NULL; | |
8059 | if (_argo0) { | |
8060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); | |
8063 | return NULL; | |
8064 | } | |
8065 | } | |
8066 | { | |
8067 | #if PYTHON_API_VERSION >= 1009 | |
8068 | char* tmpPtr; int tmpSize; | |
8069 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8070 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8071 | return NULL; | |
8072 | } | |
8073 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8074 | return NULL; | |
8075 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8076 | #else | |
8077 | if (!PyString_Check(_obj1)) { | |
8078 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8079 | return NULL; | |
8080 | } | |
8081 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8082 | #endif | |
8083 | } | |
8084 | { | |
0e2ff151 | 8085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8086 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
8087 | ||
0e2ff151 | 8088 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8089 | if (PyErr_Occurred()) return NULL; |
8090 | } Py_INCREF(Py_None); | |
8091 | _resultobj = Py_None; | |
8092 | { | |
8093 | PyObject *o; | |
8094 | o = PyInt_FromLong((long) (*_arg2)); | |
8095 | _resultobj = t_output_helper(_resultobj, o); | |
8096 | } | |
8097 | { | |
8098 | PyObject *o; | |
8099 | o = PyInt_FromLong((long) (*_arg3)); | |
8100 | _resultobj = t_output_helper(_resultobj, o); | |
8101 | } | |
8102 | { | |
8103 | if (_obj1) | |
8104 | delete _arg1; | |
8105 | } | |
8106 | return _resultobj; | |
8107 | } | |
8108 | ||
8109 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8110 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8111 | PyObject * _resultobj; | |
8112 | wxDC * _arg0; | |
8113 | wxString * _arg1; | |
8114 | long * _arg2; | |
8115 | long temp; | |
8116 | long * _arg3; | |
8117 | long temp0; | |
8118 | long * _arg4; | |
8119 | long temp1; | |
8120 | long * _arg5; | |
8121 | long temp2; | |
8122 | wxFont * _arg6 = (wxFont *) NULL; | |
8123 | PyObject * _argo0 = 0; | |
8124 | PyObject * _obj1 = 0; | |
8125 | PyObject * _argo6 = 0; | |
8126 | char *_kwnames[] = { "self","string","font", NULL }; | |
8127 | ||
8128 | self = self; | |
8129 | { | |
8130 | _arg2 = &temp; | |
8131 | } | |
8132 | { | |
8133 | _arg3 = &temp0; | |
8134 | } | |
8135 | { | |
8136 | _arg4 = &temp1; | |
8137 | } | |
8138 | { | |
8139 | _arg5 = &temp2; | |
8140 | } | |
8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
8142 | return NULL; | |
8143 | if (_argo0) { | |
8144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); | |
8147 | return NULL; | |
8148 | } | |
8149 | } | |
8150 | { | |
8151 | #if PYTHON_API_VERSION >= 1009 | |
8152 | char* tmpPtr; int tmpSize; | |
8153 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8154 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8155 | return NULL; | |
8156 | } | |
8157 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8158 | return NULL; | |
8159 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8160 | #else | |
8161 | if (!PyString_Check(_obj1)) { | |
8162 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8163 | return NULL; | |
8164 | } | |
8165 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8166 | #endif | |
8167 | } | |
8168 | if (_argo6) { | |
8169 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8170 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
8171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); | |
8172 | return NULL; | |
8173 | } | |
8174 | } | |
8175 | { | |
0e2ff151 | 8176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8177 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
8178 | ||
0e2ff151 | 8179 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8180 | if (PyErr_Occurred()) return NULL; |
8181 | } Py_INCREF(Py_None); | |
8182 | _resultobj = Py_None; | |
8183 | { | |
8184 | PyObject *o; | |
8185 | o = PyInt_FromLong((long) (*_arg2)); | |
8186 | _resultobj = t_output_helper(_resultobj, o); | |
8187 | } | |
8188 | { | |
8189 | PyObject *o; | |
8190 | o = PyInt_FromLong((long) (*_arg3)); | |
8191 | _resultobj = t_output_helper(_resultobj, o); | |
8192 | } | |
8193 | { | |
8194 | PyObject *o; | |
8195 | o = PyInt_FromLong((long) (*_arg4)); | |
8196 | _resultobj = t_output_helper(_resultobj, o); | |
8197 | } | |
8198 | { | |
8199 | PyObject *o; | |
8200 | o = PyInt_FromLong((long) (*_arg5)); | |
8201 | _resultobj = t_output_helper(_resultobj, o); | |
8202 | } | |
8203 | { | |
8204 | if (_obj1) | |
8205 | delete _arg1; | |
8206 | } | |
8207 | return _resultobj; | |
8208 | } | |
8209 | ||
8210 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
8211 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8212 | PyObject * _resultobj; | |
8213 | wxColour * _result; | |
8214 | wxDC * _arg0; | |
8215 | PyObject * _argo0 = 0; | |
8216 | char *_kwnames[] = { "self", NULL }; | |
8217 | char _ptemp[128]; | |
8218 | ||
8219 | self = self; | |
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
8221 | return NULL; | |
8222 | if (_argo0) { | |
8223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
8226 | return NULL; | |
8227 | } | |
8228 | } | |
8229 | { | |
0e2ff151 | 8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8231 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
8232 | ||
0e2ff151 | 8233 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8234 | if (PyErr_Occurred()) return NULL; |
8235 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8236 | _resultobj = Py_BuildValue("s",_ptemp); | |
8237 | return _resultobj; | |
8238 | } | |
8239 | ||
8240 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
8241 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject * _resultobj; | |
8243 | wxDC * _arg0; | |
8244 | double * _arg1; | |
8245 | double temp; | |
8246 | double * _arg2; | |
8247 | double temp0; | |
8248 | PyObject * _argo0 = 0; | |
8249 | char *_kwnames[] = { "self", NULL }; | |
8250 | ||
8251 | self = self; | |
8252 | { | |
8253 | _arg1 = &temp; | |
8254 | } | |
8255 | { | |
8256 | _arg2 = &temp0; | |
8257 | } | |
8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
8259 | return NULL; | |
8260 | if (_argo0) { | |
8261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
8264 | return NULL; | |
8265 | } | |
8266 | } | |
8267 | { | |
0e2ff151 | 8268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8269 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
8270 | ||
0e2ff151 | 8271 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8272 | if (PyErr_Occurred()) return NULL; |
8273 | } Py_INCREF(Py_None); | |
8274 | _resultobj = Py_None; | |
8275 | { | |
8276 | PyObject *o; | |
8277 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8278 | _resultobj = t_output_helper(_resultobj, o); | |
8279 | } | |
8280 | { | |
8281 | PyObject *o; | |
8282 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8283 | _resultobj = t_output_helper(_resultobj, o); | |
8284 | } | |
8285 | return _resultobj; | |
8286 | } | |
8287 | ||
8288 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
8289 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8290 | PyObject * _resultobj; | |
8291 | long _result; | |
8292 | wxDC * _arg0; | |
8293 | long _arg1; | |
8294 | PyObject * _argo0 = 0; | |
8295 | char *_kwnames[] = { "self","x", NULL }; | |
8296 | ||
8297 | self = self; | |
8298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) | |
8299 | return NULL; | |
8300 | if (_argo0) { | |
8301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
8304 | return NULL; | |
8305 | } | |
8306 | } | |
8307 | { | |
0e2ff151 | 8308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8309 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
8310 | ||
0e2ff151 | 8311 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8312 | if (PyErr_Occurred()) return NULL; |
8313 | } _resultobj = Py_BuildValue("l",_result); | |
8314 | return _resultobj; | |
8315 | } | |
8316 | ||
8317 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
8318 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8319 | PyObject * _resultobj; | |
8320 | long _result; | |
8321 | wxDC * _arg0; | |
8322 | long _arg1; | |
8323 | PyObject * _argo0 = 0; | |
8324 | char *_kwnames[] = { "self","x", NULL }; | |
8325 | ||
8326 | self = self; | |
8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) | |
8328 | return NULL; | |
8329 | if (_argo0) { | |
8330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
8333 | return NULL; | |
8334 | } | |
8335 | } | |
8336 | { | |
0e2ff151 | 8337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8338 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
8339 | ||
0e2ff151 | 8340 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8341 | if (PyErr_Occurred()) return NULL; |
8342 | } _resultobj = Py_BuildValue("l",_result); | |
8343 | return _resultobj; | |
8344 | } | |
8345 | ||
8346 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
8347 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8348 | PyObject * _resultobj; | |
8349 | long _result; | |
8350 | wxDC * _arg0; | |
8351 | long _arg1; | |
8352 | PyObject * _argo0 = 0; | |
8353 | char *_kwnames[] = { "self","y", NULL }; | |
8354 | ||
8355 | self = self; | |
8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) | |
8357 | return NULL; | |
8358 | if (_argo0) { | |
8359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); | |
8362 | return NULL; | |
8363 | } | |
8364 | } | |
8365 | { | |
0e2ff151 | 8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8367 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
8368 | ||
0e2ff151 | 8369 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8370 | if (PyErr_Occurred()) return NULL; |
8371 | } _resultobj = Py_BuildValue("l",_result); | |
8372 | return _resultobj; | |
8373 | } | |
8374 | ||
8375 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
8376 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8377 | PyObject * _resultobj; | |
8378 | long _result; | |
8379 | wxDC * _arg0; | |
8380 | long _arg1; | |
8381 | PyObject * _argo0 = 0; | |
8382 | char *_kwnames[] = { "self","y", NULL }; | |
8383 | ||
8384 | self = self; | |
8385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) | |
8386 | return NULL; | |
8387 | if (_argo0) { | |
8388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
8391 | return NULL; | |
8392 | } | |
8393 | } | |
8394 | { | |
0e2ff151 | 8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8396 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
8397 | ||
0e2ff151 | 8398 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8399 | if (PyErr_Occurred()) return NULL; |
8400 | } _resultobj = Py_BuildValue("l",_result); | |
8401 | return _resultobj; | |
8402 | } | |
8403 | ||
8404 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
8405 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8406 | PyObject * _resultobj; | |
8407 | long _result; | |
8408 | wxDC * _arg0; | |
8409 | PyObject * _argo0 = 0; | |
8410 | char *_kwnames[] = { "self", NULL }; | |
8411 | ||
8412 | self = self; | |
8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) | |
8414 | return NULL; | |
8415 | if (_argo0) { | |
8416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
8419 | return NULL; | |
8420 | } | |
8421 | } | |
8422 | { | |
0e2ff151 | 8423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8424 | _result = (long )wxDC_MaxX(_arg0); |
8425 | ||
0e2ff151 | 8426 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8427 | if (PyErr_Occurred()) return NULL; |
8428 | } _resultobj = Py_BuildValue("l",_result); | |
8429 | return _resultobj; | |
8430 | } | |
8431 | ||
8432 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
8433 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8434 | PyObject * _resultobj; | |
8435 | long _result; | |
8436 | wxDC * _arg0; | |
8437 | PyObject * _argo0 = 0; | |
8438 | char *_kwnames[] = { "self", NULL }; | |
8439 | ||
8440 | self = self; | |
8441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) | |
8442 | return NULL; | |
8443 | if (_argo0) { | |
8444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
8447 | return NULL; | |
8448 | } | |
8449 | } | |
8450 | { | |
0e2ff151 | 8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8452 | _result = (long )wxDC_MaxY(_arg0); |
8453 | ||
0e2ff151 | 8454 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8455 | if (PyErr_Occurred()) return NULL; |
8456 | } _resultobj = Py_BuildValue("l",_result); | |
8457 | return _resultobj; | |
8458 | } | |
8459 | ||
8460 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
8461 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8462 | PyObject * _resultobj; | |
8463 | long _result; | |
8464 | wxDC * _arg0; | |
8465 | PyObject * _argo0 = 0; | |
8466 | char *_kwnames[] = { "self", NULL }; | |
8467 | ||
8468 | self = self; | |
8469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) | |
8470 | return NULL; | |
8471 | if (_argo0) { | |
8472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
8475 | return NULL; | |
8476 | } | |
8477 | } | |
8478 | { | |
0e2ff151 | 8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8480 | _result = (long )wxDC_MinX(_arg0); |
8481 | ||
0e2ff151 | 8482 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8483 | if (PyErr_Occurred()) return NULL; |
8484 | } _resultobj = Py_BuildValue("l",_result); | |
8485 | return _resultobj; | |
8486 | } | |
8487 | ||
8488 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
8489 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8490 | PyObject * _resultobj; | |
8491 | long _result; | |
8492 | wxDC * _arg0; | |
8493 | PyObject * _argo0 = 0; | |
8494 | char *_kwnames[] = { "self", NULL }; | |
8495 | ||
8496 | self = self; | |
8497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) | |
8498 | return NULL; | |
8499 | if (_argo0) { | |
8500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
8503 | return NULL; | |
8504 | } | |
8505 | } | |
8506 | { | |
0e2ff151 | 8507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8508 | _result = (long )wxDC_MinY(_arg0); |
8509 | ||
0e2ff151 | 8510 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8511 | if (PyErr_Occurred()) return NULL; |
8512 | } _resultobj = Py_BuildValue("l",_result); | |
8513 | return _resultobj; | |
8514 | } | |
8515 | ||
8516 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
8517 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8518 | PyObject * _resultobj; | |
8519 | bool _result; | |
8520 | wxDC * _arg0; | |
8521 | PyObject * _argo0 = 0; | |
8522 | char *_kwnames[] = { "self", NULL }; | |
8523 | ||
8524 | self = self; | |
8525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) | |
8526 | return NULL; | |
8527 | if (_argo0) { | |
8528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
8531 | return NULL; | |
8532 | } | |
8533 | } | |
8534 | { | |
0e2ff151 | 8535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8536 | _result = (bool )wxDC_Ok(_arg0); |
8537 | ||
0e2ff151 | 8538 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8539 | if (PyErr_Occurred()) return NULL; |
8540 | } _resultobj = Py_BuildValue("i",_result); | |
8541 | return _resultobj; | |
8542 | } | |
8543 | ||
8544 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
8545 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8546 | PyObject * _resultobj; | |
8547 | wxDC * _arg0; | |
8548 | long _arg1; | |
8549 | long _arg2; | |
8550 | PyObject * _argo0 = 0; | |
8551 | char *_kwnames[] = { "self","x","y", NULL }; | |
8552 | ||
8553 | self = self; | |
8554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8555 | return NULL; | |
8556 | if (_argo0) { | |
8557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
8560 | return NULL; | |
8561 | } | |
8562 | } | |
8563 | { | |
0e2ff151 | 8564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8565 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
8566 | ||
0e2ff151 | 8567 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8568 | if (PyErr_Occurred()) return NULL; |
8569 | } Py_INCREF(Py_None); | |
8570 | _resultobj = Py_None; | |
8571 | return _resultobj; | |
8572 | } | |
8573 | ||
8574 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
8575 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8576 | PyObject * _resultobj; | |
8577 | wxDC * _arg0; | |
8578 | wxBrush * _arg1; | |
8579 | PyObject * _argo0 = 0; | |
8580 | PyObject * _argo1 = 0; | |
8581 | char *_kwnames[] = { "self","brush", NULL }; | |
8582 | ||
8583 | self = self; | |
8584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) | |
8585 | return NULL; | |
8586 | if (_argo0) { | |
8587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
8590 | return NULL; | |
8591 | } | |
8592 | } | |
8593 | if (_argo1) { | |
8594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
8597 | return NULL; | |
8598 | } | |
8599 | } | |
8600 | { | |
0e2ff151 | 8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8602 | wxDC_SetBackground(_arg0,*_arg1); |
8603 | ||
0e2ff151 | 8604 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8605 | if (PyErr_Occurred()) return NULL; |
8606 | } Py_INCREF(Py_None); | |
8607 | _resultobj = Py_None; | |
8608 | return _resultobj; | |
8609 | } | |
8610 | ||
8611 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
8612 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8613 | PyObject * _resultobj; | |
8614 | wxDC * _arg0; | |
8615 | int _arg1; | |
8616 | PyObject * _argo0 = 0; | |
8617 | char *_kwnames[] = { "self","mode", NULL }; | |
8618 | ||
8619 | self = self; | |
8620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) | |
8621 | return NULL; | |
8622 | if (_argo0) { | |
8623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
8626 | return NULL; | |
8627 | } | |
8628 | } | |
8629 | { | |
0e2ff151 | 8630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8631 | wxDC_SetBackgroundMode(_arg0,_arg1); |
8632 | ||
0e2ff151 | 8633 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8634 | if (PyErr_Occurred()) return NULL; |
8635 | } Py_INCREF(Py_None); | |
8636 | _resultobj = Py_None; | |
8637 | return _resultobj; | |
8638 | } | |
8639 | ||
8640 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8641 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8642 | PyObject * _resultobj; | |
8643 | wxDC * _arg0; | |
8644 | long _arg1; | |
8645 | long _arg2; | |
8646 | long _arg3; | |
8647 | long _arg4; | |
8648 | PyObject * _argo0 = 0; | |
8649 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
8650 | ||
8651 | self = self; | |
8652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
8653 | return NULL; | |
8654 | if (_argo0) { | |
8655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
8658 | return NULL; | |
8659 | } | |
8660 | } | |
8661 | { | |
0e2ff151 | 8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8663 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
8664 | ||
0e2ff151 | 8665 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8666 | if (PyErr_Occurred()) return NULL; |
8667 | } Py_INCREF(Py_None); | |
8668 | _resultobj = Py_None; | |
8669 | return _resultobj; | |
8670 | } | |
8671 | ||
8672 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) | |
8673 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8674 | PyObject * _resultobj; | |
8675 | wxDC * _arg0; | |
8676 | wxRegion * _arg1; | |
8677 | PyObject * _argo0 = 0; | |
8678 | PyObject * _argo1 = 0; | |
8679 | char *_kwnames[] = { "self","region", NULL }; | |
8680 | ||
8681 | self = self; | |
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
8683 | return NULL; | |
8684 | if (_argo0) { | |
8685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
8688 | return NULL; | |
8689 | } | |
8690 | } | |
8691 | if (_argo1) { | |
8692 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8693 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
8694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
8695 | return NULL; | |
8696 | } | |
8697 | } | |
8698 | { | |
0e2ff151 | 8699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8700 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
8701 | ||
0e2ff151 | 8702 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8703 | if (PyErr_Occurred()) return NULL; |
8704 | } Py_INCREF(Py_None); | |
8705 | _resultobj = Py_None; | |
8706 | return _resultobj; | |
8707 | } | |
8708 | ||
8709 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
8710 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8711 | PyObject * _resultobj; | |
8712 | wxDC * _arg0; | |
8713 | wxPalette * _arg1; | |
8714 | PyObject * _argo0 = 0; | |
8715 | PyObject * _argo1 = 0; | |
8716 | char *_kwnames[] = { "self","colourMap", NULL }; | |
8717 | ||
8718 | self = self; | |
8719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) | |
8720 | return NULL; | |
8721 | if (_argo0) { | |
8722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
8725 | return NULL; | |
8726 | } | |
8727 | } | |
8728 | if (_argo1) { | |
8729 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8730 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
8732 | return NULL; | |
8733 | } | |
8734 | } | |
8735 | { | |
0e2ff151 | 8736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8737 | wxDC_SetPalette(_arg0,*_arg1); |
8738 | ||
0e2ff151 | 8739 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8740 | if (PyErr_Occurred()) return NULL; |
8741 | } Py_INCREF(Py_None); | |
8742 | _resultobj = Py_None; | |
8743 | return _resultobj; | |
8744 | } | |
8745 | ||
8746 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
8747 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8748 | PyObject * _resultobj; | |
8749 | wxDC * _arg0; | |
8750 | wxBrush * _arg1; | |
8751 | PyObject * _argo0 = 0; | |
8752 | PyObject * _argo1 = 0; | |
8753 | char *_kwnames[] = { "self","brush", NULL }; | |
8754 | ||
8755 | self = self; | |
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) | |
8757 | return NULL; | |
8758 | if (_argo0) { | |
8759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
8762 | return NULL; | |
8763 | } | |
8764 | } | |
8765 | if (_argo1) { | |
8766 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8767 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
8769 | return NULL; | |
8770 | } | |
8771 | } | |
8772 | { | |
0e2ff151 | 8773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8774 | wxDC_SetBrush(_arg0,*_arg1); |
8775 | ||
0e2ff151 | 8776 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8777 | if (PyErr_Occurred()) return NULL; |
8778 | } Py_INCREF(Py_None); | |
8779 | _resultobj = Py_None; | |
8780 | return _resultobj; | |
8781 | } | |
8782 | ||
8783 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
8784 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8785 | PyObject * _resultobj; | |
8786 | wxDC * _arg0; | |
8787 | wxFont * _arg1; | |
8788 | PyObject * _argo0 = 0; | |
8789 | PyObject * _argo1 = 0; | |
8790 | char *_kwnames[] = { "self","font", NULL }; | |
8791 | ||
8792 | self = self; | |
8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) | |
8794 | return NULL; | |
8795 | if (_argo0) { | |
8796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
8799 | return NULL; | |
8800 | } | |
8801 | } | |
8802 | if (_argo1) { | |
8803 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8804 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
8806 | return NULL; | |
8807 | } | |
8808 | } | |
8809 | { | |
0e2ff151 | 8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8811 | wxDC_SetFont(_arg0,*_arg1); |
8812 | ||
0e2ff151 | 8813 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8814 | if (PyErr_Occurred()) return NULL; |
8815 | } Py_INCREF(Py_None); | |
8816 | _resultobj = Py_None; | |
8817 | return _resultobj; | |
8818 | } | |
8819 | ||
8820 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
8821 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8822 | PyObject * _resultobj; | |
8823 | wxDC * _arg0; | |
8824 | int _arg1; | |
8825 | PyObject * _argo0 = 0; | |
8826 | char *_kwnames[] = { "self","function", NULL }; | |
8827 | ||
8828 | self = self; | |
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) | |
8830 | return NULL; | |
8831 | if (_argo0) { | |
8832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
8835 | return NULL; | |
8836 | } | |
8837 | } | |
8838 | { | |
0e2ff151 | 8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8840 | wxDC_SetLogicalFunction(_arg0,_arg1); |
8841 | ||
0e2ff151 | 8842 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8843 | if (PyErr_Occurred()) return NULL; |
8844 | } Py_INCREF(Py_None); | |
8845 | _resultobj = Py_None; | |
8846 | return _resultobj; | |
8847 | } | |
8848 | ||
8849 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) | |
8850 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8851 | PyObject * _resultobj; | |
8852 | wxDC * _arg0; | |
8853 | double _arg1; | |
8854 | double _arg2; | |
8855 | PyObject * _argo0 = 0; | |
8856 | char *_kwnames[] = { "self","x","y", NULL }; | |
8857 | ||
8858 | self = self; | |
8859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8860 | return NULL; | |
8861 | if (_argo0) { | |
8862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
8865 | return NULL; | |
8866 | } | |
8867 | } | |
8868 | { | |
0e2ff151 | 8869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8870 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
8871 | ||
0e2ff151 | 8872 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8873 | if (PyErr_Occurred()) return NULL; |
8874 | } Py_INCREF(Py_None); | |
8875 | _resultobj = Py_None; | |
8876 | return _resultobj; | |
8877 | } | |
8878 | ||
8879 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
8880 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8881 | PyObject * _resultobj; | |
8882 | wxDC * _arg0; | |
8883 | int _arg1; | |
8884 | PyObject * _argo0 = 0; | |
8885 | char *_kwnames[] = { "self","mode", NULL }; | |
8886 | ||
8887 | self = self; | |
8888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) | |
8889 | return NULL; | |
8890 | if (_argo0) { | |
8891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); | |
8894 | return NULL; | |
8895 | } | |
8896 | } | |
8897 | { | |
0e2ff151 | 8898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8899 | wxDC_SetMapMode(_arg0,_arg1); |
8900 | ||
0e2ff151 | 8901 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8902 | if (PyErr_Occurred()) return NULL; |
8903 | } Py_INCREF(Py_None); | |
8904 | _resultobj = Py_None; | |
8905 | return _resultobj; | |
8906 | } | |
8907 | ||
8908 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
8909 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8910 | PyObject * _resultobj; | |
8911 | wxDC * _arg0; | |
8912 | bool _arg1; | |
8913 | PyObject * _argo0 = 0; | |
8914 | int tempbool1; | |
8915 | char *_kwnames[] = { "self","optimize", NULL }; | |
8916 | ||
8917 | self = self; | |
8918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) | |
8919 | return NULL; | |
8920 | if (_argo0) { | |
8921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
8924 | return NULL; | |
8925 | } | |
8926 | } | |
8927 | _arg1 = (bool ) tempbool1; | |
8928 | { | |
0e2ff151 | 8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8930 | wxDC_SetOptimization(_arg0,_arg1); |
8931 | ||
0e2ff151 | 8932 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8933 | if (PyErr_Occurred()) return NULL; |
8934 | } Py_INCREF(Py_None); | |
8935 | _resultobj = Py_None; | |
8936 | return _resultobj; | |
8937 | } | |
8938 | ||
8939 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
8940 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8941 | PyObject * _resultobj; | |
8942 | wxDC * _arg0; | |
8943 | wxPen * _arg1; | |
8944 | PyObject * _argo0 = 0; | |
8945 | PyObject * _argo1 = 0; | |
8946 | char *_kwnames[] = { "self","pen", NULL }; | |
8947 | ||
8948 | self = self; | |
8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) | |
8950 | return NULL; | |
8951 | if (_argo0) { | |
8952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
8955 | return NULL; | |
8956 | } | |
8957 | } | |
8958 | if (_argo1) { | |
8959 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8960 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
8962 | return NULL; | |
8963 | } | |
8964 | } | |
8965 | { | |
0e2ff151 | 8966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8967 | wxDC_SetPen(_arg0,*_arg1); |
8968 | ||
0e2ff151 | 8969 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8970 | if (PyErr_Occurred()) return NULL; |
8971 | } Py_INCREF(Py_None); | |
8972 | _resultobj = Py_None; | |
8973 | return _resultobj; | |
8974 | } | |
8975 | ||
8976 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
8977 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8978 | PyObject * _resultobj; | |
8979 | wxDC * _arg0; | |
8980 | wxColour * _arg1; | |
8981 | PyObject * _argo0 = 0; | |
8982 | wxColour temp; | |
8983 | PyObject * _obj1 = 0; | |
8984 | char *_kwnames[] = { "self","colour", NULL }; | |
8985 | ||
8986 | self = self; | |
8987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) | |
8988 | return NULL; | |
8989 | if (_argo0) { | |
8990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
8993 | return NULL; | |
8994 | } | |
8995 | } | |
8996 | { | |
8997 | _arg1 = &temp; | |
8998 | if (! wxColour_helper(_obj1, &_arg1)) | |
8999 | return NULL; | |
9000 | } | |
9001 | { | |
0e2ff151 | 9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9003 | wxDC_SetTextBackground(_arg0,*_arg1); |
9004 | ||
0e2ff151 | 9005 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9006 | if (PyErr_Occurred()) return NULL; |
9007 | } Py_INCREF(Py_None); | |
9008 | _resultobj = Py_None; | |
9009 | return _resultobj; | |
9010 | } | |
9011 | ||
9012 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
9013 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9014 | PyObject * _resultobj; | |
9015 | wxDC * _arg0; | |
9016 | wxColour * _arg1; | |
9017 | PyObject * _argo0 = 0; | |
9018 | wxColour temp; | |
9019 | PyObject * _obj1 = 0; | |
9020 | char *_kwnames[] = { "self","colour", NULL }; | |
9021 | ||
9022 | self = self; | |
9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) | |
9024 | return NULL; | |
9025 | if (_argo0) { | |
9026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
9029 | return NULL; | |
9030 | } | |
9031 | } | |
9032 | { | |
9033 | _arg1 = &temp; | |
9034 | if (! wxColour_helper(_obj1, &_arg1)) | |
9035 | return NULL; | |
9036 | } | |
9037 | { | |
0e2ff151 | 9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9039 | wxDC_SetTextForeground(_arg0,*_arg1); |
9040 | ||
0e2ff151 | 9041 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9042 | if (PyErr_Occurred()) return NULL; |
9043 | } Py_INCREF(Py_None); | |
9044 | _resultobj = Py_None; | |
9045 | return _resultobj; | |
9046 | } | |
9047 | ||
9048 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
9049 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9050 | PyObject * _resultobj; | |
9051 | wxDC * _arg0; | |
9052 | double _arg1; | |
9053 | double _arg2; | |
9054 | PyObject * _argo0 = 0; | |
9055 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; | |
9056 | ||
9057 | self = self; | |
9058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9059 | return NULL; | |
9060 | if (_argo0) { | |
9061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); | |
9064 | return NULL; | |
9065 | } | |
9066 | } | |
9067 | { | |
0e2ff151 | 9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9069 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
9070 | ||
0e2ff151 | 9071 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9072 | if (PyErr_Occurred()) return NULL; |
9073 | } Py_INCREF(Py_None); | |
9074 | _resultobj = Py_None; | |
9075 | return _resultobj; | |
9076 | } | |
9077 | ||
9078 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
9079 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9080 | PyObject * _resultobj; | |
9081 | bool _result; | |
9082 | wxDC * _arg0; | |
9083 | wxString * _arg1; | |
9084 | PyObject * _argo0 = 0; | |
9085 | PyObject * _obj1 = 0; | |
9086 | char *_kwnames[] = { "self","message", NULL }; | |
9087 | ||
9088 | self = self; | |
9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) | |
9090 | return NULL; | |
9091 | if (_argo0) { | |
9092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
9095 | return NULL; | |
9096 | } | |
9097 | } | |
9098 | { | |
9099 | #if PYTHON_API_VERSION >= 1009 | |
9100 | char* tmpPtr; int tmpSize; | |
9101 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9102 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9103 | return NULL; | |
9104 | } | |
9105 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9106 | return NULL; | |
9107 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9108 | #else | |
9109 | if (!PyString_Check(_obj1)) { | |
9110 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9111 | return NULL; | |
9112 | } | |
9113 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9114 | #endif | |
9115 | } | |
9116 | { | |
0e2ff151 | 9117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9118 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
9119 | ||
0e2ff151 | 9120 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9121 | if (PyErr_Occurred()) return NULL; |
9122 | } _resultobj = Py_BuildValue("i",_result); | |
9123 | { | |
9124 | if (_obj1) | |
9125 | delete _arg1; | |
9126 | } | |
9127 | return _resultobj; | |
9128 | } | |
9129 | ||
9130 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
9131 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9132 | PyObject * _resultobj; | |
9133 | wxDC * _arg0; | |
9134 | PyObject * _argo0 = 0; | |
9135 | char *_kwnames[] = { "self", NULL }; | |
9136 | ||
9137 | self = self; | |
9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) | |
9139 | return NULL; | |
9140 | if (_argo0) { | |
9141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); | |
9144 | return NULL; | |
9145 | } | |
9146 | } | |
9147 | { | |
0e2ff151 | 9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9149 | wxDC_StartPage(_arg0); |
9150 | ||
0e2ff151 | 9151 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9152 | if (PyErr_Occurred()) return NULL; |
9153 | } Py_INCREF(Py_None); | |
9154 | _resultobj = Py_None; | |
9155 | return _resultobj; | |
9156 | } | |
9157 | ||
9158 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9159 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9160 | PyObject * _resultobj; | |
9161 | wxDC * _arg0; | |
9162 | wxBitmap * _arg1; | |
9163 | long _arg2; | |
9164 | long _arg3; | |
9165 | int _arg4 = (int ) FALSE; | |
9166 | PyObject * _argo0 = 0; | |
9167 | PyObject * _argo1 = 0; | |
9168 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; | |
9169 | ||
9170 | self = self; | |
9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) | |
9172 | return NULL; | |
9173 | if (_argo0) { | |
9174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
9177 | return NULL; | |
9178 | } | |
9179 | } | |
9180 | if (_argo1) { | |
9181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
9184 | return NULL; | |
9185 | } | |
9186 | } | |
9187 | { | |
0e2ff151 | 9188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9189 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
9190 | ||
0e2ff151 | 9191 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9192 | if (PyErr_Occurred()) return NULL; |
9193 | } Py_INCREF(Py_None); | |
9194 | _resultobj = Py_None; | |
9195 | return _resultobj; | |
9196 | } | |
9197 | ||
9198 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) | |
9199 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9200 | PyObject * _resultobj; | |
9201 | bool _result; | |
9202 | wxDC * _arg0; | |
9203 | PyObject * _argo0 = 0; | |
9204 | char *_kwnames[] = { "self", NULL }; | |
9205 | ||
9206 | self = self; | |
9207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
9208 | return NULL; | |
9209 | if (_argo0) { | |
9210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9213 | return NULL; | |
9214 | } | |
9215 | } | |
9216 | { | |
0e2ff151 | 9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9218 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
9219 | ||
0e2ff151 | 9220 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9221 | if (PyErr_Occurred()) return NULL; |
9222 | } _resultobj = Py_BuildValue("i",_result); | |
9223 | return _resultobj; | |
9224 | } | |
9225 | ||
9226 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9227 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9228 | PyObject * _resultobj; | |
9229 | bool _result; | |
9230 | wxDC * _arg0; | |
9231 | PyObject * _argo0 = 0; | |
9232 | char *_kwnames[] = { "self", NULL }; | |
9233 | ||
9234 | self = self; | |
9235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9236 | return NULL; | |
9237 | if (_argo0) { | |
9238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9241 | return NULL; | |
9242 | } | |
9243 | } | |
9244 | { | |
0e2ff151 | 9245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9246 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
9247 | ||
0e2ff151 | 9248 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9249 | if (PyErr_Occurred()) return NULL; |
9250 | } _resultobj = Py_BuildValue("i",_result); | |
9251 | return _resultobj; | |
9252 | } | |
9253 | ||
9254 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9255 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9256 | PyObject * _resultobj; | |
9257 | int _result; | |
9258 | wxDC * _arg0; | |
9259 | PyObject * _argo0 = 0; | |
9260 | char *_kwnames[] = { "self", NULL }; | |
9261 | ||
9262 | self = self; | |
9263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
9264 | return NULL; | |
9265 | if (_argo0) { | |
9266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
9269 | return NULL; | |
9270 | } | |
9271 | } | |
9272 | { | |
0e2ff151 | 9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9274 | _result = (int )wxDC_GetDepth(_arg0); |
9275 | ||
0e2ff151 | 9276 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9277 | if (PyErr_Occurred()) return NULL; |
9278 | } _resultobj = Py_BuildValue("i",_result); | |
9279 | return _resultobj; | |
9280 | } | |
9281 | ||
9282 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
9283 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9284 | PyObject * _resultobj; | |
9285 | wxSize * _result; | |
9286 | wxDC * _arg0; | |
9287 | PyObject * _argo0 = 0; | |
9288 | char *_kwnames[] = { "self", NULL }; | |
9289 | char _ptemp[128]; | |
9290 | ||
9291 | self = self; | |
9292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
9293 | return NULL; | |
9294 | if (_argo0) { | |
9295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
9298 | return NULL; | |
9299 | } | |
9300 | } | |
9301 | { | |
0e2ff151 | 9302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9303 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
9304 | ||
0e2ff151 | 9305 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9306 | if (PyErr_Occurred()) return NULL; |
9307 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
9308 | _resultobj = Py_BuildValue("s",_ptemp); | |
9309 | return _resultobj; | |
9310 | } | |
9311 | ||
9312 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
9313 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9314 | PyObject * _resultobj; | |
9315 | wxDC * _arg0; | |
9316 | int * _arg1; | |
9317 | int temp; | |
9318 | int * _arg2; | |
9319 | int temp0; | |
9320 | PyObject * _argo0 = 0; | |
9321 | char *_kwnames[] = { "self", NULL }; | |
9322 | ||
9323 | self = self; | |
9324 | { | |
9325 | _arg1 = &temp; | |
9326 | } | |
9327 | { | |
9328 | _arg2 = &temp0; | |
9329 | } | |
9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
9331 | return NULL; | |
9332 | if (_argo0) { | |
9333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
9336 | return NULL; | |
9337 | } | |
9338 | } | |
9339 | { | |
0e2ff151 | 9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9341 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
9342 | ||
0e2ff151 | 9343 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9344 | if (PyErr_Occurred()) return NULL; |
9345 | } Py_INCREF(Py_None); | |
9346 | _resultobj = Py_None; | |
9347 | { | |
9348 | PyObject *o; | |
9349 | o = PyInt_FromLong((long) (*_arg1)); | |
9350 | _resultobj = t_output_helper(_resultobj, o); | |
9351 | } | |
9352 | { | |
9353 | PyObject *o; | |
9354 | o = PyInt_FromLong((long) (*_arg2)); | |
9355 | _resultobj = t_output_helper(_resultobj, o); | |
9356 | } | |
9357 | return _resultobj; | |
9358 | } | |
9359 | ||
9360 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9361 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject * _resultobj; | |
9363 | wxDC * _arg0; | |
9364 | int _arg1; | |
9365 | int _arg2; | |
9366 | PyObject * _argo0 = 0; | |
9367 | char *_kwnames[] = { "self","x","y", NULL }; | |
9368 | ||
9369 | self = self; | |
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9371 | return NULL; | |
9372 | if (_argo0) { | |
9373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9376 | return NULL; | |
9377 | } | |
9378 | } | |
9379 | { | |
0e2ff151 | 9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9381 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
9382 | ||
0e2ff151 | 9383 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9384 | if (PyErr_Occurred()) return NULL; |
9385 | } Py_INCREF(Py_None); | |
9386 | _resultobj = Py_None; | |
9387 | return _resultobj; | |
9388 | } | |
9389 | ||
9390 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9391 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9392 | PyObject * _resultobj; | |
9393 | wxDC * _arg0; | |
9394 | int * _arg1; | |
9395 | int temp; | |
9396 | int * _arg2; | |
9397 | int temp0; | |
9398 | PyObject * _argo0 = 0; | |
9399 | char *_kwnames[] = { "self", NULL }; | |
9400 | ||
9401 | self = self; | |
9402 | { | |
9403 | _arg1 = &temp; | |
9404 | } | |
9405 | { | |
9406 | _arg2 = &temp0; | |
9407 | } | |
9408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9409 | return NULL; | |
9410 | if (_argo0) { | |
9411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9414 | return NULL; | |
9415 | } | |
9416 | } | |
9417 | { | |
0e2ff151 | 9418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9419 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
9420 | ||
0e2ff151 | 9421 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9422 | if (PyErr_Occurred()) return NULL; |
9423 | } Py_INCREF(Py_None); | |
9424 | _resultobj = Py_None; | |
9425 | { | |
9426 | PyObject *o; | |
9427 | o = PyInt_FromLong((long) (*_arg1)); | |
9428 | _resultobj = t_output_helper(_resultobj, o); | |
9429 | } | |
9430 | { | |
9431 | PyObject *o; | |
9432 | o = PyInt_FromLong((long) (*_arg2)); | |
9433 | _resultobj = t_output_helper(_resultobj, o); | |
9434 | } | |
9435 | return _resultobj; | |
9436 | } | |
9437 | ||
9438 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
9439 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9440 | PyObject * _resultobj; | |
9441 | wxDC * _arg0; | |
9442 | bool _arg1; | |
9443 | bool _arg2; | |
9444 | PyObject * _argo0 = 0; | |
9445 | int tempbool1; | |
9446 | int tempbool2; | |
9447 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
9448 | ||
9449 | self = self; | |
9450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
9451 | return NULL; | |
9452 | if (_argo0) { | |
9453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
9456 | return NULL; | |
9457 | } | |
9458 | } | |
9459 | _arg1 = (bool ) tempbool1; | |
9460 | _arg2 = (bool ) tempbool2; | |
9461 | { | |
0e2ff151 | 9462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9463 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
9464 | ||
0e2ff151 | 9465 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9466 | if (PyErr_Occurred()) return NULL; |
9467 | } Py_INCREF(Py_None); | |
9468 | _resultobj = Py_None; | |
9469 | return _resultobj; | |
9470 | } | |
9471 | ||
9472 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) | |
9473 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9474 | PyObject * _resultobj; | |
9475 | wxDC * _arg0; | |
9476 | int _arg1; | |
9477 | int _arg2; | |
9478 | PyObject * _argo0 = 0; | |
9479 | char *_kwnames[] = { "self","x","y", NULL }; | |
9480 | ||
9481 | self = self; | |
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9483 | return NULL; | |
9484 | if (_argo0) { | |
9485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9488 | return NULL; | |
9489 | } | |
9490 | } | |
9491 | { | |
0e2ff151 | 9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9493 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
9494 | ||
0e2ff151 | 9495 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9496 | if (PyErr_Occurred()) return NULL; |
9497 | } Py_INCREF(Py_None); | |
9498 | _resultobj = Py_None; | |
9499 | return _resultobj; | |
9500 | } | |
9501 | ||
9502 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
9503 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9504 | PyObject * _resultobj; | |
9505 | wxDC * _arg0; | |
9506 | PyObject * _argo0 = 0; | |
9507 | char *_kwnames[] = { "self", NULL }; | |
9508 | ||
9509 | self = self; | |
9510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
9511 | return NULL; | |
9512 | if (_argo0) { | |
9513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
9516 | return NULL; | |
9517 | } | |
9518 | } | |
9519 | { | |
0e2ff151 | 9520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9521 | wxDC_ResetBoundingBox(_arg0); |
9522 | ||
0e2ff151 | 9523 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9524 | if (PyErr_Occurred()) return NULL; |
9525 | } Py_INCREF(Py_None); | |
9526 | _resultobj = Py_None; | |
9527 | return _resultobj; | |
9528 | } | |
9529 | ||
9530 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9531 | PyObject * _resultobj; | |
9532 | wxDC * _arg0; | |
9533 | int * _arg1; | |
9534 | int temp; | |
9535 | int * _arg2; | |
9536 | int temp0; | |
9537 | int * _arg3; | |
9538 | int temp1; | |
9539 | int * _arg4; | |
9540 | int temp2; | |
9541 | PyObject * _argo0 = 0; | |
9542 | char *_kwnames[] = { "self", NULL }; | |
9543 | ||
9544 | self = self; | |
9545 | { | |
9546 | _arg1 = &temp; | |
9547 | } | |
9548 | { | |
9549 | _arg2 = &temp0; | |
9550 | } | |
9551 | { | |
9552 | _arg3 = &temp1; | |
9553 | } | |
9554 | { | |
9555 | _arg4 = &temp2; | |
9556 | } | |
9557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
9558 | return NULL; | |
9559 | if (_argo0) { | |
9560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
9563 | return NULL; | |
9564 | } | |
9565 | } | |
9566 | { | |
0e2ff151 | 9567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9568 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
9569 | ||
0e2ff151 | 9570 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9571 | if (PyErr_Occurred()) return NULL; |
9572 | } Py_INCREF(Py_None); | |
9573 | _resultobj = Py_None; | |
9574 | { | |
9575 | PyObject *o; | |
9576 | o = PyInt_FromLong((long) (*_arg1)); | |
9577 | _resultobj = t_output_helper(_resultobj, o); | |
9578 | } | |
9579 | { | |
9580 | PyObject *o; | |
9581 | o = PyInt_FromLong((long) (*_arg2)); | |
9582 | _resultobj = t_output_helper(_resultobj, o); | |
9583 | } | |
9584 | { | |
9585 | PyObject *o; | |
9586 | o = PyInt_FromLong((long) (*_arg3)); | |
9587 | _resultobj = t_output_helper(_resultobj, o); | |
9588 | } | |
9589 | { | |
9590 | PyObject *o; | |
9591 | o = PyInt_FromLong((long) (*_arg4)); | |
9592 | _resultobj = t_output_helper(_resultobj, o); | |
9593 | } | |
9594 | return _resultobj; | |
9595 | } | |
9596 | ||
9597 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
9598 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
9599 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9600 | int numObjs = 0; | |
9601 | int numPens = 0; | |
9602 | wxPen* pen; | |
9603 | PyObject* obj; | |
9604 | int x1, y1; | |
9605 | int i = 0; | |
9606 | ||
9607 | if (!PySequence_Check(pyPoints)) { | |
9608 | goto err0; | |
9609 | } | |
9610 | if (!PySequence_Check(pyPens)) { | |
9611 | goto err1; | |
9612 | } | |
9613 | numObjs = PySequence_Length(pyPoints); | |
9614 | numPens = PySequence_Length(pyPens); | |
9615 | ||
9616 | for (i = 0; i < numObjs; i++) { | |
9617 | // Use a new pen? | |
9618 | if (i < numPens) { | |
9619 | if (isFastPens) { | |
9620 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9621 | } | |
9622 | else { | |
9623 | obj = PySequence_GetItem(pyPens, i); | |
9624 | } | |
9625 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9626 | if (!isFastPens) | |
9627 | Py_DECREF(obj); | |
9628 | goto err1; | |
9629 | } | |
9630 | ||
9631 | self->SetPen(*pen); | |
9632 | if (!isFastPens) | |
9633 | Py_DECREF(obj); | |
9634 | } | |
9635 | ||
9636 | // Get the point coordinants | |
9637 | if (isFastSeq) { | |
9638 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
9639 | } | |
9640 | else { | |
9641 | obj = PySequence_GetItem(pyPoints, i); | |
9642 | } | |
9643 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
9644 | if (!isFastPens) | |
9645 | Py_DECREF(obj); | |
9646 | goto err0; | |
9647 | } | |
9648 | ||
9649 | // Now draw the point | |
9650 | self->DrawPoint(x1, y1); | |
9651 | ||
9652 | if (!isFastSeq) | |
9653 | Py_DECREF(obj); | |
9654 | } | |
9655 | ||
9656 | Py_INCREF(Py_None); | |
9657 | return Py_None; | |
9658 | ||
9659 | err1: | |
9660 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9661 | return NULL; | |
9662 | err0: | |
9663 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
9664 | return NULL; | |
9665 | } | |
9666 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9667 | PyObject * _resultobj; | |
9668 | PyObject * _result; | |
9669 | wxDC * _arg0; | |
9670 | PyObject * _arg1; | |
9671 | PyObject * _arg2; | |
9672 | PyObject * _argo0 = 0; | |
9673 | PyObject * _obj1 = 0; | |
9674 | PyObject * _obj2 = 0; | |
9675 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
9676 | ||
9677 | self = self; | |
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9679 | return NULL; | |
9680 | if (_argo0) { | |
9681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
9684 | return NULL; | |
9685 | } | |
9686 | } | |
9687 | { | |
9688 | _arg1 = _obj1; | |
9689 | } | |
9690 | { | |
9691 | _arg2 = _obj2; | |
9692 | } | |
9693 | { | |
0e2ff151 | 9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9695 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
9696 | ||
0e2ff151 | 9697 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9698 | if (PyErr_Occurred()) return NULL; |
9699 | }{ | |
9700 | _resultobj = _result; | |
9701 | } | |
9702 | return _resultobj; | |
9703 | } | |
9704 | ||
9705 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
9706 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
9707 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9708 | int numObjs = 0; | |
9709 | int numPens = 0; | |
9710 | wxPen* pen; | |
9711 | PyObject* obj; | |
9712 | int x1, y1, x2, y2; | |
9713 | int i = 0; | |
9714 | ||
9715 | if (!PySequence_Check(pyLines)) { | |
9716 | goto err0; | |
9717 | } | |
9718 | if (!PySequence_Check(pyPens)) { | |
9719 | goto err1; | |
9720 | } | |
9721 | numObjs = PySequence_Length(pyLines); | |
9722 | numPens = PySequence_Length(pyPens); | |
9723 | ||
9724 | for (i = 0; i < numObjs; i++) { | |
9725 | // Use a new pen? | |
9726 | if (i < numPens) { | |
9727 | if (isFastPens) { | |
9728 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9729 | } | |
9730 | else { | |
9731 | obj = PySequence_GetItem(pyPens, i); | |
9732 | } | |
9733 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9734 | if (!isFastPens) | |
9735 | Py_DECREF(obj); | |
9736 | goto err1; | |
9737 | } | |
9738 | ||
9739 | self->SetPen(*pen); | |
9740 | if (!isFastPens) | |
9741 | Py_DECREF(obj); | |
9742 | } | |
9743 | ||
9744 | // Get the line coordinants | |
9745 | if (isFastSeq) { | |
9746 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
9747 | } | |
9748 | else { | |
9749 | obj = PySequence_GetItem(pyLines, i); | |
9750 | } | |
9751 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
9752 | if (!isFastPens) | |
9753 | Py_DECREF(obj); | |
9754 | goto err0; | |
9755 | } | |
9756 | ||
9757 | // Now draw the line | |
9758 | self->DrawLine(x1, y1, x2, y2); | |
9759 | ||
9760 | if (!isFastSeq) | |
9761 | Py_DECREF(obj); | |
9762 | } | |
9763 | ||
9764 | Py_INCREF(Py_None); | |
9765 | return Py_None; | |
9766 | ||
9767 | err1: | |
9768 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9769 | return NULL; | |
9770 | err0: | |
9771 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
9772 | return NULL; | |
9773 | } | |
9774 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9775 | PyObject * _resultobj; | |
9776 | PyObject * _result; | |
9777 | wxDC * _arg0; | |
9778 | PyObject * _arg1; | |
9779 | PyObject * _arg2; | |
9780 | PyObject * _argo0 = 0; | |
9781 | PyObject * _obj1 = 0; | |
9782 | PyObject * _obj2 = 0; | |
9783 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
9784 | ||
9785 | self = self; | |
9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9787 | return NULL; | |
9788 | if (_argo0) { | |
9789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
9792 | return NULL; | |
9793 | } | |
9794 | } | |
9795 | { | |
9796 | _arg1 = _obj1; | |
9797 | } | |
9798 | { | |
9799 | _arg2 = _obj2; | |
9800 | } | |
9801 | { | |
0e2ff151 | 9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9803 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
9804 | ||
0e2ff151 | 9805 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9806 | if (PyErr_Occurred()) return NULL; |
9807 | }{ | |
9808 | _resultobj = _result; | |
9809 | } | |
9810 | return _resultobj; | |
9811 | } | |
9812 | ||
9813 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
9814 | wxMemoryDC *src; | |
9815 | wxDC *dest; | |
9816 | src = (wxMemoryDC *) ptr; | |
9817 | dest = (wxDC *) src; | |
9818 | return (void *) dest; | |
9819 | } | |
9820 | ||
9821 | static void *SwigwxMemoryDCTowxObject(void *ptr) { | |
9822 | wxMemoryDC *src; | |
9823 | wxObject *dest; | |
9824 | src = (wxMemoryDC *) ptr; | |
9825 | dest = (wxObject *) src; | |
9826 | return (void *) dest; | |
9827 | } | |
9828 | ||
9829 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
9830 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9831 | PyObject * _resultobj; | |
9832 | wxMemoryDC * _result; | |
9833 | char *_kwnames[] = { NULL }; | |
9834 | char _ptemp[128]; | |
9835 | ||
9836 | self = self; | |
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) | |
9838 | return NULL; | |
9839 | { | |
0e2ff151 | 9840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9841 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
9842 | ||
0e2ff151 | 9843 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9844 | if (PyErr_Occurred()) return NULL; |
9845 | } if (_result) { | |
9846 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
9847 | _resultobj = Py_BuildValue("s",_ptemp); | |
9848 | } else { | |
9849 | Py_INCREF(Py_None); | |
9850 | _resultobj = Py_None; | |
9851 | } | |
9852 | return _resultobj; | |
9853 | } | |
9854 | ||
9855 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
9856 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9857 | PyObject * _resultobj; | |
9858 | wxMemoryDC * _arg0; | |
9859 | wxBitmap * _arg1; | |
9860 | PyObject * _argo0 = 0; | |
9861 | PyObject * _argo1 = 0; | |
9862 | char *_kwnames[] = { "self","bitmap", NULL }; | |
9863 | ||
9864 | self = self; | |
9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) | |
9866 | return NULL; | |
9867 | if (_argo0) { | |
9868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
9870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
9871 | return NULL; | |
9872 | } | |
9873 | } | |
9874 | if (_argo1) { | |
9875 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9876 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
9878 | return NULL; | |
9879 | } | |
9880 | } | |
9881 | { | |
0e2ff151 | 9882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9883 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
9884 | ||
0e2ff151 | 9885 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9886 | if (PyErr_Occurred()) return NULL; |
9887 | } Py_INCREF(Py_None); | |
9888 | _resultobj = Py_None; | |
9889 | return _resultobj; | |
9890 | } | |
9891 | ||
9892 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
9893 | wxScreenDC *src; | |
9894 | wxDC *dest; | |
9895 | src = (wxScreenDC *) ptr; | |
9896 | dest = (wxDC *) src; | |
9897 | return (void *) dest; | |
9898 | } | |
9899 | ||
9900 | static void *SwigwxScreenDCTowxObject(void *ptr) { | |
9901 | wxScreenDC *src; | |
9902 | wxObject *dest; | |
9903 | src = (wxScreenDC *) ptr; | |
9904 | dest = (wxObject *) src; | |
9905 | return (void *) dest; | |
9906 | } | |
9907 | ||
9908 | #define new_wxScreenDC() (new wxScreenDC()) | |
9909 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9910 | PyObject * _resultobj; | |
9911 | wxScreenDC * _result; | |
9912 | char *_kwnames[] = { NULL }; | |
9913 | char _ptemp[128]; | |
9914 | ||
9915 | self = self; | |
9916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) | |
9917 | return NULL; | |
9918 | { | |
0e2ff151 | 9919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9920 | _result = (wxScreenDC *)new_wxScreenDC(); |
9921 | ||
0e2ff151 | 9922 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9923 | if (PyErr_Occurred()) return NULL; |
9924 | } if (_result) { | |
9925 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9926 | _resultobj = Py_BuildValue("s",_ptemp); | |
9927 | } else { | |
9928 | Py_INCREF(Py_None); | |
9929 | _resultobj = Py_None; | |
9930 | } | |
9931 | return _resultobj; | |
9932 | } | |
9933 | ||
9934 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9935 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9936 | PyObject * _resultobj; | |
9937 | bool _result; | |
9938 | wxScreenDC * _arg0; | |
9939 | wxWindow * _arg1; | |
9940 | PyObject * _argo0 = 0; | |
9941 | PyObject * _argo1 = 0; | |
9942 | char *_kwnames[] = { "self","window", NULL }; | |
9943 | ||
9944 | self = self; | |
9945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) | |
9946 | return NULL; | |
9947 | if (_argo0) { | |
9948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); | |
9951 | return NULL; | |
9952 | } | |
9953 | } | |
9954 | if (_argo1) { | |
9955 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9956 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); | |
9958 | return NULL; | |
9959 | } | |
9960 | } | |
9961 | { | |
0e2ff151 | 9962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9963 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
9964 | ||
0e2ff151 | 9965 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9966 | if (PyErr_Occurred()) return NULL; |
9967 | } _resultobj = Py_BuildValue("i",_result); | |
9968 | return _resultobj; | |
9969 | } | |
9970 | ||
9971 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9972 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject * _resultobj; | |
9974 | bool _result; | |
9975 | wxScreenDC * _arg0; | |
9976 | wxRect * _arg1 = (wxRect *) NULL; | |
9977 | PyObject * _argo0 = 0; | |
9978 | wxRect temp; | |
9979 | PyObject * _obj1 = 0; | |
9980 | char *_kwnames[] = { "self","rect", NULL }; | |
9981 | ||
9982 | self = self; | |
9983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) | |
9984 | return NULL; | |
9985 | if (_argo0) { | |
9986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
9989 | return NULL; | |
9990 | } | |
9991 | } | |
9992 | if (_obj1) | |
9993 | { | |
9994 | _arg1 = &temp; | |
9995 | if (! wxRect_helper(_obj1, &_arg1)) | |
9996 | return NULL; | |
9997 | } | |
9998 | { | |
0e2ff151 | 9999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10000 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
10001 | ||
0e2ff151 | 10002 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10003 | if (PyErr_Occurred()) return NULL; |
10004 | } _resultobj = Py_BuildValue("i",_result); | |
10005 | return _resultobj; | |
10006 | } | |
10007 | ||
10008 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
10009 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10010 | PyObject * _resultobj; | |
10011 | bool _result; | |
10012 | wxScreenDC * _arg0; | |
10013 | PyObject * _argo0 = 0; | |
10014 | char *_kwnames[] = { "self", NULL }; | |
10015 | ||
10016 | self = self; | |
10017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) | |
10018 | return NULL; | |
10019 | if (_argo0) { | |
10020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
10022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
10023 | return NULL; | |
10024 | } | |
10025 | } | |
10026 | { | |
0e2ff151 | 10027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10028 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
10029 | ||
0e2ff151 | 10030 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10031 | if (PyErr_Occurred()) return NULL; |
10032 | } _resultobj = Py_BuildValue("i",_result); | |
10033 | return _resultobj; | |
10034 | } | |
10035 | ||
10036 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
10037 | wxClientDC *src; | |
10038 | wxDC *dest; | |
10039 | src = (wxClientDC *) ptr; | |
10040 | dest = (wxDC *) src; | |
10041 | return (void *) dest; | |
10042 | } | |
10043 | ||
10044 | static void *SwigwxClientDCTowxObject(void *ptr) { | |
10045 | wxClientDC *src; | |
10046 | wxObject *dest; | |
10047 | src = (wxClientDC *) ptr; | |
10048 | dest = (wxObject *) src; | |
10049 | return (void *) dest; | |
10050 | } | |
10051 | ||
10052 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
10053 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10054 | PyObject * _resultobj; | |
10055 | wxClientDC * _result; | |
10056 | wxWindow * _arg0; | |
10057 | PyObject * _argo0 = 0; | |
10058 | char *_kwnames[] = { "win", NULL }; | |
10059 | char _ptemp[128]; | |
10060 | ||
10061 | self = self; | |
10062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) | |
10063 | return NULL; | |
10064 | if (_argo0) { | |
10065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
10068 | return NULL; | |
10069 | } | |
10070 | } | |
10071 | { | |
0e2ff151 | 10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10073 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
10074 | ||
0e2ff151 | 10075 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10076 | if (PyErr_Occurred()) return NULL; |
10077 | } if (_result) { | |
10078 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
10079 | _resultobj = Py_BuildValue("s",_ptemp); | |
10080 | } else { | |
10081 | Py_INCREF(Py_None); | |
10082 | _resultobj = Py_None; | |
10083 | } | |
10084 | return _resultobj; | |
10085 | } | |
10086 | ||
10087 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
10088 | wxPaintDC *src; | |
10089 | wxDC *dest; | |
10090 | src = (wxPaintDC *) ptr; | |
10091 | dest = (wxDC *) src; | |
10092 | return (void *) dest; | |
10093 | } | |
10094 | ||
10095 | static void *SwigwxPaintDCTowxObject(void *ptr) { | |
10096 | wxPaintDC *src; | |
10097 | wxObject *dest; | |
10098 | src = (wxPaintDC *) ptr; | |
10099 | dest = (wxObject *) src; | |
10100 | return (void *) dest; | |
10101 | } | |
10102 | ||
10103 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
10104 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10105 | PyObject * _resultobj; | |
10106 | wxPaintDC * _result; | |
10107 | wxWindow * _arg0; | |
10108 | PyObject * _argo0 = 0; | |
10109 | char *_kwnames[] = { "win", NULL }; | |
10110 | char _ptemp[128]; | |
10111 | ||
10112 | self = self; | |
10113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) | |
10114 | return NULL; | |
10115 | if (_argo0) { | |
10116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
10119 | return NULL; | |
10120 | } | |
10121 | } | |
10122 | { | |
0e2ff151 | 10123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10124 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
10125 | ||
0e2ff151 | 10126 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10127 | if (PyErr_Occurred()) return NULL; |
10128 | } if (_result) { | |
10129 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
10130 | _resultobj = Py_BuildValue("s",_ptemp); | |
10131 | } else { | |
10132 | Py_INCREF(Py_None); | |
10133 | _resultobj = Py_None; | |
10134 | } | |
10135 | return _resultobj; | |
10136 | } | |
10137 | ||
10138 | static void *SwigwxWindowDCTowxDC(void *ptr) { | |
10139 | wxWindowDC *src; | |
10140 | wxDC *dest; | |
10141 | src = (wxWindowDC *) ptr; | |
10142 | dest = (wxDC *) src; | |
10143 | return (void *) dest; | |
10144 | } | |
10145 | ||
10146 | static void *SwigwxWindowDCTowxObject(void *ptr) { | |
10147 | wxWindowDC *src; | |
10148 | wxObject *dest; | |
10149 | src = (wxWindowDC *) ptr; | |
10150 | dest = (wxObject *) src; | |
10151 | return (void *) dest; | |
10152 | } | |
10153 | ||
10154 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
10155 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10156 | PyObject * _resultobj; | |
10157 | wxWindowDC * _result; | |
10158 | wxWindow * _arg0; | |
10159 | PyObject * _argo0 = 0; | |
10160 | char *_kwnames[] = { "win", NULL }; | |
10161 | char _ptemp[128]; | |
10162 | ||
10163 | self = self; | |
10164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) | |
10165 | return NULL; | |
10166 | if (_argo0) { | |
10167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
10170 | return NULL; | |
10171 | } | |
10172 | } | |
10173 | { | |
0e2ff151 | 10174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10175 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
10176 | ||
0e2ff151 | 10177 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10178 | if (PyErr_Occurred()) return NULL; |
10179 | } if (_result) { | |
10180 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
10181 | _resultobj = Py_BuildValue("s",_ptemp); | |
10182 | } else { | |
10183 | Py_INCREF(Py_None); | |
10184 | _resultobj = Py_None; | |
10185 | } | |
10186 | return _resultobj; | |
10187 | } | |
10188 | ||
e6056257 RD |
10189 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
10190 | wxPalette *src; | |
10191 | wxGDIObject *dest; | |
10192 | src = (wxPalette *) ptr; | |
10193 | dest = (wxGDIObject *) src; | |
10194 | return (void *) dest; | |
10195 | } | |
10196 | ||
10197 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
10198 | wxPalette *src; | |
10199 | wxObject *dest; | |
10200 | src = (wxPalette *) ptr; | |
10201 | dest = (wxObject *) src; | |
10202 | return (void *) dest; | |
10203 | } | |
10204 | ||
10205 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10206 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10207 | PyObject * _resultobj; | |
10208 | wxPalette * _result; | |
10209 | int _arg0; | |
10210 | byte * _arg1; | |
10211 | byte * _arg2; | |
10212 | byte * _arg3; | |
10213 | PyObject * _obj1 = 0; | |
10214 | PyObject * _obj2 = 0; | |
10215 | PyObject * _obj3 = 0; | |
10216 | char *_kwnames[] = { "choices","choices","choices", NULL }; | |
10217 | char _ptemp[128]; | |
10218 | ||
10219 | self = self; | |
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) | |
10221 | return NULL; | |
10222 | { | |
10223 | _arg1 = byte_LIST_helper(_obj1); | |
10224 | if (_arg1 == NULL) { | |
10225 | return NULL; | |
10226 | } | |
10227 | } | |
10228 | { | |
10229 | _arg2 = byte_LIST_helper(_obj2); | |
10230 | if (_arg2 == NULL) { | |
10231 | return NULL; | |
10232 | } | |
10233 | } | |
10234 | if (_obj3) | |
10235 | { | |
10236 | _arg3 = byte_LIST_helper(_obj3); | |
10237 | if (_arg3 == NULL) { | |
10238 | return NULL; | |
10239 | } | |
10240 | } | |
10241 | { | |
10242 | if (_obj1) { | |
10243 | _arg0 = PyList_Size(_obj1); | |
10244 | } | |
10245 | else { | |
10246 | _arg0 = 0; | |
10247 | } | |
10248 | } | |
10249 | { | |
0e2ff151 | 10250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10251 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
10252 | ||
0e2ff151 | 10253 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10254 | if (PyErr_Occurred()) return NULL; |
10255 | } if (_result) { | |
10256 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
10257 | _resultobj = Py_BuildValue("s",_ptemp); | |
10258 | } else { | |
10259 | Py_INCREF(Py_None); | |
10260 | _resultobj = Py_None; | |
10261 | } | |
10262 | { | |
10263 | delete [] _arg1; | |
10264 | } | |
10265 | { | |
10266 | delete [] _arg2; | |
10267 | } | |
10268 | { | |
10269 | delete [] _arg3; | |
10270 | } | |
10271 | return _resultobj; | |
10272 | } | |
10273 | ||
10274 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
10275 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10276 | PyObject * _resultobj; | |
10277 | wxPalette * _arg0; | |
10278 | PyObject * _argo0 = 0; | |
10279 | char *_kwnames[] = { "self", NULL }; | |
10280 | ||
10281 | self = self; | |
10282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) | |
10283 | return NULL; | |
10284 | if (_argo0) { | |
10285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
10288 | return NULL; | |
10289 | } | |
10290 | } | |
10291 | { | |
0e2ff151 | 10292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10293 | delete_wxPalette(_arg0); |
10294 | ||
0e2ff151 | 10295 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10296 | if (PyErr_Occurred()) return NULL; |
10297 | } Py_INCREF(Py_None); | |
10298 | _resultobj = Py_None; | |
10299 | return _resultobj; | |
10300 | } | |
10301 | ||
10302 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
10303 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10304 | PyObject * _resultobj; | |
10305 | int _result; | |
10306 | wxPalette * _arg0; | |
10307 | byte _arg1; | |
10308 | byte _arg2; | |
10309 | byte _arg3; | |
10310 | PyObject * _argo0 = 0; | |
10311 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
10312 | ||
10313 | self = self; | |
10314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
10315 | return NULL; | |
10316 | if (_argo0) { | |
10317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
10320 | return NULL; | |
10321 | } | |
10322 | } | |
10323 | { | |
0e2ff151 | 10324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10325 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
10326 | ||
0e2ff151 | 10327 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10328 | if (PyErr_Occurred()) return NULL; |
10329 | } _resultobj = Py_BuildValue("i",_result); | |
10330 | return _resultobj; | |
10331 | } | |
10332 | ||
10333 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10334 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10335 | PyObject * _resultobj; | |
10336 | bool _result; | |
10337 | wxPalette * _arg0; | |
10338 | int _arg1; | |
10339 | byte * _arg2; | |
a341e32e | 10340 | int temp; |
e6056257 | 10341 | byte * _arg3; |
a341e32e | 10342 | int temp0; |
e6056257 | 10343 | byte * _arg4; |
a341e32e | 10344 | int temp1; |
e6056257 | 10345 | PyObject * _argo0 = 0; |
a341e32e | 10346 | char *_kwnames[] = { "self","pixel", NULL }; |
e6056257 RD |
10347 | |
10348 | self = self; | |
a341e32e RD |
10349 | { |
10350 | _arg2 = (byte*)&temp; | |
10351 | } | |
10352 | { | |
10353 | _arg3 = (byte*)&temp0; | |
10354 | } | |
10355 | { | |
10356 | _arg4 = (byte*)&temp1; | |
10357 | } | |
10358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
e6056257 RD |
10359 | return NULL; |
10360 | if (_argo0) { | |
10361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
10364 | return NULL; | |
10365 | } | |
10366 | } | |
e6056257 | 10367 | { |
0e2ff151 | 10368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10369 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
10370 | ||
0e2ff151 | 10371 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10372 | if (PyErr_Occurred()) return NULL; |
10373 | } _resultobj = Py_BuildValue("i",_result); | |
a341e32e RD |
10374 | { |
10375 | PyObject *o; | |
10376 | o = PyInt_FromLong((long) (*_arg2)); | |
10377 | _resultobj = t_output_helper(_resultobj, o); | |
10378 | } | |
10379 | { | |
10380 | PyObject *o; | |
10381 | o = PyInt_FromLong((long) (*_arg3)); | |
10382 | _resultobj = t_output_helper(_resultobj, o); | |
10383 | } | |
10384 | { | |
10385 | PyObject *o; | |
10386 | o = PyInt_FromLong((long) (*_arg4)); | |
10387 | _resultobj = t_output_helper(_resultobj, o); | |
10388 | } | |
e6056257 RD |
10389 | return _resultobj; |
10390 | } | |
10391 | ||
10392 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
10393 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10394 | PyObject * _resultobj; | |
10395 | bool _result; | |
10396 | wxPalette * _arg0; | |
10397 | PyObject * _argo0 = 0; | |
10398 | char *_kwnames[] = { "self", NULL }; | |
10399 | ||
10400 | self = self; | |
10401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) | |
10402 | return NULL; | |
10403 | if (_argo0) { | |
10404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
10407 | return NULL; | |
10408 | } | |
10409 | } | |
10410 | { | |
0e2ff151 | 10411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10412 | _result = (bool )wxPalette_Ok(_arg0); |
10413 | ||
0e2ff151 | 10414 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10415 | if (PyErr_Occurred()) return NULL; |
10416 | } _resultobj = Py_BuildValue("i",_result); | |
10417 | return _resultobj; | |
10418 | } | |
10419 | ||
10420 | static void *SwigwxImageListTowxObject(void *ptr) { | |
10421 | wxImageList *src; | |
10422 | wxObject *dest; | |
10423 | src = (wxImageList *) ptr; | |
10424 | dest = (wxObject *) src; | |
10425 | return (void *) dest; | |
10426 | } | |
10427 | ||
10428 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10429 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10430 | PyObject * _resultobj; | |
10431 | wxImageList * _result; | |
10432 | int _arg0; | |
10433 | int _arg1; | |
10434 | int _arg2 = (int ) TRUE; | |
10435 | int _arg3 = (int ) 1; | |
10436 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; | |
10437 | char _ptemp[128]; | |
10438 | ||
10439 | self = self; | |
10440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10441 | return NULL; | |
10442 | { | |
0e2ff151 | 10443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10444 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
10445 | ||
0e2ff151 | 10446 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10447 | if (PyErr_Occurred()) return NULL; |
10448 | } if (_result) { | |
10449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
10450 | _resultobj = Py_BuildValue("s",_ptemp); | |
10451 | } else { | |
10452 | Py_INCREF(Py_None); | |
10453 | _resultobj = Py_None; | |
10454 | } | |
10455 | return _resultobj; | |
10456 | } | |
10457 | ||
10458 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
10459 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10460 | PyObject * _resultobj; | |
10461 | wxImageList * _arg0; | |
10462 | PyObject * _argo0 = 0; | |
10463 | char *_kwnames[] = { "self", NULL }; | |
10464 | ||
10465 | self = self; | |
10466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) | |
10467 | return NULL; | |
10468 | if (_argo0) { | |
10469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); | |
10472 | return NULL; | |
10473 | } | |
10474 | } | |
10475 | { | |
0e2ff151 | 10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10477 | delete_wxImageList(_arg0); |
10478 | ||
0e2ff151 | 10479 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10480 | if (PyErr_Occurred()) return NULL; |
10481 | } Py_INCREF(Py_None); | |
10482 | _resultobj = Py_None; | |
10483 | return _resultobj; | |
10484 | } | |
10485 | ||
10486 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10487 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10488 | PyObject * _resultobj; | |
10489 | int _result; | |
10490 | wxImageList * _arg0; | |
10491 | wxBitmap * _arg1; | |
10492 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10493 | PyObject * _argo0 = 0; | |
10494 | PyObject * _argo1 = 0; | |
10495 | PyObject * _argo2 = 0; | |
10496 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
10497 | ||
10498 | self = self; | |
10499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10500 | return NULL; | |
10501 | if (_argo0) { | |
10502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); | |
10505 | return NULL; | |
10506 | } | |
10507 | } | |
10508 | if (_argo1) { | |
10509 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10510 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); | |
10512 | return NULL; | |
10513 | } | |
10514 | } | |
10515 | if (_argo2) { | |
10516 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10517 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
10519 | return NULL; | |
10520 | } | |
10521 | } | |
10522 | { | |
0e2ff151 | 10523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10524 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
10525 | ||
0e2ff151 | 10526 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10527 | if (PyErr_Occurred()) return NULL; |
10528 | } _resultobj = Py_BuildValue("i",_result); | |
10529 | return _resultobj; | |
10530 | } | |
10531 | ||
10532 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10533 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10534 | PyObject * _resultobj; | |
10535 | int _result; | |
10536 | wxImageList * _arg0; | |
10537 | wxBitmap * _arg1; | |
10538 | wxColour * _arg2; | |
10539 | PyObject * _argo0 = 0; | |
10540 | PyObject * _argo1 = 0; | |
10541 | wxColour temp; | |
10542 | PyObject * _obj2 = 0; | |
10543 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
10544 | ||
10545 | self = self; | |
10546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
10547 | return NULL; | |
10548 | if (_argo0) { | |
10549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
10552 | return NULL; | |
10553 | } | |
10554 | } | |
10555 | if (_argo1) { | |
10556 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10557 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
10559 | return NULL; | |
10560 | } | |
10561 | } | |
10562 | { | |
10563 | _arg2 = &temp; | |
10564 | if (! wxColour_helper(_obj2, &_arg2)) | |
10565 | return NULL; | |
10566 | } | |
10567 | { | |
0e2ff151 | 10568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10569 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
10570 | ||
0e2ff151 | 10571 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10572 | if (PyErr_Occurred()) return NULL; |
10573 | } _resultobj = Py_BuildValue("i",_result); | |
10574 | return _resultobj; | |
10575 | } | |
10576 | ||
10577 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
10578 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10579 | PyObject * _resultobj; | |
10580 | int _result; | |
10581 | wxImageList * _arg0; | |
10582 | wxIcon * _arg1; | |
10583 | PyObject * _argo0 = 0; | |
10584 | PyObject * _argo1 = 0; | |
10585 | char *_kwnames[] = { "self","icon", NULL }; | |
10586 | ||
10587 | self = self; | |
10588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
10589 | return NULL; | |
10590 | if (_argo0) { | |
10591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
10594 | return NULL; | |
10595 | } | |
10596 | } | |
10597 | if (_argo1) { | |
10598 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10599 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
10600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
10601 | return NULL; | |
10602 | } | |
10603 | } | |
10604 | { | |
0e2ff151 | 10605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10606 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
10607 | ||
0e2ff151 | 10608 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10609 | if (PyErr_Occurred()) return NULL; |
10610 | } _resultobj = Py_BuildValue("i",_result); | |
10611 | return _resultobj; | |
10612 | } | |
10613 | ||
10614 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
10615 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject * _resultobj; | |
10617 | bool _result; | |
10618 | wxImageList * _arg0; | |
10619 | int _arg1; | |
10620 | wxBitmap * _arg2; | |
10621 | PyObject * _argo0 = 0; | |
10622 | PyObject * _argo2 = 0; | |
10623 | char *_kwnames[] = { "self","index","bitmap", NULL }; | |
10624 | ||
10625 | self = self; | |
10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) | |
10627 | return NULL; | |
10628 | if (_argo0) { | |
10629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); | |
10632 | return NULL; | |
10633 | } | |
10634 | } | |
10635 | if (_argo2) { | |
10636 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10637 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); | |
10639 | return NULL; | |
10640 | } | |
10641 | } | |
10642 | { | |
0e2ff151 | 10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10644 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); |
10645 | ||
0e2ff151 | 10646 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10647 | if (PyErr_Occurred()) return NULL; |
10648 | } _resultobj = Py_BuildValue("i",_result); | |
10649 | return _resultobj; | |
10650 | } | |
10651 | ||
10652 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
10653 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10654 | PyObject * _resultobj; | |
10655 | bool _result; | |
10656 | wxImageList * _arg0; | |
10657 | int _arg1; | |
10658 | wxDC * _arg2; | |
10659 | int _arg3; | |
10660 | int _arg4; | |
10661 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); | |
10662 | bool _arg6 = (bool ) FALSE; | |
10663 | PyObject * _argo0 = 0; | |
10664 | PyObject * _argo2 = 0; | |
10665 | int tempbool6 = (int) FALSE; | |
10666 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; | |
10667 | ||
10668 | self = self; | |
10669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
10670 | return NULL; | |
10671 | if (_argo0) { | |
10672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); | |
10675 | return NULL; | |
10676 | } | |
10677 | } | |
10678 | if (_argo2) { | |
10679 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10680 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
10681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); | |
10682 | return NULL; | |
10683 | } | |
10684 | } | |
10685 | _arg6 = (bool ) tempbool6; | |
10686 | { | |
0e2ff151 | 10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10688 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
10689 | ||
0e2ff151 | 10690 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10691 | if (PyErr_Occurred()) return NULL; |
10692 | } _resultobj = Py_BuildValue("i",_result); | |
10693 | return _resultobj; | |
10694 | } | |
10695 | ||
10696 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
10697 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10698 | PyObject * _resultobj; | |
10699 | int _result; | |
10700 | wxImageList * _arg0; | |
10701 | PyObject * _argo0 = 0; | |
10702 | char *_kwnames[] = { "self", NULL }; | |
10703 | ||
10704 | self = self; | |
10705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) | |
10706 | return NULL; | |
10707 | if (_argo0) { | |
10708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); | |
10711 | return NULL; | |
10712 | } | |
10713 | } | |
10714 | { | |
0e2ff151 | 10715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10716 | _result = (int )wxImageList_GetImageCount(_arg0); |
10717 | ||
0e2ff151 | 10718 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10719 | if (PyErr_Occurred()) return NULL; |
10720 | } _resultobj = Py_BuildValue("i",_result); | |
10721 | return _resultobj; | |
10722 | } | |
10723 | ||
10724 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
10725 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10726 | PyObject * _resultobj; | |
10727 | bool _result; | |
10728 | wxImageList * _arg0; | |
10729 | int _arg1; | |
10730 | PyObject * _argo0 = 0; | |
10731 | char *_kwnames[] = { "self","index", NULL }; | |
10732 | ||
10733 | self = self; | |
10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) | |
10735 | return NULL; | |
10736 | if (_argo0) { | |
10737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); | |
10740 | return NULL; | |
10741 | } | |
10742 | } | |
10743 | { | |
0e2ff151 | 10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10745 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
10746 | ||
0e2ff151 | 10747 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10748 | if (PyErr_Occurred()) return NULL; |
10749 | } _resultobj = Py_BuildValue("i",_result); | |
10750 | return _resultobj; | |
10751 | } | |
10752 | ||
10753 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
10754 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10755 | PyObject * _resultobj; | |
10756 | bool _result; | |
10757 | wxImageList * _arg0; | |
10758 | PyObject * _argo0 = 0; | |
10759 | char *_kwnames[] = { "self", NULL }; | |
10760 | ||
10761 | self = self; | |
10762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) | |
10763 | return NULL; | |
10764 | if (_argo0) { | |
10765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); | |
10768 | return NULL; | |
10769 | } | |
10770 | } | |
10771 | { | |
0e2ff151 | 10772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10773 | _result = (bool )wxImageList_RemoveAll(_arg0); |
10774 | ||
0e2ff151 | 10775 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10776 | if (PyErr_Occurred()) return NULL; |
10777 | } _resultobj = Py_BuildValue("i",_result); | |
10778 | return _resultobj; | |
10779 | } | |
10780 | ||
10781 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) | |
10782 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10783 | PyObject * _resultobj; | |
10784 | wxImageList * _arg0; | |
10785 | int _arg1; | |
10786 | int * _arg2; | |
10787 | int temp; | |
10788 | int * _arg3; | |
10789 | int temp0; | |
10790 | PyObject * _argo0 = 0; | |
10791 | char *_kwnames[] = { "self","index", NULL }; | |
10792 | ||
10793 | self = self; | |
10794 | { | |
10795 | _arg2 = &temp; | |
10796 | } | |
10797 | { | |
10798 | _arg3 = &temp0; | |
10799 | } | |
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
10801 | return NULL; | |
10802 | if (_argo0) { | |
10803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
10806 | return NULL; | |
10807 | } | |
10808 | } | |
10809 | { | |
0e2ff151 | 10810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10811 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
10812 | ||
0e2ff151 | 10813 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10814 | if (PyErr_Occurred()) return NULL; |
10815 | } Py_INCREF(Py_None); | |
10816 | _resultobj = Py_None; | |
10817 | { | |
10818 | PyObject *o; | |
10819 | o = PyInt_FromLong((long) (*_arg2)); | |
10820 | _resultobj = t_output_helper(_resultobj, o); | |
10821 | } | |
10822 | { | |
10823 | PyObject *o; | |
10824 | o = PyInt_FromLong((long) (*_arg3)); | |
10825 | _resultobj = t_output_helper(_resultobj, o); | |
10826 | } | |
10827 | return _resultobj; | |
10828 | } | |
10829 | ||
10830 | static void *SwigwxRegionTowxGDIObject(void *ptr) { | |
10831 | wxRegion *src; | |
10832 | wxGDIObject *dest; | |
10833 | src = (wxRegion *) ptr; | |
10834 | dest = (wxGDIObject *) src; | |
10835 | return (void *) dest; | |
10836 | } | |
10837 | ||
10838 | static void *SwigwxRegionTowxObject(void *ptr) { | |
10839 | wxRegion *src; | |
10840 | wxObject *dest; | |
10841 | src = (wxRegion *) ptr; | |
10842 | dest = (wxObject *) src; | |
10843 | return (void *) dest; | |
10844 | } | |
10845 | ||
10846 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10847 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10848 | PyObject * _resultobj; | |
10849 | wxRegion * _result; | |
10850 | long _arg0 = (long ) 0; | |
10851 | long _arg1 = (long ) 0; | |
10852 | long _arg2 = (long ) 0; | |
10853 | long _arg3 = (long ) 0; | |
10854 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
10855 | char _ptemp[128]; | |
10856 | ||
10857 | self = self; | |
10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10859 | return NULL; | |
10860 | { | |
0e2ff151 | 10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10862 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
10863 | ||
0e2ff151 | 10864 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10865 | if (PyErr_Occurred()) return NULL; |
10866 | } if (_result) { | |
10867 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10868 | _resultobj = Py_BuildValue("s",_ptemp); | |
10869 | } else { | |
10870 | Py_INCREF(Py_None); | |
10871 | _resultobj = Py_None; | |
10872 | } | |
10873 | return _resultobj; | |
10874 | } | |
10875 | ||
10876 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
10877 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10878 | PyObject * _resultobj; | |
10879 | wxRegion * _arg0; | |
10880 | PyObject * _argo0 = 0; | |
10881 | char *_kwnames[] = { "self", NULL }; | |
10882 | ||
10883 | self = self; | |
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10885 | return NULL; | |
10886 | if (_argo0) { | |
10887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10890 | return NULL; | |
10891 | } | |
10892 | } | |
10893 | { | |
0e2ff151 | 10894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10895 | delete_wxRegion(_arg0); |
10896 | ||
0e2ff151 | 10897 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10898 | if (PyErr_Occurred()) return NULL; |
10899 | } Py_INCREF(Py_None); | |
10900 | _resultobj = Py_None; | |
10901 | return _resultobj; | |
10902 | } | |
10903 | ||
10904 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10905 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10906 | PyObject * _resultobj; | |
10907 | wxRegion * _arg0; | |
10908 | PyObject * _argo0 = 0; | |
10909 | char *_kwnames[] = { "self", NULL }; | |
10910 | ||
10911 | self = self; | |
10912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10913 | return NULL; | |
10914 | if (_argo0) { | |
10915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10918 | return NULL; | |
10919 | } | |
10920 | } | |
10921 | { | |
0e2ff151 | 10922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10923 | wxRegion_Clear(_arg0); |
10924 | ||
0e2ff151 | 10925 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10926 | if (PyErr_Occurred()) return NULL; |
10927 | } Py_INCREF(Py_None); | |
10928 | _resultobj = Py_None; | |
10929 | return _resultobj; | |
10930 | } | |
10931 | ||
10932 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
10933 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10934 | PyObject * _resultobj; | |
10935 | wxRegionContain _result; | |
10936 | wxRegion * _arg0; | |
10937 | long _arg1; | |
10938 | long _arg2; | |
10939 | PyObject * _argo0 = 0; | |
10940 | char *_kwnames[] = { "self","x","y", NULL }; | |
10941 | ||
10942 | self = self; | |
10943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10944 | return NULL; | |
10945 | if (_argo0) { | |
10946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10949 | return NULL; | |
10950 | } | |
10951 | } | |
10952 | { | |
0e2ff151 | 10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10954 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
10955 | ||
0e2ff151 | 10956 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10957 | if (PyErr_Occurred()) return NULL; |
10958 | } _resultobj = Py_BuildValue("i",_result); | |
10959 | return _resultobj; | |
10960 | } | |
10961 | ||
10962 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10963 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10964 | PyObject * _resultobj; | |
10965 | wxRegionContain _result; | |
10966 | wxRegion * _arg0; | |
10967 | wxPoint * _arg1; | |
10968 | PyObject * _argo0 = 0; | |
10969 | wxPoint temp; | |
10970 | PyObject * _obj1 = 0; | |
10971 | char *_kwnames[] = { "self","pt", NULL }; | |
10972 | ||
10973 | self = self; | |
10974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10975 | return NULL; | |
10976 | if (_argo0) { | |
10977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10980 | return NULL; | |
10981 | } | |
10982 | } | |
10983 | { | |
10984 | _arg1 = &temp; | |
10985 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10986 | return NULL; | |
10987 | } | |
10988 | { | |
0e2ff151 | 10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10990 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
10991 | ||
0e2ff151 | 10992 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10993 | if (PyErr_Occurred()) return NULL; |
10994 | } _resultobj = Py_BuildValue("i",_result); | |
10995 | return _resultobj; | |
10996 | } | |
10997 | ||
10998 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10999 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11000 | PyObject * _resultobj; | |
11001 | wxRegionContain _result; | |
11002 | wxRegion * _arg0; | |
11003 | wxRect * _arg1; | |
11004 | PyObject * _argo0 = 0; | |
11005 | wxRect temp; | |
11006 | PyObject * _obj1 = 0; | |
11007 | char *_kwnames[] = { "self","rect", NULL }; | |
11008 | ||
11009 | self = self; | |
11010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
11011 | return NULL; | |
11012 | if (_argo0) { | |
11013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
11016 | return NULL; | |
11017 | } | |
11018 | } | |
11019 | { | |
11020 | _arg1 = &temp; | |
11021 | if (! wxRect_helper(_obj1, &_arg1)) | |
11022 | return NULL; | |
11023 | } | |
11024 | { | |
0e2ff151 | 11025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11026 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
11027 | ||
0e2ff151 | 11028 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11029 | if (PyErr_Occurred()) return NULL; |
11030 | } _resultobj = Py_BuildValue("i",_result); | |
11031 | return _resultobj; | |
11032 | } | |
11033 | ||
11034 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11035 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11036 | PyObject * _resultobj; | |
11037 | wxRegionContain _result; | |
11038 | wxRegion * _arg0; | |
11039 | long _arg1; | |
11040 | long _arg2; | |
11041 | long _arg3; | |
11042 | long _arg4; | |
11043 | PyObject * _argo0 = 0; | |
11044 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
11045 | ||
11046 | self = self; | |
11047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11048 | return NULL; | |
11049 | if (_argo0) { | |
11050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
11053 | return NULL; | |
11054 | } | |
11055 | } | |
11056 | { | |
0e2ff151 | 11057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11058 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
11059 | ||
0e2ff151 | 11060 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11061 | if (PyErr_Occurred()) return NULL; |
11062 | } _resultobj = Py_BuildValue("i",_result); | |
11063 | return _resultobj; | |
11064 | } | |
11065 | ||
11066 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
11067 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11068 | PyObject * _resultobj; | |
11069 | wxRect * _result; | |
11070 | wxRegion * _arg0; | |
11071 | PyObject * _argo0 = 0; | |
11072 | char *_kwnames[] = { "self", NULL }; | |
11073 | char _ptemp[128]; | |
11074 | ||
11075 | self = self; | |
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
11077 | return NULL; | |
11078 | if (_argo0) { | |
11079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
11082 | return NULL; | |
11083 | } | |
11084 | } | |
11085 | { | |
0e2ff151 | 11086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11087 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
11088 | ||
0e2ff151 | 11089 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11090 | if (PyErr_Occurred()) return NULL; |
11091 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
11092 | _resultobj = Py_BuildValue("s",_ptemp); | |
11093 | return _resultobj; | |
11094 | } | |
11095 | ||
11096 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11097 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11098 | PyObject * _resultobj; | |
11099 | bool _result; | |
11100 | wxRegion * _arg0; | |
11101 | long _arg1; | |
11102 | long _arg2; | |
11103 | long _arg3; | |
11104 | long _arg4; | |
11105 | PyObject * _argo0 = 0; | |
11106 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11107 | ||
11108 | self = self; | |
11109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11110 | return NULL; | |
11111 | if (_argo0) { | |
11112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
11115 | return NULL; | |
11116 | } | |
11117 | } | |
11118 | { | |
0e2ff151 | 11119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11120 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
11121 | ||
0e2ff151 | 11122 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11123 | if (PyErr_Occurred()) return NULL; |
11124 | } _resultobj = Py_BuildValue("i",_result); | |
11125 | return _resultobj; | |
11126 | } | |
11127 | ||
11128 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
11129 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11130 | PyObject * _resultobj; | |
11131 | bool _result; | |
11132 | wxRegion * _arg0; | |
11133 | wxRect * _arg1; | |
11134 | PyObject * _argo0 = 0; | |
11135 | wxRect temp; | |
11136 | PyObject * _obj1 = 0; | |
11137 | char *_kwnames[] = { "self","rect", NULL }; | |
11138 | ||
11139 | self = self; | |
11140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
11141 | return NULL; | |
11142 | if (_argo0) { | |
11143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
11146 | return NULL; | |
11147 | } | |
11148 | } | |
11149 | { | |
11150 | _arg1 = &temp; | |
11151 | if (! wxRect_helper(_obj1, &_arg1)) | |
11152 | return NULL; | |
11153 | } | |
11154 | { | |
0e2ff151 | 11155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11156 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
11157 | ||
0e2ff151 | 11158 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11159 | if (PyErr_Occurred()) return NULL; |
11160 | } _resultobj = Py_BuildValue("i",_result); | |
11161 | return _resultobj; | |
11162 | } | |
11163 | ||
11164 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
11165 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11166 | PyObject * _resultobj; | |
11167 | bool _result; | |
11168 | wxRegion * _arg0; | |
11169 | wxRegion * _arg1; | |
11170 | PyObject * _argo0 = 0; | |
11171 | PyObject * _argo1 = 0; | |
11172 | char *_kwnames[] = { "self","region", NULL }; | |
11173 | ||
11174 | self = self; | |
11175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
11176 | return NULL; | |
11177 | if (_argo0) { | |
11178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11181 | return NULL; | |
11182 | } | |
11183 | } | |
11184 | if (_argo1) { | |
11185 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11186 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11188 | return NULL; | |
11189 | } | |
11190 | } | |
11191 | { | |
0e2ff151 | 11192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11193 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
11194 | ||
0e2ff151 | 11195 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11196 | if (PyErr_Occurred()) return NULL; |
11197 | } _resultobj = Py_BuildValue("i",_result); | |
11198 | return _resultobj; | |
11199 | } | |
11200 | ||
11201 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
11202 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11203 | PyObject * _resultobj; | |
11204 | bool _result; | |
11205 | wxRegion * _arg0; | |
11206 | PyObject * _argo0 = 0; | |
11207 | char *_kwnames[] = { "self", NULL }; | |
11208 | ||
11209 | self = self; | |
11210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
11211 | return NULL; | |
11212 | if (_argo0) { | |
11213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
11216 | return NULL; | |
11217 | } | |
11218 | } | |
11219 | { | |
0e2ff151 | 11220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11221 | _result = (bool )wxRegion_IsEmpty(_arg0); |
11222 | ||
0e2ff151 | 11223 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11224 | if (PyErr_Occurred()) return NULL; |
11225 | } _resultobj = Py_BuildValue("i",_result); | |
11226 | return _resultobj; | |
11227 | } | |
11228 | ||
11229 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11230 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11231 | PyObject * _resultobj; | |
11232 | bool _result; | |
11233 | wxRegion * _arg0; | |
11234 | long _arg1; | |
11235 | long _arg2; | |
11236 | long _arg3; | |
11237 | long _arg4; | |
11238 | PyObject * _argo0 = 0; | |
11239 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11240 | ||
11241 | self = self; | |
11242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11243 | return NULL; | |
11244 | if (_argo0) { | |
11245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
11248 | return NULL; | |
11249 | } | |
11250 | } | |
11251 | { | |
0e2ff151 | 11252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11253 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
11254 | ||
0e2ff151 | 11255 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11256 | if (PyErr_Occurred()) return NULL; |
11257 | } _resultobj = Py_BuildValue("i",_result); | |
11258 | return _resultobj; | |
11259 | } | |
11260 | ||
11261 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11262 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11263 | PyObject * _resultobj; | |
11264 | bool _result; | |
11265 | wxRegion * _arg0; | |
11266 | wxRect * _arg1; | |
11267 | PyObject * _argo0 = 0; | |
11268 | wxRect temp; | |
11269 | PyObject * _obj1 = 0; | |
11270 | char *_kwnames[] = { "self","rect", NULL }; | |
11271 | ||
11272 | self = self; | |
11273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
11274 | return NULL; | |
11275 | if (_argo0) { | |
11276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
11279 | return NULL; | |
11280 | } | |
11281 | } | |
11282 | { | |
11283 | _arg1 = &temp; | |
11284 | if (! wxRect_helper(_obj1, &_arg1)) | |
11285 | return NULL; | |
11286 | } | |
11287 | { | |
0e2ff151 | 11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11289 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
11290 | ||
0e2ff151 | 11291 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11292 | if (PyErr_Occurred()) return NULL; |
11293 | } _resultobj = Py_BuildValue("i",_result); | |
11294 | return _resultobj; | |
11295 | } | |
11296 | ||
11297 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11298 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11299 | PyObject * _resultobj; | |
11300 | bool _result; | |
11301 | wxRegion * _arg0; | |
11302 | wxRegion * _arg1; | |
11303 | PyObject * _argo0 = 0; | |
11304 | PyObject * _argo1 = 0; | |
11305 | char *_kwnames[] = { "self","region", NULL }; | |
11306 | ||
11307 | self = self; | |
11308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
11309 | return NULL; | |
11310 | if (_argo0) { | |
11311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11314 | return NULL; | |
11315 | } | |
11316 | } | |
11317 | if (_argo1) { | |
11318 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11319 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11321 | return NULL; | |
11322 | } | |
11323 | } | |
11324 | { | |
0e2ff151 | 11325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11326 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
11327 | ||
0e2ff151 | 11328 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11329 | if (PyErr_Occurred()) return NULL; |
11330 | } _resultobj = Py_BuildValue("i",_result); | |
11331 | return _resultobj; | |
11332 | } | |
11333 | ||
11334 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11335 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11336 | PyObject * _resultobj; | |
11337 | bool _result; | |
11338 | wxRegion * _arg0; | |
11339 | long _arg1; | |
11340 | long _arg2; | |
11341 | long _arg3; | |
11342 | long _arg4; | |
11343 | PyObject * _argo0 = 0; | |
11344 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11345 | ||
11346 | self = self; | |
11347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11348 | return NULL; | |
11349 | if (_argo0) { | |
11350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
11353 | return NULL; | |
11354 | } | |
11355 | } | |
11356 | { | |
0e2ff151 | 11357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11358 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
11359 | ||
0e2ff151 | 11360 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11361 | if (PyErr_Occurred()) return NULL; |
11362 | } _resultobj = Py_BuildValue("i",_result); | |
11363 | return _resultobj; | |
11364 | } | |
11365 | ||
11366 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11367 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11368 | PyObject * _resultobj; | |
11369 | bool _result; | |
11370 | wxRegion * _arg0; | |
11371 | wxRect * _arg1; | |
11372 | PyObject * _argo0 = 0; | |
11373 | wxRect temp; | |
11374 | PyObject * _obj1 = 0; | |
11375 | char *_kwnames[] = { "self","rect", NULL }; | |
11376 | ||
11377 | self = self; | |
11378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
11379 | return NULL; | |
11380 | if (_argo0) { | |
11381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
11384 | return NULL; | |
11385 | } | |
11386 | } | |
11387 | { | |
11388 | _arg1 = &temp; | |
11389 | if (! wxRect_helper(_obj1, &_arg1)) | |
11390 | return NULL; | |
11391 | } | |
11392 | { | |
0e2ff151 | 11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11394 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
11395 | ||
0e2ff151 | 11396 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11397 | if (PyErr_Occurred()) return NULL; |
11398 | } _resultobj = Py_BuildValue("i",_result); | |
11399 | return _resultobj; | |
11400 | } | |
11401 | ||
11402 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11403 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11404 | PyObject * _resultobj; | |
11405 | bool _result; | |
11406 | wxRegion * _arg0; | |
11407 | wxRegion * _arg1; | |
11408 | PyObject * _argo0 = 0; | |
11409 | PyObject * _argo1 = 0; | |
11410 | char *_kwnames[] = { "self","region", NULL }; | |
11411 | ||
11412 | self = self; | |
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
11414 | return NULL; | |
11415 | if (_argo0) { | |
11416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11419 | return NULL; | |
11420 | } | |
11421 | } | |
11422 | if (_argo1) { | |
11423 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11424 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11426 | return NULL; | |
11427 | } | |
11428 | } | |
11429 | { | |
0e2ff151 | 11430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11431 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
11432 | ||
0e2ff151 | 11433 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11434 | if (PyErr_Occurred()) return NULL; |
11435 | } _resultobj = Py_BuildValue("i",_result); | |
11436 | return _resultobj; | |
11437 | } | |
11438 | ||
11439 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11440 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11441 | PyObject * _resultobj; | |
11442 | bool _result; | |
11443 | wxRegion * _arg0; | |
11444 | long _arg1; | |
11445 | long _arg2; | |
11446 | long _arg3; | |
11447 | long _arg4; | |
11448 | PyObject * _argo0 = 0; | |
11449 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11450 | ||
11451 | self = self; | |
11452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11453 | return NULL; | |
11454 | if (_argo0) { | |
11455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
11458 | return NULL; | |
11459 | } | |
11460 | } | |
11461 | { | |
0e2ff151 | 11462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11463 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
11464 | ||
0e2ff151 | 11465 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11466 | if (PyErr_Occurred()) return NULL; |
11467 | } _resultobj = Py_BuildValue("i",_result); | |
11468 | return _resultobj; | |
11469 | } | |
11470 | ||
11471 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11472 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11473 | PyObject * _resultobj; | |
11474 | bool _result; | |
11475 | wxRegion * _arg0; | |
11476 | wxRect * _arg1; | |
11477 | PyObject * _argo0 = 0; | |
11478 | wxRect temp; | |
11479 | PyObject * _obj1 = 0; | |
11480 | char *_kwnames[] = { "self","rect", NULL }; | |
11481 | ||
11482 | self = self; | |
11483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
11484 | return NULL; | |
11485 | if (_argo0) { | |
11486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
11489 | return NULL; | |
11490 | } | |
11491 | } | |
11492 | { | |
11493 | _arg1 = &temp; | |
11494 | if (! wxRect_helper(_obj1, &_arg1)) | |
11495 | return NULL; | |
11496 | } | |
11497 | { | |
0e2ff151 | 11498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11499 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
11500 | ||
0e2ff151 | 11501 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11502 | if (PyErr_Occurred()) return NULL; |
11503 | } _resultobj = Py_BuildValue("i",_result); | |
11504 | return _resultobj; | |
11505 | } | |
11506 | ||
11507 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11508 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11509 | PyObject * _resultobj; | |
11510 | bool _result; | |
11511 | wxRegion * _arg0; | |
11512 | wxRegion * _arg1; | |
11513 | PyObject * _argo0 = 0; | |
11514 | PyObject * _argo1 = 0; | |
11515 | char *_kwnames[] = { "self","region", NULL }; | |
11516 | ||
11517 | self = self; | |
11518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11519 | return NULL; | |
11520 | if (_argo0) { | |
11521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11524 | return NULL; | |
11525 | } | |
11526 | } | |
11527 | if (_argo1) { | |
11528 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11529 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11531 | return NULL; | |
11532 | } | |
11533 | } | |
11534 | { | |
0e2ff151 | 11535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11536 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
11537 | ||
0e2ff151 | 11538 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11539 | if (PyErr_Occurred()) return NULL; |
11540 | } _resultobj = Py_BuildValue("i",_result); | |
11541 | return _resultobj; | |
11542 | } | |
11543 | ||
11544 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11545 | wxRegionIterator *src; | |
11546 | wxObject *dest; | |
11547 | src = (wxRegionIterator *) ptr; | |
11548 | dest = (wxObject *) src; | |
11549 | return (void *) dest; | |
11550 | } | |
11551 | ||
11552 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11553 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11554 | PyObject * _resultobj; | |
11555 | wxRegionIterator * _result; | |
11556 | wxRegion * _arg0; | |
11557 | PyObject * _argo0 = 0; | |
11558 | char *_kwnames[] = { "region", NULL }; | |
11559 | char _ptemp[128]; | |
11560 | ||
11561 | self = self; | |
11562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11563 | return NULL; | |
11564 | if (_argo0) { | |
11565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
11568 | return NULL; | |
11569 | } | |
11570 | } | |
11571 | { | |
0e2ff151 | 11572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11573 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
11574 | ||
0e2ff151 | 11575 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11576 | if (PyErr_Occurred()) return NULL; |
11577 | } if (_result) { | |
11578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11579 | _resultobj = Py_BuildValue("s",_ptemp); | |
11580 | } else { | |
11581 | Py_INCREF(Py_None); | |
11582 | _resultobj = Py_None; | |
11583 | } | |
11584 | return _resultobj; | |
11585 | } | |
11586 | ||
11587 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11588 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11589 | PyObject * _resultobj; | |
11590 | wxRegionIterator * _arg0; | |
11591 | PyObject * _argo0 = 0; | |
11592 | char *_kwnames[] = { "self", NULL }; | |
11593 | ||
11594 | self = self; | |
11595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11596 | return NULL; | |
11597 | if (_argo0) { | |
11598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11601 | return NULL; | |
11602 | } | |
11603 | } | |
11604 | { | |
0e2ff151 | 11605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11606 | delete_wxRegionIterator(_arg0); |
11607 | ||
0e2ff151 | 11608 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11609 | if (PyErr_Occurred()) return NULL; |
11610 | } Py_INCREF(Py_None); | |
11611 | _resultobj = Py_None; | |
11612 | return _resultobj; | |
11613 | } | |
11614 | ||
11615 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11616 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11617 | PyObject * _resultobj; | |
11618 | long _result; | |
11619 | wxRegionIterator * _arg0; | |
11620 | PyObject * _argo0 = 0; | |
11621 | char *_kwnames[] = { "self", NULL }; | |
11622 | ||
11623 | self = self; | |
11624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11625 | return NULL; | |
11626 | if (_argo0) { | |
11627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11630 | return NULL; | |
11631 | } | |
11632 | } | |
11633 | { | |
0e2ff151 | 11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11635 | _result = (long )wxRegionIterator_GetX(_arg0); |
11636 | ||
0e2ff151 | 11637 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11638 | if (PyErr_Occurred()) return NULL; |
11639 | } _resultobj = Py_BuildValue("l",_result); | |
11640 | return _resultobj; | |
11641 | } | |
11642 | ||
11643 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11644 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11645 | PyObject * _resultobj; | |
11646 | long _result; | |
11647 | wxRegionIterator * _arg0; | |
11648 | PyObject * _argo0 = 0; | |
11649 | char *_kwnames[] = { "self", NULL }; | |
11650 | ||
11651 | self = self; | |
11652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11653 | return NULL; | |
11654 | if (_argo0) { | |
11655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11658 | return NULL; | |
11659 | } | |
11660 | } | |
11661 | { | |
0e2ff151 | 11662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11663 | _result = (long )wxRegionIterator_GetY(_arg0); |
11664 | ||
0e2ff151 | 11665 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11666 | if (PyErr_Occurred()) return NULL; |
11667 | } _resultobj = Py_BuildValue("l",_result); | |
11668 | return _resultobj; | |
11669 | } | |
11670 | ||
11671 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11672 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11673 | PyObject * _resultobj; | |
11674 | long _result; | |
11675 | wxRegionIterator * _arg0; | |
11676 | PyObject * _argo0 = 0; | |
11677 | char *_kwnames[] = { "self", NULL }; | |
11678 | ||
11679 | self = self; | |
11680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11681 | return NULL; | |
11682 | if (_argo0) { | |
11683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
11686 | return NULL; | |
11687 | } | |
11688 | } | |
11689 | { | |
0e2ff151 | 11690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11691 | _result = (long )wxRegionIterator_GetW(_arg0); |
11692 | ||
0e2ff151 | 11693 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11694 | if (PyErr_Occurred()) return NULL; |
11695 | } _resultobj = Py_BuildValue("l",_result); | |
11696 | return _resultobj; | |
11697 | } | |
11698 | ||
11699 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11700 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11701 | PyObject * _resultobj; | |
11702 | long _result; | |
11703 | wxRegionIterator * _arg0; | |
11704 | PyObject * _argo0 = 0; | |
11705 | char *_kwnames[] = { "self", NULL }; | |
11706 | ||
11707 | self = self; | |
11708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
11709 | return NULL; | |
11710 | if (_argo0) { | |
11711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
11714 | return NULL; | |
11715 | } | |
11716 | } | |
11717 | { | |
0e2ff151 | 11718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11719 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
11720 | ||
0e2ff151 | 11721 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11722 | if (PyErr_Occurred()) return NULL; |
11723 | } _resultobj = Py_BuildValue("l",_result); | |
11724 | return _resultobj; | |
11725 | } | |
11726 | ||
11727 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
11728 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11729 | PyObject * _resultobj; | |
11730 | long _result; | |
11731 | wxRegionIterator * _arg0; | |
11732 | PyObject * _argo0 = 0; | |
11733 | char *_kwnames[] = { "self", NULL }; | |
11734 | ||
11735 | self = self; | |
11736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
11737 | return NULL; | |
11738 | if (_argo0) { | |
11739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
11742 | return NULL; | |
11743 | } | |
11744 | } | |
11745 | { | |
0e2ff151 | 11746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11747 | _result = (long )wxRegionIterator_GetH(_arg0); |
11748 | ||
0e2ff151 | 11749 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11750 | if (PyErr_Occurred()) return NULL; |
11751 | } _resultobj = Py_BuildValue("l",_result); | |
11752 | return _resultobj; | |
11753 | } | |
11754 | ||
11755 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11756 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11757 | PyObject * _resultobj; | |
11758 | long _result; | |
11759 | wxRegionIterator * _arg0; | |
11760 | PyObject * _argo0 = 0; | |
11761 | char *_kwnames[] = { "self", NULL }; | |
11762 | ||
11763 | self = self; | |
11764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
11765 | return NULL; | |
11766 | if (_argo0) { | |
11767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
11770 | return NULL; | |
11771 | } | |
11772 | } | |
11773 | { | |
0e2ff151 | 11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11775 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
11776 | ||
0e2ff151 | 11777 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11778 | if (PyErr_Occurred()) return NULL; |
11779 | } _resultobj = Py_BuildValue("l",_result); | |
11780 | return _resultobj; | |
11781 | } | |
11782 | ||
11783 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
11784 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11785 | PyObject * _resultobj; | |
11786 | wxRect * _result; | |
11787 | wxRegionIterator * _arg0; | |
11788 | PyObject * _argo0 = 0; | |
11789 | char *_kwnames[] = { "self", NULL }; | |
11790 | char _ptemp[128]; | |
11791 | ||
11792 | self = self; | |
11793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
11794 | return NULL; | |
11795 | if (_argo0) { | |
11796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
11799 | return NULL; | |
11800 | } | |
11801 | } | |
11802 | { | |
0e2ff151 | 11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11804 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
11805 | ||
0e2ff151 | 11806 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11807 | if (PyErr_Occurred()) return NULL; |
11808 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
11809 | _resultobj = Py_BuildValue("s",_ptemp); | |
11810 | return _resultobj; | |
11811 | } | |
11812 | ||
11813 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
11814 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11815 | PyObject * _resultobj; | |
11816 | bool _result; | |
11817 | wxRegionIterator * _arg0; | |
11818 | PyObject * _argo0 = 0; | |
11819 | char *_kwnames[] = { "self", NULL }; | |
11820 | ||
11821 | self = self; | |
11822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
11823 | return NULL; | |
11824 | if (_argo0) { | |
11825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
11828 | return NULL; | |
11829 | } | |
11830 | } | |
11831 | { | |
0e2ff151 | 11832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11833 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
11834 | ||
0e2ff151 | 11835 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11836 | if (PyErr_Occurred()) return NULL; |
11837 | } _resultobj = Py_BuildValue("i",_result); | |
11838 | return _resultobj; | |
11839 | } | |
11840 | ||
11841 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
11842 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11843 | PyObject * _resultobj; | |
11844 | wxRegionIterator * _arg0; | |
11845 | PyObject * _argo0 = 0; | |
11846 | char *_kwnames[] = { "self", NULL }; | |
11847 | ||
11848 | self = self; | |
11849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
11850 | return NULL; | |
11851 | if (_argo0) { | |
11852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
11855 | return NULL; | |
11856 | } | |
11857 | } | |
11858 | { | |
0e2ff151 | 11859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11860 | wxRegionIterator_Reset(_arg0); |
11861 | ||
0e2ff151 | 11862 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11863 | if (PyErr_Occurred()) return NULL; |
11864 | } Py_INCREF(Py_None); | |
11865 | _resultobj = Py_None; | |
11866 | return _resultobj; | |
11867 | } | |
11868 | ||
11869 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11870 | (*self) ++; | |
11871 | } | |
11872 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11873 | PyObject * _resultobj; | |
11874 | wxRegionIterator * _arg0; | |
11875 | PyObject * _argo0 = 0; | |
11876 | char *_kwnames[] = { "self", NULL }; | |
11877 | ||
11878 | self = self; | |
11879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11880 | return NULL; | |
11881 | if (_argo0) { | |
11882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11885 | return NULL; | |
11886 | } | |
11887 | } | |
11888 | { | |
0e2ff151 | 11889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
11890 | wxRegionIterator_Next(_arg0); |
11891 | ||
0e2ff151 | 11892 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11893 | if (PyErr_Occurred()) return NULL; |
11894 | } Py_INCREF(Py_None); | |
11895 | _resultobj = Py_None; | |
11896 | return _resultobj; | |
11897 | } | |
11898 | ||
11899 | static PyMethodDef gdicMethods[] = { | |
11900 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
11901 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11902 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11903 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11904 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11906 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11907 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11908 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11909 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11910 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11911 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11912 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11914 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11915 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11916 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11917 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11918 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11919 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11920 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11921 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11922 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11923 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11924 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11925 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11926 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11927 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11928 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11929 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
11930 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11931 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11932 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11933 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11934 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
11935 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11936 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11937 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
11938 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11939 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11940 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
11941 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
11942 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11943 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11944 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11945 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11946 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11947 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11948 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11949 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
11950 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11951 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11952 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11953 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11954 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
11955 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
11956 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
11957 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
11958 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
11959 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
11960 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11961 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11962 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11963 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
11964 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11965 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11966 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11967 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11968 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11969 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11970 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11971 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11972 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11973 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11974 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11975 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11976 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11977 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11978 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11979 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11980 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11981 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11982 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11983 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11984 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11985 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
11986 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11987 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11988 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11989 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11990 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11991 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11992 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11993 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11994 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11995 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11996 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11997 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11998 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
11999 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
12000 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
12001 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12002 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12003 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
12004 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
12005 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
12006 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
12007 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
12008 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
12009 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
12010 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
12011 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
12012 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
12013 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
12014 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
12015 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
12016 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
12017 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
12018 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
12019 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
12020 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
12021 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12022 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
12023 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
12024 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
12025 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
12026 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
12027 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
12028 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
12029 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
12030 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
12031 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e RD |
12032 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
12033 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12034 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
12035 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
12036 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
12037 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
12038 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
12039 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
12040 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
12041 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
12042 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
12043 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
12044 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
12045 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
12046 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
12047 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12048 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 12049 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12050 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
12051 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
12052 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
12053 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12054 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
12055 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
12056 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12057 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12058 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
12059 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
12060 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
12061 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 12062 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12063 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
12064 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
12065 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
12066 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
12067 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
12068 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
12069 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
12070 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12071 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12072 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
12073 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
12074 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
12075 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12076 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12077 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12078 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
12079 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
12080 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
12081 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
12082 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
12083 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
12084 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
12085 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
12086 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
12087 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
12088 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12089 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
12090 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
12091 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
12092 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
12093 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 12094 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12095 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
12096 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
12097 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
12098 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12099 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12100 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
12101 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
12102 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 | 12103 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12104 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
12105 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12106 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12107 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12108 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12109 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12110 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12111 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
12112 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
12113 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 12114 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
d1e76a37 | 12115 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12116 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
12117 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12118 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12119 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12120 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12121 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12122 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
12123 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12124 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
12125 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
12126 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
12127 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
12128 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
12129 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
12130 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
12131 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
12132 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
12133 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
12134 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12135 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
12136 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12137 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
12138 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
12139 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
12140 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12141 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
12142 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
12143 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
12144 | { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
12145 | { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12146 | { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12147 | { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12148 | { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12149 | { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12150 | { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
12151 | { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12152 | { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12153 | { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12154 | { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12155 | { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12156 | { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12157 | { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
12158 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
12159 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12160 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
12161 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
12162 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12163 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12164 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12165 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12166 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12167 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12168 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12169 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12170 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
12171 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
12172 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
12173 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, | |
12174 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
12175 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12176 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12177 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12178 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12179 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12180 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12181 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12182 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12183 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
12184 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
12185 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
12186 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
12187 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
12188 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12189 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12190 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
12191 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12192 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12193 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
12194 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
12195 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
12196 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
12197 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
12198 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
12199 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
12200 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
12201 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
12202 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
12203 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
12204 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12205 | { NULL, NULL } | |
12206 | }; | |
12207 | #ifdef __cplusplus | |
12208 | } | |
12209 | #endif | |
12210 | /* | |
12211 | * This table is used by the pointer type-checker | |
12212 | */ | |
12213 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
12214 | { "_signed_long","_long",0}, | |
12215 | { "_wxPrintQuality","_wxCoord",0}, | |
12216 | { "_wxPrintQuality","_int",0}, | |
12217 | { "_wxPrintQuality","_signed_int",0}, | |
12218 | { "_wxPrintQuality","_unsigned_int",0}, | |
12219 | { "_wxPrintQuality","_wxWindowID",0}, | |
12220 | { "_wxPrintQuality","_uint",0}, | |
12221 | { "_wxPrintQuality","_EBool",0}, | |
12222 | { "_wxPrintQuality","_size_t",0}, | |
12223 | { "_wxPrintQuality","_time_t",0}, | |
12224 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, | |
12225 | { "_byte","_unsigned_char",0}, | |
12226 | { "_long","_unsigned_long",0}, | |
12227 | { "_long","_signed_long",0}, | |
12228 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
12229 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
12230 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
12231 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, | |
12232 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
12233 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
12234 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
12235 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
12236 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
e6056257 RD |
12237 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
12238 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
12239 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
12240 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
12241 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
12242 | { "_size_t","_wxCoord",0}, | |
12243 | { "_size_t","_wxPrintQuality",0}, | |
12244 | { "_size_t","_time_t",0}, | |
12245 | { "_size_t","_unsigned_int",0}, | |
12246 | { "_size_t","_int",0}, | |
12247 | { "_size_t","_wxWindowID",0}, | |
12248 | { "_size_t","_uint",0}, | |
12249 | { "_uint","_wxCoord",0}, | |
12250 | { "_uint","_wxPrintQuality",0}, | |
12251 | { "_uint","_time_t",0}, | |
12252 | { "_uint","_size_t",0}, | |
12253 | { "_uint","_unsigned_int",0}, | |
12254 | { "_uint","_int",0}, | |
12255 | { "_uint","_wxWindowID",0}, | |
12256 | { "_wxChar","_char",0}, | |
12257 | { "_char","_wxChar",0}, | |
12258 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
12259 | { "_EBool","_wxCoord",0}, | |
12260 | { "_EBool","_wxPrintQuality",0}, | |
12261 | { "_EBool","_signed_int",0}, | |
12262 | { "_EBool","_int",0}, | |
12263 | { "_EBool","_wxWindowID",0}, | |
12264 | { "_unsigned_long","_long",0}, | |
12265 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
12266 | { "_signed_int","_wxCoord",0}, | |
12267 | { "_signed_int","_wxPrintQuality",0}, | |
12268 | { "_signed_int","_EBool",0}, | |
12269 | { "_signed_int","_wxWindowID",0}, | |
12270 | { "_signed_int","_int",0}, | |
12271 | { "_WXTYPE","_short",0}, | |
12272 | { "_WXTYPE","_signed_short",0}, | |
12273 | { "_WXTYPE","_unsigned_short",0}, | |
12274 | { "_unsigned_short","_WXTYPE",0}, | |
12275 | { "_unsigned_short","_short",0}, | |
12276 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
12277 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
12278 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
12279 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
e6056257 RD |
12280 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
12281 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
12282 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
12283 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
12284 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
12285 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
12286 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, | |
12287 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
12288 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
12289 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, | |
12290 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
12291 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
12292 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
12293 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
12294 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, | |
12295 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
12296 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
12297 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
12298 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
12299 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
12300 | { "_signed_short","_WXTYPE",0}, | |
12301 | { "_signed_short","_short",0}, | |
12302 | { "_unsigned_char","_byte",0}, | |
12303 | { "_unsigned_int","_wxCoord",0}, | |
12304 | { "_unsigned_int","_wxPrintQuality",0}, | |
12305 | { "_unsigned_int","_time_t",0}, | |
12306 | { "_unsigned_int","_size_t",0}, | |
12307 | { "_unsigned_int","_uint",0}, | |
12308 | { "_unsigned_int","_wxWindowID",0}, | |
12309 | { "_unsigned_int","_int",0}, | |
12310 | { "_short","_WXTYPE",0}, | |
12311 | { "_short","_unsigned_short",0}, | |
12312 | { "_short","_signed_short",0}, | |
12313 | { "_wxWindowID","_wxCoord",0}, | |
12314 | { "_wxWindowID","_wxPrintQuality",0}, | |
12315 | { "_wxWindowID","_time_t",0}, | |
12316 | { "_wxWindowID","_size_t",0}, | |
12317 | { "_wxWindowID","_EBool",0}, | |
12318 | { "_wxWindowID","_uint",0}, | |
12319 | { "_wxWindowID","_int",0}, | |
12320 | { "_wxWindowID","_signed_int",0}, | |
12321 | { "_wxWindowID","_unsigned_int",0}, | |
12322 | { "_int","_wxCoord",0}, | |
12323 | { "_int","_wxPrintQuality",0}, | |
12324 | { "_int","_time_t",0}, | |
12325 | { "_int","_size_t",0}, | |
12326 | { "_int","_EBool",0}, | |
12327 | { "_int","_uint",0}, | |
12328 | { "_int","_wxWindowID",0}, | |
12329 | { "_int","_unsigned_int",0}, | |
12330 | { "_int","_signed_int",0}, | |
12331 | { "_time_t","_wxCoord",0}, | |
12332 | { "_time_t","_wxPrintQuality",0}, | |
12333 | { "_time_t","_unsigned_int",0}, | |
12334 | { "_time_t","_int",0}, | |
12335 | { "_time_t","_wxWindowID",0}, | |
12336 | { "_time_t","_uint",0}, | |
12337 | { "_time_t","_size_t",0}, | |
12338 | { "_wxCoord","_int",0}, | |
12339 | { "_wxCoord","_signed_int",0}, | |
12340 | { "_wxCoord","_unsigned_int",0}, | |
12341 | { "_wxCoord","_wxWindowID",0}, | |
12342 | { "_wxCoord","_uint",0}, | |
12343 | { "_wxCoord","_EBool",0}, | |
12344 | { "_wxCoord","_size_t",0}, | |
12345 | { "_wxCoord","_time_t",0}, | |
12346 | { "_wxCoord","_wxPrintQuality",0}, | |
12347 | {0,0,0}}; | |
12348 | ||
12349 | static PyObject *SWIG_globals; | |
12350 | #ifdef __cplusplus | |
12351 | extern "C" | |
12352 | #endif | |
12353 | SWIGEXPORT(void) initgdic() { | |
12354 | PyObject *m, *d; | |
12355 | SWIG_globals = SWIG_newvarlink(); | |
12356 | m = Py_InitModule("gdic", gdicMethods); | |
12357 | d = PyModule_GetDict(m); | |
12358 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); | |
12359 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
12360 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
12361 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
12362 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
12363 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
12364 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
12365 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
ca31b3da | 12366 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); |
e6056257 RD |
12367 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); |
12368 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
12369 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
12370 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
12371 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
12372 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
12373 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
12374 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
12375 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); | |
12376 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
12377 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
12378 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
12379 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
12380 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
12381 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
12382 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
12383 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
12384 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
12385 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
12386 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
12387 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
12388 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
12389 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
12390 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
12391 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
12392 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); | |
12393 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
12394 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
12395 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
12396 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
12397 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
12398 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
12399 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
12400 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
12401 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); | |
742fc581 RD |
12402 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
12403 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
12404 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
12405 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
e6056257 RD |
12406 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
12407 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
12408 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
12409 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); | |
12410 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
12411 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
12412 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
12413 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
12414 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
12415 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
12416 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
12417 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
12418 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
00360d46 RD |
12419 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
12420 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
12421 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
12422 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
12423 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
12424 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
12425 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
12426 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
12427 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
12428 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
e6056257 RD |
12429 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12430 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
12431 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
12432 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
12433 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
12434 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
12435 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
12436 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
12437 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
12438 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
12439 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
12440 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
12441 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
12442 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
12443 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
12444 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
12445 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
12446 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
12447 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
12448 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
12449 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
12450 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
12451 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
12452 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
12453 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
12454 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
12455 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
12456 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
12457 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
12458 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
12459 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
12460 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
12461 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
12462 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
12463 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
12464 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
12465 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
12466 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
12467 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
12468 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
12469 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
12470 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
12471 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
12472 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); | |
12473 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
12474 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
12475 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
e6056257 RD |
12476 | { |
12477 | int i; | |
12478 | for (i = 0; _swig_mapping[i].n1; i++) | |
12479 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12480 | } | |
12481 | } |