]>
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 | |
97 | ||
98 | static wxString wxPyEmptyStr(""); | |
99 | // Implementations of some alternate "constructors" | |
100 | ||
101 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { | |
102 | return new wxBitmap(width, height, depth); | |
103 | } | |
104 | ||
105 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
106 | char** cArray = NULL; | |
107 | int count; | |
108 | ||
109 | if (!PyList_Check(listOfStrings)) { | |
110 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
111 | return NULL; | |
112 | } | |
113 | count = PyList_Size(listOfStrings); | |
114 | cArray = new char*[count]; | |
115 | ||
116 | for(int x=0; x<count; x++) { | |
117 | // TODO: Need some validation and error checking here | |
118 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
119 | } | |
120 | return cArray; | |
121 | } | |
122 | ||
123 | ||
124 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { | |
125 | char** cArray = NULL; | |
126 | wxBitmap* bmp; | |
127 | ||
128 | cArray = ConvertListOfStrings(listOfStrings); | |
129 | if (! cArray) | |
130 | return NULL; | |
131 | bmp = new wxBitmap(cArray); | |
132 | delete [] cArray; | |
133 | return bmp; | |
134 | } | |
135 | ||
136 | ||
137 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
138 | return new wxBitmap(icon); | |
139 | } | |
140 | ||
141 | ||
142 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { | |
143 | return new wxBitmap(bits, width, height, depth); | |
144 | } | |
145 | ||
146 | ||
147 | // #ifdef __WXMSW__ | |
148 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
149 | // int width, int height, int depth = 1) { | |
150 | // if (! PyString_Check(data)) { | |
151 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
152 | // return NULL; | |
153 | // } | |
154 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
155 | // } | |
156 | // #endif | |
157 | ||
158 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { | |
159 | return new wxMask(bitmap, colour); | |
160 | } | |
161 | // Implementations of some alternate "constructors" | |
162 | wxIcon* wxEmptyIcon() { | |
163 | return new wxIcon(); | |
164 | } | |
165 | ||
166 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
167 | char** cArray = NULL; | |
168 | wxIcon* icon; | |
169 | ||
170 | cArray = ConvertListOfStrings(listOfStrings); | |
171 | if (! cArray) | |
172 | return NULL; | |
173 | icon = new wxIcon(cArray); | |
174 | delete [] cArray; | |
175 | return icon; | |
176 | } | |
177 | // Alternate 'constructor' | |
178 | wxCursor* wxPyStockCursor(int id) { | |
179 | return new wxCursor(id); | |
180 | } | |
181 | // Alternate 'constructor' | |
182 | wxColour* wxNamedColour(const wxString& colorName) { | |
183 | return new wxColour(colorName); | |
184 | } | |
185 | ||
186 | class wxPyPen : public wxPen { | |
187 | public: | |
188 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
189 | : wxPen(colour, width, style) | |
190 | { m_dash = NULL; } | |
191 | ~wxPyPen() { | |
192 | if (m_dash) | |
193 | delete m_dash; | |
194 | } | |
195 | ||
196 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
197 | m_dash = new wxDash[nb_dashes]; | |
198 | for (int i=0; i<nb_dashes; i++) | |
199 | m_dash[i] = dash[i]; | |
200 | wxPen::SetDashes(nb_dashes, m_dash); | |
201 | } | |
202 | ||
203 | private: | |
204 | wxDash* m_dash; | |
205 | }; | |
206 | ||
207 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
208 | *x1 = dc->MinX(); | |
209 | *y1 = dc->MinY(); | |
210 | *x2 = dc->MaxX(); | |
211 | *y2 = dc->MaxY(); | |
212 | } | |
213 | // Alternate 'constructor' | |
214 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
215 | return new wxMemoryDC(oldDC); | |
216 | } | |
217 | ||
218 | #if 0 | |
219 | extern wxFont * wxNORMAL_FONT; | |
220 | extern wxFont * wxSMALL_FONT; | |
221 | extern wxFont * wxITALIC_FONT; | |
222 | extern wxFont * wxSWISS_FONT; | |
223 | extern wxPen * wxRED_PEN; | |
224 | extern wxPen * wxCYAN_PEN; | |
225 | extern wxPen * wxGREEN_PEN; | |
226 | extern wxPen * wxBLACK_PEN; | |
227 | extern wxPen * wxWHITE_PEN; | |
228 | extern wxPen * wxTRANSPARENT_PEN; | |
229 | extern wxPen * wxBLACK_DASHED_PEN; | |
230 | extern wxPen * wxGREY_PEN; | |
231 | extern wxPen * wxMEDIUM_GREY_PEN; | |
232 | extern wxPen * wxLIGHT_GREY_PEN; | |
233 | extern wxBrush * wxBLUE_BRUSH; | |
234 | extern wxBrush * wxGREEN_BRUSH; | |
235 | extern wxBrush * wxWHITE_BRUSH; | |
236 | extern wxBrush * wxBLACK_BRUSH; | |
237 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
238 | extern wxBrush * wxCYAN_BRUSH; | |
239 | extern wxBrush * wxRED_BRUSH; | |
240 | extern wxBrush * wxGREY_BRUSH; | |
241 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
242 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
243 | extern wxColour * wxBLACK; | |
244 | extern wxColour * wxWHITE; | |
245 | extern wxColour * wxRED; | |
246 | extern wxColour * wxBLUE; | |
247 | extern wxColour * wxGREEN; | |
248 | extern wxColour * wxCYAN; | |
249 | extern wxColour * wxLIGHT_GREY; | |
250 | extern wxCursor * wxSTANDARD_CURSOR; | |
251 | extern wxCursor * wxHOURGLASS_CURSOR; | |
252 | extern wxCursor * wxCROSS_CURSOR; | |
253 | extern wxBitmap wxNullBitmap; | |
254 | extern wxIcon wxNullIcon; | |
255 | extern wxCursor wxNullCursor; | |
256 | extern wxPen wxNullPen; | |
257 | extern wxBrush wxNullBrush; | |
258 | extern wxPalette wxNullPalette; | |
259 | extern wxFont wxNullFont; | |
260 | extern wxColour wxNullColour; | |
261 | extern wxFontList * wxTheFontList; | |
262 | extern wxPenList * wxThePenList; | |
263 | extern wxBrushList * wxTheBrushList; | |
264 | extern wxColourDatabase * wxTheColourDatabase; | |
265 | ||
266 | #endif | |
267 | #ifdef __cplusplus | |
268 | extern "C" { | |
269 | #endif | |
270 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
271 | PyObject * _resultobj; | |
272 | wxBitmap * _result; | |
273 | int _arg0; | |
274 | int _arg1; | |
275 | int _arg2 = (int ) -1; | |
276 | char *_kwnames[] = { "width","height","depth", NULL }; | |
277 | char _ptemp[128]; | |
278 | ||
279 | self = self; | |
280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) | |
281 | return NULL; | |
282 | { | |
283 | wxPy_BEGIN_ALLOW_THREADS; | |
284 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
285 | ||
286 | wxPy_END_ALLOW_THREADS; | |
287 | if (PyErr_Occurred()) return NULL; | |
288 | } if (_result) { | |
289 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
290 | _resultobj = Py_BuildValue("s",_ptemp); | |
291 | } else { | |
292 | Py_INCREF(Py_None); | |
293 | _resultobj = Py_None; | |
294 | } | |
295 | return _resultobj; | |
296 | } | |
297 | ||
298 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
299 | PyObject * _resultobj; | |
300 | wxBitmap * _result; | |
301 | PyObject * _arg0; | |
302 | PyObject * _obj0 = 0; | |
303 | char *_kwnames[] = { "listOfStrings", NULL }; | |
304 | char _ptemp[128]; | |
305 | ||
306 | self = self; | |
307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
308 | return NULL; | |
309 | { | |
310 | _arg0 = _obj0; | |
311 | } | |
312 | { | |
313 | wxPy_BEGIN_ALLOW_THREADS; | |
314 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
315 | ||
316 | wxPy_END_ALLOW_THREADS; | |
317 | if (PyErr_Occurred()) return NULL; | |
318 | } if (_result) { | |
319 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
320 | _resultobj = Py_BuildValue("s",_ptemp); | |
321 | } else { | |
322 | Py_INCREF(Py_None); | |
323 | _resultobj = Py_None; | |
324 | } | |
325 | return _resultobj; | |
326 | } | |
327 | ||
328 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
329 | PyObject * _resultobj; | |
330 | wxBitmap * _result; | |
331 | wxIcon * _arg0; | |
332 | PyObject * _argo0 = 0; | |
333 | char *_kwnames[] = { "icon", NULL }; | |
334 | char _ptemp[128]; | |
335 | ||
336 | self = self; | |
337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
338 | return NULL; | |
339 | if (_argo0) { | |
340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
343 | return NULL; | |
344 | } | |
345 | } | |
346 | { | |
347 | wxPy_BEGIN_ALLOW_THREADS; | |
348 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
349 | ||
350 | wxPy_END_ALLOW_THREADS; | |
351 | if (PyErr_Occurred()) return NULL; | |
352 | } if (_result) { | |
353 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
354 | _resultobj = Py_BuildValue("s",_ptemp); | |
355 | } else { | |
356 | Py_INCREF(Py_None); | |
357 | _resultobj = Py_None; | |
358 | } | |
359 | return _resultobj; | |
360 | } | |
361 | ||
362 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
363 | PyObject * _resultobj; | |
364 | wxBitmap * _result; | |
365 | char * _arg0; | |
366 | int _arg1; | |
367 | int _arg2; | |
368 | int _arg3 = (int ) 1; | |
369 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
370 | char _ptemp[128]; | |
371 | ||
372 | self = self; | |
373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
374 | return NULL; | |
375 | { | |
376 | wxPy_BEGIN_ALLOW_THREADS; | |
377 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); | |
378 | ||
379 | wxPy_END_ALLOW_THREADS; | |
380 | if (PyErr_Occurred()) return NULL; | |
381 | } if (_result) { | |
382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
383 | _resultobj = Py_BuildValue("s",_ptemp); | |
384 | } else { | |
385 | Py_INCREF(Py_None); | |
386 | _resultobj = Py_None; | |
387 | } | |
388 | return _resultobj; | |
389 | } | |
390 | ||
391 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
392 | PyObject * _resultobj; | |
393 | wxMask * _result; | |
394 | wxBitmap * _arg0; | |
395 | wxColour * _arg1; | |
396 | PyObject * _argo0 = 0; | |
397 | wxColour temp; | |
398 | PyObject * _obj1 = 0; | |
399 | char *_kwnames[] = { "bitmap","colour", NULL }; | |
400 | char _ptemp[128]; | |
401 | ||
402 | self = self; | |
403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) | |
404 | return NULL; | |
405 | if (_argo0) { | |
406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
409 | return NULL; | |
410 | } | |
411 | } | |
412 | { | |
413 | _arg1 = &temp; | |
414 | if (! wxColour_helper(_obj1, &_arg1)) | |
415 | return NULL; | |
416 | } | |
417 | { | |
418 | wxPy_BEGIN_ALLOW_THREADS; | |
419 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
420 | ||
421 | wxPy_END_ALLOW_THREADS; | |
422 | if (PyErr_Occurred()) return NULL; | |
423 | } if (_result) { | |
424 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
425 | _resultobj = Py_BuildValue("s",_ptemp); | |
426 | } else { | |
427 | Py_INCREF(Py_None); | |
428 | _resultobj = Py_None; | |
429 | } | |
430 | return _resultobj; | |
431 | } | |
432 | ||
433 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
434 | PyObject * _resultobj; | |
435 | wxIcon * _result; | |
436 | char *_kwnames[] = { NULL }; | |
437 | char _ptemp[128]; | |
438 | ||
439 | self = self; | |
440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
441 | return NULL; | |
442 | { | |
443 | wxPy_BEGIN_ALLOW_THREADS; | |
444 | _result = (wxIcon *)wxEmptyIcon(); | |
445 | ||
446 | wxPy_END_ALLOW_THREADS; | |
447 | if (PyErr_Occurred()) return NULL; | |
448 | } if (_result) { | |
449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
450 | _resultobj = Py_BuildValue("s",_ptemp); | |
451 | } else { | |
452 | Py_INCREF(Py_None); | |
453 | _resultobj = Py_None; | |
454 | } | |
455 | return _resultobj; | |
456 | } | |
457 | ||
458 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
459 | PyObject * _resultobj; | |
460 | wxIcon * _result; | |
461 | PyObject * _arg0; | |
462 | PyObject * _obj0 = 0; | |
463 | char *_kwnames[] = { "listOfStrings", NULL }; | |
464 | char _ptemp[128]; | |
465 | ||
466 | self = self; | |
467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
468 | return NULL; | |
469 | { | |
470 | _arg0 = _obj0; | |
471 | } | |
472 | { | |
473 | wxPy_BEGIN_ALLOW_THREADS; | |
474 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
475 | ||
476 | wxPy_END_ALLOW_THREADS; | |
477 | if (PyErr_Occurred()) return NULL; | |
478 | } if (_result) { | |
479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
480 | _resultobj = Py_BuildValue("s",_ptemp); | |
481 | } else { | |
482 | Py_INCREF(Py_None); | |
483 | _resultobj = Py_None; | |
484 | } | |
485 | return _resultobj; | |
486 | } | |
487 | ||
488 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
489 | PyObject * _resultobj; | |
490 | wxCursor * _result; | |
491 | int _arg0; | |
492 | char *_kwnames[] = { "id", NULL }; | |
493 | char _ptemp[128]; | |
494 | ||
495 | self = self; | |
496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) | |
497 | return NULL; | |
498 | { | |
499 | wxPy_BEGIN_ALLOW_THREADS; | |
500 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
501 | ||
502 | wxPy_END_ALLOW_THREADS; | |
503 | if (PyErr_Occurred()) return NULL; | |
504 | } if (_result) { | |
505 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
506 | _resultobj = Py_BuildValue("s",_ptemp); | |
507 | } else { | |
508 | Py_INCREF(Py_None); | |
509 | _resultobj = Py_None; | |
510 | } | |
511 | return _resultobj; | |
512 | } | |
513 | ||
514 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
515 | PyObject * _resultobj; | |
516 | wxColour * _result; | |
517 | wxString * _arg0; | |
518 | PyObject * _obj0 = 0; | |
519 | char *_kwnames[] = { "colorName", NULL }; | |
520 | char _ptemp[128]; | |
521 | ||
522 | self = self; | |
523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) | |
524 | return NULL; | |
525 | { | |
526 | #if PYTHON_API_VERSION >= 1009 | |
527 | char* tmpPtr; int tmpSize; | |
528 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
529 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
530 | return NULL; | |
531 | } | |
532 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
533 | return NULL; | |
534 | _arg0 = new wxString(tmpPtr, tmpSize); | |
535 | #else | |
536 | if (!PyString_Check(_obj0)) { | |
537 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
538 | return NULL; | |
539 | } | |
540 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
541 | #endif | |
542 | } | |
543 | { | |
544 | wxPy_BEGIN_ALLOW_THREADS; | |
545 | _result = (wxColour *)wxNamedColour(*_arg0); | |
546 | ||
547 | wxPy_END_ALLOW_THREADS; | |
548 | if (PyErr_Occurred()) return NULL; | |
549 | } if (_result) { | |
550 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
551 | _resultobj = Py_BuildValue("s",_ptemp); | |
552 | } else { | |
553 | Py_INCREF(Py_None); | |
554 | _resultobj = Py_None; | |
555 | } | |
556 | { | |
557 | if (_obj0) | |
558 | delete _arg0; | |
559 | } | |
560 | return _resultobj; | |
561 | } | |
562 | ||
563 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
564 | PyObject * _resultobj; | |
565 | wxMemoryDC * _result; | |
566 | wxDC * _arg0; | |
567 | PyObject * _argo0 = 0; | |
568 | char *_kwnames[] = { "oldDC", NULL }; | |
569 | char _ptemp[128]; | |
570 | ||
571 | self = self; | |
572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) | |
573 | return NULL; | |
574 | if (_argo0) { | |
575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
578 | return NULL; | |
579 | } | |
580 | } | |
581 | { | |
582 | wxPy_BEGIN_ALLOW_THREADS; | |
583 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
584 | ||
585 | wxPy_END_ALLOW_THREADS; | |
586 | if (PyErr_Occurred()) return NULL; | |
587 | } if (_result) { | |
588 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
589 | _resultobj = Py_BuildValue("s",_ptemp); | |
590 | } else { | |
591 | Py_INCREF(Py_None); | |
592 | _resultobj = Py_None; | |
593 | } | |
594 | return _resultobj; | |
595 | } | |
596 | ||
597 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
598 | ||
599 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
600 | return 1; | |
601 | } | |
602 | ||
603 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
604 | PyObject * pyobj; | |
605 | char ptemp[128]; | |
606 | ||
607 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
608 | pyobj = PyString_FromString(ptemp); | |
609 | return pyobj; | |
610 | } | |
611 | ||
612 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
613 | ||
614 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
615 | return 1; | |
616 | } | |
617 | ||
618 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
619 | PyObject * pyobj; | |
620 | char ptemp[128]; | |
621 | ||
622 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
623 | pyobj = PyString_FromString(ptemp); | |
624 | return pyobj; | |
625 | } | |
626 | ||
627 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
628 | ||
629 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
630 | return 1; | |
631 | } | |
632 | ||
633 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
634 | PyObject * pyobj; | |
635 | char ptemp[128]; | |
636 | ||
637 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
638 | pyobj = PyString_FromString(ptemp); | |
639 | return pyobj; | |
640 | } | |
641 | ||
642 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
643 | ||
644 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
645 | return 1; | |
646 | } | |
647 | ||
648 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
649 | PyObject * pyobj; | |
650 | char ptemp[128]; | |
651 | ||
652 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
653 | pyobj = PyString_FromString(ptemp); | |
654 | return pyobj; | |
655 | } | |
656 | ||
657 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
658 | ||
659 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
660 | return 1; | |
661 | } | |
662 | ||
663 | static PyObject *_wrap_wxRED_PEN_get() { | |
664 | PyObject * pyobj; | |
665 | char ptemp[128]; | |
666 | ||
667 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
668 | pyobj = PyString_FromString(ptemp); | |
669 | return pyobj; | |
670 | } | |
671 | ||
672 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
673 | ||
674 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
675 | return 1; | |
676 | } | |
677 | ||
678 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
679 | PyObject * pyobj; | |
680 | char ptemp[128]; | |
681 | ||
682 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
683 | pyobj = PyString_FromString(ptemp); | |
684 | return pyobj; | |
685 | } | |
686 | ||
687 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
688 | ||
689 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
690 | return 1; | |
691 | } | |
692 | ||
693 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
694 | PyObject * pyobj; | |
695 | char ptemp[128]; | |
696 | ||
697 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
698 | pyobj = PyString_FromString(ptemp); | |
699 | return pyobj; | |
700 | } | |
701 | ||
702 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
703 | ||
704 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
705 | return 1; | |
706 | } | |
707 | ||
708 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
709 | PyObject * pyobj; | |
710 | char ptemp[128]; | |
711 | ||
712 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
713 | pyobj = PyString_FromString(ptemp); | |
714 | return pyobj; | |
715 | } | |
716 | ||
717 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
718 | ||
719 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
720 | return 1; | |
721 | } | |
722 | ||
723 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
724 | PyObject * pyobj; | |
725 | char ptemp[128]; | |
726 | ||
727 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
728 | pyobj = PyString_FromString(ptemp); | |
729 | return pyobj; | |
730 | } | |
731 | ||
732 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
733 | ||
734 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
735 | return 1; | |
736 | } | |
737 | ||
738 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
739 | PyObject * pyobj; | |
740 | char ptemp[128]; | |
741 | ||
742 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
743 | pyobj = PyString_FromString(ptemp); | |
744 | return pyobj; | |
745 | } | |
746 | ||
747 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
748 | ||
749 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
750 | return 1; | |
751 | } | |
752 | ||
753 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
754 | PyObject * pyobj; | |
755 | char ptemp[128]; | |
756 | ||
757 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
758 | pyobj = PyString_FromString(ptemp); | |
759 | return pyobj; | |
760 | } | |
761 | ||
762 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
763 | ||
764 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
765 | return 1; | |
766 | } | |
767 | ||
768 | static PyObject *_wrap_wxGREY_PEN_get() { | |
769 | PyObject * pyobj; | |
770 | char ptemp[128]; | |
771 | ||
772 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
773 | pyobj = PyString_FromString(ptemp); | |
774 | return pyobj; | |
775 | } | |
776 | ||
777 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
778 | ||
779 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
780 | return 1; | |
781 | } | |
782 | ||
783 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
784 | PyObject * pyobj; | |
785 | char ptemp[128]; | |
786 | ||
787 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
788 | pyobj = PyString_FromString(ptemp); | |
789 | return pyobj; | |
790 | } | |
791 | ||
792 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
793 | ||
794 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
795 | return 1; | |
796 | } | |
797 | ||
798 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
799 | PyObject * pyobj; | |
800 | char ptemp[128]; | |
801 | ||
802 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
803 | pyobj = PyString_FromString(ptemp); | |
804 | return pyobj; | |
805 | } | |
806 | ||
807 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
808 | ||
809 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
810 | return 1; | |
811 | } | |
812 | ||
813 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
814 | PyObject * pyobj; | |
815 | char ptemp[128]; | |
816 | ||
817 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
818 | pyobj = PyString_FromString(ptemp); | |
819 | return pyobj; | |
820 | } | |
821 | ||
822 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
823 | ||
824 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
825 | return 1; | |
826 | } | |
827 | ||
828 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
829 | PyObject * pyobj; | |
830 | char ptemp[128]; | |
831 | ||
832 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
833 | pyobj = PyString_FromString(ptemp); | |
834 | return pyobj; | |
835 | } | |
836 | ||
837 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
838 | ||
839 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
840 | return 1; | |
841 | } | |
842 | ||
843 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
844 | PyObject * pyobj; | |
845 | char ptemp[128]; | |
846 | ||
847 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
848 | pyobj = PyString_FromString(ptemp); | |
849 | return pyobj; | |
850 | } | |
851 | ||
852 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
853 | ||
854 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
855 | return 1; | |
856 | } | |
857 | ||
858 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
859 | PyObject * pyobj; | |
860 | char ptemp[128]; | |
861 | ||
862 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
863 | pyobj = PyString_FromString(ptemp); | |
864 | return pyobj; | |
865 | } | |
866 | ||
867 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
868 | ||
869 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
870 | return 1; | |
871 | } | |
872 | ||
873 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
874 | PyObject * pyobj; | |
875 | char ptemp[128]; | |
876 | ||
877 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
878 | pyobj = PyString_FromString(ptemp); | |
879 | return pyobj; | |
880 | } | |
881 | ||
882 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
883 | ||
884 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
885 | return 1; | |
886 | } | |
887 | ||
888 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
889 | PyObject * pyobj; | |
890 | char ptemp[128]; | |
891 | ||
892 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
893 | pyobj = PyString_FromString(ptemp); | |
894 | return pyobj; | |
895 | } | |
896 | ||
897 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
898 | ||
899 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
900 | return 1; | |
901 | } | |
902 | ||
903 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
904 | PyObject * pyobj; | |
905 | char ptemp[128]; | |
906 | ||
907 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
908 | pyobj = PyString_FromString(ptemp); | |
909 | return pyobj; | |
910 | } | |
911 | ||
912 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
913 | ||
914 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
915 | return 1; | |
916 | } | |
917 | ||
918 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
919 | PyObject * pyobj; | |
920 | char ptemp[128]; | |
921 | ||
922 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
923 | pyobj = PyString_FromString(ptemp); | |
924 | return pyobj; | |
925 | } | |
926 | ||
927 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
928 | ||
929 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
930 | return 1; | |
931 | } | |
932 | ||
933 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
934 | PyObject * pyobj; | |
935 | char ptemp[128]; | |
936 | ||
937 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
938 | pyobj = PyString_FromString(ptemp); | |
939 | return pyobj; | |
940 | } | |
941 | ||
942 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
943 | ||
944 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
945 | return 1; | |
946 | } | |
947 | ||
948 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
949 | PyObject * pyobj; | |
950 | char ptemp[128]; | |
951 | ||
952 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
953 | pyobj = PyString_FromString(ptemp); | |
954 | return pyobj; | |
955 | } | |
956 | ||
957 | static int _wrap_wxBLACK_set(PyObject *val) { | |
958 | ||
959 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
960 | return 1; | |
961 | } | |
962 | ||
963 | static PyObject *_wrap_wxBLACK_get() { | |
964 | PyObject * pyobj; | |
965 | char ptemp[128]; | |
966 | ||
967 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
968 | pyobj = PyString_FromString(ptemp); | |
969 | return pyobj; | |
970 | } | |
971 | ||
972 | static int _wrap_wxWHITE_set(PyObject *val) { | |
973 | ||
974 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
975 | return 1; | |
976 | } | |
977 | ||
978 | static PyObject *_wrap_wxWHITE_get() { | |
979 | PyObject * pyobj; | |
980 | char ptemp[128]; | |
981 | ||
982 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
983 | pyobj = PyString_FromString(ptemp); | |
984 | return pyobj; | |
985 | } | |
986 | ||
987 | static int _wrap_wxRED_set(PyObject *val) { | |
988 | ||
989 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
990 | return 1; | |
991 | } | |
992 | ||
993 | static PyObject *_wrap_wxRED_get() { | |
994 | PyObject * pyobj; | |
995 | char ptemp[128]; | |
996 | ||
997 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
998 | pyobj = PyString_FromString(ptemp); | |
999 | return pyobj; | |
1000 | } | |
1001 | ||
1002 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1003 | ||
1004 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1005 | return 1; | |
1006 | } | |
1007 | ||
1008 | static PyObject *_wrap_wxBLUE_get() { | |
1009 | PyObject * pyobj; | |
1010 | char ptemp[128]; | |
1011 | ||
1012 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1013 | pyobj = PyString_FromString(ptemp); | |
1014 | return pyobj; | |
1015 | } | |
1016 | ||
1017 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1018 | ||
1019 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1020 | return 1; | |
1021 | } | |
1022 | ||
1023 | static PyObject *_wrap_wxGREEN_get() { | |
1024 | PyObject * pyobj; | |
1025 | char ptemp[128]; | |
1026 | ||
1027 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1028 | pyobj = PyString_FromString(ptemp); | |
1029 | return pyobj; | |
1030 | } | |
1031 | ||
1032 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1033 | ||
1034 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1035 | return 1; | |
1036 | } | |
1037 | ||
1038 | static PyObject *_wrap_wxCYAN_get() { | |
1039 | PyObject * pyobj; | |
1040 | char ptemp[128]; | |
1041 | ||
1042 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1043 | pyobj = PyString_FromString(ptemp); | |
1044 | return pyobj; | |
1045 | } | |
1046 | ||
1047 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1048 | ||
1049 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1050 | return 1; | |
1051 | } | |
1052 | ||
1053 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1054 | PyObject * pyobj; | |
1055 | char ptemp[128]; | |
1056 | ||
1057 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1058 | pyobj = PyString_FromString(ptemp); | |
1059 | return pyobj; | |
1060 | } | |
1061 | ||
1062 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1063 | ||
1064 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1065 | return 1; | |
1066 | } | |
1067 | ||
1068 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1069 | PyObject * pyobj; | |
1070 | char ptemp[128]; | |
1071 | ||
1072 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1073 | pyobj = PyString_FromString(ptemp); | |
1074 | return pyobj; | |
1075 | } | |
1076 | ||
1077 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1078 | ||
1079 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1080 | return 1; | |
1081 | } | |
1082 | ||
1083 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1084 | PyObject * pyobj; | |
1085 | char ptemp[128]; | |
1086 | ||
1087 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1088 | pyobj = PyString_FromString(ptemp); | |
1089 | return pyobj; | |
1090 | } | |
1091 | ||
1092 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1093 | ||
1094 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1095 | return 1; | |
1096 | } | |
1097 | ||
1098 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1099 | PyObject * pyobj; | |
1100 | char ptemp[128]; | |
1101 | ||
1102 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1103 | pyobj = PyString_FromString(ptemp); | |
1104 | return pyobj; | |
1105 | } | |
1106 | ||
1107 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1108 | ||
1109 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1110 | return 1; | |
1111 | } | |
1112 | ||
1113 | static PyObject *_wrap_wxNullBitmap_get() { | |
1114 | PyObject * pyobj; | |
1115 | char ptemp[128]; | |
1116 | ||
1117 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1118 | pyobj = PyString_FromString(ptemp); | |
1119 | return pyobj; | |
1120 | } | |
1121 | ||
1122 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1123 | ||
1124 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1125 | return 1; | |
1126 | } | |
1127 | ||
1128 | static PyObject *_wrap_wxNullIcon_get() { | |
1129 | PyObject * pyobj; | |
1130 | char ptemp[128]; | |
1131 | ||
1132 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1133 | pyobj = PyString_FromString(ptemp); | |
1134 | return pyobj; | |
1135 | } | |
1136 | ||
1137 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1138 | ||
1139 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1140 | return 1; | |
1141 | } | |
1142 | ||
1143 | static PyObject *_wrap_wxNullCursor_get() { | |
1144 | PyObject * pyobj; | |
1145 | char ptemp[128]; | |
1146 | ||
1147 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1148 | pyobj = PyString_FromString(ptemp); | |
1149 | return pyobj; | |
1150 | } | |
1151 | ||
1152 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1153 | ||
1154 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1155 | return 1; | |
1156 | } | |
1157 | ||
1158 | static PyObject *_wrap_wxNullPen_get() { | |
1159 | PyObject * pyobj; | |
1160 | char ptemp[128]; | |
1161 | ||
1162 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1163 | pyobj = PyString_FromString(ptemp); | |
1164 | return pyobj; | |
1165 | } | |
1166 | ||
1167 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1168 | ||
1169 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1170 | return 1; | |
1171 | } | |
1172 | ||
1173 | static PyObject *_wrap_wxNullBrush_get() { | |
1174 | PyObject * pyobj; | |
1175 | char ptemp[128]; | |
1176 | ||
1177 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1178 | pyobj = PyString_FromString(ptemp); | |
1179 | return pyobj; | |
1180 | } | |
1181 | ||
1182 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1183 | ||
1184 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1185 | return 1; | |
1186 | } | |
1187 | ||
1188 | static PyObject *_wrap_wxNullPalette_get() { | |
1189 | PyObject * pyobj; | |
1190 | char ptemp[128]; | |
1191 | ||
1192 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1193 | pyobj = PyString_FromString(ptemp); | |
1194 | return pyobj; | |
1195 | } | |
1196 | ||
1197 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1198 | ||
1199 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1200 | return 1; | |
1201 | } | |
1202 | ||
1203 | static PyObject *_wrap_wxNullFont_get() { | |
1204 | PyObject * pyobj; | |
1205 | char ptemp[128]; | |
1206 | ||
1207 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1208 | pyobj = PyString_FromString(ptemp); | |
1209 | return pyobj; | |
1210 | } | |
1211 | ||
1212 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1213 | ||
1214 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1215 | return 1; | |
1216 | } | |
1217 | ||
1218 | static PyObject *_wrap_wxNullColour_get() { | |
1219 | PyObject * pyobj; | |
1220 | char ptemp[128]; | |
1221 | ||
1222 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1223 | pyobj = PyString_FromString(ptemp); | |
1224 | return pyobj; | |
1225 | } | |
1226 | ||
1227 | static int _wrap_wxTheFontList_set(PyObject *val) { | |
1228 | ||
1229 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1230 | return 1; | |
1231 | } | |
1232 | ||
1233 | static PyObject *_wrap_wxTheFontList_get() { | |
1234 | PyObject * pyobj; | |
1235 | char ptemp[128]; | |
1236 | ||
1237 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1238 | pyobj = PyString_FromString(ptemp); | |
1239 | return pyobj; | |
1240 | } | |
1241 | ||
1242 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1243 | ||
1244 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1245 | return 1; | |
1246 | } | |
1247 | ||
1248 | static PyObject *_wrap_wxThePenList_get() { | |
1249 | PyObject * pyobj; | |
1250 | char ptemp[128]; | |
1251 | ||
1252 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1253 | pyobj = PyString_FromString(ptemp); | |
1254 | return pyobj; | |
1255 | } | |
1256 | ||
1257 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1258 | ||
1259 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1260 | return 1; | |
1261 | } | |
1262 | ||
1263 | static PyObject *_wrap_wxTheBrushList_get() { | |
1264 | PyObject * pyobj; | |
1265 | char ptemp[128]; | |
1266 | ||
1267 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); | |
1268 | pyobj = PyString_FromString(ptemp); | |
1269 | return pyobj; | |
1270 | } | |
1271 | ||
1272 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1273 | ||
1274 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1275 | return 1; | |
1276 | } | |
1277 | ||
1278 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1279 | PyObject * pyobj; | |
1280 | char ptemp[128]; | |
1281 | ||
1282 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1283 | pyobj = PyString_FromString(ptemp); | |
1284 | return pyobj; | |
1285 | } | |
1286 | ||
1287 | static void *SwigwxGDIObjectTowxObject(void *ptr) { | |
1288 | wxGDIObject *src; | |
1289 | wxObject *dest; | |
1290 | src = (wxGDIObject *) ptr; | |
1291 | dest = (wxObject *) src; | |
1292 | return (void *) dest; | |
1293 | } | |
1294 | ||
1295 | #define new_wxGDIObject() (new wxGDIObject()) | |
1296 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1297 | PyObject * _resultobj; | |
1298 | wxGDIObject * _result; | |
1299 | char *_kwnames[] = { NULL }; | |
1300 | char _ptemp[128]; | |
1301 | ||
1302 | self = self; | |
1303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1304 | return NULL; | |
1305 | { | |
1306 | wxPy_BEGIN_ALLOW_THREADS; | |
1307 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1308 | ||
1309 | wxPy_END_ALLOW_THREADS; | |
1310 | if (PyErr_Occurred()) return NULL; | |
1311 | } if (_result) { | |
1312 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1313 | _resultobj = Py_BuildValue("s",_ptemp); | |
1314 | } else { | |
1315 | Py_INCREF(Py_None); | |
1316 | _resultobj = Py_None; | |
1317 | } | |
1318 | return _resultobj; | |
1319 | } | |
1320 | ||
1321 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1322 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1323 | PyObject * _resultobj; | |
1324 | wxGDIObject * _arg0; | |
1325 | PyObject * _argo0 = 0; | |
1326 | char *_kwnames[] = { "self", NULL }; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1330 | return NULL; | |
1331 | if (_argo0) { | |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | wxPy_BEGIN_ALLOW_THREADS; | |
1340 | delete_wxGDIObject(_arg0); | |
1341 | ||
1342 | wxPy_END_ALLOW_THREADS; | |
1343 | if (PyErr_Occurred()) return NULL; | |
1344 | } Py_INCREF(Py_None); | |
1345 | _resultobj = Py_None; | |
1346 | return _resultobj; | |
1347 | } | |
1348 | ||
1349 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1350 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1351 | PyObject * _resultobj; | |
1352 | bool _result; | |
1353 | wxGDIObject * _arg0; | |
1354 | PyObject * _argo0 = 0; | |
1355 | char *_kwnames[] = { "self", NULL }; | |
1356 | ||
1357 | self = self; | |
1358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1359 | return NULL; | |
1360 | if (_argo0) { | |
1361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1364 | return NULL; | |
1365 | } | |
1366 | } | |
1367 | { | |
1368 | wxPy_BEGIN_ALLOW_THREADS; | |
1369 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1370 | ||
1371 | wxPy_END_ALLOW_THREADS; | |
1372 | if (PyErr_Occurred()) return NULL; | |
1373 | } _resultobj = Py_BuildValue("i",_result); | |
1374 | return _resultobj; | |
1375 | } | |
1376 | ||
1377 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1378 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1379 | PyObject * _resultobj; | |
1380 | wxGDIObject * _arg0; | |
1381 | bool _arg1; | |
1382 | PyObject * _argo0 = 0; | |
1383 | int tempbool1; | |
1384 | char *_kwnames[] = { "self","visible", NULL }; | |
1385 | ||
1386 | self = self; | |
1387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1388 | return NULL; | |
1389 | if (_argo0) { | |
1390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1393 | return NULL; | |
1394 | } | |
1395 | } | |
1396 | _arg1 = (bool ) tempbool1; | |
1397 | { | |
1398 | wxPy_BEGIN_ALLOW_THREADS; | |
1399 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1400 | ||
1401 | wxPy_END_ALLOW_THREADS; | |
1402 | if (PyErr_Occurred()) return NULL; | |
1403 | } Py_INCREF(Py_None); | |
1404 | _resultobj = Py_None; | |
1405 | return _resultobj; | |
1406 | } | |
1407 | ||
1408 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1409 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1410 | PyObject * _resultobj; | |
1411 | bool _result; | |
1412 | wxGDIObject * _arg0; | |
1413 | PyObject * _argo0 = 0; | |
1414 | char *_kwnames[] = { "self", NULL }; | |
1415 | ||
1416 | self = self; | |
1417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1418 | return NULL; | |
1419 | if (_argo0) { | |
1420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1423 | return NULL; | |
1424 | } | |
1425 | } | |
1426 | { | |
1427 | wxPy_BEGIN_ALLOW_THREADS; | |
1428 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1429 | ||
1430 | wxPy_END_ALLOW_THREADS; | |
1431 | if (PyErr_Occurred()) return NULL; | |
1432 | } _resultobj = Py_BuildValue("i",_result); | |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
1436 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1437 | wxBitmap *src; | |
1438 | wxGDIObject *dest; | |
1439 | src = (wxBitmap *) ptr; | |
1440 | dest = (wxGDIObject *) src; | |
1441 | return (void *) dest; | |
1442 | } | |
1443 | ||
1444 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1445 | wxBitmap *src; | |
1446 | wxObject *dest; | |
1447 | src = (wxBitmap *) ptr; | |
1448 | dest = (wxObject *) src; | |
1449 | return (void *) dest; | |
1450 | } | |
1451 | ||
1452 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
1453 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject * _resultobj; | |
1455 | wxBitmap * _result; | |
1456 | wxString * _arg0; | |
1457 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP; | |
1458 | PyObject * _obj0 = 0; | |
1459 | char *_kwnames[] = { "name","type", NULL }; | |
1460 | char _ptemp[128]; | |
1461 | ||
1462 | self = self; | |
1463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) | |
1464 | return NULL; | |
1465 | { | |
1466 | #if PYTHON_API_VERSION >= 1009 | |
1467 | char* tmpPtr; int tmpSize; | |
1468 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1469 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1470 | return NULL; | |
1471 | } | |
1472 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1473 | return NULL; | |
1474 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1475 | #else | |
1476 | if (!PyString_Check(_obj0)) { | |
1477 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1478 | return NULL; | |
1479 | } | |
1480 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1481 | #endif | |
1482 | } | |
1483 | { | |
1484 | wxPy_BEGIN_ALLOW_THREADS; | |
1485 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
1486 | ||
1487 | wxPy_END_ALLOW_THREADS; | |
1488 | if (PyErr_Occurred()) return NULL; | |
1489 | } if (_result) { | |
1490 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1491 | _resultobj = Py_BuildValue("s",_ptemp); | |
1492 | } else { | |
1493 | Py_INCREF(Py_None); | |
1494 | _resultobj = Py_None; | |
1495 | } | |
1496 | { | |
1497 | if (_obj0) | |
1498 | delete _arg0; | |
1499 | } | |
1500 | return _resultobj; | |
1501 | } | |
1502 | ||
1503 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
1504 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1505 | PyObject * _resultobj; | |
1506 | wxBitmap * _arg0; | |
1507 | PyObject * _argo0 = 0; | |
1508 | char *_kwnames[] = { "self", NULL }; | |
1509 | ||
1510 | self = self; | |
1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) | |
1512 | return NULL; | |
1513 | if (_argo0) { | |
1514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
1517 | return NULL; | |
1518 | } | |
1519 | } | |
1520 | { | |
1521 | wxPy_BEGIN_ALLOW_THREADS; | |
1522 | delete_wxBitmap(_arg0); | |
1523 | ||
1524 | wxPy_END_ALLOW_THREADS; | |
1525 | if (PyErr_Occurred()) return NULL; | |
1526 | } Py_INCREF(Py_None); | |
1527 | _resultobj = Py_None; | |
1528 | return _resultobj; | |
1529 | } | |
1530 | ||
1531 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1532 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1533 | PyObject * _resultobj; | |
1534 | wxPalette * _result; | |
1535 | wxBitmap * _arg0; | |
1536 | PyObject * _argo0 = 0; | |
1537 | char *_kwnames[] = { "self", NULL }; | |
1538 | char _ptemp[128]; | |
1539 | ||
1540 | self = self; | |
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) | |
1542 | return NULL; | |
1543 | if (_argo0) { | |
1544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1547 | return NULL; | |
1548 | } | |
1549 | } | |
1550 | { | |
1551 | wxPy_BEGIN_ALLOW_THREADS; | |
1552 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1553 | ||
1554 | wxPy_END_ALLOW_THREADS; | |
1555 | if (PyErr_Occurred()) return NULL; | |
1556 | } if (_result) { | |
1557 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1558 | _resultobj = Py_BuildValue("s",_ptemp); | |
1559 | } else { | |
1560 | Py_INCREF(Py_None); | |
1561 | _resultobj = Py_None; | |
1562 | } | |
1563 | return _resultobj; | |
1564 | } | |
1565 | ||
1566 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1567 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject * _resultobj; | |
1569 | wxMask * _result; | |
1570 | wxBitmap * _arg0; | |
1571 | PyObject * _argo0 = 0; | |
1572 | char *_kwnames[] = { "self", NULL }; | |
1573 | char _ptemp[128]; | |
1574 | ||
1575 | self = self; | |
1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) | |
1577 | return NULL; | |
1578 | if (_argo0) { | |
1579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1582 | return NULL; | |
1583 | } | |
1584 | } | |
1585 | { | |
1586 | wxPy_BEGIN_ALLOW_THREADS; | |
1587 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1588 | ||
1589 | wxPy_END_ALLOW_THREADS; | |
1590 | if (PyErr_Occurred()) return NULL; | |
1591 | } if (_result) { | |
1592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1593 | _resultobj = Py_BuildValue("s",_ptemp); | |
1594 | } else { | |
1595 | Py_INCREF(Py_None); | |
1596 | _resultobj = Py_None; | |
1597 | } | |
1598 | return _resultobj; | |
1599 | } | |
1600 | ||
1601 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1602 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1603 | PyObject * _resultobj; | |
1604 | bool _result; | |
1605 | wxBitmap * _arg0; | |
1606 | wxString * _arg1; | |
1607 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP; | |
1608 | PyObject * _argo0 = 0; | |
1609 | PyObject * _obj1 = 0; | |
1610 | char *_kwnames[] = { "self","name","type", NULL }; | |
1611 | ||
1612 | self = self; | |
1613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1614 | return NULL; | |
1615 | if (_argo0) { | |
1616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1619 | return NULL; | |
1620 | } | |
1621 | } | |
1622 | { | |
1623 | #if PYTHON_API_VERSION >= 1009 | |
1624 | char* tmpPtr; int tmpSize; | |
1625 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1626 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1627 | return NULL; | |
1628 | } | |
1629 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1630 | return NULL; | |
1631 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1632 | #else | |
1633 | if (!PyString_Check(_obj1)) { | |
1634 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1635 | return NULL; | |
1636 | } | |
1637 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1638 | #endif | |
1639 | } | |
1640 | { | |
1641 | wxPy_BEGIN_ALLOW_THREADS; | |
1642 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); | |
1643 | ||
1644 | wxPy_END_ALLOW_THREADS; | |
1645 | if (PyErr_Occurred()) return NULL; | |
1646 | } _resultobj = Py_BuildValue("i",_result); | |
1647 | { | |
1648 | if (_obj1) | |
1649 | delete _arg1; | |
1650 | } | |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) | |
1655 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject * _resultobj; | |
1657 | bool _result; | |
1658 | wxBitmap * _arg0; | |
1659 | wxString * _arg1; | |
1660 | wxBitmapType _arg2; | |
1661 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1662 | PyObject * _argo0 = 0; | |
1663 | PyObject * _obj1 = 0; | |
1664 | PyObject * _argo3 = 0; | |
1665 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
1666 | ||
1667 | self = self; | |
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) | |
1669 | return NULL; | |
1670 | if (_argo0) { | |
1671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1674 | return NULL; | |
1675 | } | |
1676 | } | |
1677 | { | |
1678 | #if PYTHON_API_VERSION >= 1009 | |
1679 | char* tmpPtr; int tmpSize; | |
1680 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1681 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1682 | return NULL; | |
1683 | } | |
1684 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1685 | return NULL; | |
1686 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1687 | #else | |
1688 | if (!PyString_Check(_obj1)) { | |
1689 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1690 | return NULL; | |
1691 | } | |
1692 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1693 | #endif | |
1694 | } | |
1695 | if (_argo3) { | |
1696 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1697 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1699 | return NULL; | |
1700 | } | |
1701 | } | |
1702 | { | |
1703 | wxPy_BEGIN_ALLOW_THREADS; | |
1704 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); | |
1705 | ||
1706 | wxPy_END_ALLOW_THREADS; | |
1707 | if (PyErr_Occurred()) return NULL; | |
1708 | } _resultobj = Py_BuildValue("i",_result); | |
1709 | { | |
1710 | if (_obj1) | |
1711 | delete _arg1; | |
1712 | } | |
1713 | return _resultobj; | |
1714 | } | |
1715 | ||
1716 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1717 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1718 | PyObject * _resultobj; | |
1719 | wxBitmap * _arg0; | |
1720 | wxMask * _arg1; | |
1721 | PyObject * _argo0 = 0; | |
1722 | PyObject * _argo1 = 0; | |
1723 | char *_kwnames[] = { "self","mask", NULL }; | |
1724 | ||
1725 | self = self; | |
1726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1727 | return NULL; | |
1728 | if (_argo0) { | |
1729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1732 | return NULL; | |
1733 | } | |
1734 | } | |
1735 | if (_argo1) { | |
1736 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1737 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1739 | return NULL; | |
1740 | } | |
1741 | } | |
1742 | { | |
1743 | wxPy_BEGIN_ALLOW_THREADS; | |
1744 | wxBitmap_SetMask(_arg0,_arg1); | |
1745 | ||
1746 | wxPy_END_ALLOW_THREADS; | |
1747 | if (PyErr_Occurred()) return NULL; | |
1748 | } Py_INCREF(Py_None); | |
1749 | _resultobj = Py_None; | |
1750 | return _resultobj; | |
1751 | } | |
1752 | ||
1753 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1754 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1755 | PyObject * _resultobj; | |
1756 | bool _result; | |
1757 | wxBitmap * _arg0; | |
1758 | PyObject * _argo0 = 0; | |
1759 | char *_kwnames[] = { "self", NULL }; | |
1760 | ||
1761 | self = self; | |
1762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1763 | return NULL; | |
1764 | if (_argo0) { | |
1765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1768 | return NULL; | |
1769 | } | |
1770 | } | |
1771 | { | |
1772 | wxPy_BEGIN_ALLOW_THREADS; | |
1773 | _result = (bool )wxBitmap_Ok(_arg0); | |
1774 | ||
1775 | wxPy_END_ALLOW_THREADS; | |
1776 | if (PyErr_Occurred()) return NULL; | |
1777 | } _resultobj = Py_BuildValue("i",_result); | |
1778 | return _resultobj; | |
1779 | } | |
1780 | ||
1781 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1782 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1783 | PyObject * _resultobj; | |
1784 | int _result; | |
1785 | wxBitmap * _arg0; | |
1786 | PyObject * _argo0 = 0; | |
1787 | char *_kwnames[] = { "self", NULL }; | |
1788 | ||
1789 | self = self; | |
1790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1791 | return NULL; | |
1792 | if (_argo0) { | |
1793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1796 | return NULL; | |
1797 | } | |
1798 | } | |
1799 | { | |
1800 | wxPy_BEGIN_ALLOW_THREADS; | |
1801 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1802 | ||
1803 | wxPy_END_ALLOW_THREADS; | |
1804 | if (PyErr_Occurred()) return NULL; | |
1805 | } _resultobj = Py_BuildValue("i",_result); | |
1806 | return _resultobj; | |
1807 | } | |
1808 | ||
1809 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1810 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1811 | PyObject * _resultobj; | |
1812 | int _result; | |
1813 | wxBitmap * _arg0; | |
1814 | PyObject * _argo0 = 0; | |
1815 | char *_kwnames[] = { "self", NULL }; | |
1816 | ||
1817 | self = self; | |
1818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1819 | return NULL; | |
1820 | if (_argo0) { | |
1821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1824 | return NULL; | |
1825 | } | |
1826 | } | |
1827 | { | |
1828 | wxPy_BEGIN_ALLOW_THREADS; | |
1829 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1830 | ||
1831 | wxPy_END_ALLOW_THREADS; | |
1832 | if (PyErr_Occurred()) return NULL; | |
1833 | } _resultobj = Py_BuildValue("i",_result); | |
1834 | return _resultobj; | |
1835 | } | |
1836 | ||
1837 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1838 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject * _resultobj; | |
1840 | int _result; | |
1841 | wxBitmap * _arg0; | |
1842 | PyObject * _argo0 = 0; | |
1843 | char *_kwnames[] = { "self", NULL }; | |
1844 | ||
1845 | self = self; | |
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) | |
1847 | return NULL; | |
1848 | if (_argo0) { | |
1849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1852 | return NULL; | |
1853 | } | |
1854 | } | |
1855 | { | |
1856 | wxPy_BEGIN_ALLOW_THREADS; | |
1857 | _result = (int )wxBitmap_GetDepth(_arg0); | |
1858 | ||
1859 | wxPy_END_ALLOW_THREADS; | |
1860 | if (PyErr_Occurred()) return NULL; | |
1861 | } _resultobj = Py_BuildValue("i",_result); | |
1862 | return _resultobj; | |
1863 | } | |
1864 | ||
1865 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1866 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1867 | PyObject * _resultobj; | |
1868 | wxBitmap * _arg0; | |
1869 | int _arg1; | |
1870 | PyObject * _argo0 = 0; | |
1871 | char *_kwnames[] = { "self","w", NULL }; | |
1872 | ||
1873 | self = self; | |
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1875 | return NULL; | |
1876 | if (_argo0) { | |
1877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1880 | return NULL; | |
1881 | } | |
1882 | } | |
1883 | { | |
1884 | wxPy_BEGIN_ALLOW_THREADS; | |
1885 | wxBitmap_SetWidth(_arg0,_arg1); | |
1886 | ||
1887 | wxPy_END_ALLOW_THREADS; | |
1888 | if (PyErr_Occurred()) return NULL; | |
1889 | } Py_INCREF(Py_None); | |
1890 | _resultobj = Py_None; | |
1891 | return _resultobj; | |
1892 | } | |
1893 | ||
1894 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1895 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1896 | PyObject * _resultobj; | |
1897 | wxBitmap * _arg0; | |
1898 | int _arg1; | |
1899 | PyObject * _argo0 = 0; | |
1900 | char *_kwnames[] = { "self","h", NULL }; | |
1901 | ||
1902 | self = self; | |
1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) | |
1904 | return NULL; | |
1905 | if (_argo0) { | |
1906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
1909 | return NULL; | |
1910 | } | |
1911 | } | |
1912 | { | |
1913 | wxPy_BEGIN_ALLOW_THREADS; | |
1914 | wxBitmap_SetHeight(_arg0,_arg1); | |
1915 | ||
1916 | wxPy_END_ALLOW_THREADS; | |
1917 | if (PyErr_Occurred()) return NULL; | |
1918 | } Py_INCREF(Py_None); | |
1919 | _resultobj = Py_None; | |
1920 | return _resultobj; | |
1921 | } | |
1922 | ||
1923 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1924 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1925 | PyObject * _resultobj; | |
1926 | wxBitmap * _arg0; | |
1927 | int _arg1; | |
1928 | PyObject * _argo0 = 0; | |
1929 | char *_kwnames[] = { "self","d", NULL }; | |
1930 | ||
1931 | self = self; | |
1932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
1933 | return NULL; | |
1934 | if (_argo0) { | |
1935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
1938 | return NULL; | |
1939 | } | |
1940 | } | |
1941 | { | |
1942 | wxPy_BEGIN_ALLOW_THREADS; | |
1943 | wxBitmap_SetDepth(_arg0,_arg1); | |
1944 | ||
1945 | wxPy_END_ALLOW_THREADS; | |
1946 | if (PyErr_Occurred()) return NULL; | |
1947 | } Py_INCREF(Py_None); | |
1948 | _resultobj = Py_None; | |
1949 | return _resultobj; | |
1950 | } | |
1951 | ||
1952 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) | |
1953 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1954 | PyObject * _resultobj; | |
1955 | wxBitmap * _result; | |
1956 | wxBitmap * _arg0; | |
1957 | wxRect * _arg1; | |
1958 | PyObject * _argo0 = 0; | |
1959 | wxRect temp; | |
1960 | PyObject * _obj1 = 0; | |
1961 | char *_kwnames[] = { "self","rect", NULL }; | |
1962 | char _ptemp[128]; | |
1963 | ||
1964 | self = self; | |
1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1966 | return NULL; | |
1967 | if (_argo0) { | |
1968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1971 | return NULL; | |
1972 | } | |
1973 | } | |
1974 | { | |
1975 | _arg1 = &temp; | |
1976 | if (! wxRect_helper(_obj1, &_arg1)) | |
1977 | return NULL; | |
1978 | } | |
1979 | { | |
1980 | wxPy_BEGIN_ALLOW_THREADS; | |
1981 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
1982 | ||
1983 | wxPy_END_ALLOW_THREADS; | |
1984 | if (PyErr_Occurred()) return NULL; | |
1985 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1986 | _resultobj = Py_BuildValue("s",_ptemp); | |
1987 | return _resultobj; | |
1988 | } | |
1989 | ||
1990 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
1991 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1992 | PyObject * _resultobj; | |
1993 | bool _result; | |
1994 | wxBitmap * _arg0; | |
1995 | wxIcon * _arg1; | |
1996 | PyObject * _argo0 = 0; | |
1997 | PyObject * _argo1 = 0; | |
1998 | char *_kwnames[] = { "self","icon", NULL }; | |
1999 | ||
2000 | self = self; | |
2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2002 | return NULL; | |
2003 | if (_argo0) { | |
2004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2007 | return NULL; | |
2008 | } | |
2009 | } | |
2010 | if (_argo1) { | |
2011 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2012 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2014 | return NULL; | |
2015 | } | |
2016 | } | |
2017 | { | |
2018 | wxPy_BEGIN_ALLOW_THREADS; | |
2019 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); | |
2020 | ||
2021 | wxPy_END_ALLOW_THREADS; | |
2022 | if (PyErr_Occurred()) return NULL; | |
2023 | } _resultobj = Py_BuildValue("i",_result); | |
2024 | return _resultobj; | |
2025 | } | |
2026 | ||
2027 | static void *SwigwxMaskTowxObject(void *ptr) { | |
2028 | wxMask *src; | |
2029 | wxObject *dest; | |
2030 | src = (wxMask *) ptr; | |
2031 | dest = (wxObject *) src; | |
2032 | return (void *) dest; | |
2033 | } | |
2034 | ||
2035 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
2036 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2037 | PyObject * _resultobj; | |
2038 | wxMask * _result; | |
2039 | wxBitmap * _arg0; | |
2040 | PyObject * _argo0 = 0; | |
2041 | char *_kwnames[] = { "bitmap", NULL }; | |
2042 | char _ptemp[128]; | |
2043 | ||
2044 | self = self; | |
2045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2046 | return NULL; | |
2047 | if (_argo0) { | |
2048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2051 | return NULL; | |
2052 | } | |
2053 | } | |
2054 | { | |
2055 | wxPy_BEGIN_ALLOW_THREADS; | |
2056 | _result = (wxMask *)new_wxMask(*_arg0); | |
2057 | ||
2058 | wxPy_END_ALLOW_THREADS; | |
2059 | if (PyErr_Occurred()) return NULL; | |
2060 | } if (_result) { | |
2061 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2062 | _resultobj = Py_BuildValue("s",_ptemp); | |
2063 | } else { | |
2064 | Py_INCREF(Py_None); | |
2065 | _resultobj = Py_None; | |
2066 | } | |
2067 | return _resultobj; | |
2068 | } | |
2069 | ||
2070 | static void wxMask_Destroy(wxMask *self) { delete self; } | |
2071 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject * _resultobj; | |
2073 | wxMask * _arg0; | |
2074 | PyObject * _argo0 = 0; | |
2075 | char *_kwnames[] = { "self", NULL }; | |
2076 | ||
2077 | self = self; | |
2078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2079 | return NULL; | |
2080 | if (_argo0) { | |
2081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2084 | return NULL; | |
2085 | } | |
2086 | } | |
2087 | { | |
2088 | wxPy_BEGIN_ALLOW_THREADS; | |
2089 | wxMask_Destroy(_arg0); | |
2090 | ||
2091 | wxPy_END_ALLOW_THREADS; | |
2092 | if (PyErr_Occurred()) return NULL; | |
2093 | } Py_INCREF(Py_None); | |
2094 | _resultobj = Py_None; | |
2095 | return _resultobj; | |
2096 | } | |
2097 | ||
2098 | static void *SwigwxIconTowxGDIObject(void *ptr) { | |
2099 | wxIcon *src; | |
2100 | wxGDIObject *dest; | |
2101 | src = (wxIcon *) ptr; | |
2102 | dest = (wxGDIObject *) src; | |
2103 | return (void *) dest; | |
2104 | } | |
2105 | ||
2106 | static void *SwigwxIconTowxObject(void *ptr) { | |
2107 | wxIcon *src; | |
2108 | wxObject *dest; | |
2109 | src = (wxIcon *) ptr; | |
2110 | dest = (wxObject *) src; | |
2111 | return (void *) dest; | |
2112 | } | |
2113 | ||
2114 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2115 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2116 | PyObject * _resultobj; | |
2117 | wxIcon * _result; | |
2118 | wxString * _arg0; | |
2119 | long _arg1; | |
2120 | int _arg2 = (int ) -1; | |
2121 | int _arg3 = (int ) -1; | |
2122 | PyObject * _obj0 = 0; | |
2123 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; | |
2124 | char _ptemp[128]; | |
2125 | ||
2126 | self = self; | |
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2128 | return NULL; | |
2129 | { | |
2130 | #if PYTHON_API_VERSION >= 1009 | |
2131 | char* tmpPtr; int tmpSize; | |
2132 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2133 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2134 | return NULL; | |
2135 | } | |
2136 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2137 | return NULL; | |
2138 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2139 | #else | |
2140 | if (!PyString_Check(_obj0)) { | |
2141 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2142 | return NULL; | |
2143 | } | |
2144 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2145 | #endif | |
2146 | } | |
2147 | { | |
2148 | wxPy_BEGIN_ALLOW_THREADS; | |
2149 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); | |
2150 | ||
2151 | wxPy_END_ALLOW_THREADS; | |
2152 | if (PyErr_Occurred()) return NULL; | |
2153 | } if (_result) { | |
2154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2155 | _resultobj = Py_BuildValue("s",_ptemp); | |
2156 | } else { | |
2157 | Py_INCREF(Py_None); | |
2158 | _resultobj = Py_None; | |
2159 | } | |
2160 | { | |
2161 | if (_obj0) | |
2162 | delete _arg0; | |
2163 | } | |
2164 | return _resultobj; | |
2165 | } | |
2166 | ||
2167 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
2168 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2169 | PyObject * _resultobj; | |
2170 | wxIcon * _arg0; | |
2171 | PyObject * _argo0 = 0; | |
2172 | char *_kwnames[] = { "self", NULL }; | |
2173 | ||
2174 | self = self; | |
2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) | |
2176 | return NULL; | |
2177 | if (_argo0) { | |
2178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
2181 | return NULL; | |
2182 | } | |
2183 | } | |
2184 | { | |
2185 | wxPy_BEGIN_ALLOW_THREADS; | |
2186 | delete_wxIcon(_arg0); | |
2187 | ||
2188 | wxPy_END_ALLOW_THREADS; | |
2189 | if (PyErr_Occurred()) return NULL; | |
2190 | } Py_INCREF(Py_None); | |
2191 | _resultobj = Py_None; | |
2192 | return _resultobj; | |
2193 | } | |
2194 | ||
2195 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2196 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject * _resultobj; | |
2198 | bool _result; | |
2199 | wxIcon * _arg0; | |
2200 | wxString * _arg1; | |
2201 | long _arg2; | |
2202 | PyObject * _argo0 = 0; | |
2203 | PyObject * _obj1 = 0; | |
2204 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2205 | ||
2206 | self = self; | |
2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2208 | return NULL; | |
2209 | if (_argo0) { | |
2210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2213 | return NULL; | |
2214 | } | |
2215 | } | |
2216 | { | |
2217 | #if PYTHON_API_VERSION >= 1009 | |
2218 | char* tmpPtr; int tmpSize; | |
2219 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2220 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2221 | return NULL; | |
2222 | } | |
2223 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2224 | return NULL; | |
2225 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2226 | #else | |
2227 | if (!PyString_Check(_obj1)) { | |
2228 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2229 | return NULL; | |
2230 | } | |
2231 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2232 | #endif | |
2233 | } | |
2234 | { | |
2235 | wxPy_BEGIN_ALLOW_THREADS; | |
2236 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
2237 | ||
2238 | wxPy_END_ALLOW_THREADS; | |
2239 | if (PyErr_Occurred()) return NULL; | |
2240 | } _resultobj = Py_BuildValue("i",_result); | |
2241 | { | |
2242 | if (_obj1) | |
2243 | delete _arg1; | |
2244 | } | |
2245 | return _resultobj; | |
2246 | } | |
2247 | ||
2248 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2249 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2250 | PyObject * _resultobj; | |
2251 | bool _result; | |
2252 | wxIcon * _arg0; | |
2253 | PyObject * _argo0 = 0; | |
2254 | char *_kwnames[] = { "self", NULL }; | |
2255 | ||
2256 | self = self; | |
2257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2258 | return NULL; | |
2259 | if (_argo0) { | |
2260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2263 | return NULL; | |
2264 | } | |
2265 | } | |
2266 | { | |
2267 | wxPy_BEGIN_ALLOW_THREADS; | |
2268 | _result = (bool )wxIcon_Ok(_arg0); | |
2269 | ||
2270 | wxPy_END_ALLOW_THREADS; | |
2271 | if (PyErr_Occurred()) return NULL; | |
2272 | } _resultobj = Py_BuildValue("i",_result); | |
2273 | return _resultobj; | |
2274 | } | |
2275 | ||
2276 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2277 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2278 | PyObject * _resultobj; | |
2279 | int _result; | |
2280 | wxIcon * _arg0; | |
2281 | PyObject * _argo0 = 0; | |
2282 | char *_kwnames[] = { "self", NULL }; | |
2283 | ||
2284 | self = self; | |
2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2286 | return NULL; | |
2287 | if (_argo0) { | |
2288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2291 | return NULL; | |
2292 | } | |
2293 | } | |
2294 | { | |
2295 | wxPy_BEGIN_ALLOW_THREADS; | |
2296 | _result = (int )wxIcon_GetWidth(_arg0); | |
2297 | ||
2298 | wxPy_END_ALLOW_THREADS; | |
2299 | if (PyErr_Occurred()) return NULL; | |
2300 | } _resultobj = Py_BuildValue("i",_result); | |
2301 | return _resultobj; | |
2302 | } | |
2303 | ||
2304 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2305 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2306 | PyObject * _resultobj; | |
2307 | int _result; | |
2308 | wxIcon * _arg0; | |
2309 | PyObject * _argo0 = 0; | |
2310 | char *_kwnames[] = { "self", NULL }; | |
2311 | ||
2312 | self = self; | |
2313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2314 | return NULL; | |
2315 | if (_argo0) { | |
2316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2319 | return NULL; | |
2320 | } | |
2321 | } | |
2322 | { | |
2323 | wxPy_BEGIN_ALLOW_THREADS; | |
2324 | _result = (int )wxIcon_GetHeight(_arg0); | |
2325 | ||
2326 | wxPy_END_ALLOW_THREADS; | |
2327 | if (PyErr_Occurred()) return NULL; | |
2328 | } _resultobj = Py_BuildValue("i",_result); | |
2329 | return _resultobj; | |
2330 | } | |
2331 | ||
2332 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2333 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2334 | PyObject * _resultobj; | |
2335 | int _result; | |
2336 | wxIcon * _arg0; | |
2337 | PyObject * _argo0 = 0; | |
2338 | char *_kwnames[] = { "self", NULL }; | |
2339 | ||
2340 | self = self; | |
2341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2342 | return NULL; | |
2343 | if (_argo0) { | |
2344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2347 | return NULL; | |
2348 | } | |
2349 | } | |
2350 | { | |
2351 | wxPy_BEGIN_ALLOW_THREADS; | |
2352 | _result = (int )wxIcon_GetDepth(_arg0); | |
2353 | ||
2354 | wxPy_END_ALLOW_THREADS; | |
2355 | if (PyErr_Occurred()) return NULL; | |
2356 | } _resultobj = Py_BuildValue("i",_result); | |
2357 | return _resultobj; | |
2358 | } | |
2359 | ||
2360 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2361 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2362 | PyObject * _resultobj; | |
2363 | wxIcon * _arg0; | |
2364 | int _arg1; | |
2365 | PyObject * _argo0 = 0; | |
2366 | char *_kwnames[] = { "self","w", NULL }; | |
2367 | ||
2368 | self = self; | |
2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2370 | return NULL; | |
2371 | if (_argo0) { | |
2372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2375 | return NULL; | |
2376 | } | |
2377 | } | |
2378 | { | |
2379 | wxPy_BEGIN_ALLOW_THREADS; | |
2380 | wxIcon_SetWidth(_arg0,_arg1); | |
2381 | ||
2382 | wxPy_END_ALLOW_THREADS; | |
2383 | if (PyErr_Occurred()) return NULL; | |
2384 | } Py_INCREF(Py_None); | |
2385 | _resultobj = Py_None; | |
2386 | return _resultobj; | |
2387 | } | |
2388 | ||
2389 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2390 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2391 | PyObject * _resultobj; | |
2392 | wxIcon * _arg0; | |
2393 | int _arg1; | |
2394 | PyObject * _argo0 = 0; | |
2395 | char *_kwnames[] = { "self","h", NULL }; | |
2396 | ||
2397 | self = self; | |
2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2399 | return NULL; | |
2400 | if (_argo0) { | |
2401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2404 | return NULL; | |
2405 | } | |
2406 | } | |
2407 | { | |
2408 | wxPy_BEGIN_ALLOW_THREADS; | |
2409 | wxIcon_SetHeight(_arg0,_arg1); | |
2410 | ||
2411 | wxPy_END_ALLOW_THREADS; | |
2412 | if (PyErr_Occurred()) return NULL; | |
2413 | } Py_INCREF(Py_None); | |
2414 | _resultobj = Py_None; | |
2415 | return _resultobj; | |
2416 | } | |
2417 | ||
2418 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2419 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2420 | PyObject * _resultobj; | |
2421 | wxIcon * _arg0; | |
2422 | int _arg1; | |
2423 | PyObject * _argo0 = 0; | |
2424 | char *_kwnames[] = { "self","d", NULL }; | |
2425 | ||
2426 | self = self; | |
2427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2428 | return NULL; | |
2429 | if (_argo0) { | |
2430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2433 | return NULL; | |
2434 | } | |
2435 | } | |
2436 | { | |
2437 | wxPy_BEGIN_ALLOW_THREADS; | |
2438 | wxIcon_SetDepth(_arg0,_arg1); | |
2439 | ||
2440 | wxPy_END_ALLOW_THREADS; | |
2441 | if (PyErr_Occurred()) return NULL; | |
2442 | } Py_INCREF(Py_None); | |
2443 | _resultobj = Py_None; | |
2444 | return _resultobj; | |
2445 | } | |
2446 | ||
2447 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) | |
2448 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2449 | PyObject * _resultobj; | |
2450 | wxIcon * _arg0; | |
2451 | wxBitmap * _arg1; | |
2452 | PyObject * _argo0 = 0; | |
2453 | PyObject * _argo1 = 0; | |
2454 | char *_kwnames[] = { "self","bmp", NULL }; | |
2455 | ||
2456 | self = self; | |
2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2458 | return NULL; | |
2459 | if (_argo0) { | |
2460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2463 | return NULL; | |
2464 | } | |
2465 | } | |
2466 | if (_argo1) { | |
2467 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2468 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2470 | return NULL; | |
2471 | } | |
2472 | } | |
2473 | { | |
2474 | wxPy_BEGIN_ALLOW_THREADS; | |
2475 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2476 | ||
2477 | wxPy_END_ALLOW_THREADS; | |
2478 | if (PyErr_Occurred()) return NULL; | |
2479 | } Py_INCREF(Py_None); | |
2480 | _resultobj = Py_None; | |
2481 | return _resultobj; | |
2482 | } | |
2483 | ||
2484 | static void *SwigwxCursorTowxGDIObject(void *ptr) { | |
2485 | wxCursor *src; | |
2486 | wxGDIObject *dest; | |
2487 | src = (wxCursor *) ptr; | |
2488 | dest = (wxGDIObject *) src; | |
2489 | return (void *) dest; | |
2490 | } | |
2491 | ||
2492 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2493 | wxCursor *src; | |
2494 | wxObject *dest; | |
2495 | src = (wxCursor *) ptr; | |
2496 | dest = (wxObject *) src; | |
2497 | return (void *) dest; | |
2498 | } | |
2499 | ||
2500 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2501 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2502 | PyObject * _resultobj; | |
2503 | wxCursor * _arg0; | |
2504 | PyObject * _argo0 = 0; | |
2505 | char *_kwnames[] = { "self", NULL }; | |
2506 | ||
2507 | self = self; | |
2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2509 | return NULL; | |
2510 | if (_argo0) { | |
2511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2514 | return NULL; | |
2515 | } | |
2516 | } | |
2517 | { | |
2518 | wxPy_BEGIN_ALLOW_THREADS; | |
2519 | delete_wxCursor(_arg0); | |
2520 | ||
2521 | wxPy_END_ALLOW_THREADS; | |
2522 | if (PyErr_Occurred()) return NULL; | |
2523 | } Py_INCREF(Py_None); | |
2524 | _resultobj = Py_None; | |
2525 | return _resultobj; | |
2526 | } | |
2527 | ||
2528 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2529 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2530 | PyObject * _resultobj; | |
2531 | bool _result; | |
2532 | wxCursor * _arg0; | |
2533 | PyObject * _argo0 = 0; | |
2534 | char *_kwnames[] = { "self", NULL }; | |
2535 | ||
2536 | self = self; | |
2537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2538 | return NULL; | |
2539 | if (_argo0) { | |
2540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2543 | return NULL; | |
2544 | } | |
2545 | } | |
2546 | { | |
2547 | wxPy_BEGIN_ALLOW_THREADS; | |
2548 | _result = (bool )wxCursor_Ok(_arg0); | |
2549 | ||
2550 | wxPy_END_ALLOW_THREADS; | |
2551 | if (PyErr_Occurred()) return NULL; | |
2552 | } _resultobj = Py_BuildValue("i",_result); | |
2553 | return _resultobj; | |
2554 | } | |
2555 | ||
2556 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) | |
2557 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2558 | PyObject * _resultobj; | |
2559 | bool _result; | |
2560 | wxNativeFontInfo * _arg0; | |
2561 | wxString * _arg1; | |
2562 | PyObject * _argo0 = 0; | |
2563 | PyObject * _obj1 = 0; | |
2564 | char *_kwnames[] = { "self","s", NULL }; | |
2565 | ||
2566 | self = self; | |
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
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_FromString. Expected _wxNativeFontInfo_p."); | |
2573 | return NULL; | |
2574 | } | |
2575 | } | |
2576 | { | |
2577 | #if PYTHON_API_VERSION >= 1009 | |
2578 | char* tmpPtr; int tmpSize; | |
2579 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2580 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2581 | return NULL; | |
2582 | } | |
2583 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2584 | return NULL; | |
2585 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2586 | #else | |
2587 | if (!PyString_Check(_obj1)) { | |
2588 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2589 | return NULL; | |
2590 | } | |
2591 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2592 | #endif | |
2593 | } | |
2594 | { | |
2595 | wxPy_BEGIN_ALLOW_THREADS; | |
2596 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); | |
2597 | ||
2598 | wxPy_END_ALLOW_THREADS; | |
2599 | if (PyErr_Occurred()) return NULL; | |
2600 | } _resultobj = Py_BuildValue("i",_result); | |
2601 | { | |
2602 | if (_obj1) | |
2603 | delete _arg1; | |
2604 | } | |
2605 | return _resultobj; | |
2606 | } | |
2607 | ||
2608 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) | |
2609 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2610 | PyObject * _resultobj; | |
2611 | wxString * _result; | |
2612 | wxNativeFontInfo * _arg0; | |
2613 | PyObject * _argo0 = 0; | |
2614 | char *_kwnames[] = { "self", NULL }; | |
2615 | ||
2616 | self = self; | |
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
2618 | return NULL; | |
2619 | if (_argo0) { | |
2620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
2623 | return NULL; | |
2624 | } | |
2625 | } | |
2626 | { | |
2627 | wxPy_BEGIN_ALLOW_THREADS; | |
2628 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); | |
2629 | ||
2630 | wxPy_END_ALLOW_THREADS; | |
2631 | if (PyErr_Occurred()) return NULL; | |
2632 | }{ | |
2633 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2634 | } | |
2635 | { | |
2636 | delete _result; | |
2637 | } | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
2641 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
2642 | return self->ToString(); | |
2643 | } | |
2644 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2645 | PyObject * _resultobj; | |
2646 | wxString * _result; | |
2647 | wxNativeFontInfo * _arg0; | |
2648 | PyObject * _argo0 = 0; | |
2649 | char *_kwnames[] = { "self", NULL }; | |
2650 | ||
2651 | self = self; | |
2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
2653 | return NULL; | |
2654 | if (_argo0) { | |
2655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
2658 | return NULL; | |
2659 | } | |
2660 | } | |
2661 | { | |
2662 | wxPy_BEGIN_ALLOW_THREADS; | |
2663 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); | |
2664 | ||
2665 | wxPy_END_ALLOW_THREADS; | |
2666 | if (PyErr_Occurred()) return NULL; | |
2667 | }{ | |
2668 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2669 | } | |
2670 | { | |
2671 | delete _result; | |
2672 | } | |
2673 | return _resultobj; | |
2674 | } | |
2675 | ||
2676 | #define new_wxFontMapper() (new wxFontMapper()) | |
2677 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2678 | PyObject * _resultobj; | |
2679 | wxFontMapper * _result; | |
2680 | char *_kwnames[] = { NULL }; | |
2681 | char _ptemp[128]; | |
2682 | ||
2683 | self = self; | |
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) | |
2685 | return NULL; | |
2686 | { | |
2687 | wxPy_BEGIN_ALLOW_THREADS; | |
2688 | _result = (wxFontMapper *)new_wxFontMapper(); | |
2689 | ||
2690 | wxPy_END_ALLOW_THREADS; | |
2691 | if (PyErr_Occurred()) return NULL; | |
2692 | } if (_result) { | |
2693 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); | |
2694 | _resultobj = Py_BuildValue("s",_ptemp); | |
2695 | } else { | |
2696 | Py_INCREF(Py_None); | |
2697 | _resultobj = Py_None; | |
2698 | } | |
2699 | return _resultobj; | |
2700 | } | |
2701 | ||
2702 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) | |
2703 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2704 | PyObject * _resultobj; | |
2705 | wxFontMapper * _arg0; | |
2706 | PyObject * _argo0 = 0; | |
2707 | char *_kwnames[] = { "self", NULL }; | |
2708 | ||
2709 | self = self; | |
2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) | |
2711 | return NULL; | |
2712 | if (_argo0) { | |
2713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
2716 | return NULL; | |
2717 | } | |
2718 | } | |
2719 | { | |
2720 | wxPy_BEGIN_ALLOW_THREADS; | |
2721 | delete_wxFontMapper(_arg0); | |
2722 | ||
2723 | wxPy_END_ALLOW_THREADS; | |
2724 | if (PyErr_Occurred()) return NULL; | |
2725 | } Py_INCREF(Py_None); | |
2726 | _resultobj = Py_None; | |
2727 | return _resultobj; | |
2728 | } | |
2729 | ||
2730 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { | |
2731 | wxFontEncoding alt_enc; | |
2732 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
2733 | return PyInt_FromLong(alt_enc); | |
2734 | else { | |
2735 | Py_INCREF(Py_None); | |
2736 | return Py_None; | |
2737 | } | |
2738 | } | |
2739 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2740 | PyObject * _resultobj; | |
2741 | PyObject * _result; | |
2742 | wxFontMapper * _arg0; | |
2743 | wxFontEncoding _arg1; | |
2744 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2745 | bool _arg3 = (bool ) TRUE; | |
2746 | PyObject * _argo0 = 0; | |
2747 | PyObject * _obj2 = 0; | |
2748 | int tempbool3 = (int) TRUE; | |
2749 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
2750 | ||
2751 | self = self; | |
2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
2753 | return NULL; | |
2754 | if (_argo0) { | |
2755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
2758 | return NULL; | |
2759 | } | |
2760 | } | |
2761 | if (_obj2) | |
2762 | { | |
2763 | #if PYTHON_API_VERSION >= 1009 | |
2764 | char* tmpPtr; int tmpSize; | |
2765 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2766 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2767 | return NULL; | |
2768 | } | |
2769 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2770 | return NULL; | |
2771 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2772 | #else | |
2773 | if (!PyString_Check(_obj2)) { | |
2774 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2775 | return NULL; | |
2776 | } | |
2777 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2778 | #endif | |
2779 | } | |
2780 | _arg3 = (bool ) tempbool3; | |
2781 | { | |
2782 | wxPy_BEGIN_ALLOW_THREADS; | |
2783 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); | |
2784 | ||
2785 | wxPy_END_ALLOW_THREADS; | |
2786 | if (PyErr_Occurred()) return NULL; | |
2787 | }{ | |
2788 | _resultobj = _result; | |
2789 | } | |
2790 | { | |
2791 | if (_obj2) | |
2792 | delete _arg2; | |
2793 | } | |
2794 | return _resultobj; | |
2795 | } | |
2796 | ||
2797 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) | |
2798 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject * _resultobj; | |
2800 | bool _result; | |
2801 | wxFontMapper * _arg0; | |
2802 | wxFontEncoding _arg1; | |
2803 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2804 | PyObject * _argo0 = 0; | |
2805 | PyObject * _obj2 = 0; | |
2806 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
2807 | ||
2808 | self = self; | |
2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2810 | return NULL; | |
2811 | if (_argo0) { | |
2812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
2815 | return NULL; | |
2816 | } | |
2817 | } | |
2818 | if (_obj2) | |
2819 | { | |
2820 | #if PYTHON_API_VERSION >= 1009 | |
2821 | char* tmpPtr; int tmpSize; | |
2822 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2823 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2824 | return NULL; | |
2825 | } | |
2826 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2827 | return NULL; | |
2828 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2829 | #else | |
2830 | if (!PyString_Check(_obj2)) { | |
2831 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2832 | return NULL; | |
2833 | } | |
2834 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2835 | #endif | |
2836 | } | |
2837 | { | |
2838 | wxPy_BEGIN_ALLOW_THREADS; | |
2839 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); | |
2840 | ||
2841 | wxPy_END_ALLOW_THREADS; | |
2842 | if (PyErr_Occurred()) return NULL; | |
2843 | } _resultobj = Py_BuildValue("i",_result); | |
2844 | { | |
2845 | if (_obj2) | |
2846 | delete _arg2; | |
2847 | } | |
2848 | return _resultobj; | |
2849 | } | |
2850 | ||
2851 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) | |
2852 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2853 | PyObject * _resultobj; | |
2854 | wxFontEncoding _result; | |
2855 | wxFontMapper * _arg0; | |
2856 | wxString * _arg1; | |
2857 | bool _arg2 = (bool ) TRUE; | |
2858 | PyObject * _argo0 = 0; | |
2859 | PyObject * _obj1 = 0; | |
2860 | int tempbool2 = (int) TRUE; | |
2861 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
2862 | ||
2863 | self = self; | |
2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
2865 | return NULL; | |
2866 | if (_argo0) { | |
2867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
2870 | return NULL; | |
2871 | } | |
2872 | } | |
2873 | { | |
2874 | #if PYTHON_API_VERSION >= 1009 | |
2875 | char* tmpPtr; int tmpSize; | |
2876 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2877 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2878 | return NULL; | |
2879 | } | |
2880 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2881 | return NULL; | |
2882 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2883 | #else | |
2884 | if (!PyString_Check(_obj1)) { | |
2885 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2886 | return NULL; | |
2887 | } | |
2888 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2889 | #endif | |
2890 | } | |
2891 | _arg2 = (bool ) tempbool2; | |
2892 | { | |
2893 | wxPy_BEGIN_ALLOW_THREADS; | |
2894 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); | |
2895 | ||
2896 | wxPy_END_ALLOW_THREADS; | |
2897 | if (PyErr_Occurred()) return NULL; | |
2898 | } _resultobj = Py_BuildValue("i",_result); | |
2899 | { | |
2900 | if (_obj1) | |
2901 | delete _arg1; | |
2902 | } | |
2903 | return _resultobj; | |
2904 | } | |
2905 | ||
2906 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2907 | PyObject * _resultobj; | |
2908 | wxString * _result; | |
2909 | wxFontEncoding _arg0; | |
2910 | char *_kwnames[] = { "encoding", NULL }; | |
2911 | ||
2912 | self = self; | |
2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
2914 | return NULL; | |
2915 | { | |
2916 | wxPy_BEGIN_ALLOW_THREADS; | |
2917 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); | |
2918 | ||
2919 | wxPy_END_ALLOW_THREADS; | |
2920 | if (PyErr_Occurred()) return NULL; | |
2921 | }{ | |
2922 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2923 | } | |
2924 | { | |
2925 | delete _result; | |
2926 | } | |
2927 | return _resultobj; | |
2928 | } | |
2929 | ||
2930 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject * _resultobj; | |
2932 | wxString * _result; | |
2933 | wxFontEncoding _arg0; | |
2934 | char *_kwnames[] = { "encoding", NULL }; | |
2935 | ||
2936 | self = self; | |
2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
2938 | return NULL; | |
2939 | { | |
2940 | wxPy_BEGIN_ALLOW_THREADS; | |
2941 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); | |
2942 | ||
2943 | wxPy_END_ALLOW_THREADS; | |
2944 | if (PyErr_Occurred()) return NULL; | |
2945 | }{ | |
2946 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2947 | } | |
2948 | { | |
2949 | delete _result; | |
2950 | } | |
2951 | return _resultobj; | |
2952 | } | |
2953 | ||
2954 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
2955 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2956 | PyObject * _resultobj; | |
2957 | wxFontMapper * _arg0; | |
2958 | wxWindow * _arg1; | |
2959 | PyObject * _argo0 = 0; | |
2960 | PyObject * _argo1 = 0; | |
2961 | char *_kwnames[] = { "self","parent", NULL }; | |
2962 | ||
2963 | self = self; | |
2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
2965 | return NULL; | |
2966 | if (_argo0) { | |
2967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
2970 | return NULL; | |
2971 | } | |
2972 | } | |
2973 | if (_argo1) { | |
2974 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2975 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
2977 | return NULL; | |
2978 | } | |
2979 | } | |
2980 | { | |
2981 | wxPy_BEGIN_ALLOW_THREADS; | |
2982 | wxFontMapper_SetDialogParent(_arg0,_arg1); | |
2983 | ||
2984 | wxPy_END_ALLOW_THREADS; | |
2985 | if (PyErr_Occurred()) return NULL; | |
2986 | } Py_INCREF(Py_None); | |
2987 | _resultobj = Py_None; | |
2988 | return _resultobj; | |
2989 | } | |
2990 | ||
2991 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
2992 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2993 | PyObject * _resultobj; | |
2994 | wxFontMapper * _arg0; | |
2995 | wxString * _arg1; | |
2996 | PyObject * _argo0 = 0; | |
2997 | PyObject * _obj1 = 0; | |
2998 | char *_kwnames[] = { "self","title", NULL }; | |
2999 | ||
3000 | self = self; | |
3001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3002 | return NULL; | |
3003 | if (_argo0) { | |
3004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3007 | return NULL; | |
3008 | } | |
3009 | } | |
3010 | { | |
3011 | #if PYTHON_API_VERSION >= 1009 | |
3012 | char* tmpPtr; int tmpSize; | |
3013 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3014 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3015 | return NULL; | |
3016 | } | |
3017 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3018 | return NULL; | |
3019 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3020 | #else | |
3021 | if (!PyString_Check(_obj1)) { | |
3022 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3023 | return NULL; | |
3024 | } | |
3025 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3026 | #endif | |
3027 | } | |
3028 | { | |
3029 | wxPy_BEGIN_ALLOW_THREADS; | |
3030 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); | |
3031 | ||
3032 | wxPy_END_ALLOW_THREADS; | |
3033 | if (PyErr_Occurred()) return NULL; | |
3034 | } Py_INCREF(Py_None); | |
3035 | _resultobj = Py_None; | |
3036 | { | |
3037 | if (_obj1) | |
3038 | delete _arg1; | |
3039 | } | |
3040 | return _resultobj; | |
3041 | } | |
3042 | ||
3043 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3044 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3045 | PyObject * _resultobj; | |
3046 | wxFontMapper * _arg0; | |
3047 | wxConfigBase * _arg1; | |
3048 | PyObject * _argo0 = 0; | |
3049 | PyObject * _argo1 = 0; | |
3050 | char *_kwnames[] = { "self","config", NULL }; | |
3051 | ||
3052 | self = self; | |
3053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3054 | return NULL; | |
3055 | if (_argo0) { | |
3056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3059 | return NULL; | |
3060 | } | |
3061 | } | |
3062 | if (_argo1) { | |
3063 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3064 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3066 | return NULL; | |
3067 | } | |
3068 | } | |
3069 | { | |
3070 | wxPy_BEGIN_ALLOW_THREADS; | |
3071 | wxFontMapper_SetConfig(_arg0,_arg1); | |
3072 | ||
3073 | wxPy_END_ALLOW_THREADS; | |
3074 | if (PyErr_Occurred()) return NULL; | |
3075 | } Py_INCREF(Py_None); | |
3076 | _resultobj = Py_None; | |
3077 | return _resultobj; | |
3078 | } | |
3079 | ||
3080 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3081 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject * _resultobj; | |
3083 | wxFontMapper * _arg0; | |
3084 | wxString * _arg1; | |
3085 | PyObject * _argo0 = 0; | |
3086 | PyObject * _obj1 = 0; | |
3087 | char *_kwnames[] = { "self","prefix", NULL }; | |
3088 | ||
3089 | self = self; | |
3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3091 | return NULL; | |
3092 | if (_argo0) { | |
3093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3096 | return NULL; | |
3097 | } | |
3098 | } | |
3099 | { | |
3100 | #if PYTHON_API_VERSION >= 1009 | |
3101 | char* tmpPtr; int tmpSize; | |
3102 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3103 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3104 | return NULL; | |
3105 | } | |
3106 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3107 | return NULL; | |
3108 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3109 | #else | |
3110 | if (!PyString_Check(_obj1)) { | |
3111 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3112 | return NULL; | |
3113 | } | |
3114 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3115 | #endif | |
3116 | } | |
3117 | { | |
3118 | wxPy_BEGIN_ALLOW_THREADS; | |
3119 | wxFontMapper_SetConfigPath(_arg0,*_arg1); | |
3120 | ||
3121 | wxPy_END_ALLOW_THREADS; | |
3122 | if (PyErr_Occurred()) return NULL; | |
3123 | } Py_INCREF(Py_None); | |
3124 | _resultobj = Py_None; | |
3125 | { | |
3126 | if (_obj1) | |
3127 | delete _arg1; | |
3128 | } | |
3129 | return _resultobj; | |
3130 | } | |
3131 | ||
3132 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3133 | PyObject * _resultobj; | |
3134 | wxChar * _result; | |
3135 | char *_kwnames[] = { NULL }; | |
3136 | ||
3137 | self = self; | |
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3139 | return NULL; | |
3140 | { | |
3141 | wxPy_BEGIN_ALLOW_THREADS; | |
3142 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); | |
3143 | ||
3144 | wxPy_END_ALLOW_THREADS; | |
3145 | if (PyErr_Occurred()) return NULL; | |
3146 | } _resultobj = Py_BuildValue("s", _result); | |
3147 | return _resultobj; | |
3148 | } | |
3149 | ||
3150 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3151 | wxFont *src; | |
3152 | wxGDIObject *dest; | |
3153 | src = (wxFont *) ptr; | |
3154 | dest = (wxGDIObject *) src; | |
3155 | return (void *) dest; | |
3156 | } | |
3157 | ||
3158 | static void *SwigwxFontTowxObject(void *ptr) { | |
3159 | wxFont *src; | |
3160 | wxObject *dest; | |
3161 | src = (wxFont *) ptr; | |
3162 | dest = (wxObject *) src; | |
3163 | return (void *) dest; | |
3164 | } | |
3165 | ||
3166 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3167 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject * _resultobj; | |
3169 | wxFont * _result; | |
3170 | int _arg0; | |
3171 | int _arg1; | |
3172 | int _arg2; | |
3173 | int _arg3; | |
3174 | int _arg4 = (int ) FALSE; | |
3175 | char * _arg5 = (char *) ""; | |
3176 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3177 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3178 | char _ptemp[128]; | |
3179 | ||
3180 | self = self; | |
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3182 | return NULL; | |
3183 | { | |
3184 | wxPy_BEGIN_ALLOW_THREADS; | |
3185 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3186 | ||
3187 | wxPy_END_ALLOW_THREADS; | |
3188 | if (PyErr_Occurred()) return NULL; | |
3189 | } if (_result) { | |
3190 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3191 | _resultobj = Py_BuildValue("s",_ptemp); | |
3192 | } else { | |
3193 | Py_INCREF(Py_None); | |
3194 | _resultobj = Py_None; | |
3195 | } | |
3196 | return _resultobj; | |
3197 | } | |
3198 | ||
3199 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3200 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3201 | PyObject * _resultobj; | |
3202 | wxFont * _result; | |
3203 | wxNativeFontInfo * _arg0; | |
3204 | PyObject * _argo0 = 0; | |
3205 | char *_kwnames[] = { "info", NULL }; | |
3206 | char _ptemp[128]; | |
3207 | ||
3208 | self = self; | |
3209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3210 | return NULL; | |
3211 | if (_argo0) { | |
3212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3215 | return NULL; | |
3216 | } | |
3217 | } | |
3218 | { | |
3219 | wxPy_BEGIN_ALLOW_THREADS; | |
3220 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); | |
3221 | ||
3222 | wxPy_END_ALLOW_THREADS; | |
3223 | if (PyErr_Occurred()) return NULL; | |
3224 | } if (_result) { | |
3225 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3226 | _resultobj = Py_BuildValue("s",_ptemp); | |
3227 | } else { | |
3228 | Py_INCREF(Py_None); | |
3229 | _resultobj = Py_None; | |
3230 | } | |
3231 | return _resultobj; | |
3232 | } | |
3233 | ||
3234 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3235 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject * _resultobj; | |
3237 | wxFont * _arg0; | |
3238 | PyObject * _argo0 = 0; | |
3239 | char *_kwnames[] = { "self", NULL }; | |
3240 | ||
3241 | self = self; | |
3242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3243 | return NULL; | |
3244 | if (_argo0) { | |
3245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3248 | return NULL; | |
3249 | } | |
3250 | } | |
3251 | { | |
3252 | wxPy_BEGIN_ALLOW_THREADS; | |
3253 | delete_wxFont(_arg0); | |
3254 | ||
3255 | wxPy_END_ALLOW_THREADS; | |
3256 | if (PyErr_Occurred()) return NULL; | |
3257 | } Py_INCREF(Py_None); | |
3258 | _resultobj = Py_None; | |
3259 | return _resultobj; | |
3260 | } | |
3261 | ||
3262 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3263 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3264 | PyObject * _resultobj; | |
3265 | bool _result; | |
3266 | wxFont * _arg0; | |
3267 | PyObject * _argo0 = 0; | |
3268 | char *_kwnames[] = { "self", NULL }; | |
3269 | ||
3270 | self = self; | |
3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3272 | return NULL; | |
3273 | if (_argo0) { | |
3274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3277 | return NULL; | |
3278 | } | |
3279 | } | |
3280 | { | |
3281 | wxPy_BEGIN_ALLOW_THREADS; | |
3282 | _result = (bool )wxFont_Ok(_arg0); | |
3283 | ||
3284 | wxPy_END_ALLOW_THREADS; | |
3285 | if (PyErr_Occurred()) return NULL; | |
3286 | } _resultobj = Py_BuildValue("i",_result); | |
3287 | return _resultobj; | |
3288 | } | |
3289 | ||
3290 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3291 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3292 | PyObject * _resultobj; | |
3293 | int _result; | |
3294 | wxFont * _arg0; | |
3295 | PyObject * _argo0 = 0; | |
3296 | char *_kwnames[] = { "self", NULL }; | |
3297 | ||
3298 | self = self; | |
3299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3300 | return NULL; | |
3301 | if (_argo0) { | |
3302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
3305 | return NULL; | |
3306 | } | |
3307 | } | |
3308 | { | |
3309 | wxPy_BEGIN_ALLOW_THREADS; | |
3310 | _result = (int )wxFont_GetPointSize(_arg0); | |
3311 | ||
3312 | wxPy_END_ALLOW_THREADS; | |
3313 | if (PyErr_Occurred()) return NULL; | |
3314 | } _resultobj = Py_BuildValue("i",_result); | |
3315 | return _resultobj; | |
3316 | } | |
3317 | ||
3318 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3319 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3320 | PyObject * _resultobj; | |
3321 | int _result; | |
3322 | wxFont * _arg0; | |
3323 | PyObject * _argo0 = 0; | |
3324 | char *_kwnames[] = { "self", NULL }; | |
3325 | ||
3326 | self = self; | |
3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
3328 | return NULL; | |
3329 | if (_argo0) { | |
3330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
3333 | return NULL; | |
3334 | } | |
3335 | } | |
3336 | { | |
3337 | wxPy_BEGIN_ALLOW_THREADS; | |
3338 | _result = (int )wxFont_GetFamily(_arg0); | |
3339 | ||
3340 | wxPy_END_ALLOW_THREADS; | |
3341 | if (PyErr_Occurred()) return NULL; | |
3342 | } _resultobj = Py_BuildValue("i",_result); | |
3343 | return _resultobj; | |
3344 | } | |
3345 | ||
3346 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3347 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3348 | PyObject * _resultobj; | |
3349 | int _result; | |
3350 | wxFont * _arg0; | |
3351 | PyObject * _argo0 = 0; | |
3352 | char *_kwnames[] = { "self", NULL }; | |
3353 | ||
3354 | self = self; | |
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
3356 | return NULL; | |
3357 | if (_argo0) { | |
3358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
3361 | return NULL; | |
3362 | } | |
3363 | } | |
3364 | { | |
3365 | wxPy_BEGIN_ALLOW_THREADS; | |
3366 | _result = (int )wxFont_GetStyle(_arg0); | |
3367 | ||
3368 | wxPy_END_ALLOW_THREADS; | |
3369 | if (PyErr_Occurred()) return NULL; | |
3370 | } _resultobj = Py_BuildValue("i",_result); | |
3371 | return _resultobj; | |
3372 | } | |
3373 | ||
3374 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3375 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3376 | PyObject * _resultobj; | |
3377 | int _result; | |
3378 | wxFont * _arg0; | |
3379 | PyObject * _argo0 = 0; | |
3380 | char *_kwnames[] = { "self", NULL }; | |
3381 | ||
3382 | self = self; | |
3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
3384 | return NULL; | |
3385 | if (_argo0) { | |
3386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
3389 | return NULL; | |
3390 | } | |
3391 | } | |
3392 | { | |
3393 | wxPy_BEGIN_ALLOW_THREADS; | |
3394 | _result = (int )wxFont_GetWeight(_arg0); | |
3395 | ||
3396 | wxPy_END_ALLOW_THREADS; | |
3397 | if (PyErr_Occurred()) return NULL; | |
3398 | } _resultobj = Py_BuildValue("i",_result); | |
3399 | return _resultobj; | |
3400 | } | |
3401 | ||
3402 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3403 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject * _resultobj; | |
3405 | bool _result; | |
3406 | wxFont * _arg0; | |
3407 | PyObject * _argo0 = 0; | |
3408 | char *_kwnames[] = { "self", NULL }; | |
3409 | ||
3410 | self = self; | |
3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
3412 | return NULL; | |
3413 | if (_argo0) { | |
3414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
3417 | return NULL; | |
3418 | } | |
3419 | } | |
3420 | { | |
3421 | wxPy_BEGIN_ALLOW_THREADS; | |
3422 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
3423 | ||
3424 | wxPy_END_ALLOW_THREADS; | |
3425 | if (PyErr_Occurred()) return NULL; | |
3426 | } _resultobj = Py_BuildValue("i",_result); | |
3427 | return _resultobj; | |
3428 | } | |
3429 | ||
3430 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3431 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3432 | PyObject * _resultobj; | |
3433 | wxString * _result; | |
3434 | wxFont * _arg0; | |
3435 | PyObject * _argo0 = 0; | |
3436 | char *_kwnames[] = { "self", NULL }; | |
3437 | ||
3438 | self = self; | |
3439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
3440 | return NULL; | |
3441 | if (_argo0) { | |
3442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
3445 | return NULL; | |
3446 | } | |
3447 | } | |
3448 | { | |
3449 | wxPy_BEGIN_ALLOW_THREADS; | |
3450 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
3451 | ||
3452 | wxPy_END_ALLOW_THREADS; | |
3453 | if (PyErr_Occurred()) return NULL; | |
3454 | }{ | |
3455 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3456 | } | |
3457 | { | |
3458 | delete _result; | |
3459 | } | |
3460 | return _resultobj; | |
3461 | } | |
3462 | ||
3463 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3464 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3465 | PyObject * _resultobj; | |
3466 | wxFontEncoding _result; | |
3467 | wxFont * _arg0; | |
3468 | PyObject * _argo0 = 0; | |
3469 | char *_kwnames[] = { "self", NULL }; | |
3470 | ||
3471 | self = self; | |
3472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
3473 | return NULL; | |
3474 | if (_argo0) { | |
3475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
3478 | return NULL; | |
3479 | } | |
3480 | } | |
3481 | { | |
3482 | wxPy_BEGIN_ALLOW_THREADS; | |
3483 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
3484 | ||
3485 | wxPy_END_ALLOW_THREADS; | |
3486 | if (PyErr_Occurred()) return NULL; | |
3487 | } _resultobj = Py_BuildValue("i",_result); | |
3488 | return _resultobj; | |
3489 | } | |
3490 | ||
3491 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) | |
3492 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3493 | PyObject * _resultobj; | |
3494 | wxNativeFontInfo * _result; | |
3495 | wxFont * _arg0; | |
3496 | PyObject * _argo0 = 0; | |
3497 | char *_kwnames[] = { "self", NULL }; | |
3498 | char _ptemp[128]; | |
3499 | ||
3500 | self = self; | |
3501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) | |
3502 | return NULL; | |
3503 | if (_argo0) { | |
3504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); | |
3507 | return NULL; | |
3508 | } | |
3509 | } | |
3510 | { | |
3511 | wxPy_BEGIN_ALLOW_THREADS; | |
3512 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); | |
3513 | ||
3514 | wxPy_END_ALLOW_THREADS; | |
3515 | if (PyErr_Occurred()) return NULL; | |
3516 | } if (_result) { | |
3517 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3518 | _resultobj = Py_BuildValue("s",_ptemp); | |
3519 | } else { | |
3520 | Py_INCREF(Py_None); | |
3521 | _resultobj = Py_None; | |
3522 | } | |
3523 | return _resultobj; | |
3524 | } | |
3525 | ||
3526 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
3527 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3528 | PyObject * _resultobj; | |
3529 | wxFont * _arg0; | |
3530 | int _arg1; | |
3531 | PyObject * _argo0 = 0; | |
3532 | char *_kwnames[] = { "self","pointSize", NULL }; | |
3533 | ||
3534 | self = self; | |
3535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
3536 | return NULL; | |
3537 | if (_argo0) { | |
3538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
3541 | return NULL; | |
3542 | } | |
3543 | } | |
3544 | { | |
3545 | wxPy_BEGIN_ALLOW_THREADS; | |
3546 | wxFont_SetPointSize(_arg0,_arg1); | |
3547 | ||
3548 | wxPy_END_ALLOW_THREADS; | |
3549 | if (PyErr_Occurred()) return NULL; | |
3550 | } Py_INCREF(Py_None); | |
3551 | _resultobj = Py_None; | |
3552 | return _resultobj; | |
3553 | } | |
3554 | ||
3555 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
3556 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3557 | PyObject * _resultobj; | |
3558 | wxFont * _arg0; | |
3559 | int _arg1; | |
3560 | PyObject * _argo0 = 0; | |
3561 | char *_kwnames[] = { "self","family", NULL }; | |
3562 | ||
3563 | self = self; | |
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) | |
3565 | return NULL; | |
3566 | if (_argo0) { | |
3567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); | |
3570 | return NULL; | |
3571 | } | |
3572 | } | |
3573 | { | |
3574 | wxPy_BEGIN_ALLOW_THREADS; | |
3575 | wxFont_SetFamily(_arg0,_arg1); | |
3576 | ||
3577 | wxPy_END_ALLOW_THREADS; | |
3578 | if (PyErr_Occurred()) return NULL; | |
3579 | } Py_INCREF(Py_None); | |
3580 | _resultobj = Py_None; | |
3581 | return _resultobj; | |
3582 | } | |
3583 | ||
3584 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
3585 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3586 | PyObject * _resultobj; | |
3587 | wxFont * _arg0; | |
3588 | int _arg1; | |
3589 | PyObject * _argo0 = 0; | |
3590 | char *_kwnames[] = { "self","style", NULL }; | |
3591 | ||
3592 | self = self; | |
3593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) | |
3594 | return NULL; | |
3595 | if (_argo0) { | |
3596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); | |
3599 | return NULL; | |
3600 | } | |
3601 | } | |
3602 | { | |
3603 | wxPy_BEGIN_ALLOW_THREADS; | |
3604 | wxFont_SetStyle(_arg0,_arg1); | |
3605 | ||
3606 | wxPy_END_ALLOW_THREADS; | |
3607 | if (PyErr_Occurred()) return NULL; | |
3608 | } Py_INCREF(Py_None); | |
3609 | _resultobj = Py_None; | |
3610 | return _resultobj; | |
3611 | } | |
3612 | ||
3613 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
3614 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3615 | PyObject * _resultobj; | |
3616 | wxFont * _arg0; | |
3617 | int _arg1; | |
3618 | PyObject * _argo0 = 0; | |
3619 | char *_kwnames[] = { "self","weight", NULL }; | |
3620 | ||
3621 | self = self; | |
3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) | |
3623 | return NULL; | |
3624 | if (_argo0) { | |
3625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); | |
3628 | return NULL; | |
3629 | } | |
3630 | } | |
3631 | { | |
3632 | wxPy_BEGIN_ALLOW_THREADS; | |
3633 | wxFont_SetWeight(_arg0,_arg1); | |
3634 | ||
3635 | wxPy_END_ALLOW_THREADS; | |
3636 | if (PyErr_Occurred()) return NULL; | |
3637 | } Py_INCREF(Py_None); | |
3638 | _resultobj = Py_None; | |
3639 | return _resultobj; | |
3640 | } | |
3641 | ||
3642 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
3643 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject * _resultobj; | |
3645 | wxFont * _arg0; | |
3646 | wxString * _arg1; | |
3647 | PyObject * _argo0 = 0; | |
3648 | PyObject * _obj1 = 0; | |
3649 | char *_kwnames[] = { "self","faceName", NULL }; | |
3650 | ||
3651 | self = self; | |
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
3653 | return NULL; | |
3654 | if (_argo0) { | |
3655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
3658 | return NULL; | |
3659 | } | |
3660 | } | |
3661 | { | |
3662 | #if PYTHON_API_VERSION >= 1009 | |
3663 | char* tmpPtr; int tmpSize; | |
3664 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3665 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3666 | return NULL; | |
3667 | } | |
3668 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3669 | return NULL; | |
3670 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3671 | #else | |
3672 | if (!PyString_Check(_obj1)) { | |
3673 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3674 | return NULL; | |
3675 | } | |
3676 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3677 | #endif | |
3678 | } | |
3679 | { | |
3680 | wxPy_BEGIN_ALLOW_THREADS; | |
3681 | wxFont_SetFaceName(_arg0,*_arg1); | |
3682 | ||
3683 | wxPy_END_ALLOW_THREADS; | |
3684 | if (PyErr_Occurred()) return NULL; | |
3685 | } Py_INCREF(Py_None); | |
3686 | _resultobj = Py_None; | |
3687 | { | |
3688 | if (_obj1) | |
3689 | delete _arg1; | |
3690 | } | |
3691 | return _resultobj; | |
3692 | } | |
3693 | ||
3694 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
3695 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3696 | PyObject * _resultobj; | |
3697 | wxFont * _arg0; | |
3698 | bool _arg1; | |
3699 | PyObject * _argo0 = 0; | |
3700 | int tempbool1; | |
3701 | char *_kwnames[] = { "self","underlined", NULL }; | |
3702 | ||
3703 | self = self; | |
3704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
3705 | return NULL; | |
3706 | if (_argo0) { | |
3707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); | |
3710 | return NULL; | |
3711 | } | |
3712 | } | |
3713 | _arg1 = (bool ) tempbool1; | |
3714 | { | |
3715 | wxPy_BEGIN_ALLOW_THREADS; | |
3716 | wxFont_SetUnderlined(_arg0,_arg1); | |
3717 | ||
3718 | wxPy_END_ALLOW_THREADS; | |
3719 | if (PyErr_Occurred()) return NULL; | |
3720 | } Py_INCREF(Py_None); | |
3721 | _resultobj = Py_None; | |
3722 | return _resultobj; | |
3723 | } | |
3724 | ||
3725 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
3726 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3727 | PyObject * _resultobj; | |
3728 | wxFont * _arg0; | |
3729 | wxFontEncoding _arg1; | |
3730 | PyObject * _argo0 = 0; | |
3731 | char *_kwnames[] = { "self","encoding", NULL }; | |
3732 | ||
3733 | self = self; | |
3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3735 | return NULL; | |
3736 | if (_argo0) { | |
3737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
3740 | return NULL; | |
3741 | } | |
3742 | } | |
3743 | { | |
3744 | wxPy_BEGIN_ALLOW_THREADS; | |
3745 | wxFont_SetEncoding(_arg0,_arg1); | |
3746 | ||
3747 | wxPy_END_ALLOW_THREADS; | |
3748 | if (PyErr_Occurred()) return NULL; | |
3749 | } Py_INCREF(Py_None); | |
3750 | _resultobj = Py_None; | |
3751 | return _resultobj; | |
3752 | } | |
3753 | ||
3754 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) | |
3755 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3756 | PyObject * _resultobj; | |
3757 | wxFont * _arg0; | |
3758 | wxNativeFontInfo * _arg1; | |
3759 | PyObject * _argo0 = 0; | |
3760 | PyObject * _argo1 = 0; | |
3761 | char *_kwnames[] = { "self","info", NULL }; | |
3762 | ||
3763 | self = self; | |
3764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) | |
3765 | return NULL; | |
3766 | if (_argo0) { | |
3767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); | |
3770 | return NULL; | |
3771 | } | |
3772 | } | |
3773 | if (_argo1) { | |
3774 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3775 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
3776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
3777 | return NULL; | |
3778 | } | |
3779 | } | |
3780 | { | |
3781 | wxPy_BEGIN_ALLOW_THREADS; | |
3782 | wxFont_SetNativeFontInfo(_arg0,*_arg1); | |
3783 | ||
3784 | wxPy_END_ALLOW_THREADS; | |
3785 | if (PyErr_Occurred()) return NULL; | |
3786 | } Py_INCREF(Py_None); | |
3787 | _resultobj = Py_None; | |
3788 | return _resultobj; | |
3789 | } | |
3790 | ||
3791 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
3792 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject * _resultobj; | |
3794 | wxString * _result; | |
3795 | wxFont * _arg0; | |
3796 | PyObject * _argo0 = 0; | |
3797 | char *_kwnames[] = { "self", NULL }; | |
3798 | ||
3799 | self = self; | |
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
3801 | return NULL; | |
3802 | if (_argo0) { | |
3803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
3806 | return NULL; | |
3807 | } | |
3808 | } | |
3809 | { | |
3810 | wxPy_BEGIN_ALLOW_THREADS; | |
3811 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
3812 | ||
3813 | wxPy_END_ALLOW_THREADS; | |
3814 | if (PyErr_Occurred()) return NULL; | |
3815 | }{ | |
3816 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3817 | } | |
3818 | { | |
3819 | delete _result; | |
3820 | } | |
3821 | return _resultobj; | |
3822 | } | |
3823 | ||
3824 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
3825 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3826 | PyObject * _resultobj; | |
3827 | wxString * _result; | |
3828 | wxFont * _arg0; | |
3829 | PyObject * _argo0 = 0; | |
3830 | char *_kwnames[] = { "self", NULL }; | |
3831 | ||
3832 | self = self; | |
3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
3834 | return NULL; | |
3835 | if (_argo0) { | |
3836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
3839 | return NULL; | |
3840 | } | |
3841 | } | |
3842 | { | |
3843 | wxPy_BEGIN_ALLOW_THREADS; | |
3844 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
3845 | ||
3846 | wxPy_END_ALLOW_THREADS; | |
3847 | if (PyErr_Occurred()) return NULL; | |
3848 | }{ | |
3849 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3850 | } | |
3851 | { | |
3852 | delete _result; | |
3853 | } | |
3854 | return _resultobj; | |
3855 | } | |
3856 | ||
3857 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
3858 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3859 | PyObject * _resultobj; | |
3860 | wxString * _result; | |
3861 | wxFont * _arg0; | |
3862 | PyObject * _argo0 = 0; | |
3863 | char *_kwnames[] = { "self", NULL }; | |
3864 | ||
3865 | self = self; | |
3866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
3867 | return NULL; | |
3868 | if (_argo0) { | |
3869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
3872 | return NULL; | |
3873 | } | |
3874 | } | |
3875 | { | |
3876 | wxPy_BEGIN_ALLOW_THREADS; | |
3877 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
3878 | ||
3879 | wxPy_END_ALLOW_THREADS; | |
3880 | if (PyErr_Occurred()) return NULL; | |
3881 | }{ | |
3882 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3883 | } | |
3884 | { | |
3885 | delete _result; | |
3886 | } | |
3887 | return _resultobj; | |
3888 | } | |
3889 | ||
3890 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3891 | PyObject * _resultobj; | |
3892 | wxFontEncoding _result; | |
3893 | char *_kwnames[] = { NULL }; | |
3894 | ||
3895 | self = self; | |
3896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
3897 | return NULL; | |
3898 | { | |
3899 | wxPy_BEGIN_ALLOW_THREADS; | |
3900 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); | |
3901 | ||
3902 | wxPy_END_ALLOW_THREADS; | |
3903 | if (PyErr_Occurred()) return NULL; | |
3904 | } _resultobj = Py_BuildValue("i",_result); | |
3905 | return _resultobj; | |
3906 | } | |
3907 | ||
3908 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3909 | PyObject * _resultobj; | |
3910 | wxFontEncoding _arg0; | |
3911 | char *_kwnames[] = { "encoding", NULL }; | |
3912 | ||
3913 | self = self; | |
3914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
3915 | return NULL; | |
3916 | { | |
3917 | wxPy_BEGIN_ALLOW_THREADS; | |
3918 | wxFont::SetDefaultEncoding(_arg0); | |
3919 | ||
3920 | wxPy_END_ALLOW_THREADS; | |
3921 | if (PyErr_Occurred()) return NULL; | |
3922 | } Py_INCREF(Py_None); | |
3923 | _resultobj = Py_None; | |
3924 | return _resultobj; | |
3925 | } | |
3926 | ||
3927 | static void *SwigwxFontListTowxObject(void *ptr) { | |
3928 | wxFontList *src; | |
3929 | wxObject *dest; | |
3930 | src = (wxFontList *) ptr; | |
3931 | dest = (wxObject *) src; | |
3932 | return (void *) dest; | |
3933 | } | |
3934 | ||
3935 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) | |
3936 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3937 | PyObject * _resultobj; | |
3938 | wxFontList * _arg0; | |
3939 | wxFont * _arg1; | |
3940 | PyObject * _argo0 = 0; | |
3941 | PyObject * _argo1 = 0; | |
3942 | char *_kwnames[] = { "self","font", NULL }; | |
3943 | ||
3944 | self = self; | |
3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
3946 | return NULL; | |
3947 | if (_argo0) { | |
3948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
3951 | return NULL; | |
3952 | } | |
3953 | } | |
3954 | if (_argo1) { | |
3955 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3956 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
3958 | return NULL; | |
3959 | } | |
3960 | } | |
3961 | { | |
3962 | wxPy_BEGIN_ALLOW_THREADS; | |
3963 | wxFontList_AddFont(_arg0,_arg1); | |
3964 | ||
3965 | wxPy_END_ALLOW_THREADS; | |
3966 | if (PyErr_Occurred()) return NULL; | |
3967 | } Py_INCREF(Py_None); | |
3968 | _resultobj = Py_None; | |
3969 | return _resultobj; | |
3970 | } | |
3971 | ||
3972 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3973 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3974 | PyObject * _resultobj; | |
3975 | wxFont * _result; | |
3976 | wxFontList * _arg0; | |
3977 | int _arg1; | |
3978 | int _arg2; | |
3979 | int _arg3; | |
3980 | int _arg4; | |
3981 | bool _arg5 = (bool ) FALSE; | |
3982 | char * _arg6 = (char *) NULL; | |
3983 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3984 | PyObject * _argo0 = 0; | |
3985 | int tempbool5 = (int) FALSE; | |
3986 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
3987 | char _ptemp[128]; | |
3988 | ||
3989 | self = self; | |
3990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
3991 | return NULL; | |
3992 | if (_argo0) { | |
3993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
3996 | return NULL; | |
3997 | } | |
3998 | } | |
3999 | _arg5 = (bool ) tempbool5; | |
4000 | { | |
4001 | wxPy_BEGIN_ALLOW_THREADS; | |
4002 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
4003 | ||
4004 | wxPy_END_ALLOW_THREADS; | |
4005 | if (PyErr_Occurred()) return NULL; | |
4006 | } if (_result) { | |
4007 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4008 | _resultobj = Py_BuildValue("s",_ptemp); | |
4009 | } else { | |
4010 | Py_INCREF(Py_None); | |
4011 | _resultobj = Py_None; | |
4012 | } | |
4013 | return _resultobj; | |
4014 | } | |
4015 | ||
4016 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4017 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4018 | PyObject * _resultobj; | |
4019 | wxFontList * _arg0; | |
4020 | wxFont * _arg1; | |
4021 | PyObject * _argo0 = 0; | |
4022 | PyObject * _argo1 = 0; | |
4023 | char *_kwnames[] = { "self","font", NULL }; | |
4024 | ||
4025 | self = self; | |
4026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4027 | return NULL; | |
4028 | if (_argo0) { | |
4029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4032 | return NULL; | |
4033 | } | |
4034 | } | |
4035 | if (_argo1) { | |
4036 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4037 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4039 | return NULL; | |
4040 | } | |
4041 | } | |
4042 | { | |
4043 | wxPy_BEGIN_ALLOW_THREADS; | |
4044 | wxFontList_RemoveFont(_arg0,_arg1); | |
4045 | ||
4046 | wxPy_END_ALLOW_THREADS; | |
4047 | if (PyErr_Occurred()) return NULL; | |
4048 | } Py_INCREF(Py_None); | |
4049 | _resultobj = Py_None; | |
4050 | return _resultobj; | |
4051 | } | |
4052 | ||
4053 | static void *SwigwxColourTowxObject(void *ptr) { | |
4054 | wxColour *src; | |
4055 | wxObject *dest; | |
4056 | src = (wxColour *) ptr; | |
4057 | dest = (wxObject *) src; | |
4058 | return (void *) dest; | |
4059 | } | |
4060 | ||
4061 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) | |
4062 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject * _resultobj; | |
4064 | wxColour * _result; | |
4065 | unsigned char _arg0 = (unsigned char ) 0; | |
4066 | unsigned char _arg1 = (unsigned char ) 0; | |
4067 | unsigned char _arg2 = (unsigned char ) 0; | |
4068 | char *_kwnames[] = { "red","green","blue", NULL }; | |
4069 | char _ptemp[128]; | |
4070 | ||
4071 | self = self; | |
4072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) | |
4073 | return NULL; | |
4074 | { | |
4075 | wxPy_BEGIN_ALLOW_THREADS; | |
4076 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
4077 | ||
4078 | wxPy_END_ALLOW_THREADS; | |
4079 | if (PyErr_Occurred()) return NULL; | |
4080 | } if (_result) { | |
4081 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4082 | _resultobj = Py_BuildValue("s",_ptemp); | |
4083 | } else { | |
4084 | Py_INCREF(Py_None); | |
4085 | _resultobj = Py_None; | |
4086 | } | |
4087 | return _resultobj; | |
4088 | } | |
4089 | ||
4090 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
4091 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4092 | PyObject * _resultobj; | |
4093 | wxColour * _arg0; | |
4094 | wxColour temp; | |
4095 | PyObject * _obj0 = 0; | |
4096 | char *_kwnames[] = { "self", NULL }; | |
4097 | ||
4098 | self = self; | |
4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) | |
4100 | return NULL; | |
4101 | { | |
4102 | _arg0 = &temp; | |
4103 | if (! wxColour_helper(_obj0, &_arg0)) | |
4104 | return NULL; | |
4105 | } | |
4106 | { | |
4107 | wxPy_BEGIN_ALLOW_THREADS; | |
4108 | delete_wxColour(_arg0); | |
4109 | ||
4110 | wxPy_END_ALLOW_THREADS; | |
4111 | if (PyErr_Occurred()) return NULL; | |
4112 | } Py_INCREF(Py_None); | |
4113 | _resultobj = Py_None; | |
4114 | return _resultobj; | |
4115 | } | |
4116 | ||
4117 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
4118 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4119 | PyObject * _resultobj; | |
4120 | unsigned char _result; | |
4121 | wxColour * _arg0; | |
4122 | wxColour temp; | |
4123 | PyObject * _obj0 = 0; | |
4124 | char *_kwnames[] = { "self", NULL }; | |
4125 | ||
4126 | self = self; | |
4127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) | |
4128 | return NULL; | |
4129 | { | |
4130 | _arg0 = &temp; | |
4131 | if (! wxColour_helper(_obj0, &_arg0)) | |
4132 | return NULL; | |
4133 | } | |
4134 | { | |
4135 | wxPy_BEGIN_ALLOW_THREADS; | |
4136 | _result = (unsigned char )wxColour_Red(_arg0); | |
4137 | ||
4138 | wxPy_END_ALLOW_THREADS; | |
4139 | if (PyErr_Occurred()) return NULL; | |
4140 | } _resultobj = Py_BuildValue("b",_result); | |
4141 | return _resultobj; | |
4142 | } | |
4143 | ||
4144 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
4145 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4146 | PyObject * _resultobj; | |
4147 | unsigned char _result; | |
4148 | wxColour * _arg0; | |
4149 | wxColour temp; | |
4150 | PyObject * _obj0 = 0; | |
4151 | char *_kwnames[] = { "self", NULL }; | |
4152 | ||
4153 | self = self; | |
4154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) | |
4155 | return NULL; | |
4156 | { | |
4157 | _arg0 = &temp; | |
4158 | if (! wxColour_helper(_obj0, &_arg0)) | |
4159 | return NULL; | |
4160 | } | |
4161 | { | |
4162 | wxPy_BEGIN_ALLOW_THREADS; | |
4163 | _result = (unsigned char )wxColour_Green(_arg0); | |
4164 | ||
4165 | wxPy_END_ALLOW_THREADS; | |
4166 | if (PyErr_Occurred()) return NULL; | |
4167 | } _resultobj = Py_BuildValue("b",_result); | |
4168 | return _resultobj; | |
4169 | } | |
4170 | ||
4171 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
4172 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4173 | PyObject * _resultobj; | |
4174 | unsigned char _result; | |
4175 | wxColour * _arg0; | |
4176 | wxColour temp; | |
4177 | PyObject * _obj0 = 0; | |
4178 | char *_kwnames[] = { "self", NULL }; | |
4179 | ||
4180 | self = self; | |
4181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) | |
4182 | return NULL; | |
4183 | { | |
4184 | _arg0 = &temp; | |
4185 | if (! wxColour_helper(_obj0, &_arg0)) | |
4186 | return NULL; | |
4187 | } | |
4188 | { | |
4189 | wxPy_BEGIN_ALLOW_THREADS; | |
4190 | _result = (unsigned char )wxColour_Blue(_arg0); | |
4191 | ||
4192 | wxPy_END_ALLOW_THREADS; | |
4193 | if (PyErr_Occurred()) return NULL; | |
4194 | } _resultobj = Py_BuildValue("b",_result); | |
4195 | return _resultobj; | |
4196 | } | |
4197 | ||
4198 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
4199 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject * _resultobj; | |
4201 | bool _result; | |
4202 | wxColour * _arg0; | |
4203 | wxColour temp; | |
4204 | PyObject * _obj0 = 0; | |
4205 | char *_kwnames[] = { "self", NULL }; | |
4206 | ||
4207 | self = self; | |
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) | |
4209 | return NULL; | |
4210 | { | |
4211 | _arg0 = &temp; | |
4212 | if (! wxColour_helper(_obj0, &_arg0)) | |
4213 | return NULL; | |
4214 | } | |
4215 | { | |
4216 | wxPy_BEGIN_ALLOW_THREADS; | |
4217 | _result = (bool )wxColour_Ok(_arg0); | |
4218 | ||
4219 | wxPy_END_ALLOW_THREADS; | |
4220 | if (PyErr_Occurred()) return NULL; | |
4221 | } _resultobj = Py_BuildValue("i",_result); | |
4222 | return _resultobj; | |
4223 | } | |
4224 | ||
4225 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
4226 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4227 | PyObject * _resultobj; | |
4228 | wxColour * _arg0; | |
4229 | unsigned char _arg1; | |
4230 | unsigned char _arg2; | |
4231 | unsigned char _arg3; | |
4232 | wxColour temp; | |
4233 | PyObject * _obj0 = 0; | |
4234 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
4235 | ||
4236 | self = self; | |
4237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
4238 | return NULL; | |
4239 | { | |
4240 | _arg0 = &temp; | |
4241 | if (! wxColour_helper(_obj0, &_arg0)) | |
4242 | return NULL; | |
4243 | } | |
4244 | { | |
4245 | wxPy_BEGIN_ALLOW_THREADS; | |
4246 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
4247 | ||
4248 | wxPy_END_ALLOW_THREADS; | |
4249 | if (PyErr_Occurred()) return NULL; | |
4250 | } Py_INCREF(Py_None); | |
4251 | _resultobj = Py_None; | |
4252 | return _resultobj; | |
4253 | } | |
4254 | ||
4255 | static PyObject * wxColour_Get(wxColour *self) { | |
4256 | PyObject* rv = PyTuple_New(3); | |
4257 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4258 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4259 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4260 | return rv; | |
4261 | } | |
4262 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4263 | PyObject * _resultobj; | |
4264 | PyObject * _result; | |
4265 | wxColour * _arg0; | |
4266 | wxColour temp; | |
4267 | PyObject * _obj0 = 0; | |
4268 | char *_kwnames[] = { "self", NULL }; | |
4269 | ||
4270 | self = self; | |
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) | |
4272 | return NULL; | |
4273 | { | |
4274 | _arg0 = &temp; | |
4275 | if (! wxColour_helper(_obj0, &_arg0)) | |
4276 | return NULL; | |
4277 | } | |
4278 | { | |
4279 | wxPy_BEGIN_ALLOW_THREADS; | |
4280 | _result = (PyObject *)wxColour_Get(_arg0); | |
4281 | ||
4282 | wxPy_END_ALLOW_THREADS; | |
4283 | if (PyErr_Occurred()) return NULL; | |
4284 | }{ | |
4285 | _resultobj = _result; | |
4286 | } | |
4287 | return _resultobj; | |
4288 | } | |
4289 | ||
4290 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { | |
4291 | wxColourDatabase *src; | |
4292 | wxObject *dest; | |
4293 | src = (wxColourDatabase *) ptr; | |
4294 | dest = (wxObject *) src; | |
4295 | return (void *) dest; | |
4296 | } | |
4297 | ||
4298 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) | |
4299 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4300 | PyObject * _resultobj; | |
4301 | wxColour * _result; | |
4302 | wxColourDatabase * _arg0; | |
4303 | wxString * _arg1; | |
4304 | PyObject * _argo0 = 0; | |
4305 | PyObject * _obj1 = 0; | |
4306 | char *_kwnames[] = { "self","colour", NULL }; | |
4307 | char _ptemp[128]; | |
4308 | ||
4309 | self = self; | |
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
4311 | return NULL; | |
4312 | if (_argo0) { | |
4313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
4316 | return NULL; | |
4317 | } | |
4318 | } | |
4319 | { | |
4320 | #if PYTHON_API_VERSION >= 1009 | |
4321 | char* tmpPtr; int tmpSize; | |
4322 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4323 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4324 | return NULL; | |
4325 | } | |
4326 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4327 | return NULL; | |
4328 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4329 | #else | |
4330 | if (!PyString_Check(_obj1)) { | |
4331 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4332 | return NULL; | |
4333 | } | |
4334 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4335 | #endif | |
4336 | } | |
4337 | { | |
4338 | wxPy_BEGIN_ALLOW_THREADS; | |
4339 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
4340 | ||
4341 | wxPy_END_ALLOW_THREADS; | |
4342 | if (PyErr_Occurred()) return NULL; | |
4343 | } if (_result) { | |
4344 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4345 | _resultobj = Py_BuildValue("s",_ptemp); | |
4346 | } else { | |
4347 | Py_INCREF(Py_None); | |
4348 | _resultobj = Py_None; | |
4349 | } | |
4350 | { | |
4351 | if (_obj1) | |
4352 | delete _arg1; | |
4353 | } | |
4354 | return _resultobj; | |
4355 | } | |
4356 | ||
4357 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
4358 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject * _resultobj; | |
4360 | wxString * _result; | |
4361 | wxColourDatabase * _arg0; | |
4362 | wxColour * _arg1; | |
4363 | PyObject * _argo0 = 0; | |
4364 | wxColour temp; | |
4365 | PyObject * _obj1 = 0; | |
4366 | char *_kwnames[] = { "self","colour", NULL }; | |
4367 | ||
4368 | self = self; | |
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
4370 | return NULL; | |
4371 | if (_argo0) { | |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
4375 | return NULL; | |
4376 | } | |
4377 | } | |
4378 | { | |
4379 | _arg1 = &temp; | |
4380 | if (! wxColour_helper(_obj1, &_arg1)) | |
4381 | return NULL; | |
4382 | } | |
4383 | { | |
4384 | wxPy_BEGIN_ALLOW_THREADS; | |
4385 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
4386 | ||
4387 | wxPy_END_ALLOW_THREADS; | |
4388 | if (PyErr_Occurred()) return NULL; | |
4389 | }{ | |
4390 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4391 | } | |
4392 | { | |
4393 | delete _result; | |
4394 | } | |
4395 | return _resultobj; | |
4396 | } | |
4397 | ||
4398 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
4399 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
4400 | } | |
4401 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4402 | PyObject * _resultobj; | |
4403 | wxColourDatabase * _arg0; | |
4404 | wxString * _arg1; | |
4405 | int _arg2; | |
4406 | int _arg3; | |
4407 | int _arg4; | |
4408 | PyObject * _argo0 = 0; | |
4409 | PyObject * _obj1 = 0; | |
4410 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
4411 | ||
4412 | self = self; | |
4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
4414 | return NULL; | |
4415 | if (_argo0) { | |
4416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
4419 | return NULL; | |
4420 | } | |
4421 | } | |
4422 | { | |
4423 | #if PYTHON_API_VERSION >= 1009 | |
4424 | char* tmpPtr; int tmpSize; | |
4425 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4426 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4427 | return NULL; | |
4428 | } | |
4429 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4430 | return NULL; | |
4431 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4432 | #else | |
4433 | if (!PyString_Check(_obj1)) { | |
4434 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4435 | return NULL; | |
4436 | } | |
4437 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4438 | #endif | |
4439 | } | |
4440 | { | |
4441 | wxPy_BEGIN_ALLOW_THREADS; | |
4442 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
4443 | ||
4444 | wxPy_END_ALLOW_THREADS; | |
4445 | if (PyErr_Occurred()) return NULL; | |
4446 | } Py_INCREF(Py_None); | |
4447 | _resultobj = Py_None; | |
4448 | { | |
4449 | if (_obj1) | |
4450 | delete _arg1; | |
4451 | } | |
4452 | return _resultobj; | |
4453 | } | |
4454 | ||
4455 | static void *SwigwxPenTowxGDIObject(void *ptr) { | |
4456 | wxPen *src; | |
4457 | wxGDIObject *dest; | |
4458 | src = (wxPen *) ptr; | |
4459 | dest = (wxGDIObject *) src; | |
4460 | return (void *) dest; | |
4461 | } | |
4462 | ||
4463 | static void *SwigwxPenTowxObject(void *ptr) { | |
4464 | wxPen *src; | |
4465 | wxObject *dest; | |
4466 | src = (wxPen *) ptr; | |
4467 | dest = (wxObject *) src; | |
4468 | return (void *) dest; | |
4469 | } | |
4470 | ||
4471 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
4472 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4473 | PyObject * _resultobj; | |
4474 | wxPen * _result; | |
4475 | wxColour * _arg0; | |
4476 | int _arg1 = (int ) 1; | |
4477 | int _arg2 = (int ) wxSOLID; | |
4478 | wxColour temp; | |
4479 | PyObject * _obj0 = 0; | |
4480 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4481 | char _ptemp[128]; | |
4482 | ||
4483 | self = self; | |
4484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4485 | return NULL; | |
4486 | { | |
4487 | _arg0 = &temp; | |
4488 | if (! wxColour_helper(_obj0, &_arg0)) | |
4489 | return NULL; | |
4490 | } | |
4491 | { | |
4492 | wxPy_BEGIN_ALLOW_THREADS; | |
4493 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); | |
4494 | ||
4495 | wxPy_END_ALLOW_THREADS; | |
4496 | if (PyErr_Occurred()) return NULL; | |
4497 | } if (_result) { | |
4498 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4499 | _resultobj = Py_BuildValue("s",_ptemp); | |
4500 | } else { | |
4501 | Py_INCREF(Py_None); | |
4502 | _resultobj = Py_None; | |
4503 | } | |
4504 | return _resultobj; | |
4505 | } | |
4506 | ||
4507 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
4508 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4509 | PyObject * _resultobj; | |
4510 | wxPen * _arg0; | |
4511 | PyObject * _argo0 = 0; | |
4512 | char *_kwnames[] = { "self", NULL }; | |
4513 | ||
4514 | self = self; | |
4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
4516 | return NULL; | |
4517 | if (_argo0) { | |
4518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
4521 | return NULL; | |
4522 | } | |
4523 | } | |
4524 | { | |
4525 | wxPy_BEGIN_ALLOW_THREADS; | |
4526 | delete_wxPen(_arg0); | |
4527 | ||
4528 | wxPy_END_ALLOW_THREADS; | |
4529 | if (PyErr_Occurred()) return NULL; | |
4530 | } Py_INCREF(Py_None); | |
4531 | _resultobj = Py_None; | |
4532 | return _resultobj; | |
4533 | } | |
4534 | ||
4535 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
4536 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4537 | PyObject * _resultobj; | |
4538 | int _result; | |
4539 | wxPen * _arg0; | |
4540 | PyObject * _argo0 = 0; | |
4541 | char *_kwnames[] = { "self", NULL }; | |
4542 | ||
4543 | self = self; | |
4544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
4545 | return NULL; | |
4546 | if (_argo0) { | |
4547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
4550 | return NULL; | |
4551 | } | |
4552 | } | |
4553 | { | |
4554 | wxPy_BEGIN_ALLOW_THREADS; | |
4555 | _result = (int )wxPen_GetCap(_arg0); | |
4556 | ||
4557 | wxPy_END_ALLOW_THREADS; | |
4558 | if (PyErr_Occurred()) return NULL; | |
4559 | } _resultobj = Py_BuildValue("i",_result); | |
4560 | return _resultobj; | |
4561 | } | |
4562 | ||
4563 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
4564 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4565 | PyObject * _resultobj; | |
4566 | wxColour * _result; | |
4567 | wxPen * _arg0; | |
4568 | PyObject * _argo0 = 0; | |
4569 | char *_kwnames[] = { "self", NULL }; | |
4570 | char _ptemp[128]; | |
4571 | ||
4572 | self = self; | |
4573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
4574 | return NULL; | |
4575 | if (_argo0) { | |
4576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
4579 | return NULL; | |
4580 | } | |
4581 | } | |
4582 | { | |
4583 | wxPy_BEGIN_ALLOW_THREADS; | |
4584 | _result = new wxColour (wxPen_GetColour(_arg0)); | |
4585 | ||
4586 | wxPy_END_ALLOW_THREADS; | |
4587 | if (PyErr_Occurred()) return NULL; | |
4588 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4589 | _resultobj = Py_BuildValue("s",_ptemp); | |
4590 | return _resultobj; | |
4591 | } | |
4592 | ||
4593 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
4594 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4595 | PyObject * _resultobj; | |
4596 | int _result; | |
4597 | wxPen * _arg0; | |
4598 | PyObject * _argo0 = 0; | |
4599 | char *_kwnames[] = { "self", NULL }; | |
4600 | ||
4601 | self = self; | |
4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) | |
4603 | return NULL; | |
4604 | if (_argo0) { | |
4605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
4608 | return NULL; | |
4609 | } | |
4610 | } | |
4611 | { | |
4612 | wxPy_BEGIN_ALLOW_THREADS; | |
4613 | _result = (int )wxPen_GetJoin(_arg0); | |
4614 | ||
4615 | wxPy_END_ALLOW_THREADS; | |
4616 | if (PyErr_Occurred()) return NULL; | |
4617 | } _resultobj = Py_BuildValue("i",_result); | |
4618 | return _resultobj; | |
4619 | } | |
4620 | ||
4621 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
4622 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4623 | PyObject * _resultobj; | |
4624 | int _result; | |
4625 | wxPen * _arg0; | |
4626 | PyObject * _argo0 = 0; | |
4627 | char *_kwnames[] = { "self", NULL }; | |
4628 | ||
4629 | self = self; | |
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) | |
4631 | return NULL; | |
4632 | if (_argo0) { | |
4633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
4636 | return NULL; | |
4637 | } | |
4638 | } | |
4639 | { | |
4640 | wxPy_BEGIN_ALLOW_THREADS; | |
4641 | _result = (int )wxPen_GetStyle(_arg0); | |
4642 | ||
4643 | wxPy_END_ALLOW_THREADS; | |
4644 | if (PyErr_Occurred()) return NULL; | |
4645 | } _resultobj = Py_BuildValue("i",_result); | |
4646 | return _resultobj; | |
4647 | } | |
4648 | ||
4649 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
4650 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4651 | PyObject * _resultobj; | |
4652 | int _result; | |
4653 | wxPen * _arg0; | |
4654 | PyObject * _argo0 = 0; | |
4655 | char *_kwnames[] = { "self", NULL }; | |
4656 | ||
4657 | self = self; | |
4658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) | |
4659 | return NULL; | |
4660 | if (_argo0) { | |
4661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
4664 | return NULL; | |
4665 | } | |
4666 | } | |
4667 | { | |
4668 | wxPy_BEGIN_ALLOW_THREADS; | |
4669 | _result = (int )wxPen_GetWidth(_arg0); | |
4670 | ||
4671 | wxPy_END_ALLOW_THREADS; | |
4672 | if (PyErr_Occurred()) return NULL; | |
4673 | } _resultobj = Py_BuildValue("i",_result); | |
4674 | return _resultobj; | |
4675 | } | |
4676 | ||
4677 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
4678 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4679 | PyObject * _resultobj; | |
4680 | bool _result; | |
4681 | wxPen * _arg0; | |
4682 | PyObject * _argo0 = 0; | |
4683 | char *_kwnames[] = { "self", NULL }; | |
4684 | ||
4685 | self = self; | |
4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) | |
4687 | return NULL; | |
4688 | if (_argo0) { | |
4689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
4692 | return NULL; | |
4693 | } | |
4694 | } | |
4695 | { | |
4696 | wxPy_BEGIN_ALLOW_THREADS; | |
4697 | _result = (bool )wxPen_Ok(_arg0); | |
4698 | ||
4699 | wxPy_END_ALLOW_THREADS; | |
4700 | if (PyErr_Occurred()) return NULL; | |
4701 | } _resultobj = Py_BuildValue("i",_result); | |
4702 | return _resultobj; | |
4703 | } | |
4704 | ||
4705 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
4706 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4707 | PyObject * _resultobj; | |
4708 | wxPen * _arg0; | |
4709 | int _arg1; | |
4710 | PyObject * _argo0 = 0; | |
4711 | char *_kwnames[] = { "self","cap_style", NULL }; | |
4712 | ||
4713 | self = self; | |
4714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) | |
4715 | return NULL; | |
4716 | if (_argo0) { | |
4717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
4720 | return NULL; | |
4721 | } | |
4722 | } | |
4723 | { | |
4724 | wxPy_BEGIN_ALLOW_THREADS; | |
4725 | wxPen_SetCap(_arg0,_arg1); | |
4726 | ||
4727 | wxPy_END_ALLOW_THREADS; | |
4728 | if (PyErr_Occurred()) return NULL; | |
4729 | } Py_INCREF(Py_None); | |
4730 | _resultobj = Py_None; | |
4731 | return _resultobj; | |
4732 | } | |
4733 | ||
4734 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
4735 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4736 | PyObject * _resultobj; | |
4737 | wxPen * _arg0; | |
4738 | wxColour * _arg1; | |
4739 | PyObject * _argo0 = 0; | |
4740 | wxColour temp; | |
4741 | PyObject * _obj1 = 0; | |
4742 | char *_kwnames[] = { "self","colour", NULL }; | |
4743 | ||
4744 | self = self; | |
4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) | |
4746 | return NULL; | |
4747 | if (_argo0) { | |
4748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
4751 | return NULL; | |
4752 | } | |
4753 | } | |
4754 | { | |
4755 | _arg1 = &temp; | |
4756 | if (! wxColour_helper(_obj1, &_arg1)) | |
4757 | return NULL; | |
4758 | } | |
4759 | { | |
4760 | wxPy_BEGIN_ALLOW_THREADS; | |
4761 | wxPen_SetColour(_arg0,*_arg1); | |
4762 | ||
4763 | wxPy_END_ALLOW_THREADS; | |
4764 | if (PyErr_Occurred()) return NULL; | |
4765 | } Py_INCREF(Py_None); | |
4766 | _resultobj = Py_None; | |
4767 | return _resultobj; | |
4768 | } | |
4769 | ||
4770 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
4771 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4772 | PyObject * _resultobj; | |
4773 | wxPen * _arg0; | |
4774 | int _arg1; | |
4775 | PyObject * _argo0 = 0; | |
4776 | char *_kwnames[] = { "self","join_style", NULL }; | |
4777 | ||
4778 | self = self; | |
4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) | |
4780 | return NULL; | |
4781 | if (_argo0) { | |
4782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
4785 | return NULL; | |
4786 | } | |
4787 | } | |
4788 | { | |
4789 | wxPy_BEGIN_ALLOW_THREADS; | |
4790 | wxPen_SetJoin(_arg0,_arg1); | |
4791 | ||
4792 | wxPy_END_ALLOW_THREADS; | |
4793 | if (PyErr_Occurred()) return NULL; | |
4794 | } Py_INCREF(Py_None); | |
4795 | _resultobj = Py_None; | |
4796 | return _resultobj; | |
4797 | } | |
4798 | ||
4799 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4800 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject * _resultobj; | |
4802 | wxPen * _arg0; | |
4803 | int _arg1; | |
4804 | PyObject * _argo0 = 0; | |
4805 | char *_kwnames[] = { "self","style", NULL }; | |
4806 | ||
4807 | self = self; | |
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4809 | return NULL; | |
4810 | if (_argo0) { | |
4811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
4814 | return NULL; | |
4815 | } | |
4816 | } | |
4817 | { | |
4818 | wxPy_BEGIN_ALLOW_THREADS; | |
4819 | wxPen_SetStyle(_arg0,_arg1); | |
4820 | ||
4821 | wxPy_END_ALLOW_THREADS; | |
4822 | if (PyErr_Occurred()) return NULL; | |
4823 | } Py_INCREF(Py_None); | |
4824 | _resultobj = Py_None; | |
4825 | return _resultobj; | |
4826 | } | |
4827 | ||
4828 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
4829 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4830 | PyObject * _resultobj; | |
4831 | wxPen * _arg0; | |
4832 | int _arg1; | |
4833 | PyObject * _argo0 = 0; | |
4834 | char *_kwnames[] = { "self","width", NULL }; | |
4835 | ||
4836 | self = self; | |
4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) | |
4838 | return NULL; | |
4839 | if (_argo0) { | |
4840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
4843 | return NULL; | |
4844 | } | |
4845 | } | |
4846 | { | |
4847 | wxPy_BEGIN_ALLOW_THREADS; | |
4848 | wxPen_SetWidth(_arg0,_arg1); | |
4849 | ||
4850 | wxPy_END_ALLOW_THREADS; | |
4851 | if (PyErr_Occurred()) return NULL; | |
4852 | } Py_INCREF(Py_None); | |
4853 | _resultobj = Py_None; | |
4854 | return _resultobj; | |
4855 | } | |
4856 | ||
4857 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
4858 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject * _resultobj; | |
4860 | wxPen * _arg0; | |
4861 | int _arg1; | |
4862 | wxDash * _arg2; | |
4863 | PyObject * _argo0 = 0; | |
4864 | PyObject * _obj2 = 0; | |
4865 | char *_kwnames[] = { "self","choices", NULL }; | |
4866 | ||
4867 | self = self; | |
4868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
4869 | return NULL; | |
4870 | if (_argo0) { | |
4871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
4874 | return NULL; | |
4875 | } | |
4876 | } | |
4877 | if (_obj2) | |
4878 | { | |
4879 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
4880 | if (_arg2 == NULL) { | |
4881 | return NULL; | |
4882 | } | |
4883 | } | |
4884 | { | |
4885 | if (_obj2) { | |
4886 | _arg1 = PyList_Size(_obj2); | |
4887 | } | |
4888 | else { | |
4889 | _arg1 = 0; | |
4890 | } | |
4891 | } | |
4892 | { | |
4893 | wxPy_BEGIN_ALLOW_THREADS; | |
4894 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
4895 | ||
4896 | wxPy_END_ALLOW_THREADS; | |
4897 | if (PyErr_Occurred()) return NULL; | |
4898 | } Py_INCREF(Py_None); | |
4899 | _resultobj = Py_None; | |
4900 | { | |
4901 | delete [] _arg2; | |
4902 | } | |
4903 | return _resultobj; | |
4904 | } | |
4905 | ||
4906 | static void *SwigwxPyPenTowxPen(void *ptr) { | |
4907 | wxPyPen *src; | |
4908 | wxPen *dest; | |
4909 | src = (wxPyPen *) ptr; | |
4910 | dest = (wxPen *) src; | |
4911 | return (void *) dest; | |
4912 | } | |
4913 | ||
4914 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
4915 | wxPyPen *src; | |
4916 | wxGDIObject *dest; | |
4917 | src = (wxPyPen *) ptr; | |
4918 | dest = (wxGDIObject *) src; | |
4919 | return (void *) dest; | |
4920 | } | |
4921 | ||
4922 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
4923 | wxPyPen *src; | |
4924 | wxObject *dest; | |
4925 | src = (wxPyPen *) ptr; | |
4926 | dest = (wxObject *) src; | |
4927 | return (void *) dest; | |
4928 | } | |
4929 | ||
4930 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
4931 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject * _resultobj; | |
4933 | wxPyPen * _result; | |
4934 | wxColour * _arg0; | |
4935 | int _arg1 = (int ) 1; | |
4936 | int _arg2 = (int ) wxSOLID; | |
4937 | wxColour temp; | |
4938 | PyObject * _obj0 = 0; | |
4939 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4940 | char _ptemp[128]; | |
4941 | ||
4942 | self = self; | |
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4944 | return NULL; | |
4945 | { | |
4946 | _arg0 = &temp; | |
4947 | if (! wxColour_helper(_obj0, &_arg0)) | |
4948 | return NULL; | |
4949 | } | |
4950 | { | |
4951 | wxPy_BEGIN_ALLOW_THREADS; | |
4952 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); | |
4953 | ||
4954 | wxPy_END_ALLOW_THREADS; | |
4955 | if (PyErr_Occurred()) return NULL; | |
4956 | } if (_result) { | |
4957 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
4958 | _resultobj = Py_BuildValue("s",_ptemp); | |
4959 | } else { | |
4960 | Py_INCREF(Py_None); | |
4961 | _resultobj = Py_None; | |
4962 | } | |
4963 | return _resultobj; | |
4964 | } | |
4965 | ||
4966 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
4967 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4968 | PyObject * _resultobj; | |
4969 | wxPyPen * _arg0; | |
4970 | PyObject * _argo0 = 0; | |
4971 | char *_kwnames[] = { "self", NULL }; | |
4972 | ||
4973 | self = self; | |
4974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
4975 | return NULL; | |
4976 | if (_argo0) { | |
4977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
4979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
4980 | return NULL; | |
4981 | } | |
4982 | } | |
4983 | { | |
4984 | wxPy_BEGIN_ALLOW_THREADS; | |
4985 | delete_wxPyPen(_arg0); | |
4986 | ||
4987 | wxPy_END_ALLOW_THREADS; | |
4988 | if (PyErr_Occurred()) return NULL; | |
4989 | } Py_INCREF(Py_None); | |
4990 | _resultobj = Py_None; | |
4991 | return _resultobj; | |
4992 | } | |
4993 | ||
4994 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
4995 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4996 | PyObject * _resultobj; | |
4997 | wxPyPen * _arg0; | |
4998 | int _arg1; | |
4999 | wxDash * _arg2; | |
5000 | PyObject * _argo0 = 0; | |
5001 | PyObject * _obj2 = 0; | |
5002 | char *_kwnames[] = { "self","choices", NULL }; | |
5003 | ||
5004 | self = self; | |
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5006 | return NULL; | |
5007 | if (_argo0) { | |
5008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
5011 | return NULL; | |
5012 | } | |
5013 | } | |
5014 | if (_obj2) | |
5015 | { | |
5016 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5017 | if (_arg2 == NULL) { | |
5018 | return NULL; | |
5019 | } | |
5020 | } | |
5021 | { | |
5022 | if (_obj2) { | |
5023 | _arg1 = PyList_Size(_obj2); | |
5024 | } | |
5025 | else { | |
5026 | _arg1 = 0; | |
5027 | } | |
5028 | } | |
5029 | { | |
5030 | wxPy_BEGIN_ALLOW_THREADS; | |
5031 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); | |
5032 | ||
5033 | wxPy_END_ALLOW_THREADS; | |
5034 | if (PyErr_Occurred()) return NULL; | |
5035 | } Py_INCREF(Py_None); | |
5036 | _resultobj = Py_None; | |
5037 | { | |
5038 | delete [] _arg2; | |
5039 | } | |
5040 | return _resultobj; | |
5041 | } | |
5042 | ||
5043 | static void *SwigwxPenListTowxObject(void *ptr) { | |
5044 | wxPenList *src; | |
5045 | wxObject *dest; | |
5046 | src = (wxPenList *) ptr; | |
5047 | dest = (wxObject *) src; | |
5048 | return (void *) dest; | |
5049 | } | |
5050 | ||
5051 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) | |
5052 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5053 | PyObject * _resultobj; | |
5054 | wxPenList * _arg0; | |
5055 | wxPen * _arg1; | |
5056 | PyObject * _argo0 = 0; | |
5057 | PyObject * _argo1 = 0; | |
5058 | char *_kwnames[] = { "self","pen", NULL }; | |
5059 | ||
5060 | self = self; | |
5061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5062 | return NULL; | |
5063 | if (_argo0) { | |
5064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5067 | return NULL; | |
5068 | } | |
5069 | } | |
5070 | if (_argo1) { | |
5071 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5072 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5074 | return NULL; | |
5075 | } | |
5076 | } | |
5077 | { | |
5078 | wxPy_BEGIN_ALLOW_THREADS; | |
5079 | wxPenList_AddPen(_arg0,_arg1); | |
5080 | ||
5081 | wxPy_END_ALLOW_THREADS; | |
5082 | if (PyErr_Occurred()) return NULL; | |
5083 | } Py_INCREF(Py_None); | |
5084 | _resultobj = Py_None; | |
5085 | return _resultobj; | |
5086 | } | |
5087 | ||
5088 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5089 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5090 | PyObject * _resultobj; | |
5091 | wxPen * _result; | |
5092 | wxPenList * _arg0; | |
5093 | wxColour * _arg1; | |
5094 | int _arg2; | |
5095 | int _arg3; | |
5096 | PyObject * _argo0 = 0; | |
5097 | wxColour temp; | |
5098 | PyObject * _obj1 = 0; | |
5099 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5100 | char _ptemp[128]; | |
5101 | ||
5102 | self = self; | |
5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5104 | return NULL; | |
5105 | if (_argo0) { | |
5106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5109 | return NULL; | |
5110 | } | |
5111 | } | |
5112 | { | |
5113 | _arg1 = &temp; | |
5114 | if (! wxColour_helper(_obj1, &_arg1)) | |
5115 | return NULL; | |
5116 | } | |
5117 | { | |
5118 | wxPy_BEGIN_ALLOW_THREADS; | |
5119 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
5120 | ||
5121 | wxPy_END_ALLOW_THREADS; | |
5122 | if (PyErr_Occurred()) return NULL; | |
5123 | } if (_result) { | |
5124 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5125 | _resultobj = Py_BuildValue("s",_ptemp); | |
5126 | } else { | |
5127 | Py_INCREF(Py_None); | |
5128 | _resultobj = Py_None; | |
5129 | } | |
5130 | return _resultobj; | |
5131 | } | |
5132 | ||
5133 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5134 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5135 | PyObject * _resultobj; | |
5136 | wxPenList * _arg0; | |
5137 | wxPen * _arg1; | |
5138 | PyObject * _argo0 = 0; | |
5139 | PyObject * _argo1 = 0; | |
5140 | char *_kwnames[] = { "self","pen", NULL }; | |
5141 | ||
5142 | self = self; | |
5143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5144 | return NULL; | |
5145 | if (_argo0) { | |
5146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5149 | return NULL; | |
5150 | } | |
5151 | } | |
5152 | if (_argo1) { | |
5153 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5154 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5156 | return NULL; | |
5157 | } | |
5158 | } | |
5159 | { | |
5160 | wxPy_BEGIN_ALLOW_THREADS; | |
5161 | wxPenList_RemovePen(_arg0,_arg1); | |
5162 | ||
5163 | wxPy_END_ALLOW_THREADS; | |
5164 | if (PyErr_Occurred()) return NULL; | |
5165 | } Py_INCREF(Py_None); | |
5166 | _resultobj = Py_None; | |
5167 | return _resultobj; | |
5168 | } | |
5169 | ||
5170 | static void *SwigwxBrushTowxGDIObject(void *ptr) { | |
5171 | wxBrush *src; | |
5172 | wxGDIObject *dest; | |
5173 | src = (wxBrush *) ptr; | |
5174 | dest = (wxGDIObject *) src; | |
5175 | return (void *) dest; | |
5176 | } | |
5177 | ||
5178 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5179 | wxBrush *src; | |
5180 | wxObject *dest; | |
5181 | src = (wxBrush *) ptr; | |
5182 | dest = (wxObject *) src; | |
5183 | return (void *) dest; | |
5184 | } | |
5185 | ||
5186 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
5187 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject * _resultobj; | |
5189 | wxBrush * _result; | |
5190 | wxColour * _arg0; | |
5191 | int _arg1 = (int ) wxSOLID; | |
5192 | wxColour temp; | |
5193 | PyObject * _obj0 = 0; | |
5194 | char *_kwnames[] = { "colour","style", NULL }; | |
5195 | char _ptemp[128]; | |
5196 | ||
5197 | self = self; | |
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) | |
5199 | return NULL; | |
5200 | { | |
5201 | _arg0 = &temp; | |
5202 | if (! wxColour_helper(_obj0, &_arg0)) | |
5203 | return NULL; | |
5204 | } | |
5205 | { | |
5206 | wxPy_BEGIN_ALLOW_THREADS; | |
5207 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); | |
5208 | ||
5209 | wxPy_END_ALLOW_THREADS; | |
5210 | if (PyErr_Occurred()) return NULL; | |
5211 | } if (_result) { | |
5212 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5213 | _resultobj = Py_BuildValue("s",_ptemp); | |
5214 | } else { | |
5215 | Py_INCREF(Py_None); | |
5216 | _resultobj = Py_None; | |
5217 | } | |
5218 | return _resultobj; | |
5219 | } | |
5220 | ||
5221 | #define delete_wxBrush(_swigobj) (delete _swigobj) | |
5222 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5223 | PyObject * _resultobj; | |
5224 | wxBrush * _arg0; | |
5225 | PyObject * _argo0 = 0; | |
5226 | char *_kwnames[] = { "self", NULL }; | |
5227 | ||
5228 | self = self; | |
5229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5230 | return NULL; | |
5231 | if (_argo0) { | |
5232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5235 | return NULL; | |
5236 | } | |
5237 | } | |
5238 | { | |
5239 | wxPy_BEGIN_ALLOW_THREADS; | |
5240 | delete_wxBrush(_arg0); | |
5241 | ||
5242 | wxPy_END_ALLOW_THREADS; | |
5243 | if (PyErr_Occurred()) return NULL; | |
5244 | } Py_INCREF(Py_None); | |
5245 | _resultobj = Py_None; | |
5246 | return _resultobj; | |
5247 | } | |
5248 | ||
5249 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
5250 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5251 | PyObject * _resultobj; | |
5252 | wxColour * _result; | |
5253 | wxBrush * _arg0; | |
5254 | PyObject * _argo0 = 0; | |
5255 | char *_kwnames[] = { "self", NULL }; | |
5256 | char _ptemp[128]; | |
5257 | ||
5258 | self = self; | |
5259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) | |
5260 | return NULL; | |
5261 | if (_argo0) { | |
5262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
5265 | return NULL; | |
5266 | } | |
5267 | } | |
5268 | { | |
5269 | wxPy_BEGIN_ALLOW_THREADS; | |
5270 | _result = new wxColour (wxBrush_GetColour(_arg0)); | |
5271 | ||
5272 | wxPy_END_ALLOW_THREADS; | |
5273 | if (PyErr_Occurred()) return NULL; | |
5274 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5275 | _resultobj = Py_BuildValue("s",_ptemp); | |
5276 | return _resultobj; | |
5277 | } | |
5278 | ||
5279 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
5280 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5281 | PyObject * _resultobj; | |
5282 | wxBitmap * _result; | |
5283 | wxBrush * _arg0; | |
5284 | PyObject * _argo0 = 0; | |
5285 | char *_kwnames[] = { "self", NULL }; | |
5286 | char _ptemp[128]; | |
5287 | ||
5288 | self = self; | |
5289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) | |
5290 | return NULL; | |
5291 | if (_argo0) { | |
5292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
5295 | return NULL; | |
5296 | } | |
5297 | } | |
5298 | { | |
5299 | wxPy_BEGIN_ALLOW_THREADS; | |
5300 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
5301 | ||
5302 | wxPy_END_ALLOW_THREADS; | |
5303 | if (PyErr_Occurred()) return NULL; | |
5304 | } if (_result) { | |
5305 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5306 | _resultobj = Py_BuildValue("s",_ptemp); | |
5307 | } else { | |
5308 | Py_INCREF(Py_None); | |
5309 | _resultobj = Py_None; | |
5310 | } | |
5311 | return _resultobj; | |
5312 | } | |
5313 | ||
5314 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
5315 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5316 | PyObject * _resultobj; | |
5317 | int _result; | |
5318 | wxBrush * _arg0; | |
5319 | PyObject * _argo0 = 0; | |
5320 | char *_kwnames[] = { "self", NULL }; | |
5321 | ||
5322 | self = self; | |
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) | |
5324 | return NULL; | |
5325 | if (_argo0) { | |
5326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
5329 | return NULL; | |
5330 | } | |
5331 | } | |
5332 | { | |
5333 | wxPy_BEGIN_ALLOW_THREADS; | |
5334 | _result = (int )wxBrush_GetStyle(_arg0); | |
5335 | ||
5336 | wxPy_END_ALLOW_THREADS; | |
5337 | if (PyErr_Occurred()) return NULL; | |
5338 | } _resultobj = Py_BuildValue("i",_result); | |
5339 | return _resultobj; | |
5340 | } | |
5341 | ||
5342 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
5343 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5344 | PyObject * _resultobj; | |
5345 | bool _result; | |
5346 | wxBrush * _arg0; | |
5347 | PyObject * _argo0 = 0; | |
5348 | char *_kwnames[] = { "self", NULL }; | |
5349 | ||
5350 | self = self; | |
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) | |
5352 | return NULL; | |
5353 | if (_argo0) { | |
5354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
5357 | return NULL; | |
5358 | } | |
5359 | } | |
5360 | { | |
5361 | wxPy_BEGIN_ALLOW_THREADS; | |
5362 | _result = (bool )wxBrush_Ok(_arg0); | |
5363 | ||
5364 | wxPy_END_ALLOW_THREADS; | |
5365 | if (PyErr_Occurred()) return NULL; | |
5366 | } _resultobj = Py_BuildValue("i",_result); | |
5367 | return _resultobj; | |
5368 | } | |
5369 | ||
5370 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
5371 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5372 | PyObject * _resultobj; | |
5373 | wxBrush * _arg0; | |
5374 | wxColour * _arg1; | |
5375 | PyObject * _argo0 = 0; | |
5376 | wxColour temp; | |
5377 | PyObject * _obj1 = 0; | |
5378 | char *_kwnames[] = { "self","colour", NULL }; | |
5379 | ||
5380 | self = self; | |
5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) | |
5382 | return NULL; | |
5383 | if (_argo0) { | |
5384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
5387 | return NULL; | |
5388 | } | |
5389 | } | |
5390 | { | |
5391 | _arg1 = &temp; | |
5392 | if (! wxColour_helper(_obj1, &_arg1)) | |
5393 | return NULL; | |
5394 | } | |
5395 | { | |
5396 | wxPy_BEGIN_ALLOW_THREADS; | |
5397 | wxBrush_SetColour(_arg0,*_arg1); | |
5398 | ||
5399 | wxPy_END_ALLOW_THREADS; | |
5400 | if (PyErr_Occurred()) return NULL; | |
5401 | } Py_INCREF(Py_None); | |
5402 | _resultobj = Py_None; | |
5403 | return _resultobj; | |
5404 | } | |
5405 | ||
5406 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
5407 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5408 | PyObject * _resultobj; | |
5409 | wxBrush * _arg0; | |
5410 | wxBitmap * _arg1; | |
5411 | PyObject * _argo0 = 0; | |
5412 | PyObject * _argo1 = 0; | |
5413 | char *_kwnames[] = { "self","bitmap", NULL }; | |
5414 | ||
5415 | self = self; | |
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) | |
5417 | return NULL; | |
5418 | if (_argo0) { | |
5419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
5422 | return NULL; | |
5423 | } | |
5424 | } | |
5425 | if (_argo1) { | |
5426 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5427 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
5428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
5429 | return NULL; | |
5430 | } | |
5431 | } | |
5432 | { | |
5433 | wxPy_BEGIN_ALLOW_THREADS; | |
5434 | wxBrush_SetStipple(_arg0,*_arg1); | |
5435 | ||
5436 | wxPy_END_ALLOW_THREADS; | |
5437 | if (PyErr_Occurred()) return NULL; | |
5438 | } Py_INCREF(Py_None); | |
5439 | _resultobj = Py_None; | |
5440 | return _resultobj; | |
5441 | } | |
5442 | ||
5443 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
5444 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5445 | PyObject * _resultobj; | |
5446 | wxBrush * _arg0; | |
5447 | int _arg1; | |
5448 | PyObject * _argo0 = 0; | |
5449 | char *_kwnames[] = { "self","style", NULL }; | |
5450 | ||
5451 | self = self; | |
5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) | |
5453 | return NULL; | |
5454 | if (_argo0) { | |
5455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
5458 | return NULL; | |
5459 | } | |
5460 | } | |
5461 | { | |
5462 | wxPy_BEGIN_ALLOW_THREADS; | |
5463 | wxBrush_SetStyle(_arg0,_arg1); | |
5464 | ||
5465 | wxPy_END_ALLOW_THREADS; | |
5466 | if (PyErr_Occurred()) return NULL; | |
5467 | } Py_INCREF(Py_None); | |
5468 | _resultobj = Py_None; | |
5469 | return _resultobj; | |
5470 | } | |
5471 | ||
5472 | static void *SwigwxBrushListTowxObject(void *ptr) { | |
5473 | wxBrushList *src; | |
5474 | wxObject *dest; | |
5475 | src = (wxBrushList *) ptr; | |
5476 | dest = (wxObject *) src; | |
5477 | return (void *) dest; | |
5478 | } | |
5479 | ||
5480 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) | |
5481 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5482 | PyObject * _resultobj; | |
5483 | wxBrushList * _arg0; | |
5484 | wxBrush * _arg1; | |
5485 | PyObject * _argo0 = 0; | |
5486 | PyObject * _argo1 = 0; | |
5487 | char *_kwnames[] = { "self","brush", NULL }; | |
5488 | ||
5489 | self = self; | |
5490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
5491 | return NULL; | |
5492 | if (_argo0) { | |
5493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
5496 | return NULL; | |
5497 | } | |
5498 | } | |
5499 | if (_argo1) { | |
5500 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
5503 | return NULL; | |
5504 | } | |
5505 | } | |
5506 | { | |
5507 | wxPy_BEGIN_ALLOW_THREADS; | |
5508 | wxBrushList_AddBrush(_arg0,_arg1); | |
5509 | ||
5510 | wxPy_END_ALLOW_THREADS; | |
5511 | if (PyErr_Occurred()) return NULL; | |
5512 | } Py_INCREF(Py_None); | |
5513 | _resultobj = Py_None; | |
5514 | return _resultobj; | |
5515 | } | |
5516 | ||
5517 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
5518 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5519 | PyObject * _resultobj; | |
5520 | wxBrush * _result; | |
5521 | wxBrushList * _arg0; | |
5522 | wxColour * _arg1; | |
5523 | int _arg2; | |
5524 | PyObject * _argo0 = 0; | |
5525 | wxColour temp; | |
5526 | PyObject * _obj1 = 0; | |
5527 | char *_kwnames[] = { "self","colour","style", NULL }; | |
5528 | char _ptemp[128]; | |
5529 | ||
5530 | self = self; | |
5531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5532 | return NULL; | |
5533 | if (_argo0) { | |
5534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
5537 | return NULL; | |
5538 | } | |
5539 | } | |
5540 | { | |
5541 | _arg1 = &temp; | |
5542 | if (! wxColour_helper(_obj1, &_arg1)) | |
5543 | return NULL; | |
5544 | } | |
5545 | { | |
5546 | wxPy_BEGIN_ALLOW_THREADS; | |
5547 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
5548 | ||
5549 | wxPy_END_ALLOW_THREADS; | |
5550 | if (PyErr_Occurred()) return NULL; | |
5551 | } if (_result) { | |
5552 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5553 | _resultobj = Py_BuildValue("s",_ptemp); | |
5554 | } else { | |
5555 | Py_INCREF(Py_None); | |
5556 | _resultobj = Py_None; | |
5557 | } | |
5558 | return _resultobj; | |
5559 | } | |
5560 | ||
5561 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
5562 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5563 | PyObject * _resultobj; | |
5564 | wxBrushList * _arg0; | |
5565 | wxBrush * _arg1; | |
5566 | PyObject * _argo0 = 0; | |
5567 | PyObject * _argo1 = 0; | |
5568 | char *_kwnames[] = { "self","brush", NULL }; | |
5569 | ||
5570 | self = self; | |
5571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
5572 | return NULL; | |
5573 | if (_argo0) { | |
5574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
5577 | return NULL; | |
5578 | } | |
5579 | } | |
5580 | if (_argo1) { | |
5581 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5582 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
5584 | return NULL; | |
5585 | } | |
5586 | } | |
5587 | { | |
5588 | wxPy_BEGIN_ALLOW_THREADS; | |
5589 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
5590 | ||
5591 | wxPy_END_ALLOW_THREADS; | |
5592 | if (PyErr_Occurred()) return NULL; | |
5593 | } Py_INCREF(Py_None); | |
5594 | _resultobj = Py_None; | |
5595 | return _resultobj; | |
5596 | } | |
5597 | ||
5598 | static void *SwigwxDCTowxObject(void *ptr) { | |
5599 | wxDC *src; | |
5600 | wxObject *dest; | |
5601 | src = (wxDC *) ptr; | |
5602 | dest = (wxObject *) src; | |
5603 | return (void *) dest; | |
5604 | } | |
5605 | ||
5606 | #define delete_wxDC(_swigobj) (delete _swigobj) | |
5607 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5608 | PyObject * _resultobj; | |
5609 | wxDC * _arg0; | |
5610 | PyObject * _argo0 = 0; | |
5611 | char *_kwnames[] = { "self", NULL }; | |
5612 | ||
5613 | self = self; | |
5614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) | |
5615 | return NULL; | |
5616 | if (_argo0) { | |
5617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
5620 | return NULL; | |
5621 | } | |
5622 | } | |
5623 | { | |
5624 | wxPy_BEGIN_ALLOW_THREADS; | |
5625 | delete_wxDC(_arg0); | |
5626 | ||
5627 | wxPy_END_ALLOW_THREADS; | |
5628 | if (PyErr_Occurred()) return NULL; | |
5629 | } Py_INCREF(Py_None); | |
5630 | _resultobj = Py_None; | |
5631 | return _resultobj; | |
5632 | } | |
5633 | ||
5634 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
5635 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject * _resultobj; | |
5637 | wxDC * _arg0; | |
5638 | PyObject * _argo0 = 0; | |
5639 | char *_kwnames[] = { "self", NULL }; | |
5640 | ||
5641 | self = self; | |
5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) | |
5643 | return NULL; | |
5644 | if (_argo0) { | |
5645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
5648 | return NULL; | |
5649 | } | |
5650 | } | |
5651 | { | |
5652 | wxPy_BEGIN_ALLOW_THREADS; | |
5653 | wxDC_BeginDrawing(_arg0); | |
5654 | ||
5655 | wxPy_END_ALLOW_THREADS; | |
5656 | if (PyErr_Occurred()) return NULL; | |
5657 | } Py_INCREF(Py_None); | |
5658 | _resultobj = Py_None; | |
5659 | return _resultobj; | |
5660 | } | |
5661 | ||
5662 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5663 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5664 | PyObject * _resultobj; | |
5665 | bool _result; | |
5666 | wxDC * _arg0; | |
5667 | long _arg1; | |
5668 | long _arg2; | |
5669 | long _arg3; | |
5670 | long _arg4; | |
5671 | wxDC * _arg5; | |
5672 | long _arg6; | |
5673 | long _arg7; | |
5674 | int _arg8 = (int ) wxCOPY; | |
5675 | int _arg9 = (int ) FALSE; | |
5676 | PyObject * _argo0 = 0; | |
5677 | PyObject * _argo5 = 0; | |
5678 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; | |
5679 | ||
5680 | self = self; | |
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
5682 | return NULL; | |
5683 | if (_argo0) { | |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
5690 | if (_argo5) { | |
5691 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5692 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
5693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
5694 | return NULL; | |
5695 | } | |
5696 | } | |
5697 | { | |
5698 | wxPy_BEGIN_ALLOW_THREADS; | |
5699 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
5700 | ||
5701 | wxPy_END_ALLOW_THREADS; | |
5702 | if (PyErr_Occurred()) return NULL; | |
5703 | } _resultobj = Py_BuildValue("i",_result); | |
5704 | return _resultobj; | |
5705 | } | |
5706 | ||
5707 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
5708 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject * _resultobj; | |
5710 | wxDC * _arg0; | |
5711 | PyObject * _argo0 = 0; | |
5712 | char *_kwnames[] = { "self", NULL }; | |
5713 | ||
5714 | self = self; | |
5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) | |
5716 | return NULL; | |
5717 | if (_argo0) { | |
5718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
5721 | return NULL; | |
5722 | } | |
5723 | } | |
5724 | { | |
5725 | wxPy_BEGIN_ALLOW_THREADS; | |
5726 | wxDC_Clear(_arg0); | |
5727 | ||
5728 | wxPy_END_ALLOW_THREADS; | |
5729 | if (PyErr_Occurred()) return NULL; | |
5730 | } Py_INCREF(Py_None); | |
5731 | _resultobj = Py_None; | |
5732 | return _resultobj; | |
5733 | } | |
5734 | ||
5735 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
5736 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject * _resultobj; | |
5738 | wxDC * _arg0; | |
5739 | long _arg1; | |
5740 | long _arg2; | |
5741 | PyObject * _argo0 = 0; | |
5742 | char *_kwnames[] = { "self","x","y", NULL }; | |
5743 | ||
5744 | self = self; | |
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5746 | return NULL; | |
5747 | if (_argo0) { | |
5748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
5751 | return NULL; | |
5752 | } | |
5753 | } | |
5754 | { | |
5755 | wxPy_BEGIN_ALLOW_THREADS; | |
5756 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
5757 | ||
5758 | wxPy_END_ALLOW_THREADS; | |
5759 | if (PyErr_Occurred()) return NULL; | |
5760 | } Py_INCREF(Py_None); | |
5761 | _resultobj = Py_None; | |
5762 | return _resultobj; | |
5763 | } | |
5764 | ||
5765 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
5766 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5767 | PyObject * _resultobj; | |
5768 | wxDC * _arg0; | |
5769 | PyObject * _argo0 = 0; | |
5770 | char *_kwnames[] = { "self", NULL }; | |
5771 | ||
5772 | self = self; | |
5773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) | |
5774 | return NULL; | |
5775 | if (_argo0) { | |
5776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
5779 | return NULL; | |
5780 | } | |
5781 | } | |
5782 | { | |
5783 | wxPy_BEGIN_ALLOW_THREADS; | |
5784 | wxDC_DestroyClippingRegion(_arg0); | |
5785 | ||
5786 | wxPy_END_ALLOW_THREADS; | |
5787 | if (PyErr_Occurred()) return NULL; | |
5788 | } Py_INCREF(Py_None); | |
5789 | _resultobj = Py_None; | |
5790 | return _resultobj; | |
5791 | } | |
5792 | ||
5793 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
5794 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject * _resultobj; | |
5796 | long _result; | |
5797 | wxDC * _arg0; | |
5798 | long _arg1; | |
5799 | PyObject * _argo0 = 0; | |
5800 | char *_kwnames[] = { "self","x", NULL }; | |
5801 | ||
5802 | self = self; | |
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) | |
5804 | return NULL; | |
5805 | if (_argo0) { | |
5806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
5809 | return NULL; | |
5810 | } | |
5811 | } | |
5812 | { | |
5813 | wxPy_BEGIN_ALLOW_THREADS; | |
5814 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
5815 | ||
5816 | wxPy_END_ALLOW_THREADS; | |
5817 | if (PyErr_Occurred()) return NULL; | |
5818 | } _resultobj = Py_BuildValue("l",_result); | |
5819 | return _resultobj; | |
5820 | } | |
5821 | ||
5822 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
5823 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5824 | PyObject * _resultobj; | |
5825 | long _result; | |
5826 | wxDC * _arg0; | |
5827 | long _arg1; | |
5828 | PyObject * _argo0 = 0; | |
5829 | char *_kwnames[] = { "self","x", NULL }; | |
5830 | ||
5831 | self = self; | |
5832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) | |
5833 | return NULL; | |
5834 | if (_argo0) { | |
5835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
5838 | return NULL; | |
5839 | } | |
5840 | } | |
5841 | { | |
5842 | wxPy_BEGIN_ALLOW_THREADS; | |
5843 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
5844 | ||
5845 | wxPy_END_ALLOW_THREADS; | |
5846 | if (PyErr_Occurred()) return NULL; | |
5847 | } _resultobj = Py_BuildValue("l",_result); | |
5848 | return _resultobj; | |
5849 | } | |
5850 | ||
5851 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
5852 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5853 | PyObject * _resultobj; | |
5854 | long _result; | |
5855 | wxDC * _arg0; | |
5856 | long _arg1; | |
5857 | PyObject * _argo0 = 0; | |
5858 | char *_kwnames[] = { "self","y", NULL }; | |
5859 | ||
5860 | self = self; | |
5861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) | |
5862 | return NULL; | |
5863 | if (_argo0) { | |
5864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
5867 | return NULL; | |
5868 | } | |
5869 | } | |
5870 | { | |
5871 | wxPy_BEGIN_ALLOW_THREADS; | |
5872 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
5873 | ||
5874 | wxPy_END_ALLOW_THREADS; | |
5875 | if (PyErr_Occurred()) return NULL; | |
5876 | } _resultobj = Py_BuildValue("l",_result); | |
5877 | return _resultobj; | |
5878 | } | |
5879 | ||
5880 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
5881 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject * _resultobj; | |
5883 | long _result; | |
5884 | wxDC * _arg0; | |
5885 | long _arg1; | |
5886 | PyObject * _argo0 = 0; | |
5887 | char *_kwnames[] = { "self","y", NULL }; | |
5888 | ||
5889 | self = self; | |
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) | |
5891 | return NULL; | |
5892 | if (_argo0) { | |
5893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
5896 | return NULL; | |
5897 | } | |
5898 | } | |
5899 | { | |
5900 | wxPy_BEGIN_ALLOW_THREADS; | |
5901 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
5902 | ||
5903 | wxPy_END_ALLOW_THREADS; | |
5904 | if (PyErr_Occurred()) return NULL; | |
5905 | } _resultobj = Py_BuildValue("l",_result); | |
5906 | return _resultobj; | |
5907 | } | |
5908 | ||
5909 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5910 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5911 | PyObject * _resultobj; | |
5912 | wxDC * _arg0; | |
5913 | long _arg1; | |
5914 | long _arg2; | |
5915 | long _arg3; | |
5916 | long _arg4; | |
5917 | long _arg5; | |
5918 | long _arg6; | |
5919 | PyObject * _argo0 = 0; | |
5920 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; | |
5921 | ||
5922 | self = self; | |
5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
5924 | return NULL; | |
5925 | if (_argo0) { | |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
5932 | { | |
5933 | wxPy_BEGIN_ALLOW_THREADS; | |
5934 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5935 | ||
5936 | wxPy_END_ALLOW_THREADS; | |
5937 | if (PyErr_Occurred()) return NULL; | |
5938 | } Py_INCREF(Py_None); | |
5939 | _resultobj = Py_None; | |
5940 | return _resultobj; | |
5941 | } | |
5942 | ||
5943 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) | |
5944 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5945 | PyObject * _resultobj; | |
5946 | wxDC * _arg0; | |
5947 | long _arg1; | |
5948 | long _arg2; | |
5949 | long _arg3; | |
5950 | PyObject * _argo0 = 0; | |
5951 | char *_kwnames[] = { "self","x","y","radius", NULL }; | |
5952 | ||
5953 | self = self; | |
5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
5955 | return NULL; | |
5956 | if (_argo0) { | |
5957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); | |
5960 | return NULL; | |
5961 | } | |
5962 | } | |
5963 | { | |
5964 | wxPy_BEGIN_ALLOW_THREADS; | |
5965 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
5966 | ||
5967 | wxPy_END_ALLOW_THREADS; | |
5968 | if (PyErr_Occurred()) return NULL; | |
5969 | } Py_INCREF(Py_None); | |
5970 | _resultobj = Py_None; | |
5971 | return _resultobj; | |
5972 | } | |
5973 | ||
5974 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5975 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5976 | PyObject * _resultobj; | |
5977 | wxDC * _arg0; | |
5978 | long _arg1; | |
5979 | long _arg2; | |
5980 | long _arg3; | |
5981 | long _arg4; | |
5982 | PyObject * _argo0 = 0; | |
5983 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
5984 | ||
5985 | self = self; | |
5986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5987 | return NULL; | |
5988 | if (_argo0) { | |
5989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
5992 | return NULL; | |
5993 | } | |
5994 | } | |
5995 | { | |
5996 | wxPy_BEGIN_ALLOW_THREADS; | |
5997 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5998 | ||
5999 | wxPy_END_ALLOW_THREADS; | |
6000 | if (PyErr_Occurred()) return NULL; | |
6001 | } Py_INCREF(Py_None); | |
6002 | _resultobj = Py_None; | |
6003 | return _resultobj; | |
6004 | } | |
6005 | ||
6006 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6007 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6008 | PyObject * _resultobj; | |
6009 | wxDC * _arg0; | |
6010 | long _arg1; | |
6011 | long _arg2; | |
6012 | long _arg3; | |
6013 | long _arg4; | |
6014 | long _arg5; | |
6015 | long _arg6; | |
6016 | PyObject * _argo0 = 0; | |
6017 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; | |
6018 | ||
6019 | self = self; | |
6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
6021 | return NULL; | |
6022 | if (_argo0) { | |
6023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
6026 | return NULL; | |
6027 | } | |
6028 | } | |
6029 | { | |
6030 | wxPy_BEGIN_ALLOW_THREADS; | |
6031 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6032 | ||
6033 | wxPy_END_ALLOW_THREADS; | |
6034 | if (PyErr_Occurred()) return NULL; | |
6035 | } Py_INCREF(Py_None); | |
6036 | _resultobj = Py_None; | |
6037 | return _resultobj; | |
6038 | } | |
6039 | ||
6040 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
6041 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6042 | PyObject * _resultobj; | |
6043 | wxDC * _arg0; | |
6044 | wxIcon * _arg1; | |
6045 | long _arg2; | |
6046 | long _arg3; | |
6047 | PyObject * _argo0 = 0; | |
6048 | PyObject * _argo1 = 0; | |
6049 | char *_kwnames[] = { "self","icon","x","y", NULL }; | |
6050 | ||
6051 | self = self; | |
6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
6053 | return NULL; | |
6054 | if (_argo0) { | |
6055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
6058 | return NULL; | |
6059 | } | |
6060 | } | |
6061 | if (_argo1) { | |
6062 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6063 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
6064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
6065 | return NULL; | |
6066 | } | |
6067 | } | |
6068 | { | |
6069 | wxPy_BEGIN_ALLOW_THREADS; | |
6070 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
6071 | ||
6072 | wxPy_END_ALLOW_THREADS; | |
6073 | if (PyErr_Occurred()) return NULL; | |
6074 | } Py_INCREF(Py_None); | |
6075 | _resultobj = Py_None; | |
6076 | return _resultobj; | |
6077 | } | |
6078 | ||
6079 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6080 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject * _resultobj; | |
6082 | wxDC * _arg0; | |
6083 | long _arg1; | |
6084 | long _arg2; | |
6085 | long _arg3; | |
6086 | long _arg4; | |
6087 | PyObject * _argo0 = 0; | |
6088 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
6089 | ||
6090 | self = self; | |
6091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6092 | return NULL; | |
6093 | if (_argo0) { | |
6094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
6097 | return NULL; | |
6098 | } | |
6099 | } | |
6100 | { | |
6101 | wxPy_BEGIN_ALLOW_THREADS; | |
6102 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6103 | ||
6104 | wxPy_END_ALLOW_THREADS; | |
6105 | if (PyErr_Occurred()) return NULL; | |
6106 | } Py_INCREF(Py_None); | |
6107 | _resultobj = Py_None; | |
6108 | return _resultobj; | |
6109 | } | |
6110 | ||
6111 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6112 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6113 | PyObject * _resultobj; | |
6114 | wxDC * _arg0; | |
6115 | int _arg1; | |
6116 | wxPoint * _arg2; | |
6117 | long _arg3 = (long ) 0; | |
6118 | long _arg4 = (long ) 0; | |
6119 | PyObject * _argo0 = 0; | |
6120 | int NPOINTS; | |
6121 | PyObject * _obj2 = 0; | |
6122 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; | |
6123 | ||
6124 | self = self; | |
6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) | |
6126 | return NULL; | |
6127 | if (_argo0) { | |
6128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
6131 | return NULL; | |
6132 | } | |
6133 | } | |
6134 | if (_obj2) | |
6135 | { | |
6136 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6137 | if (_arg2 == NULL) { | |
6138 | return NULL; | |
6139 | } | |
6140 | } | |
6141 | { | |
6142 | _arg1 = NPOINTS; | |
6143 | } | |
6144 | { | |
6145 | wxPy_BEGIN_ALLOW_THREADS; | |
6146 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6147 | ||
6148 | wxPy_END_ALLOW_THREADS; | |
6149 | if (PyErr_Occurred()) return NULL; | |
6150 | } Py_INCREF(Py_None); | |
6151 | _resultobj = Py_None; | |
6152 | { | |
6153 | delete [] _arg2; | |
6154 | } | |
6155 | return _resultobj; | |
6156 | } | |
6157 | ||
6158 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6159 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6160 | PyObject * _resultobj; | |
6161 | wxDC * _arg0; | |
6162 | int _arg1; | |
6163 | wxPoint * _arg2; | |
6164 | long _arg3 = (long ) 0; | |
6165 | long _arg4 = (long ) 0; | |
6166 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6167 | PyObject * _argo0 = 0; | |
6168 | int NPOINTS; | |
6169 | PyObject * _obj2 = 0; | |
6170 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; | |
6171 | ||
6172 | self = self; | |
6173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
6174 | return NULL; | |
6175 | if (_argo0) { | |
6176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
6179 | return NULL; | |
6180 | } | |
6181 | } | |
6182 | if (_obj2) | |
6183 | { | |
6184 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6185 | if (_arg2 == NULL) { | |
6186 | return NULL; | |
6187 | } | |
6188 | } | |
6189 | { | |
6190 | _arg1 = NPOINTS; | |
6191 | } | |
6192 | { | |
6193 | wxPy_BEGIN_ALLOW_THREADS; | |
6194 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6195 | ||
6196 | wxPy_END_ALLOW_THREADS; | |
6197 | if (PyErr_Occurred()) return NULL; | |
6198 | } Py_INCREF(Py_None); | |
6199 | _resultobj = Py_None; | |
6200 | { | |
6201 | delete [] _arg2; | |
6202 | } | |
6203 | return _resultobj; | |
6204 | } | |
6205 | ||
6206 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
6207 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject * _resultobj; | |
6209 | wxDC * _arg0; | |
6210 | long _arg1; | |
6211 | long _arg2; | |
6212 | PyObject * _argo0 = 0; | |
6213 | char *_kwnames[] = { "self","x","y", NULL }; | |
6214 | ||
6215 | self = self; | |
6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6217 | return NULL; | |
6218 | if (_argo0) { | |
6219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
6222 | return NULL; | |
6223 | } | |
6224 | } | |
6225 | { | |
6226 | wxPy_BEGIN_ALLOW_THREADS; | |
6227 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
6228 | ||
6229 | wxPy_END_ALLOW_THREADS; | |
6230 | if (PyErr_Occurred()) return NULL; | |
6231 | } Py_INCREF(Py_None); | |
6232 | _resultobj = Py_None; | |
6233 | return _resultobj; | |
6234 | } | |
6235 | ||
6236 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6237 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6238 | PyObject * _resultobj; | |
6239 | wxDC * _arg0; | |
6240 | long _arg1; | |
6241 | long _arg2; | |
6242 | long _arg3; | |
6243 | long _arg4; | |
6244 | PyObject * _argo0 = 0; | |
6245 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
6246 | ||
6247 | self = self; | |
6248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6249 | return NULL; | |
6250 | if (_argo0) { | |
6251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
6254 | return NULL; | |
6255 | } | |
6256 | } | |
6257 | { | |
6258 | wxPy_BEGIN_ALLOW_THREADS; | |
6259 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6260 | ||
6261 | wxPy_END_ALLOW_THREADS; | |
6262 | if (PyErr_Occurred()) return NULL; | |
6263 | } Py_INCREF(Py_None); | |
6264 | _resultobj = Py_None; | |
6265 | return _resultobj; | |
6266 | } | |
6267 | ||
6268 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6269 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject * _resultobj; | |
6271 | wxDC * _arg0; | |
6272 | wxString * _arg1; | |
6273 | wxCoord _arg2; | |
6274 | wxCoord _arg3; | |
6275 | double _arg4; | |
6276 | PyObject * _argo0 = 0; | |
6277 | PyObject * _obj1 = 0; | |
6278 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6279 | ||
6280 | self = self; | |
6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6282 | return NULL; | |
6283 | if (_argo0) { | |
6284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6287 | return NULL; | |
6288 | } | |
6289 | } | |
6290 | { | |
6291 | #if PYTHON_API_VERSION >= 1009 | |
6292 | char* tmpPtr; int tmpSize; | |
6293 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6294 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6295 | return NULL; | |
6296 | } | |
6297 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6298 | return NULL; | |
6299 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6300 | #else | |
6301 | if (!PyString_Check(_obj1)) { | |
6302 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6303 | return NULL; | |
6304 | } | |
6305 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6306 | #endif | |
6307 | } | |
6308 | { | |
6309 | wxPy_BEGIN_ALLOW_THREADS; | |
6310 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
6311 | ||
6312 | wxPy_END_ALLOW_THREADS; | |
6313 | if (PyErr_Occurred()) return NULL; | |
6314 | } Py_INCREF(Py_None); | |
6315 | _resultobj = Py_None; | |
6316 | { | |
6317 | if (_obj1) | |
6318 | delete _arg1; | |
6319 | } | |
6320 | return _resultobj; | |
6321 | } | |
6322 | ||
6323 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6324 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6325 | PyObject * _resultobj; | |
6326 | wxDC * _arg0; | |
6327 | long _arg1; | |
6328 | long _arg2; | |
6329 | long _arg3; | |
6330 | long _arg4; | |
6331 | long _arg5 = (long ) 20; | |
6332 | PyObject * _argo0 = 0; | |
6333 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; | |
6334 | ||
6335 | self = self; | |
6336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
6337 | return NULL; | |
6338 | if (_argo0) { | |
6339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
6342 | return NULL; | |
6343 | } | |
6344 | } | |
6345 | { | |
6346 | wxPy_BEGIN_ALLOW_THREADS; | |
6347 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6348 | ||
6349 | wxPy_END_ALLOW_THREADS; | |
6350 | if (PyErr_Occurred()) return NULL; | |
6351 | } Py_INCREF(Py_None); | |
6352 | _resultobj = Py_None; | |
6353 | return _resultobj; | |
6354 | } | |
6355 | ||
6356 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
6357 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject * _resultobj; | |
6359 | wxDC * _arg0; | |
6360 | int _arg1; | |
6361 | wxPoint * _arg2; | |
6362 | PyObject * _argo0 = 0; | |
6363 | int NPOINTS; | |
6364 | PyObject * _obj2 = 0; | |
6365 | char *_kwnames[] = { "self","points", NULL }; | |
6366 | ||
6367 | self = self; | |
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) | |
6369 | return NULL; | |
6370 | if (_argo0) { | |
6371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
6374 | return NULL; | |
6375 | } | |
6376 | } | |
6377 | if (_obj2) | |
6378 | { | |
6379 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6380 | if (_arg2 == NULL) { | |
6381 | return NULL; | |
6382 | } | |
6383 | } | |
6384 | { | |
6385 | _arg1 = NPOINTS; | |
6386 | } | |
6387 | { | |
6388 | wxPy_BEGIN_ALLOW_THREADS; | |
6389 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
6390 | ||
6391 | wxPy_END_ALLOW_THREADS; | |
6392 | if (PyErr_Occurred()) return NULL; | |
6393 | } Py_INCREF(Py_None); | |
6394 | _resultobj = Py_None; | |
6395 | { | |
6396 | delete [] _arg2; | |
6397 | } | |
6398 | return _resultobj; | |
6399 | } | |
6400 | ||
6401 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
6402 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6403 | PyObject * _resultobj; | |
6404 | wxDC * _arg0; | |
6405 | wxString * _arg1; | |
6406 | long _arg2; | |
6407 | long _arg3; | |
6408 | PyObject * _argo0 = 0; | |
6409 | PyObject * _obj1 = 0; | |
6410 | char *_kwnames[] = { "self","text","x","y", NULL }; | |
6411 | ||
6412 | self = self; | |
6413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
6414 | return NULL; | |
6415 | if (_argo0) { | |
6416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); | |
6419 | return NULL; | |
6420 | } | |
6421 | } | |
6422 | { | |
6423 | #if PYTHON_API_VERSION >= 1009 | |
6424 | char* tmpPtr; int tmpSize; | |
6425 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6426 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6427 | return NULL; | |
6428 | } | |
6429 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6430 | return NULL; | |
6431 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6432 | #else | |
6433 | if (!PyString_Check(_obj1)) { | |
6434 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6435 | return NULL; | |
6436 | } | |
6437 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6438 | #endif | |
6439 | } | |
6440 | { | |
6441 | wxPy_BEGIN_ALLOW_THREADS; | |
6442 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
6443 | ||
6444 | wxPy_END_ALLOW_THREADS; | |
6445 | if (PyErr_Occurred()) return NULL; | |
6446 | } Py_INCREF(Py_None); | |
6447 | _resultobj = Py_None; | |
6448 | { | |
6449 | if (_obj1) | |
6450 | delete _arg1; | |
6451 | } | |
6452 | return _resultobj; | |
6453 | } | |
6454 | ||
6455 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
6456 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6457 | PyObject * _resultobj; | |
6458 | wxDC * _arg0; | |
6459 | PyObject * _argo0 = 0; | |
6460 | char *_kwnames[] = { "self", NULL }; | |
6461 | ||
6462 | self = self; | |
6463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) | |
6464 | return NULL; | |
6465 | if (_argo0) { | |
6466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
6469 | return NULL; | |
6470 | } | |
6471 | } | |
6472 | { | |
6473 | wxPy_BEGIN_ALLOW_THREADS; | |
6474 | wxDC_EndDoc(_arg0); | |
6475 | ||
6476 | wxPy_END_ALLOW_THREADS; | |
6477 | if (PyErr_Occurred()) return NULL; | |
6478 | } Py_INCREF(Py_None); | |
6479 | _resultobj = Py_None; | |
6480 | return _resultobj; | |
6481 | } | |
6482 | ||
6483 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
6484 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6485 | PyObject * _resultobj; | |
6486 | wxDC * _arg0; | |
6487 | PyObject * _argo0 = 0; | |
6488 | char *_kwnames[] = { "self", NULL }; | |
6489 | ||
6490 | self = self; | |
6491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) | |
6492 | return NULL; | |
6493 | if (_argo0) { | |
6494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
6497 | return NULL; | |
6498 | } | |
6499 | } | |
6500 | { | |
6501 | wxPy_BEGIN_ALLOW_THREADS; | |
6502 | wxDC_EndDrawing(_arg0); | |
6503 | ||
6504 | wxPy_END_ALLOW_THREADS; | |
6505 | if (PyErr_Occurred()) return NULL; | |
6506 | } Py_INCREF(Py_None); | |
6507 | _resultobj = Py_None; | |
6508 | return _resultobj; | |
6509 | } | |
6510 | ||
6511 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
6512 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6513 | PyObject * _resultobj; | |
6514 | wxDC * _arg0; | |
6515 | PyObject * _argo0 = 0; | |
6516 | char *_kwnames[] = { "self", NULL }; | |
6517 | ||
6518 | self = self; | |
6519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) | |
6520 | return NULL; | |
6521 | if (_argo0) { | |
6522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
6525 | return NULL; | |
6526 | } | |
6527 | } | |
6528 | { | |
6529 | wxPy_BEGIN_ALLOW_THREADS; | |
6530 | wxDC_EndPage(_arg0); | |
6531 | ||
6532 | wxPy_END_ALLOW_THREADS; | |
6533 | if (PyErr_Occurred()) return NULL; | |
6534 | } Py_INCREF(Py_None); | |
6535 | _resultobj = Py_None; | |
6536 | return _resultobj; | |
6537 | } | |
6538 | ||
6539 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6540 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject * _resultobj; | |
6542 | wxDC * _arg0; | |
6543 | long _arg1; | |
6544 | long _arg2; | |
6545 | wxColour * _arg3; | |
6546 | int _arg4 = (int ) wxFLOOD_SURFACE; | |
6547 | PyObject * _argo0 = 0; | |
6548 | wxColour temp; | |
6549 | PyObject * _obj3 = 0; | |
6550 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; | |
6551 | ||
6552 | self = self; | |
6553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
6554 | return NULL; | |
6555 | if (_argo0) { | |
6556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
6559 | return NULL; | |
6560 | } | |
6561 | } | |
6562 | { | |
6563 | _arg3 = &temp; | |
6564 | if (! wxColour_helper(_obj3, &_arg3)) | |
6565 | return NULL; | |
6566 | } | |
6567 | { | |
6568 | wxPy_BEGIN_ALLOW_THREADS; | |
6569 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
6570 | ||
6571 | wxPy_END_ALLOW_THREADS; | |
6572 | if (PyErr_Occurred()) return NULL; | |
6573 | } Py_INCREF(Py_None); | |
6574 | _resultobj = Py_None; | |
6575 | return _resultobj; | |
6576 | } | |
6577 | ||
6578 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
6579 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6580 | PyObject * _resultobj; | |
6581 | wxBrush * _result; | |
6582 | wxDC * _arg0; | |
6583 | PyObject * _argo0 = 0; | |
6584 | char *_kwnames[] = { "self", NULL }; | |
6585 | char _ptemp[128]; | |
6586 | ||
6587 | self = self; | |
6588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) | |
6589 | return NULL; | |
6590 | if (_argo0) { | |
6591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
6594 | return NULL; | |
6595 | } | |
6596 | } | |
6597 | { | |
6598 | wxPy_BEGIN_ALLOW_THREADS; | |
6599 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
6600 | _result = (wxBrush *) &_result_ref; | |
6601 | ||
6602 | wxPy_END_ALLOW_THREADS; | |
6603 | if (PyErr_Occurred()) return NULL; | |
6604 | } if (_result) { | |
6605 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6606 | _resultobj = Py_BuildValue("s",_ptemp); | |
6607 | } else { | |
6608 | Py_INCREF(Py_None); | |
6609 | _resultobj = Py_None; | |
6610 | } | |
6611 | return _resultobj; | |
6612 | } | |
6613 | ||
6614 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
6615 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6616 | PyObject * _resultobj; | |
6617 | wxBrush * _result; | |
6618 | wxDC * _arg0; | |
6619 | PyObject * _argo0 = 0; | |
6620 | char *_kwnames[] = { "self", NULL }; | |
6621 | char _ptemp[128]; | |
6622 | ||
6623 | self = self; | |
6624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) | |
6625 | return NULL; | |
6626 | if (_argo0) { | |
6627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
6630 | return NULL; | |
6631 | } | |
6632 | } | |
6633 | { | |
6634 | wxPy_BEGIN_ALLOW_THREADS; | |
6635 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
6636 | _result = (wxBrush *) &_result_ref; | |
6637 | ||
6638 | wxPy_END_ALLOW_THREADS; | |
6639 | if (PyErr_Occurred()) return NULL; | |
6640 | } if (_result) { | |
6641 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6642 | _resultobj = Py_BuildValue("s",_ptemp); | |
6643 | } else { | |
6644 | Py_INCREF(Py_None); | |
6645 | _resultobj = Py_None; | |
6646 | } | |
6647 | return _resultobj; | |
6648 | } | |
6649 | ||
6650 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
6651 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6652 | PyObject * _resultobj; | |
6653 | long _result; | |
6654 | wxDC * _arg0; | |
6655 | PyObject * _argo0 = 0; | |
6656 | char *_kwnames[] = { "self", NULL }; | |
6657 | ||
6658 | self = self; | |
6659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) | |
6660 | return NULL; | |
6661 | if (_argo0) { | |
6662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
6665 | return NULL; | |
6666 | } | |
6667 | } | |
6668 | { | |
6669 | wxPy_BEGIN_ALLOW_THREADS; | |
6670 | _result = (long )wxDC_GetCharHeight(_arg0); | |
6671 | ||
6672 | wxPy_END_ALLOW_THREADS; | |
6673 | if (PyErr_Occurred()) return NULL; | |
6674 | } _resultobj = Py_BuildValue("l",_result); | |
6675 | return _resultobj; | |
6676 | } | |
6677 | ||
6678 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
6679 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6680 | PyObject * _resultobj; | |
6681 | long _result; | |
6682 | wxDC * _arg0; | |
6683 | PyObject * _argo0 = 0; | |
6684 | char *_kwnames[] = { "self", NULL }; | |
6685 | ||
6686 | self = self; | |
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) | |
6688 | return NULL; | |
6689 | if (_argo0) { | |
6690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
6693 | return NULL; | |
6694 | } | |
6695 | } | |
6696 | { | |
6697 | wxPy_BEGIN_ALLOW_THREADS; | |
6698 | _result = (long )wxDC_GetCharWidth(_arg0); | |
6699 | ||
6700 | wxPy_END_ALLOW_THREADS; | |
6701 | if (PyErr_Occurred()) return NULL; | |
6702 | } _resultobj = Py_BuildValue("l",_result); | |
6703 | return _resultobj; | |
6704 | } | |
6705 | ||
6706 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6707 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6708 | PyObject * _resultobj; | |
6709 | wxDC * _arg0; | |
6710 | long * _arg1; | |
6711 | long temp; | |
6712 | long * _arg2; | |
6713 | long temp0; | |
6714 | long * _arg3; | |
6715 | long temp1; | |
6716 | long * _arg4; | |
6717 | long temp2; | |
6718 | PyObject * _argo0 = 0; | |
6719 | char *_kwnames[] = { "self", NULL }; | |
6720 | ||
6721 | self = self; | |
6722 | { | |
6723 | _arg1 = &temp; | |
6724 | } | |
6725 | { | |
6726 | _arg2 = &temp0; | |
6727 | } | |
6728 | { | |
6729 | _arg3 = &temp1; | |
6730 | } | |
6731 | { | |
6732 | _arg4 = &temp2; | |
6733 | } | |
6734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) | |
6735 | return NULL; | |
6736 | if (_argo0) { | |
6737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
6740 | return NULL; | |
6741 | } | |
6742 | } | |
6743 | { | |
6744 | wxPy_BEGIN_ALLOW_THREADS; | |
6745 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6746 | ||
6747 | wxPy_END_ALLOW_THREADS; | |
6748 | if (PyErr_Occurred()) return NULL; | |
6749 | } Py_INCREF(Py_None); | |
6750 | _resultobj = Py_None; | |
6751 | { | |
6752 | PyObject *o; | |
6753 | o = PyInt_FromLong((long) (*_arg1)); | |
6754 | _resultobj = t_output_helper(_resultobj, o); | |
6755 | } | |
6756 | { | |
6757 | PyObject *o; | |
6758 | o = PyInt_FromLong((long) (*_arg2)); | |
6759 | _resultobj = t_output_helper(_resultobj, o); | |
6760 | } | |
6761 | { | |
6762 | PyObject *o; | |
6763 | o = PyInt_FromLong((long) (*_arg3)); | |
6764 | _resultobj = t_output_helper(_resultobj, o); | |
6765 | } | |
6766 | { | |
6767 | PyObject *o; | |
6768 | o = PyInt_FromLong((long) (*_arg4)); | |
6769 | _resultobj = t_output_helper(_resultobj, o); | |
6770 | } | |
6771 | return _resultobj; | |
6772 | } | |
6773 | ||
6774 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
6775 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject * _resultobj; | |
6777 | wxFont * _result; | |
6778 | wxDC * _arg0; | |
6779 | PyObject * _argo0 = 0; | |
6780 | char *_kwnames[] = { "self", NULL }; | |
6781 | char _ptemp[128]; | |
6782 | ||
6783 | self = self; | |
6784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) | |
6785 | return NULL; | |
6786 | if (_argo0) { | |
6787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
6790 | return NULL; | |
6791 | } | |
6792 | } | |
6793 | { | |
6794 | wxPy_BEGIN_ALLOW_THREADS; | |
6795 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
6796 | _result = (wxFont *) &_result_ref; | |
6797 | ||
6798 | wxPy_END_ALLOW_THREADS; | |
6799 | if (PyErr_Occurred()) return NULL; | |
6800 | } if (_result) { | |
6801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
6802 | _resultobj = Py_BuildValue("s",_ptemp); | |
6803 | } else { | |
6804 | Py_INCREF(Py_None); | |
6805 | _resultobj = Py_None; | |
6806 | } | |
6807 | return _resultobj; | |
6808 | } | |
6809 | ||
6810 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
6811 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6812 | PyObject * _resultobj; | |
6813 | int _result; | |
6814 | wxDC * _arg0; | |
6815 | PyObject * _argo0 = 0; | |
6816 | char *_kwnames[] = { "self", NULL }; | |
6817 | ||
6818 | self = self; | |
6819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) | |
6820 | return NULL; | |
6821 | if (_argo0) { | |
6822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
6825 | return NULL; | |
6826 | } | |
6827 | } | |
6828 | { | |
6829 | wxPy_BEGIN_ALLOW_THREADS; | |
6830 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
6831 | ||
6832 | wxPy_END_ALLOW_THREADS; | |
6833 | if (PyErr_Occurred()) return NULL; | |
6834 | } _resultobj = Py_BuildValue("i",_result); | |
6835 | return _resultobj; | |
6836 | } | |
6837 | ||
6838 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) | |
6839 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6840 | PyObject * _resultobj; | |
6841 | wxDC * _arg0; | |
6842 | double * _arg1; | |
6843 | double temp; | |
6844 | double * _arg2; | |
6845 | double temp0; | |
6846 | PyObject * _argo0 = 0; | |
6847 | char *_kwnames[] = { "self", NULL }; | |
6848 | ||
6849 | self = self; | |
6850 | { | |
6851 | _arg1 = &temp; | |
6852 | } | |
6853 | { | |
6854 | _arg2 = &temp0; | |
6855 | } | |
6856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
6857 | return NULL; | |
6858 | if (_argo0) { | |
6859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
6862 | return NULL; | |
6863 | } | |
6864 | } | |
6865 | { | |
6866 | wxPy_BEGIN_ALLOW_THREADS; | |
6867 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
6868 | ||
6869 | wxPy_END_ALLOW_THREADS; | |
6870 | if (PyErr_Occurred()) return NULL; | |
6871 | } Py_INCREF(Py_None); | |
6872 | _resultobj = Py_None; | |
6873 | { | |
6874 | PyObject *o; | |
6875 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6876 | _resultobj = t_output_helper(_resultobj, o); | |
6877 | } | |
6878 | { | |
6879 | PyObject *o; | |
6880 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6881 | _resultobj = t_output_helper(_resultobj, o); | |
6882 | } | |
6883 | return _resultobj; | |
6884 | } | |
6885 | ||
6886 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
6887 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6888 | PyObject * _resultobj; | |
6889 | int _result; | |
6890 | wxDC * _arg0; | |
6891 | PyObject * _argo0 = 0; | |
6892 | char *_kwnames[] = { "self", NULL }; | |
6893 | ||
6894 | self = self; | |
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) | |
6896 | return NULL; | |
6897 | if (_argo0) { | |
6898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
6901 | return NULL; | |
6902 | } | |
6903 | } | |
6904 | { | |
6905 | wxPy_BEGIN_ALLOW_THREADS; | |
6906 | _result = (int )wxDC_GetMapMode(_arg0); | |
6907 | ||
6908 | wxPy_END_ALLOW_THREADS; | |
6909 | if (PyErr_Occurred()) return NULL; | |
6910 | } _resultobj = Py_BuildValue("i",_result); | |
6911 | return _resultobj; | |
6912 | } | |
6913 | ||
6914 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
6915 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6916 | PyObject * _resultobj; | |
6917 | bool _result; | |
6918 | wxDC * _arg0; | |
6919 | PyObject * _argo0 = 0; | |
6920 | char *_kwnames[] = { "self", NULL }; | |
6921 | ||
6922 | self = self; | |
6923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) | |
6924 | return NULL; | |
6925 | if (_argo0) { | |
6926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
6929 | return NULL; | |
6930 | } | |
6931 | } | |
6932 | { | |
6933 | wxPy_BEGIN_ALLOW_THREADS; | |
6934 | _result = (bool )wxDC_GetOptimization(_arg0); | |
6935 | ||
6936 | wxPy_END_ALLOW_THREADS; | |
6937 | if (PyErr_Occurred()) return NULL; | |
6938 | } _resultobj = Py_BuildValue("i",_result); | |
6939 | return _resultobj; | |
6940 | } | |
6941 | ||
6942 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
6943 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6944 | PyObject * _resultobj; | |
6945 | wxPen * _result; | |
6946 | wxDC * _arg0; | |
6947 | PyObject * _argo0 = 0; | |
6948 | char *_kwnames[] = { "self", NULL }; | |
6949 | char _ptemp[128]; | |
6950 | ||
6951 | self = self; | |
6952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) | |
6953 | return NULL; | |
6954 | if (_argo0) { | |
6955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
6958 | return NULL; | |
6959 | } | |
6960 | } | |
6961 | { | |
6962 | wxPy_BEGIN_ALLOW_THREADS; | |
6963 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
6964 | _result = (wxPen *) &_result_ref; | |
6965 | ||
6966 | wxPy_END_ALLOW_THREADS; | |
6967 | if (PyErr_Occurred()) return NULL; | |
6968 | } if (_result) { | |
6969 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6970 | _resultobj = Py_BuildValue("s",_ptemp); | |
6971 | } else { | |
6972 | Py_INCREF(Py_None); | |
6973 | _resultobj = Py_None; | |
6974 | } | |
6975 | return _resultobj; | |
6976 | } | |
6977 | ||
6978 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
6979 | wxColour* wc = new wxColour(); | |
6980 | self->GetPixel(x, y, wc); | |
6981 | return wc; | |
6982 | } | |
6983 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6984 | PyObject * _resultobj; | |
6985 | wxColour * _result; | |
6986 | wxDC * _arg0; | |
6987 | long _arg1; | |
6988 | long _arg2; | |
6989 | PyObject * _argo0 = 0; | |
6990 | char *_kwnames[] = { "self","x","y", NULL }; | |
6991 | char _ptemp[128]; | |
6992 | ||
6993 | self = self; | |
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6995 | return NULL; | |
6996 | if (_argo0) { | |
6997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
7000 | return NULL; | |
7001 | } | |
7002 | } | |
7003 | { | |
7004 | wxPy_BEGIN_ALLOW_THREADS; | |
7005 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
7006 | ||
7007 | wxPy_END_ALLOW_THREADS; | |
7008 | if (PyErr_Occurred()) return NULL; | |
7009 | } if (_result) { | |
7010 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7011 | _resultobj = Py_BuildValue("s",_ptemp); | |
7012 | } else { | |
7013 | Py_INCREF(Py_None); | |
7014 | _resultobj = Py_None; | |
7015 | } | |
7016 | return _resultobj; | |
7017 | } | |
7018 | ||
7019 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
7020 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject * _resultobj; | |
7022 | wxDC * _arg0; | |
7023 | int * _arg1; | |
7024 | int temp; | |
7025 | int * _arg2; | |
7026 | int temp0; | |
7027 | PyObject * _argo0 = 0; | |
7028 | char *_kwnames[] = { "self", NULL }; | |
7029 | ||
7030 | self = self; | |
7031 | { | |
7032 | _arg1 = &temp; | |
7033 | } | |
7034 | { | |
7035 | _arg2 = &temp0; | |
7036 | } | |
7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) | |
7038 | return NULL; | |
7039 | if (_argo0) { | |
7040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); | |
7043 | return NULL; | |
7044 | } | |
7045 | } | |
7046 | { | |
7047 | wxPy_BEGIN_ALLOW_THREADS; | |
7048 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); | |
7049 | ||
7050 | wxPy_END_ALLOW_THREADS; | |
7051 | if (PyErr_Occurred()) return NULL; | |
7052 | } Py_INCREF(Py_None); | |
7053 | _resultobj = Py_None; | |
7054 | { | |
7055 | PyObject *o; | |
7056 | o = PyInt_FromLong((long) (*_arg1)); | |
7057 | _resultobj = t_output_helper(_resultobj, o); | |
7058 | } | |
7059 | { | |
7060 | PyObject *o; | |
7061 | o = PyInt_FromLong((long) (*_arg2)); | |
7062 | _resultobj = t_output_helper(_resultobj, o); | |
7063 | } | |
7064 | return _resultobj; | |
7065 | } | |
7066 | ||
7067 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) | |
7068 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7069 | PyObject * _resultobj; | |
7070 | wxSize * _result; | |
7071 | wxDC * _arg0; | |
7072 | PyObject * _argo0 = 0; | |
7073 | char *_kwnames[] = { "self", NULL }; | |
7074 | char _ptemp[128]; | |
7075 | ||
7076 | self = self; | |
7077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) | |
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_GetSize. Expected _wxDC_p."); | |
7083 | return NULL; | |
7084 | } | |
7085 | } | |
7086 | { | |
7087 | wxPy_BEGIN_ALLOW_THREADS; | |
7088 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
7089 | ||
7090 | wxPy_END_ALLOW_THREADS; | |
7091 | if (PyErr_Occurred()) return NULL; | |
7092 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7093 | _resultobj = Py_BuildValue("s",_ptemp); | |
7094 | return _resultobj; | |
7095 | } | |
7096 | ||
7097 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) | |
7098 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7099 | PyObject * _resultobj; | |
7100 | wxSize * _result; | |
7101 | wxDC * _arg0; | |
7102 | PyObject * _argo0 = 0; | |
7103 | char *_kwnames[] = { "self", NULL }; | |
7104 | char _ptemp[128]; | |
7105 | ||
7106 | self = self; | |
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7108 | return NULL; | |
7109 | if (_argo0) { | |
7110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7113 | return NULL; | |
7114 | } | |
7115 | } | |
7116 | { | |
7117 | wxPy_BEGIN_ALLOW_THREADS; | |
7118 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
7119 | ||
7120 | wxPy_END_ALLOW_THREADS; | |
7121 | if (PyErr_Occurred()) return NULL; | |
7122 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7123 | _resultobj = Py_BuildValue("s",_ptemp); | |
7124 | return _resultobj; | |
7125 | } | |
7126 | ||
7127 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
7128 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7129 | PyObject * _resultobj; | |
7130 | wxColour * _result; | |
7131 | wxDC * _arg0; | |
7132 | PyObject * _argo0 = 0; | |
7133 | char *_kwnames[] = { "self", NULL }; | |
7134 | char _ptemp[128]; | |
7135 | ||
7136 | self = self; | |
7137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) | |
7138 | return NULL; | |
7139 | if (_argo0) { | |
7140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
7143 | return NULL; | |
7144 | } | |
7145 | } | |
7146 | { | |
7147 | wxPy_BEGIN_ALLOW_THREADS; | |
7148 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); | |
7149 | ||
7150 | wxPy_END_ALLOW_THREADS; | |
7151 | if (PyErr_Occurred()) return NULL; | |
7152 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7153 | _resultobj = Py_BuildValue("s",_ptemp); | |
7154 | return _resultobj; | |
7155 | } | |
7156 | ||
7157 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
7158 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7159 | PyObject * _resultobj; | |
7160 | wxDC * _arg0; | |
7161 | wxString * _arg1; | |
7162 | long * _arg2; | |
7163 | long temp; | |
7164 | long * _arg3; | |
7165 | long temp0; | |
7166 | PyObject * _argo0 = 0; | |
7167 | PyObject * _obj1 = 0; | |
7168 | char *_kwnames[] = { "self","string", NULL }; | |
7169 | ||
7170 | self = self; | |
7171 | { | |
7172 | _arg2 = &temp; | |
7173 | } | |
7174 | { | |
7175 | _arg3 = &temp0; | |
7176 | } | |
7177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
7178 | return NULL; | |
7179 | if (_argo0) { | |
7180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); | |
7183 | return NULL; | |
7184 | } | |
7185 | } | |
7186 | { | |
7187 | #if PYTHON_API_VERSION >= 1009 | |
7188 | char* tmpPtr; int tmpSize; | |
7189 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7191 | return NULL; | |
7192 | } | |
7193 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7194 | return NULL; | |
7195 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7196 | #else | |
7197 | if (!PyString_Check(_obj1)) { | |
7198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7199 | return NULL; | |
7200 | } | |
7201 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7202 | #endif | |
7203 | } | |
7204 | { | |
7205 | wxPy_BEGIN_ALLOW_THREADS; | |
7206 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
7207 | ||
7208 | wxPy_END_ALLOW_THREADS; | |
7209 | if (PyErr_Occurred()) return NULL; | |
7210 | } Py_INCREF(Py_None); | |
7211 | _resultobj = Py_None; | |
7212 | { | |
7213 | PyObject *o; | |
7214 | o = PyInt_FromLong((long) (*_arg2)); | |
7215 | _resultobj = t_output_helper(_resultobj, o); | |
7216 | } | |
7217 | { | |
7218 | PyObject *o; | |
7219 | o = PyInt_FromLong((long) (*_arg3)); | |
7220 | _resultobj = t_output_helper(_resultobj, o); | |
7221 | } | |
7222 | { | |
7223 | if (_obj1) | |
7224 | delete _arg1; | |
7225 | } | |
7226 | return _resultobj; | |
7227 | } | |
7228 | ||
7229 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7230 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7231 | PyObject * _resultobj; | |
7232 | wxDC * _arg0; | |
7233 | wxString * _arg1; | |
7234 | long * _arg2; | |
7235 | long temp; | |
7236 | long * _arg3; | |
7237 | long temp0; | |
7238 | long * _arg4; | |
7239 | long temp1; | |
7240 | long * _arg5; | |
7241 | long temp2; | |
7242 | wxFont * _arg6 = (wxFont *) NULL; | |
7243 | PyObject * _argo0 = 0; | |
7244 | PyObject * _obj1 = 0; | |
7245 | PyObject * _argo6 = 0; | |
7246 | char *_kwnames[] = { "self","string","font", NULL }; | |
7247 | ||
7248 | self = self; | |
7249 | { | |
7250 | _arg2 = &temp; | |
7251 | } | |
7252 | { | |
7253 | _arg3 = &temp0; | |
7254 | } | |
7255 | { | |
7256 | _arg4 = &temp1; | |
7257 | } | |
7258 | { | |
7259 | _arg5 = &temp2; | |
7260 | } | |
7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
7262 | return NULL; | |
7263 | if (_argo0) { | |
7264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); | |
7267 | return NULL; | |
7268 | } | |
7269 | } | |
7270 | { | |
7271 | #if PYTHON_API_VERSION >= 1009 | |
7272 | char* tmpPtr; int tmpSize; | |
7273 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7274 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7275 | return NULL; | |
7276 | } | |
7277 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7278 | return NULL; | |
7279 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7280 | #else | |
7281 | if (!PyString_Check(_obj1)) { | |
7282 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7283 | return NULL; | |
7284 | } | |
7285 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7286 | #endif | |
7287 | } | |
7288 | if (_argo6) { | |
7289 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7290 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
7291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); | |
7292 | return NULL; | |
7293 | } | |
7294 | } | |
7295 | { | |
7296 | wxPy_BEGIN_ALLOW_THREADS; | |
7297 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7298 | ||
7299 | wxPy_END_ALLOW_THREADS; | |
7300 | if (PyErr_Occurred()) return NULL; | |
7301 | } Py_INCREF(Py_None); | |
7302 | _resultobj = Py_None; | |
7303 | { | |
7304 | PyObject *o; | |
7305 | o = PyInt_FromLong((long) (*_arg2)); | |
7306 | _resultobj = t_output_helper(_resultobj, o); | |
7307 | } | |
7308 | { | |
7309 | PyObject *o; | |
7310 | o = PyInt_FromLong((long) (*_arg3)); | |
7311 | _resultobj = t_output_helper(_resultobj, o); | |
7312 | } | |
7313 | { | |
7314 | PyObject *o; | |
7315 | o = PyInt_FromLong((long) (*_arg4)); | |
7316 | _resultobj = t_output_helper(_resultobj, o); | |
7317 | } | |
7318 | { | |
7319 | PyObject *o; | |
7320 | o = PyInt_FromLong((long) (*_arg5)); | |
7321 | _resultobj = t_output_helper(_resultobj, o); | |
7322 | } | |
7323 | { | |
7324 | if (_obj1) | |
7325 | delete _arg1; | |
7326 | } | |
7327 | return _resultobj; | |
7328 | } | |
7329 | ||
7330 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
7331 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject * _resultobj; | |
7333 | wxColour * _result; | |
7334 | wxDC * _arg0; | |
7335 | PyObject * _argo0 = 0; | |
7336 | char *_kwnames[] = { "self", NULL }; | |
7337 | char _ptemp[128]; | |
7338 | ||
7339 | self = self; | |
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
7341 | return NULL; | |
7342 | if (_argo0) { | |
7343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
7346 | return NULL; | |
7347 | } | |
7348 | } | |
7349 | { | |
7350 | wxPy_BEGIN_ALLOW_THREADS; | |
7351 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); | |
7352 | ||
7353 | wxPy_END_ALLOW_THREADS; | |
7354 | if (PyErr_Occurred()) return NULL; | |
7355 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7356 | _resultobj = Py_BuildValue("s",_ptemp); | |
7357 | return _resultobj; | |
7358 | } | |
7359 | ||
7360 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
7361 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7362 | PyObject * _resultobj; | |
7363 | wxDC * _arg0; | |
7364 | double * _arg1; | |
7365 | double temp; | |
7366 | double * _arg2; | |
7367 | double temp0; | |
7368 | PyObject * _argo0 = 0; | |
7369 | char *_kwnames[] = { "self", NULL }; | |
7370 | ||
7371 | self = self; | |
7372 | { | |
7373 | _arg1 = &temp; | |
7374 | } | |
7375 | { | |
7376 | _arg2 = &temp0; | |
7377 | } | |
7378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
7379 | return NULL; | |
7380 | if (_argo0) { | |
7381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
7384 | return NULL; | |
7385 | } | |
7386 | } | |
7387 | { | |
7388 | wxPy_BEGIN_ALLOW_THREADS; | |
7389 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
7390 | ||
7391 | wxPy_END_ALLOW_THREADS; | |
7392 | if (PyErr_Occurred()) return NULL; | |
7393 | } Py_INCREF(Py_None); | |
7394 | _resultobj = Py_None; | |
7395 | { | |
7396 | PyObject *o; | |
7397 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7398 | _resultobj = t_output_helper(_resultobj, o); | |
7399 | } | |
7400 | { | |
7401 | PyObject *o; | |
7402 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7403 | _resultobj = t_output_helper(_resultobj, o); | |
7404 | } | |
7405 | return _resultobj; | |
7406 | } | |
7407 | ||
7408 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
7409 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7410 | PyObject * _resultobj; | |
7411 | long _result; | |
7412 | wxDC * _arg0; | |
7413 | long _arg1; | |
7414 | PyObject * _argo0 = 0; | |
7415 | char *_kwnames[] = { "self","x", NULL }; | |
7416 | ||
7417 | self = self; | |
7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) | |
7419 | return NULL; | |
7420 | if (_argo0) { | |
7421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
7424 | return NULL; | |
7425 | } | |
7426 | } | |
7427 | { | |
7428 | wxPy_BEGIN_ALLOW_THREADS; | |
7429 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
7430 | ||
7431 | wxPy_END_ALLOW_THREADS; | |
7432 | if (PyErr_Occurred()) return NULL; | |
7433 | } _resultobj = Py_BuildValue("l",_result); | |
7434 | return _resultobj; | |
7435 | } | |
7436 | ||
7437 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
7438 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7439 | PyObject * _resultobj; | |
7440 | long _result; | |
7441 | wxDC * _arg0; | |
7442 | long _arg1; | |
7443 | PyObject * _argo0 = 0; | |
7444 | char *_kwnames[] = { "self","x", NULL }; | |
7445 | ||
7446 | self = self; | |
7447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) | |
7448 | return NULL; | |
7449 | if (_argo0) { | |
7450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
7453 | return NULL; | |
7454 | } | |
7455 | } | |
7456 | { | |
7457 | wxPy_BEGIN_ALLOW_THREADS; | |
7458 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
7459 | ||
7460 | wxPy_END_ALLOW_THREADS; | |
7461 | if (PyErr_Occurred()) return NULL; | |
7462 | } _resultobj = Py_BuildValue("l",_result); | |
7463 | return _resultobj; | |
7464 | } | |
7465 | ||
7466 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
7467 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7468 | PyObject * _resultobj; | |
7469 | long _result; | |
7470 | wxDC * _arg0; | |
7471 | long _arg1; | |
7472 | PyObject * _argo0 = 0; | |
7473 | char *_kwnames[] = { "self","y", NULL }; | |
7474 | ||
7475 | self = self; | |
7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) | |
7477 | return NULL; | |
7478 | if (_argo0) { | |
7479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); | |
7482 | return NULL; | |
7483 | } | |
7484 | } | |
7485 | { | |
7486 | wxPy_BEGIN_ALLOW_THREADS; | |
7487 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
7488 | ||
7489 | wxPy_END_ALLOW_THREADS; | |
7490 | if (PyErr_Occurred()) return NULL; | |
7491 | } _resultobj = Py_BuildValue("l",_result); | |
7492 | return _resultobj; | |
7493 | } | |
7494 | ||
7495 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
7496 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject * _resultobj; | |
7498 | long _result; | |
7499 | wxDC * _arg0; | |
7500 | long _arg1; | |
7501 | PyObject * _argo0 = 0; | |
7502 | char *_kwnames[] = { "self","y", NULL }; | |
7503 | ||
7504 | self = self; | |
7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) | |
7506 | return NULL; | |
7507 | if (_argo0) { | |
7508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
7511 | return NULL; | |
7512 | } | |
7513 | } | |
7514 | { | |
7515 | wxPy_BEGIN_ALLOW_THREADS; | |
7516 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
7517 | ||
7518 | wxPy_END_ALLOW_THREADS; | |
7519 | if (PyErr_Occurred()) return NULL; | |
7520 | } _resultobj = Py_BuildValue("l",_result); | |
7521 | return _resultobj; | |
7522 | } | |
7523 | ||
7524 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
7525 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7526 | PyObject * _resultobj; | |
7527 | long _result; | |
7528 | wxDC * _arg0; | |
7529 | PyObject * _argo0 = 0; | |
7530 | char *_kwnames[] = { "self", NULL }; | |
7531 | ||
7532 | self = self; | |
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) | |
7534 | return NULL; | |
7535 | if (_argo0) { | |
7536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
7539 | return NULL; | |
7540 | } | |
7541 | } | |
7542 | { | |
7543 | wxPy_BEGIN_ALLOW_THREADS; | |
7544 | _result = (long )wxDC_MaxX(_arg0); | |
7545 | ||
7546 | wxPy_END_ALLOW_THREADS; | |
7547 | if (PyErr_Occurred()) return NULL; | |
7548 | } _resultobj = Py_BuildValue("l",_result); | |
7549 | return _resultobj; | |
7550 | } | |
7551 | ||
7552 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
7553 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7554 | PyObject * _resultobj; | |
7555 | long _result; | |
7556 | wxDC * _arg0; | |
7557 | PyObject * _argo0 = 0; | |
7558 | char *_kwnames[] = { "self", NULL }; | |
7559 | ||
7560 | self = self; | |
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) | |
7562 | return NULL; | |
7563 | if (_argo0) { | |
7564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
7567 | return NULL; | |
7568 | } | |
7569 | } | |
7570 | { | |
7571 | wxPy_BEGIN_ALLOW_THREADS; | |
7572 | _result = (long )wxDC_MaxY(_arg0); | |
7573 | ||
7574 | wxPy_END_ALLOW_THREADS; | |
7575 | if (PyErr_Occurred()) return NULL; | |
7576 | } _resultobj = Py_BuildValue("l",_result); | |
7577 | return _resultobj; | |
7578 | } | |
7579 | ||
7580 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
7581 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7582 | PyObject * _resultobj; | |
7583 | long _result; | |
7584 | wxDC * _arg0; | |
7585 | PyObject * _argo0 = 0; | |
7586 | char *_kwnames[] = { "self", NULL }; | |
7587 | ||
7588 | self = self; | |
7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) | |
7590 | return NULL; | |
7591 | if (_argo0) { | |
7592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
7595 | return NULL; | |
7596 | } | |
7597 | } | |
7598 | { | |
7599 | wxPy_BEGIN_ALLOW_THREADS; | |
7600 | _result = (long )wxDC_MinX(_arg0); | |
7601 | ||
7602 | wxPy_END_ALLOW_THREADS; | |
7603 | if (PyErr_Occurred()) return NULL; | |
7604 | } _resultobj = Py_BuildValue("l",_result); | |
7605 | return _resultobj; | |
7606 | } | |
7607 | ||
7608 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
7609 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7610 | PyObject * _resultobj; | |
7611 | long _result; | |
7612 | wxDC * _arg0; | |
7613 | PyObject * _argo0 = 0; | |
7614 | char *_kwnames[] = { "self", NULL }; | |
7615 | ||
7616 | self = self; | |
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) | |
7618 | return NULL; | |
7619 | if (_argo0) { | |
7620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
7623 | return NULL; | |
7624 | } | |
7625 | } | |
7626 | { | |
7627 | wxPy_BEGIN_ALLOW_THREADS; | |
7628 | _result = (long )wxDC_MinY(_arg0); | |
7629 | ||
7630 | wxPy_END_ALLOW_THREADS; | |
7631 | if (PyErr_Occurred()) return NULL; | |
7632 | } _resultobj = Py_BuildValue("l",_result); | |
7633 | return _resultobj; | |
7634 | } | |
7635 | ||
7636 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
7637 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7638 | PyObject * _resultobj; | |
7639 | bool _result; | |
7640 | wxDC * _arg0; | |
7641 | PyObject * _argo0 = 0; | |
7642 | char *_kwnames[] = { "self", NULL }; | |
7643 | ||
7644 | self = self; | |
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) | |
7646 | return NULL; | |
7647 | if (_argo0) { | |
7648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
7651 | return NULL; | |
7652 | } | |
7653 | } | |
7654 | { | |
7655 | wxPy_BEGIN_ALLOW_THREADS; | |
7656 | _result = (bool )wxDC_Ok(_arg0); | |
7657 | ||
7658 | wxPy_END_ALLOW_THREADS; | |
7659 | if (PyErr_Occurred()) return NULL; | |
7660 | } _resultobj = Py_BuildValue("i",_result); | |
7661 | return _resultobj; | |
7662 | } | |
7663 | ||
7664 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
7665 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7666 | PyObject * _resultobj; | |
7667 | wxDC * _arg0; | |
7668 | long _arg1; | |
7669 | long _arg2; | |
7670 | PyObject * _argo0 = 0; | |
7671 | char *_kwnames[] = { "self","x","y", NULL }; | |
7672 | ||
7673 | self = self; | |
7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7675 | return NULL; | |
7676 | if (_argo0) { | |
7677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
7680 | return NULL; | |
7681 | } | |
7682 | } | |
7683 | { | |
7684 | wxPy_BEGIN_ALLOW_THREADS; | |
7685 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
7686 | ||
7687 | wxPy_END_ALLOW_THREADS; | |
7688 | if (PyErr_Occurred()) return NULL; | |
7689 | } Py_INCREF(Py_None); | |
7690 | _resultobj = Py_None; | |
7691 | return _resultobj; | |
7692 | } | |
7693 | ||
7694 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
7695 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7696 | PyObject * _resultobj; | |
7697 | wxDC * _arg0; | |
7698 | wxBrush * _arg1; | |
7699 | PyObject * _argo0 = 0; | |
7700 | PyObject * _argo1 = 0; | |
7701 | char *_kwnames[] = { "self","brush", NULL }; | |
7702 | ||
7703 | self = self; | |
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) | |
7705 | return NULL; | |
7706 | if (_argo0) { | |
7707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
7710 | return NULL; | |
7711 | } | |
7712 | } | |
7713 | if (_argo1) { | |
7714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
7717 | return NULL; | |
7718 | } | |
7719 | } | |
7720 | { | |
7721 | wxPy_BEGIN_ALLOW_THREADS; | |
7722 | wxDC_SetBackground(_arg0,*_arg1); | |
7723 | ||
7724 | wxPy_END_ALLOW_THREADS; | |
7725 | if (PyErr_Occurred()) return NULL; | |
7726 | } Py_INCREF(Py_None); | |
7727 | _resultobj = Py_None; | |
7728 | return _resultobj; | |
7729 | } | |
7730 | ||
7731 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
7732 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7733 | PyObject * _resultobj; | |
7734 | wxDC * _arg0; | |
7735 | int _arg1; | |
7736 | PyObject * _argo0 = 0; | |
7737 | char *_kwnames[] = { "self","mode", NULL }; | |
7738 | ||
7739 | self = self; | |
7740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) | |
7741 | return NULL; | |
7742 | if (_argo0) { | |
7743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
7746 | return NULL; | |
7747 | } | |
7748 | } | |
7749 | { | |
7750 | wxPy_BEGIN_ALLOW_THREADS; | |
7751 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
7752 | ||
7753 | wxPy_END_ALLOW_THREADS; | |
7754 | if (PyErr_Occurred()) return NULL; | |
7755 | } Py_INCREF(Py_None); | |
7756 | _resultobj = Py_None; | |
7757 | return _resultobj; | |
7758 | } | |
7759 | ||
7760 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7761 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7762 | PyObject * _resultobj; | |
7763 | wxDC * _arg0; | |
7764 | long _arg1; | |
7765 | long _arg2; | |
7766 | long _arg3; | |
7767 | long _arg4; | |
7768 | PyObject * _argo0 = 0; | |
7769 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
7770 | ||
7771 | self = self; | |
7772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7773 | return NULL; | |
7774 | if (_argo0) { | |
7775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
7778 | return NULL; | |
7779 | } | |
7780 | } | |
7781 | { | |
7782 | wxPy_BEGIN_ALLOW_THREADS; | |
7783 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7784 | ||
7785 | wxPy_END_ALLOW_THREADS; | |
7786 | if (PyErr_Occurred()) return NULL; | |
7787 | } Py_INCREF(Py_None); | |
7788 | _resultobj = Py_None; | |
7789 | return _resultobj; | |
7790 | } | |
7791 | ||
7792 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) | |
7793 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7794 | PyObject * _resultobj; | |
7795 | wxDC * _arg0; | |
7796 | wxRegion * _arg1; | |
7797 | PyObject * _argo0 = 0; | |
7798 | PyObject * _argo1 = 0; | |
7799 | char *_kwnames[] = { "self","region", NULL }; | |
7800 | ||
7801 | self = self; | |
7802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
7803 | return NULL; | |
7804 | if (_argo0) { | |
7805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
7808 | return NULL; | |
7809 | } | |
7810 | } | |
7811 | if (_argo1) { | |
7812 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7813 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
7814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
7815 | return NULL; | |
7816 | } | |
7817 | } | |
7818 | { | |
7819 | wxPy_BEGIN_ALLOW_THREADS; | |
7820 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); | |
7821 | ||
7822 | wxPy_END_ALLOW_THREADS; | |
7823 | if (PyErr_Occurred()) return NULL; | |
7824 | } Py_INCREF(Py_None); | |
7825 | _resultobj = Py_None; | |
7826 | return _resultobj; | |
7827 | } | |
7828 | ||
7829 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
7830 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7831 | PyObject * _resultobj; | |
7832 | wxDC * _arg0; | |
7833 | wxPalette * _arg1; | |
7834 | PyObject * _argo0 = 0; | |
7835 | PyObject * _argo1 = 0; | |
7836 | char *_kwnames[] = { "self","colourMap", NULL }; | |
7837 | ||
7838 | self = self; | |
7839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) | |
7840 | return NULL; | |
7841 | if (_argo0) { | |
7842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
7845 | return NULL; | |
7846 | } | |
7847 | } | |
7848 | if (_argo1) { | |
7849 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7850 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
7851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
7852 | return NULL; | |
7853 | } | |
7854 | } | |
7855 | { | |
7856 | wxPy_BEGIN_ALLOW_THREADS; | |
7857 | wxDC_SetPalette(_arg0,*_arg1); | |
7858 | ||
7859 | wxPy_END_ALLOW_THREADS; | |
7860 | if (PyErr_Occurred()) return NULL; | |
7861 | } Py_INCREF(Py_None); | |
7862 | _resultobj = Py_None; | |
7863 | return _resultobj; | |
7864 | } | |
7865 | ||
7866 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
7867 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7868 | PyObject * _resultobj; | |
7869 | wxDC * _arg0; | |
7870 | wxBrush * _arg1; | |
7871 | PyObject * _argo0 = 0; | |
7872 | PyObject * _argo1 = 0; | |
7873 | char *_kwnames[] = { "self","brush", NULL }; | |
7874 | ||
7875 | self = self; | |
7876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) | |
7877 | return NULL; | |
7878 | if (_argo0) { | |
7879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
7882 | return NULL; | |
7883 | } | |
7884 | } | |
7885 | if (_argo1) { | |
7886 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7887 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
7888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
7889 | return NULL; | |
7890 | } | |
7891 | } | |
7892 | { | |
7893 | wxPy_BEGIN_ALLOW_THREADS; | |
7894 | wxDC_SetBrush(_arg0,*_arg1); | |
7895 | ||
7896 | wxPy_END_ALLOW_THREADS; | |
7897 | if (PyErr_Occurred()) return NULL; | |
7898 | } Py_INCREF(Py_None); | |
7899 | _resultobj = Py_None; | |
7900 | return _resultobj; | |
7901 | } | |
7902 | ||
7903 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
7904 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7905 | PyObject * _resultobj; | |
7906 | wxDC * _arg0; | |
7907 | wxFont * _arg1; | |
7908 | PyObject * _argo0 = 0; | |
7909 | PyObject * _argo1 = 0; | |
7910 | char *_kwnames[] = { "self","font", NULL }; | |
7911 | ||
7912 | self = self; | |
7913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) | |
7914 | return NULL; | |
7915 | if (_argo0) { | |
7916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
7919 | return NULL; | |
7920 | } | |
7921 | } | |
7922 | if (_argo1) { | |
7923 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7924 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
7925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
7926 | return NULL; | |
7927 | } | |
7928 | } | |
7929 | { | |
7930 | wxPy_BEGIN_ALLOW_THREADS; | |
7931 | wxDC_SetFont(_arg0,*_arg1); | |
7932 | ||
7933 | wxPy_END_ALLOW_THREADS; | |
7934 | if (PyErr_Occurred()) return NULL; | |
7935 | } Py_INCREF(Py_None); | |
7936 | _resultobj = Py_None; | |
7937 | return _resultobj; | |
7938 | } | |
7939 | ||
7940 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
7941 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7942 | PyObject * _resultobj; | |
7943 | wxDC * _arg0; | |
7944 | int _arg1; | |
7945 | PyObject * _argo0 = 0; | |
7946 | char *_kwnames[] = { "self","function", NULL }; | |
7947 | ||
7948 | self = self; | |
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) | |
7950 | return NULL; | |
7951 | if (_argo0) { | |
7952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
7955 | return NULL; | |
7956 | } | |
7957 | } | |
7958 | { | |
7959 | wxPy_BEGIN_ALLOW_THREADS; | |
7960 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
7961 | ||
7962 | wxPy_END_ALLOW_THREADS; | |
7963 | if (PyErr_Occurred()) return NULL; | |
7964 | } Py_INCREF(Py_None); | |
7965 | _resultobj = Py_None; | |
7966 | return _resultobj; | |
7967 | } | |
7968 | ||
7969 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) | |
7970 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject * _resultobj; | |
7972 | wxDC * _arg0; | |
7973 | double _arg1; | |
7974 | double _arg2; | |
7975 | PyObject * _argo0 = 0; | |
7976 | char *_kwnames[] = { "self","x","y", NULL }; | |
7977 | ||
7978 | self = self; | |
7979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7980 | return NULL; | |
7981 | if (_argo0) { | |
7982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
7985 | return NULL; | |
7986 | } | |
7987 | } | |
7988 | { | |
7989 | wxPy_BEGIN_ALLOW_THREADS; | |
7990 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
7991 | ||
7992 | wxPy_END_ALLOW_THREADS; | |
7993 | if (PyErr_Occurred()) return NULL; | |
7994 | } Py_INCREF(Py_None); | |
7995 | _resultobj = Py_None; | |
7996 | return _resultobj; | |
7997 | } | |
7998 | ||
7999 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
8000 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8001 | PyObject * _resultobj; | |
8002 | wxDC * _arg0; | |
8003 | int _arg1; | |
8004 | PyObject * _argo0 = 0; | |
8005 | char *_kwnames[] = { "self","mode", NULL }; | |
8006 | ||
8007 | self = self; | |
8008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) | |
8009 | return NULL; | |
8010 | if (_argo0) { | |
8011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); | |
8014 | return NULL; | |
8015 | } | |
8016 | } | |
8017 | { | |
8018 | wxPy_BEGIN_ALLOW_THREADS; | |
8019 | wxDC_SetMapMode(_arg0,_arg1); | |
8020 | ||
8021 | wxPy_END_ALLOW_THREADS; | |
8022 | if (PyErr_Occurred()) return NULL; | |
8023 | } Py_INCREF(Py_None); | |
8024 | _resultobj = Py_None; | |
8025 | return _resultobj; | |
8026 | } | |
8027 | ||
8028 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
8029 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8030 | PyObject * _resultobj; | |
8031 | wxDC * _arg0; | |
8032 | bool _arg1; | |
8033 | PyObject * _argo0 = 0; | |
8034 | int tempbool1; | |
8035 | char *_kwnames[] = { "self","optimize", NULL }; | |
8036 | ||
8037 | self = self; | |
8038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) | |
8039 | return NULL; | |
8040 | if (_argo0) { | |
8041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
8044 | return NULL; | |
8045 | } | |
8046 | } | |
8047 | _arg1 = (bool ) tempbool1; | |
8048 | { | |
8049 | wxPy_BEGIN_ALLOW_THREADS; | |
8050 | wxDC_SetOptimization(_arg0,_arg1); | |
8051 | ||
8052 | wxPy_END_ALLOW_THREADS; | |
8053 | if (PyErr_Occurred()) return NULL; | |
8054 | } Py_INCREF(Py_None); | |
8055 | _resultobj = Py_None; | |
8056 | return _resultobj; | |
8057 | } | |
8058 | ||
8059 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
8060 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8061 | PyObject * _resultobj; | |
8062 | wxDC * _arg0; | |
8063 | wxPen * _arg1; | |
8064 | PyObject * _argo0 = 0; | |
8065 | PyObject * _argo1 = 0; | |
8066 | char *_kwnames[] = { "self","pen", NULL }; | |
8067 | ||
8068 | self = self; | |
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) | |
8070 | return NULL; | |
8071 | if (_argo0) { | |
8072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
8075 | return NULL; | |
8076 | } | |
8077 | } | |
8078 | if (_argo1) { | |
8079 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8080 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
8082 | return NULL; | |
8083 | } | |
8084 | } | |
8085 | { | |
8086 | wxPy_BEGIN_ALLOW_THREADS; | |
8087 | wxDC_SetPen(_arg0,*_arg1); | |
8088 | ||
8089 | wxPy_END_ALLOW_THREADS; | |
8090 | if (PyErr_Occurred()) return NULL; | |
8091 | } Py_INCREF(Py_None); | |
8092 | _resultobj = Py_None; | |
8093 | return _resultobj; | |
8094 | } | |
8095 | ||
8096 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
8097 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject * _resultobj; | |
8099 | wxDC * _arg0; | |
8100 | wxColour * _arg1; | |
8101 | PyObject * _argo0 = 0; | |
8102 | wxColour temp; | |
8103 | PyObject * _obj1 = 0; | |
8104 | char *_kwnames[] = { "self","colour", NULL }; | |
8105 | ||
8106 | self = self; | |
8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) | |
8108 | return NULL; | |
8109 | if (_argo0) { | |
8110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
8113 | return NULL; | |
8114 | } | |
8115 | } | |
8116 | { | |
8117 | _arg1 = &temp; | |
8118 | if (! wxColour_helper(_obj1, &_arg1)) | |
8119 | return NULL; | |
8120 | } | |
8121 | { | |
8122 | wxPy_BEGIN_ALLOW_THREADS; | |
8123 | wxDC_SetTextBackground(_arg0,*_arg1); | |
8124 | ||
8125 | wxPy_END_ALLOW_THREADS; | |
8126 | if (PyErr_Occurred()) return NULL; | |
8127 | } Py_INCREF(Py_None); | |
8128 | _resultobj = Py_None; | |
8129 | return _resultobj; | |
8130 | } | |
8131 | ||
8132 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
8133 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8134 | PyObject * _resultobj; | |
8135 | wxDC * _arg0; | |
8136 | wxColour * _arg1; | |
8137 | PyObject * _argo0 = 0; | |
8138 | wxColour temp; | |
8139 | PyObject * _obj1 = 0; | |
8140 | char *_kwnames[] = { "self","colour", NULL }; | |
8141 | ||
8142 | self = self; | |
8143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) | |
8144 | return NULL; | |
8145 | if (_argo0) { | |
8146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
8149 | return NULL; | |
8150 | } | |
8151 | } | |
8152 | { | |
8153 | _arg1 = &temp; | |
8154 | if (! wxColour_helper(_obj1, &_arg1)) | |
8155 | return NULL; | |
8156 | } | |
8157 | { | |
8158 | wxPy_BEGIN_ALLOW_THREADS; | |
8159 | wxDC_SetTextForeground(_arg0,*_arg1); | |
8160 | ||
8161 | wxPy_END_ALLOW_THREADS; | |
8162 | if (PyErr_Occurred()) return NULL; | |
8163 | } Py_INCREF(Py_None); | |
8164 | _resultobj = Py_None; | |
8165 | return _resultobj; | |
8166 | } | |
8167 | ||
8168 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
8169 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8170 | PyObject * _resultobj; | |
8171 | wxDC * _arg0; | |
8172 | double _arg1; | |
8173 | double _arg2; | |
8174 | PyObject * _argo0 = 0; | |
8175 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; | |
8176 | ||
8177 | self = self; | |
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8179 | return NULL; | |
8180 | if (_argo0) { | |
8181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); | |
8184 | return NULL; | |
8185 | } | |
8186 | } | |
8187 | { | |
8188 | wxPy_BEGIN_ALLOW_THREADS; | |
8189 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
8190 | ||
8191 | wxPy_END_ALLOW_THREADS; | |
8192 | if (PyErr_Occurred()) return NULL; | |
8193 | } Py_INCREF(Py_None); | |
8194 | _resultobj = Py_None; | |
8195 | return _resultobj; | |
8196 | } | |
8197 | ||
8198 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
8199 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8200 | PyObject * _resultobj; | |
8201 | bool _result; | |
8202 | wxDC * _arg0; | |
8203 | wxString * _arg1; | |
8204 | PyObject * _argo0 = 0; | |
8205 | PyObject * _obj1 = 0; | |
8206 | char *_kwnames[] = { "self","message", NULL }; | |
8207 | ||
8208 | self = self; | |
8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) | |
8210 | return NULL; | |
8211 | if (_argo0) { | |
8212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
8215 | return NULL; | |
8216 | } | |
8217 | } | |
8218 | { | |
8219 | #if PYTHON_API_VERSION >= 1009 | |
8220 | char* tmpPtr; int tmpSize; | |
8221 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8222 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8223 | return NULL; | |
8224 | } | |
8225 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8226 | return NULL; | |
8227 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8228 | #else | |
8229 | if (!PyString_Check(_obj1)) { | |
8230 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8231 | return NULL; | |
8232 | } | |
8233 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8234 | #endif | |
8235 | } | |
8236 | { | |
8237 | wxPy_BEGIN_ALLOW_THREADS; | |
8238 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
8239 | ||
8240 | wxPy_END_ALLOW_THREADS; | |
8241 | if (PyErr_Occurred()) return NULL; | |
8242 | } _resultobj = Py_BuildValue("i",_result); | |
8243 | { | |
8244 | if (_obj1) | |
8245 | delete _arg1; | |
8246 | } | |
8247 | return _resultobj; | |
8248 | } | |
8249 | ||
8250 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
8251 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8252 | PyObject * _resultobj; | |
8253 | wxDC * _arg0; | |
8254 | PyObject * _argo0 = 0; | |
8255 | char *_kwnames[] = { "self", NULL }; | |
8256 | ||
8257 | self = self; | |
8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_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_StartPage. Expected _wxDC_p."); | |
8264 | return NULL; | |
8265 | } | |
8266 | } | |
8267 | { | |
8268 | wxPy_BEGIN_ALLOW_THREADS; | |
8269 | wxDC_StartPage(_arg0); | |
8270 | ||
8271 | wxPy_END_ALLOW_THREADS; | |
8272 | if (PyErr_Occurred()) return NULL; | |
8273 | } Py_INCREF(Py_None); | |
8274 | _resultobj = Py_None; | |
8275 | return _resultobj; | |
8276 | } | |
8277 | ||
8278 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8279 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject * _resultobj; | |
8281 | wxDC * _arg0; | |
8282 | wxBitmap * _arg1; | |
8283 | long _arg2; | |
8284 | long _arg3; | |
8285 | int _arg4 = (int ) FALSE; | |
8286 | PyObject * _argo0 = 0; | |
8287 | PyObject * _argo1 = 0; | |
8288 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; | |
8289 | ||
8290 | self = self; | |
8291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) | |
8292 | return NULL; | |
8293 | if (_argo0) { | |
8294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
8297 | return NULL; | |
8298 | } | |
8299 | } | |
8300 | if (_argo1) { | |
8301 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8302 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
8304 | return NULL; | |
8305 | } | |
8306 | } | |
8307 | { | |
8308 | wxPy_BEGIN_ALLOW_THREADS; | |
8309 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
8310 | ||
8311 | wxPy_END_ALLOW_THREADS; | |
8312 | if (PyErr_Occurred()) return NULL; | |
8313 | } Py_INCREF(Py_None); | |
8314 | _resultobj = Py_None; | |
8315 | return _resultobj; | |
8316 | } | |
8317 | ||
8318 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) | |
8319 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8320 | PyObject * _resultobj; | |
8321 | bool _result; | |
8322 | wxDC * _arg0; | |
8323 | PyObject * _argo0 = 0; | |
8324 | char *_kwnames[] = { "self", NULL }; | |
8325 | ||
8326 | self = self; | |
8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
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_CanDrawBitmap. Expected _wxDC_p."); | |
8333 | return NULL; | |
8334 | } | |
8335 | } | |
8336 | { | |
8337 | wxPy_BEGIN_ALLOW_THREADS; | |
8338 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
8339 | ||
8340 | wxPy_END_ALLOW_THREADS; | |
8341 | if (PyErr_Occurred()) return NULL; | |
8342 | } _resultobj = Py_BuildValue("i",_result); | |
8343 | return _resultobj; | |
8344 | } | |
8345 | ||
8346 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
8347 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8348 | PyObject * _resultobj; | |
8349 | bool _result; | |
8350 | wxDC * _arg0; | |
8351 | PyObject * _argo0 = 0; | |
8352 | char *_kwnames[] = { "self", NULL }; | |
8353 | ||
8354 | self = self; | |
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
8356 | return NULL; | |
8357 | if (_argo0) { | |
8358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
8361 | return NULL; | |
8362 | } | |
8363 | } | |
8364 | { | |
8365 | wxPy_BEGIN_ALLOW_THREADS; | |
8366 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
8367 | ||
8368 | wxPy_END_ALLOW_THREADS; | |
8369 | if (PyErr_Occurred()) return NULL; | |
8370 | } _resultobj = Py_BuildValue("i",_result); | |
8371 | return _resultobj; | |
8372 | } | |
8373 | ||
8374 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
8375 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8376 | PyObject * _resultobj; | |
8377 | int _result; | |
8378 | wxDC * _arg0; | |
8379 | PyObject * _argo0 = 0; | |
8380 | char *_kwnames[] = { "self", NULL }; | |
8381 | ||
8382 | self = self; | |
8383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
8384 | return NULL; | |
8385 | if (_argo0) { | |
8386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
8389 | return NULL; | |
8390 | } | |
8391 | } | |
8392 | { | |
8393 | wxPy_BEGIN_ALLOW_THREADS; | |
8394 | _result = (int )wxDC_GetDepth(_arg0); | |
8395 | ||
8396 | wxPy_END_ALLOW_THREADS; | |
8397 | if (PyErr_Occurred()) return NULL; | |
8398 | } _resultobj = Py_BuildValue("i",_result); | |
8399 | return _resultobj; | |
8400 | } | |
8401 | ||
8402 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
8403 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8404 | PyObject * _resultobj; | |
8405 | wxSize * _result; | |
8406 | wxDC * _arg0; | |
8407 | PyObject * _argo0 = 0; | |
8408 | char *_kwnames[] = { "self", NULL }; | |
8409 | char _ptemp[128]; | |
8410 | ||
8411 | self = self; | |
8412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
8413 | return NULL; | |
8414 | if (_argo0) { | |
8415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
8418 | return NULL; | |
8419 | } | |
8420 | } | |
8421 | { | |
8422 | wxPy_BEGIN_ALLOW_THREADS; | |
8423 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
8424 | ||
8425 | wxPy_END_ALLOW_THREADS; | |
8426 | if (PyErr_Occurred()) return NULL; | |
8427 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
8428 | _resultobj = Py_BuildValue("s",_ptemp); | |
8429 | return _resultobj; | |
8430 | } | |
8431 | ||
8432 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8433 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8434 | PyObject * _resultobj; | |
8435 | wxDC * _arg0; | |
8436 | int * _arg1; | |
8437 | int temp; | |
8438 | int * _arg2; | |
8439 | int temp0; | |
8440 | PyObject * _argo0 = 0; | |
8441 | char *_kwnames[] = { "self", NULL }; | |
8442 | ||
8443 | self = self; | |
8444 | { | |
8445 | _arg1 = &temp; | |
8446 | } | |
8447 | { | |
8448 | _arg2 = &temp0; | |
8449 | } | |
8450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8451 | return NULL; | |
8452 | if (_argo0) { | |
8453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8456 | return NULL; | |
8457 | } | |
8458 | } | |
8459 | { | |
8460 | wxPy_BEGIN_ALLOW_THREADS; | |
8461 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
8462 | ||
8463 | wxPy_END_ALLOW_THREADS; | |
8464 | if (PyErr_Occurred()) return NULL; | |
8465 | } Py_INCREF(Py_None); | |
8466 | _resultobj = Py_None; | |
8467 | { | |
8468 | PyObject *o; | |
8469 | o = PyInt_FromLong((long) (*_arg1)); | |
8470 | _resultobj = t_output_helper(_resultobj, o); | |
8471 | } | |
8472 | { | |
8473 | PyObject *o; | |
8474 | o = PyInt_FromLong((long) (*_arg2)); | |
8475 | _resultobj = t_output_helper(_resultobj, o); | |
8476 | } | |
8477 | return _resultobj; | |
8478 | } | |
8479 | ||
8480 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
8481 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8482 | PyObject * _resultobj; | |
8483 | wxDC * _arg0; | |
8484 | int _arg1; | |
8485 | int _arg2; | |
8486 | PyObject * _argo0 = 0; | |
8487 | char *_kwnames[] = { "self","x","y", NULL }; | |
8488 | ||
8489 | self = self; | |
8490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8491 | return NULL; | |
8492 | if (_argo0) { | |
8493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
8496 | return NULL; | |
8497 | } | |
8498 | } | |
8499 | { | |
8500 | wxPy_BEGIN_ALLOW_THREADS; | |
8501 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
8502 | ||
8503 | wxPy_END_ALLOW_THREADS; | |
8504 | if (PyErr_Occurred()) return NULL; | |
8505 | } Py_INCREF(Py_None); | |
8506 | _resultobj = Py_None; | |
8507 | return _resultobj; | |
8508 | } | |
8509 | ||
8510 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
8511 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8512 | PyObject * _resultobj; | |
8513 | wxDC * _arg0; | |
8514 | int * _arg1; | |
8515 | int temp; | |
8516 | int * _arg2; | |
8517 | int temp0; | |
8518 | PyObject * _argo0 = 0; | |
8519 | char *_kwnames[] = { "self", NULL }; | |
8520 | ||
8521 | self = self; | |
8522 | { | |
8523 | _arg1 = &temp; | |
8524 | } | |
8525 | { | |
8526 | _arg2 = &temp0; | |
8527 | } | |
8528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
8529 | return NULL; | |
8530 | if (_argo0) { | |
8531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
8534 | return NULL; | |
8535 | } | |
8536 | } | |
8537 | { | |
8538 | wxPy_BEGIN_ALLOW_THREADS; | |
8539 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
8540 | ||
8541 | wxPy_END_ALLOW_THREADS; | |
8542 | if (PyErr_Occurred()) return NULL; | |
8543 | } Py_INCREF(Py_None); | |
8544 | _resultobj = Py_None; | |
8545 | { | |
8546 | PyObject *o; | |
8547 | o = PyInt_FromLong((long) (*_arg1)); | |
8548 | _resultobj = t_output_helper(_resultobj, o); | |
8549 | } | |
8550 | { | |
8551 | PyObject *o; | |
8552 | o = PyInt_FromLong((long) (*_arg2)); | |
8553 | _resultobj = t_output_helper(_resultobj, o); | |
8554 | } | |
8555 | return _resultobj; | |
8556 | } | |
8557 | ||
8558 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
8559 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8560 | PyObject * _resultobj; | |
8561 | wxDC * _arg0; | |
8562 | bool _arg1; | |
8563 | bool _arg2; | |
8564 | PyObject * _argo0 = 0; | |
8565 | int tempbool1; | |
8566 | int tempbool2; | |
8567 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
8568 | ||
8569 | self = self; | |
8570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8571 | return NULL; | |
8572 | if (_argo0) { | |
8573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
8576 | return NULL; | |
8577 | } | |
8578 | } | |
8579 | _arg1 = (bool ) tempbool1; | |
8580 | _arg2 = (bool ) tempbool2; | |
8581 | { | |
8582 | wxPy_BEGIN_ALLOW_THREADS; | |
8583 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
8584 | ||
8585 | wxPy_END_ALLOW_THREADS; | |
8586 | if (PyErr_Occurred()) return NULL; | |
8587 | } Py_INCREF(Py_None); | |
8588 | _resultobj = Py_None; | |
8589 | return _resultobj; | |
8590 | } | |
8591 | ||
8592 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) | |
8593 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8594 | PyObject * _resultobj; | |
8595 | wxDC * _arg0; | |
8596 | int _arg1; | |
8597 | int _arg2; | |
8598 | PyObject * _argo0 = 0; | |
8599 | char *_kwnames[] = { "self","x","y", NULL }; | |
8600 | ||
8601 | self = self; | |
8602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8603 | return NULL; | |
8604 | if (_argo0) { | |
8605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
8608 | return NULL; | |
8609 | } | |
8610 | } | |
8611 | { | |
8612 | wxPy_BEGIN_ALLOW_THREADS; | |
8613 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
8614 | ||
8615 | wxPy_END_ALLOW_THREADS; | |
8616 | if (PyErr_Occurred()) return NULL; | |
8617 | } Py_INCREF(Py_None); | |
8618 | _resultobj = Py_None; | |
8619 | return _resultobj; | |
8620 | } | |
8621 | ||
8622 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
8623 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8624 | PyObject * _resultobj; | |
8625 | wxDC * _arg0; | |
8626 | PyObject * _argo0 = 0; | |
8627 | char *_kwnames[] = { "self", NULL }; | |
8628 | ||
8629 | self = self; | |
8630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
8631 | return NULL; | |
8632 | if (_argo0) { | |
8633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
8636 | return NULL; | |
8637 | } | |
8638 | } | |
8639 | { | |
8640 | wxPy_BEGIN_ALLOW_THREADS; | |
8641 | wxDC_ResetBoundingBox(_arg0); | |
8642 | ||
8643 | wxPy_END_ALLOW_THREADS; | |
8644 | if (PyErr_Occurred()) return NULL; | |
8645 | } Py_INCREF(Py_None); | |
8646 | _resultobj = Py_None; | |
8647 | return _resultobj; | |
8648 | } | |
8649 | ||
8650 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8651 | PyObject * _resultobj; | |
8652 | wxDC * _arg0; | |
8653 | int * _arg1; | |
8654 | int temp; | |
8655 | int * _arg2; | |
8656 | int temp0; | |
8657 | int * _arg3; | |
8658 | int temp1; | |
8659 | int * _arg4; | |
8660 | int temp2; | |
8661 | PyObject * _argo0 = 0; | |
8662 | char *_kwnames[] = { "self", NULL }; | |
8663 | ||
8664 | self = self; | |
8665 | { | |
8666 | _arg1 = &temp; | |
8667 | } | |
8668 | { | |
8669 | _arg2 = &temp0; | |
8670 | } | |
8671 | { | |
8672 | _arg3 = &temp1; | |
8673 | } | |
8674 | { | |
8675 | _arg4 = &temp2; | |
8676 | } | |
8677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
8678 | return NULL; | |
8679 | if (_argo0) { | |
8680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
8683 | return NULL; | |
8684 | } | |
8685 | } | |
8686 | { | |
8687 | wxPy_BEGIN_ALLOW_THREADS; | |
8688 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8689 | ||
8690 | wxPy_END_ALLOW_THREADS; | |
8691 | if (PyErr_Occurred()) return NULL; | |
8692 | } Py_INCREF(Py_None); | |
8693 | _resultobj = Py_None; | |
8694 | { | |
8695 | PyObject *o; | |
8696 | o = PyInt_FromLong((long) (*_arg1)); | |
8697 | _resultobj = t_output_helper(_resultobj, o); | |
8698 | } | |
8699 | { | |
8700 | PyObject *o; | |
8701 | o = PyInt_FromLong((long) (*_arg2)); | |
8702 | _resultobj = t_output_helper(_resultobj, o); | |
8703 | } | |
8704 | { | |
8705 | PyObject *o; | |
8706 | o = PyInt_FromLong((long) (*_arg3)); | |
8707 | _resultobj = t_output_helper(_resultobj, o); | |
8708 | } | |
8709 | { | |
8710 | PyObject *o; | |
8711 | o = PyInt_FromLong((long) (*_arg4)); | |
8712 | _resultobj = t_output_helper(_resultobj, o); | |
8713 | } | |
8714 | return _resultobj; | |
8715 | } | |
8716 | ||
8717 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
8718 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
8719 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
8720 | int numObjs = 0; | |
8721 | int numPens = 0; | |
8722 | wxPen* pen; | |
8723 | PyObject* obj; | |
8724 | int x1, y1; | |
8725 | int i = 0; | |
8726 | ||
8727 | if (!PySequence_Check(pyPoints)) { | |
8728 | goto err0; | |
8729 | } | |
8730 | if (!PySequence_Check(pyPens)) { | |
8731 | goto err1; | |
8732 | } | |
8733 | numObjs = PySequence_Length(pyPoints); | |
8734 | numPens = PySequence_Length(pyPens); | |
8735 | ||
8736 | for (i = 0; i < numObjs; i++) { | |
8737 | // Use a new pen? | |
8738 | if (i < numPens) { | |
8739 | if (isFastPens) { | |
8740 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
8741 | } | |
8742 | else { | |
8743 | obj = PySequence_GetItem(pyPens, i); | |
8744 | } | |
8745 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
8746 | if (!isFastPens) | |
8747 | Py_DECREF(obj); | |
8748 | goto err1; | |
8749 | } | |
8750 | ||
8751 | self->SetPen(*pen); | |
8752 | if (!isFastPens) | |
8753 | Py_DECREF(obj); | |
8754 | } | |
8755 | ||
8756 | // Get the point coordinants | |
8757 | if (isFastSeq) { | |
8758 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
8759 | } | |
8760 | else { | |
8761 | obj = PySequence_GetItem(pyPoints, i); | |
8762 | } | |
8763 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
8764 | if (!isFastPens) | |
8765 | Py_DECREF(obj); | |
8766 | goto err0; | |
8767 | } | |
8768 | ||
8769 | // Now draw the point | |
8770 | self->DrawPoint(x1, y1); | |
8771 | ||
8772 | if (!isFastSeq) | |
8773 | Py_DECREF(obj); | |
8774 | } | |
8775 | ||
8776 | Py_INCREF(Py_None); | |
8777 | return Py_None; | |
8778 | ||
8779 | err1: | |
8780 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
8781 | return NULL; | |
8782 | err0: | |
8783 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
8784 | return NULL; | |
8785 | } | |
8786 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8787 | PyObject * _resultobj; | |
8788 | PyObject * _result; | |
8789 | wxDC * _arg0; | |
8790 | PyObject * _arg1; | |
8791 | PyObject * _arg2; | |
8792 | PyObject * _argo0 = 0; | |
8793 | PyObject * _obj1 = 0; | |
8794 | PyObject * _obj2 = 0; | |
8795 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
8796 | ||
8797 | self = self; | |
8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8799 | return NULL; | |
8800 | if (_argo0) { | |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
8804 | return NULL; | |
8805 | } | |
8806 | } | |
8807 | { | |
8808 | _arg1 = _obj1; | |
8809 | } | |
8810 | { | |
8811 | _arg2 = _obj2; | |
8812 | } | |
8813 | { | |
8814 | wxPy_BEGIN_ALLOW_THREADS; | |
8815 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); | |
8816 | ||
8817 | wxPy_END_ALLOW_THREADS; | |
8818 | if (PyErr_Occurred()) return NULL; | |
8819 | }{ | |
8820 | _resultobj = _result; | |
8821 | } | |
8822 | return _resultobj; | |
8823 | } | |
8824 | ||
8825 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
8826 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
8827 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
8828 | int numObjs = 0; | |
8829 | int numPens = 0; | |
8830 | wxPen* pen; | |
8831 | PyObject* obj; | |
8832 | int x1, y1, x2, y2; | |
8833 | int i = 0; | |
8834 | ||
8835 | if (!PySequence_Check(pyLines)) { | |
8836 | goto err0; | |
8837 | } | |
8838 | if (!PySequence_Check(pyPens)) { | |
8839 | goto err1; | |
8840 | } | |
8841 | numObjs = PySequence_Length(pyLines); | |
8842 | numPens = PySequence_Length(pyPens); | |
8843 | ||
8844 | for (i = 0; i < numObjs; i++) { | |
8845 | // Use a new pen? | |
8846 | if (i < numPens) { | |
8847 | if (isFastPens) { | |
8848 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
8849 | } | |
8850 | else { | |
8851 | obj = PySequence_GetItem(pyPens, i); | |
8852 | } | |
8853 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
8854 | if (!isFastPens) | |
8855 | Py_DECREF(obj); | |
8856 | goto err1; | |
8857 | } | |
8858 | ||
8859 | self->SetPen(*pen); | |
8860 | if (!isFastPens) | |
8861 | Py_DECREF(obj); | |
8862 | } | |
8863 | ||
8864 | // Get the line coordinants | |
8865 | if (isFastSeq) { | |
8866 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
8867 | } | |
8868 | else { | |
8869 | obj = PySequence_GetItem(pyLines, i); | |
8870 | } | |
8871 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
8872 | if (!isFastPens) | |
8873 | Py_DECREF(obj); | |
8874 | goto err0; | |
8875 | } | |
8876 | ||
8877 | // Now draw the line | |
8878 | self->DrawLine(x1, y1, x2, y2); | |
8879 | ||
8880 | if (!isFastSeq) | |
8881 | Py_DECREF(obj); | |
8882 | } | |
8883 | ||
8884 | Py_INCREF(Py_None); | |
8885 | return Py_None; | |
8886 | ||
8887 | err1: | |
8888 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
8889 | return NULL; | |
8890 | err0: | |
8891 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
8892 | return NULL; | |
8893 | } | |
8894 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8895 | PyObject * _resultobj; | |
8896 | PyObject * _result; | |
8897 | wxDC * _arg0; | |
8898 | PyObject * _arg1; | |
8899 | PyObject * _arg2; | |
8900 | PyObject * _argo0 = 0; | |
8901 | PyObject * _obj1 = 0; | |
8902 | PyObject * _obj2 = 0; | |
8903 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
8904 | ||
8905 | self = self; | |
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8907 | return NULL; | |
8908 | if (_argo0) { | |
8909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
8912 | return NULL; | |
8913 | } | |
8914 | } | |
8915 | { | |
8916 | _arg1 = _obj1; | |
8917 | } | |
8918 | { | |
8919 | _arg2 = _obj2; | |
8920 | } | |
8921 | { | |
8922 | wxPy_BEGIN_ALLOW_THREADS; | |
8923 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); | |
8924 | ||
8925 | wxPy_END_ALLOW_THREADS; | |
8926 | if (PyErr_Occurred()) return NULL; | |
8927 | }{ | |
8928 | _resultobj = _result; | |
8929 | } | |
8930 | return _resultobj; | |
8931 | } | |
8932 | ||
8933 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
8934 | wxMemoryDC *src; | |
8935 | wxDC *dest; | |
8936 | src = (wxMemoryDC *) ptr; | |
8937 | dest = (wxDC *) src; | |
8938 | return (void *) dest; | |
8939 | } | |
8940 | ||
8941 | static void *SwigwxMemoryDCTowxObject(void *ptr) { | |
8942 | wxMemoryDC *src; | |
8943 | wxObject *dest; | |
8944 | src = (wxMemoryDC *) ptr; | |
8945 | dest = (wxObject *) src; | |
8946 | return (void *) dest; | |
8947 | } | |
8948 | ||
8949 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
8950 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8951 | PyObject * _resultobj; | |
8952 | wxMemoryDC * _result; | |
8953 | char *_kwnames[] = { NULL }; | |
8954 | char _ptemp[128]; | |
8955 | ||
8956 | self = self; | |
8957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) | |
8958 | return NULL; | |
8959 | { | |
8960 | wxPy_BEGIN_ALLOW_THREADS; | |
8961 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
8962 | ||
8963 | wxPy_END_ALLOW_THREADS; | |
8964 | if (PyErr_Occurred()) return NULL; | |
8965 | } if (_result) { | |
8966 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
8967 | _resultobj = Py_BuildValue("s",_ptemp); | |
8968 | } else { | |
8969 | Py_INCREF(Py_None); | |
8970 | _resultobj = Py_None; | |
8971 | } | |
8972 | return _resultobj; | |
8973 | } | |
8974 | ||
8975 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
8976 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8977 | PyObject * _resultobj; | |
8978 | wxMemoryDC * _arg0; | |
8979 | wxBitmap * _arg1; | |
8980 | PyObject * _argo0 = 0; | |
8981 | PyObject * _argo1 = 0; | |
8982 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8983 | ||
8984 | self = self; | |
8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) | |
8986 | return NULL; | |
8987 | if (_argo0) { | |
8988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
8991 | return NULL; | |
8992 | } | |
8993 | } | |
8994 | if (_argo1) { | |
8995 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8996 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
8998 | return NULL; | |
8999 | } | |
9000 | } | |
9001 | { | |
9002 | wxPy_BEGIN_ALLOW_THREADS; | |
9003 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
9004 | ||
9005 | wxPy_END_ALLOW_THREADS; | |
9006 | if (PyErr_Occurred()) return NULL; | |
9007 | } Py_INCREF(Py_None); | |
9008 | _resultobj = Py_None; | |
9009 | return _resultobj; | |
9010 | } | |
9011 | ||
9012 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
9013 | wxScreenDC *src; | |
9014 | wxDC *dest; | |
9015 | src = (wxScreenDC *) ptr; | |
9016 | dest = (wxDC *) src; | |
9017 | return (void *) dest; | |
9018 | } | |
9019 | ||
9020 | static void *SwigwxScreenDCTowxObject(void *ptr) { | |
9021 | wxScreenDC *src; | |
9022 | wxObject *dest; | |
9023 | src = (wxScreenDC *) ptr; | |
9024 | dest = (wxObject *) src; | |
9025 | return (void *) dest; | |
9026 | } | |
9027 | ||
9028 | #define new_wxScreenDC() (new wxScreenDC()) | |
9029 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9030 | PyObject * _resultobj; | |
9031 | wxScreenDC * _result; | |
9032 | char *_kwnames[] = { NULL }; | |
9033 | char _ptemp[128]; | |
9034 | ||
9035 | self = self; | |
9036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) | |
9037 | return NULL; | |
9038 | { | |
9039 | wxPy_BEGIN_ALLOW_THREADS; | |
9040 | _result = (wxScreenDC *)new_wxScreenDC(); | |
9041 | ||
9042 | wxPy_END_ALLOW_THREADS; | |
9043 | if (PyErr_Occurred()) return NULL; | |
9044 | } if (_result) { | |
9045 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9046 | _resultobj = Py_BuildValue("s",_ptemp); | |
9047 | } else { | |
9048 | Py_INCREF(Py_None); | |
9049 | _resultobj = Py_None; | |
9050 | } | |
9051 | return _resultobj; | |
9052 | } | |
9053 | ||
9054 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9055 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9056 | PyObject * _resultobj; | |
9057 | bool _result; | |
9058 | wxScreenDC * _arg0; | |
9059 | wxWindow * _arg1; | |
9060 | PyObject * _argo0 = 0; | |
9061 | PyObject * _argo1 = 0; | |
9062 | char *_kwnames[] = { "self","window", NULL }; | |
9063 | ||
9064 | self = self; | |
9065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) | |
9066 | return NULL; | |
9067 | if (_argo0) { | |
9068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); | |
9071 | return NULL; | |
9072 | } | |
9073 | } | |
9074 | if (_argo1) { | |
9075 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9076 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); | |
9078 | return NULL; | |
9079 | } | |
9080 | } | |
9081 | { | |
9082 | wxPy_BEGIN_ALLOW_THREADS; | |
9083 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); | |
9084 | ||
9085 | wxPy_END_ALLOW_THREADS; | |
9086 | if (PyErr_Occurred()) return NULL; | |
9087 | } _resultobj = Py_BuildValue("i",_result); | |
9088 | return _resultobj; | |
9089 | } | |
9090 | ||
9091 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9092 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject * _resultobj; | |
9094 | bool _result; | |
9095 | wxScreenDC * _arg0; | |
9096 | wxRect * _arg1 = (wxRect *) NULL; | |
9097 | PyObject * _argo0 = 0; | |
9098 | wxRect temp; | |
9099 | PyObject * _obj1 = 0; | |
9100 | char *_kwnames[] = { "self","rect", NULL }; | |
9101 | ||
9102 | self = self; | |
9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) | |
9104 | return NULL; | |
9105 | if (_argo0) { | |
9106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
9109 | return NULL; | |
9110 | } | |
9111 | } | |
9112 | if (_obj1) | |
9113 | { | |
9114 | _arg1 = &temp; | |
9115 | if (! wxRect_helper(_obj1, &_arg1)) | |
9116 | return NULL; | |
9117 | } | |
9118 | { | |
9119 | wxPy_BEGIN_ALLOW_THREADS; | |
9120 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); | |
9121 | ||
9122 | wxPy_END_ALLOW_THREADS; | |
9123 | if (PyErr_Occurred()) return NULL; | |
9124 | } _resultobj = Py_BuildValue("i",_result); | |
9125 | return _resultobj; | |
9126 | } | |
9127 | ||
9128 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
9129 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9130 | PyObject * _resultobj; | |
9131 | bool _result; | |
9132 | wxScreenDC * _arg0; | |
9133 | PyObject * _argo0 = 0; | |
9134 | char *_kwnames[] = { "self", NULL }; | |
9135 | ||
9136 | self = self; | |
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) | |
9138 | return NULL; | |
9139 | if (_argo0) { | |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
9143 | return NULL; | |
9144 | } | |
9145 | } | |
9146 | { | |
9147 | wxPy_BEGIN_ALLOW_THREADS; | |
9148 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
9149 | ||
9150 | wxPy_END_ALLOW_THREADS; | |
9151 | if (PyErr_Occurred()) return NULL; | |
9152 | } _resultobj = Py_BuildValue("i",_result); | |
9153 | return _resultobj; | |
9154 | } | |
9155 | ||
9156 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9157 | wxClientDC *src; | |
9158 | wxDC *dest; | |
9159 | src = (wxClientDC *) ptr; | |
9160 | dest = (wxDC *) src; | |
9161 | return (void *) dest; | |
9162 | } | |
9163 | ||
9164 | static void *SwigwxClientDCTowxObject(void *ptr) { | |
9165 | wxClientDC *src; | |
9166 | wxObject *dest; | |
9167 | src = (wxClientDC *) ptr; | |
9168 | dest = (wxObject *) src; | |
9169 | return (void *) dest; | |
9170 | } | |
9171 | ||
9172 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
9173 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9174 | PyObject * _resultobj; | |
9175 | wxClientDC * _result; | |
9176 | wxWindow * _arg0; | |
9177 | PyObject * _argo0 = 0; | |
9178 | char *_kwnames[] = { "win", NULL }; | |
9179 | char _ptemp[128]; | |
9180 | ||
9181 | self = self; | |
9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) | |
9183 | return NULL; | |
9184 | if (_argo0) { | |
9185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
9188 | return NULL; | |
9189 | } | |
9190 | } | |
9191 | { | |
9192 | wxPy_BEGIN_ALLOW_THREADS; | |
9193 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
9194 | ||
9195 | wxPy_END_ALLOW_THREADS; | |
9196 | if (PyErr_Occurred()) return NULL; | |
9197 | } if (_result) { | |
9198 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9199 | _resultobj = Py_BuildValue("s",_ptemp); | |
9200 | } else { | |
9201 | Py_INCREF(Py_None); | |
9202 | _resultobj = Py_None; | |
9203 | } | |
9204 | return _resultobj; | |
9205 | } | |
9206 | ||
9207 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
9208 | wxPaintDC *src; | |
9209 | wxDC *dest; | |
9210 | src = (wxPaintDC *) ptr; | |
9211 | dest = (wxDC *) src; | |
9212 | return (void *) dest; | |
9213 | } | |
9214 | ||
9215 | static void *SwigwxPaintDCTowxObject(void *ptr) { | |
9216 | wxPaintDC *src; | |
9217 | wxObject *dest; | |
9218 | src = (wxPaintDC *) ptr; | |
9219 | dest = (wxObject *) src; | |
9220 | return (void *) dest; | |
9221 | } | |
9222 | ||
9223 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
9224 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9225 | PyObject * _resultobj; | |
9226 | wxPaintDC * _result; | |
9227 | wxWindow * _arg0; | |
9228 | PyObject * _argo0 = 0; | |
9229 | char *_kwnames[] = { "win", NULL }; | |
9230 | char _ptemp[128]; | |
9231 | ||
9232 | self = self; | |
9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) | |
9234 | return NULL; | |
9235 | if (_argo0) { | |
9236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
9239 | return NULL; | |
9240 | } | |
9241 | } | |
9242 | { | |
9243 | wxPy_BEGIN_ALLOW_THREADS; | |
9244 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
9245 | ||
9246 | wxPy_END_ALLOW_THREADS; | |
9247 | if (PyErr_Occurred()) return NULL; | |
9248 | } if (_result) { | |
9249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
9250 | _resultobj = Py_BuildValue("s",_ptemp); | |
9251 | } else { | |
9252 | Py_INCREF(Py_None); | |
9253 | _resultobj = Py_None; | |
9254 | } | |
9255 | return _resultobj; | |
9256 | } | |
9257 | ||
9258 | static void *SwigwxWindowDCTowxDC(void *ptr) { | |
9259 | wxWindowDC *src; | |
9260 | wxDC *dest; | |
9261 | src = (wxWindowDC *) ptr; | |
9262 | dest = (wxDC *) src; | |
9263 | return (void *) dest; | |
9264 | } | |
9265 | ||
9266 | static void *SwigwxWindowDCTowxObject(void *ptr) { | |
9267 | wxWindowDC *src; | |
9268 | wxObject *dest; | |
9269 | src = (wxWindowDC *) ptr; | |
9270 | dest = (wxObject *) src; | |
9271 | return (void *) dest; | |
9272 | } | |
9273 | ||
9274 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
9275 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9276 | PyObject * _resultobj; | |
9277 | wxWindowDC * _result; | |
9278 | wxWindow * _arg0; | |
9279 | PyObject * _argo0 = 0; | |
9280 | char *_kwnames[] = { "win", NULL }; | |
9281 | char _ptemp[128]; | |
9282 | ||
9283 | self = self; | |
9284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) | |
9285 | return NULL; | |
9286 | if (_argo0) { | |
9287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
9290 | return NULL; | |
9291 | } | |
9292 | } | |
9293 | { | |
9294 | wxPy_BEGIN_ALLOW_THREADS; | |
9295 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
9296 | ||
9297 | wxPy_END_ALLOW_THREADS; | |
9298 | if (PyErr_Occurred()) return NULL; | |
9299 | } if (_result) { | |
9300 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
9301 | _resultobj = Py_BuildValue("s",_ptemp); | |
9302 | } else { | |
9303 | Py_INCREF(Py_None); | |
9304 | _resultobj = Py_None; | |
9305 | } | |
9306 | return _resultobj; | |
9307 | } | |
9308 | ||
e6056257 RD |
9309 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
9310 | wxPalette *src; | |
9311 | wxGDIObject *dest; | |
9312 | src = (wxPalette *) ptr; | |
9313 | dest = (wxGDIObject *) src; | |
9314 | return (void *) dest; | |
9315 | } | |
9316 | ||
9317 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9318 | wxPalette *src; | |
9319 | wxObject *dest; | |
9320 | src = (wxPalette *) ptr; | |
9321 | dest = (wxObject *) src; | |
9322 | return (void *) dest; | |
9323 | } | |
9324 | ||
9325 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9326 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9327 | PyObject * _resultobj; | |
9328 | wxPalette * _result; | |
9329 | int _arg0; | |
9330 | byte * _arg1; | |
9331 | byte * _arg2; | |
9332 | byte * _arg3; | |
9333 | PyObject * _obj1 = 0; | |
9334 | PyObject * _obj2 = 0; | |
9335 | PyObject * _obj3 = 0; | |
9336 | char *_kwnames[] = { "choices","choices","choices", NULL }; | |
9337 | char _ptemp[128]; | |
9338 | ||
9339 | self = self; | |
9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) | |
9341 | return NULL; | |
9342 | { | |
9343 | _arg1 = byte_LIST_helper(_obj1); | |
9344 | if (_arg1 == NULL) { | |
9345 | return NULL; | |
9346 | } | |
9347 | } | |
9348 | { | |
9349 | _arg2 = byte_LIST_helper(_obj2); | |
9350 | if (_arg2 == NULL) { | |
9351 | return NULL; | |
9352 | } | |
9353 | } | |
9354 | if (_obj3) | |
9355 | { | |
9356 | _arg3 = byte_LIST_helper(_obj3); | |
9357 | if (_arg3 == NULL) { | |
9358 | return NULL; | |
9359 | } | |
9360 | } | |
9361 | { | |
9362 | if (_obj1) { | |
9363 | _arg0 = PyList_Size(_obj1); | |
9364 | } | |
9365 | else { | |
9366 | _arg0 = 0; | |
9367 | } | |
9368 | } | |
9369 | { | |
9370 | wxPy_BEGIN_ALLOW_THREADS; | |
9371 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
9372 | ||
9373 | wxPy_END_ALLOW_THREADS; | |
9374 | if (PyErr_Occurred()) return NULL; | |
9375 | } if (_result) { | |
9376 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9377 | _resultobj = Py_BuildValue("s",_ptemp); | |
9378 | } else { | |
9379 | Py_INCREF(Py_None); | |
9380 | _resultobj = Py_None; | |
9381 | } | |
9382 | { | |
9383 | delete [] _arg1; | |
9384 | } | |
9385 | { | |
9386 | delete [] _arg2; | |
9387 | } | |
9388 | { | |
9389 | delete [] _arg3; | |
9390 | } | |
9391 | return _resultobj; | |
9392 | } | |
9393 | ||
9394 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
9395 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9396 | PyObject * _resultobj; | |
9397 | wxPalette * _arg0; | |
9398 | PyObject * _argo0 = 0; | |
9399 | char *_kwnames[] = { "self", NULL }; | |
9400 | ||
9401 | self = self; | |
9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) | |
9403 | return NULL; | |
9404 | if (_argo0) { | |
9405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
9408 | return NULL; | |
9409 | } | |
9410 | } | |
9411 | { | |
9412 | wxPy_BEGIN_ALLOW_THREADS; | |
9413 | delete_wxPalette(_arg0); | |
9414 | ||
9415 | wxPy_END_ALLOW_THREADS; | |
9416 | if (PyErr_Occurred()) return NULL; | |
9417 | } Py_INCREF(Py_None); | |
9418 | _resultobj = Py_None; | |
9419 | return _resultobj; | |
9420 | } | |
9421 | ||
9422 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
9423 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9424 | PyObject * _resultobj; | |
9425 | int _result; | |
9426 | wxPalette * _arg0; | |
9427 | byte _arg1; | |
9428 | byte _arg2; | |
9429 | byte _arg3; | |
9430 | PyObject * _argo0 = 0; | |
9431 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
9432 | ||
9433 | self = self; | |
9434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
9435 | return NULL; | |
9436 | if (_argo0) { | |
9437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
9440 | return NULL; | |
9441 | } | |
9442 | } | |
9443 | { | |
9444 | wxPy_BEGIN_ALLOW_THREADS; | |
9445 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
9446 | ||
9447 | wxPy_END_ALLOW_THREADS; | |
9448 | if (PyErr_Occurred()) return NULL; | |
9449 | } _resultobj = Py_BuildValue("i",_result); | |
9450 | return _resultobj; | |
9451 | } | |
9452 | ||
9453 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9454 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9455 | PyObject * _resultobj; | |
9456 | bool _result; | |
9457 | wxPalette * _arg0; | |
9458 | int _arg1; | |
9459 | byte * _arg2; | |
9460 | byte * _arg3; | |
9461 | byte * _arg4; | |
9462 | PyObject * _argo0 = 0; | |
9463 | PyObject * _argo2 = 0; | |
9464 | PyObject * _argo3 = 0; | |
9465 | PyObject * _argo4 = 0; | |
9466 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; | |
9467 | ||
9468 | self = self; | |
9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) | |
9470 | return NULL; | |
9471 | if (_argo0) { | |
9472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
9475 | return NULL; | |
9476 | } | |
9477 | } | |
9478 | if (_argo2) { | |
9479 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9480 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
9481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); | |
9482 | return NULL; | |
9483 | } | |
9484 | } | |
9485 | if (_argo3) { | |
9486 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
9487 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
9488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); | |
9489 | return NULL; | |
9490 | } | |
9491 | } | |
9492 | if (_argo4) { | |
9493 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
9494 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
9495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); | |
9496 | return NULL; | |
9497 | } | |
9498 | } | |
9499 | { | |
9500 | wxPy_BEGIN_ALLOW_THREADS; | |
9501 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9502 | ||
9503 | wxPy_END_ALLOW_THREADS; | |
9504 | if (PyErr_Occurred()) return NULL; | |
9505 | } _resultobj = Py_BuildValue("i",_result); | |
9506 | return _resultobj; | |
9507 | } | |
9508 | ||
9509 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
9510 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9511 | PyObject * _resultobj; | |
9512 | bool _result; | |
9513 | wxPalette * _arg0; | |
9514 | PyObject * _argo0 = 0; | |
9515 | char *_kwnames[] = { "self", NULL }; | |
9516 | ||
9517 | self = self; | |
9518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) | |
9519 | return NULL; | |
9520 | if (_argo0) { | |
9521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
9524 | return NULL; | |
9525 | } | |
9526 | } | |
9527 | { | |
9528 | wxPy_BEGIN_ALLOW_THREADS; | |
9529 | _result = (bool )wxPalette_Ok(_arg0); | |
9530 | ||
9531 | wxPy_END_ALLOW_THREADS; | |
9532 | if (PyErr_Occurred()) return NULL; | |
9533 | } _resultobj = Py_BuildValue("i",_result); | |
9534 | return _resultobj; | |
9535 | } | |
9536 | ||
9537 | static void *SwigwxImageListTowxObject(void *ptr) { | |
9538 | wxImageList *src; | |
9539 | wxObject *dest; | |
9540 | src = (wxImageList *) ptr; | |
9541 | dest = (wxObject *) src; | |
9542 | return (void *) dest; | |
9543 | } | |
9544 | ||
9545 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9546 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject * _resultobj; | |
9548 | wxImageList * _result; | |
9549 | int _arg0; | |
9550 | int _arg1; | |
9551 | int _arg2 = (int ) TRUE; | |
9552 | int _arg3 = (int ) 1; | |
9553 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; | |
9554 | char _ptemp[128]; | |
9555 | ||
9556 | self = self; | |
9557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9558 | return NULL; | |
9559 | { | |
9560 | wxPy_BEGIN_ALLOW_THREADS; | |
9561 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
9562 | ||
9563 | wxPy_END_ALLOW_THREADS; | |
9564 | if (PyErr_Occurred()) return NULL; | |
9565 | } if (_result) { | |
9566 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
9567 | _resultobj = Py_BuildValue("s",_ptemp); | |
9568 | } else { | |
9569 | Py_INCREF(Py_None); | |
9570 | _resultobj = Py_None; | |
9571 | } | |
9572 | return _resultobj; | |
9573 | } | |
9574 | ||
9575 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
9576 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject * _resultobj; | |
9578 | wxImageList * _arg0; | |
9579 | PyObject * _argo0 = 0; | |
9580 | char *_kwnames[] = { "self", NULL }; | |
9581 | ||
9582 | self = self; | |
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) | |
9584 | return NULL; | |
9585 | if (_argo0) { | |
9586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); | |
9589 | return NULL; | |
9590 | } | |
9591 | } | |
9592 | { | |
9593 | wxPy_BEGIN_ALLOW_THREADS; | |
9594 | delete_wxImageList(_arg0); | |
9595 | ||
9596 | wxPy_END_ALLOW_THREADS; | |
9597 | if (PyErr_Occurred()) return NULL; | |
9598 | } Py_INCREF(Py_None); | |
9599 | _resultobj = Py_None; | |
9600 | return _resultobj; | |
9601 | } | |
9602 | ||
9603 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
9604 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9605 | PyObject * _resultobj; | |
9606 | int _result; | |
9607 | wxImageList * _arg0; | |
9608 | wxBitmap * _arg1; | |
9609 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
9610 | PyObject * _argo0 = 0; | |
9611 | PyObject * _argo1 = 0; | |
9612 | PyObject * _argo2 = 0; | |
9613 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
9614 | ||
9615 | self = self; | |
9616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9617 | return NULL; | |
9618 | if (_argo0) { | |
9619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); | |
9622 | return NULL; | |
9623 | } | |
9624 | } | |
9625 | if (_argo1) { | |
9626 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9627 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); | |
9629 | return NULL; | |
9630 | } | |
9631 | } | |
9632 | if (_argo2) { | |
9633 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9634 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
9635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
9636 | return NULL; | |
9637 | } | |
9638 | } | |
9639 | { | |
9640 | wxPy_BEGIN_ALLOW_THREADS; | |
9641 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
9642 | ||
9643 | wxPy_END_ALLOW_THREADS; | |
9644 | if (PyErr_Occurred()) return NULL; | |
9645 | } _resultobj = Py_BuildValue("i",_result); | |
9646 | return _resultobj; | |
9647 | } | |
9648 | ||
9649 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
9650 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9651 | PyObject * _resultobj; | |
9652 | int _result; | |
9653 | wxImageList * _arg0; | |
9654 | wxBitmap * _arg1; | |
9655 | wxColour * _arg2; | |
9656 | PyObject * _argo0 = 0; | |
9657 | PyObject * _argo1 = 0; | |
9658 | wxColour temp; | |
9659 | PyObject * _obj2 = 0; | |
9660 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
9661 | ||
9662 | self = self; | |
9663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9664 | return NULL; | |
9665 | if (_argo0) { | |
9666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
9669 | return NULL; | |
9670 | } | |
9671 | } | |
9672 | if (_argo1) { | |
9673 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9674 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
9676 | return NULL; | |
9677 | } | |
9678 | } | |
9679 | { | |
9680 | _arg2 = &temp; | |
9681 | if (! wxColour_helper(_obj2, &_arg2)) | |
9682 | return NULL; | |
9683 | } | |
9684 | { | |
9685 | wxPy_BEGIN_ALLOW_THREADS; | |
9686 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
9687 | ||
9688 | wxPy_END_ALLOW_THREADS; | |
9689 | if (PyErr_Occurred()) return NULL; | |
9690 | } _resultobj = Py_BuildValue("i",_result); | |
9691 | return _resultobj; | |
9692 | } | |
9693 | ||
9694 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
9695 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9696 | PyObject * _resultobj; | |
9697 | int _result; | |
9698 | wxImageList * _arg0; | |
9699 | wxIcon * _arg1; | |
9700 | PyObject * _argo0 = 0; | |
9701 | PyObject * _argo1 = 0; | |
9702 | char *_kwnames[] = { "self","icon", NULL }; | |
9703 | ||
9704 | self = self; | |
9705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
9706 | return NULL; | |
9707 | if (_argo0) { | |
9708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
9711 | return NULL; | |
9712 | } | |
9713 | } | |
9714 | if (_argo1) { | |
9715 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9716 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
9717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
9718 | return NULL; | |
9719 | } | |
9720 | } | |
9721 | { | |
9722 | wxPy_BEGIN_ALLOW_THREADS; | |
9723 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
9724 | ||
9725 | wxPy_END_ALLOW_THREADS; | |
9726 | if (PyErr_Occurred()) return NULL; | |
9727 | } _resultobj = Py_BuildValue("i",_result); | |
9728 | return _resultobj; | |
9729 | } | |
9730 | ||
9731 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
9732 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9733 | PyObject * _resultobj; | |
9734 | bool _result; | |
9735 | wxImageList * _arg0; | |
9736 | int _arg1; | |
9737 | wxBitmap * _arg2; | |
9738 | PyObject * _argo0 = 0; | |
9739 | PyObject * _argo2 = 0; | |
9740 | char *_kwnames[] = { "self","index","bitmap", NULL }; | |
9741 | ||
9742 | self = self; | |
9743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) | |
9744 | return NULL; | |
9745 | if (_argo0) { | |
9746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); | |
9749 | return NULL; | |
9750 | } | |
9751 | } | |
9752 | if (_argo2) { | |
9753 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9754 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
9755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); | |
9756 | return NULL; | |
9757 | } | |
9758 | } | |
9759 | { | |
9760 | wxPy_BEGIN_ALLOW_THREADS; | |
9761 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); | |
9762 | ||
9763 | wxPy_END_ALLOW_THREADS; | |
9764 | if (PyErr_Occurred()) return NULL; | |
9765 | } _resultobj = Py_BuildValue("i",_result); | |
9766 | return _resultobj; | |
9767 | } | |
9768 | ||
9769 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
9770 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9771 | PyObject * _resultobj; | |
9772 | bool _result; | |
9773 | wxImageList * _arg0; | |
9774 | int _arg1; | |
9775 | wxDC * _arg2; | |
9776 | int _arg3; | |
9777 | int _arg4; | |
9778 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); | |
9779 | bool _arg6 = (bool ) FALSE; | |
9780 | PyObject * _argo0 = 0; | |
9781 | PyObject * _argo2 = 0; | |
9782 | int tempbool6 = (int) FALSE; | |
9783 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; | |
9784 | ||
9785 | self = self; | |
9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
9787 | return NULL; | |
9788 | if (_argo0) { | |
9789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); | |
9792 | return NULL; | |
9793 | } | |
9794 | } | |
9795 | if (_argo2) { | |
9796 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9797 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
9798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); | |
9799 | return NULL; | |
9800 | } | |
9801 | } | |
9802 | _arg6 = (bool ) tempbool6; | |
9803 | { | |
9804 | wxPy_BEGIN_ALLOW_THREADS; | |
9805 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
9806 | ||
9807 | wxPy_END_ALLOW_THREADS; | |
9808 | if (PyErr_Occurred()) return NULL; | |
9809 | } _resultobj = Py_BuildValue("i",_result); | |
9810 | return _resultobj; | |
9811 | } | |
9812 | ||
9813 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
9814 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9815 | PyObject * _resultobj; | |
9816 | int _result; | |
9817 | wxImageList * _arg0; | |
9818 | PyObject * _argo0 = 0; | |
9819 | char *_kwnames[] = { "self", NULL }; | |
9820 | ||
9821 | self = self; | |
9822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) | |
9823 | return NULL; | |
9824 | if (_argo0) { | |
9825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); | |
9828 | return NULL; | |
9829 | } | |
9830 | } | |
9831 | { | |
9832 | wxPy_BEGIN_ALLOW_THREADS; | |
9833 | _result = (int )wxImageList_GetImageCount(_arg0); | |
9834 | ||
9835 | wxPy_END_ALLOW_THREADS; | |
9836 | if (PyErr_Occurred()) return NULL; | |
9837 | } _resultobj = Py_BuildValue("i",_result); | |
9838 | return _resultobj; | |
9839 | } | |
9840 | ||
9841 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9842 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9843 | PyObject * _resultobj; | |
9844 | bool _result; | |
9845 | wxImageList * _arg0; | |
9846 | int _arg1; | |
9847 | PyObject * _argo0 = 0; | |
9848 | char *_kwnames[] = { "self","index", NULL }; | |
9849 | ||
9850 | self = self; | |
9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) | |
9852 | return NULL; | |
9853 | if (_argo0) { | |
9854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); | |
9857 | return NULL; | |
9858 | } | |
9859 | } | |
9860 | { | |
9861 | wxPy_BEGIN_ALLOW_THREADS; | |
9862 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
9863 | ||
9864 | wxPy_END_ALLOW_THREADS; | |
9865 | if (PyErr_Occurred()) return NULL; | |
9866 | } _resultobj = Py_BuildValue("i",_result); | |
9867 | return _resultobj; | |
9868 | } | |
9869 | ||
9870 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
9871 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9872 | PyObject * _resultobj; | |
9873 | bool _result; | |
9874 | wxImageList * _arg0; | |
9875 | PyObject * _argo0 = 0; | |
9876 | char *_kwnames[] = { "self", NULL }; | |
9877 | ||
9878 | self = self; | |
9879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) | |
9880 | return NULL; | |
9881 | if (_argo0) { | |
9882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); | |
9885 | return NULL; | |
9886 | } | |
9887 | } | |
9888 | { | |
9889 | wxPy_BEGIN_ALLOW_THREADS; | |
9890 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
9891 | ||
9892 | wxPy_END_ALLOW_THREADS; | |
9893 | if (PyErr_Occurred()) return NULL; | |
9894 | } _resultobj = Py_BuildValue("i",_result); | |
9895 | return _resultobj; | |
9896 | } | |
9897 | ||
9898 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) | |
9899 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9900 | PyObject * _resultobj; | |
9901 | wxImageList * _arg0; | |
9902 | int _arg1; | |
9903 | int * _arg2; | |
9904 | int temp; | |
9905 | int * _arg3; | |
9906 | int temp0; | |
9907 | PyObject * _argo0 = 0; | |
9908 | char *_kwnames[] = { "self","index", NULL }; | |
9909 | ||
9910 | self = self; | |
9911 | { | |
9912 | _arg2 = &temp; | |
9913 | } | |
9914 | { | |
9915 | _arg3 = &temp0; | |
9916 | } | |
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
9918 | return NULL; | |
9919 | if (_argo0) { | |
9920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
9923 | return NULL; | |
9924 | } | |
9925 | } | |
9926 | { | |
9927 | wxPy_BEGIN_ALLOW_THREADS; | |
9928 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
9929 | ||
9930 | wxPy_END_ALLOW_THREADS; | |
9931 | if (PyErr_Occurred()) return NULL; | |
9932 | } Py_INCREF(Py_None); | |
9933 | _resultobj = Py_None; | |
9934 | { | |
9935 | PyObject *o; | |
9936 | o = PyInt_FromLong((long) (*_arg2)); | |
9937 | _resultobj = t_output_helper(_resultobj, o); | |
9938 | } | |
9939 | { | |
9940 | PyObject *o; | |
9941 | o = PyInt_FromLong((long) (*_arg3)); | |
9942 | _resultobj = t_output_helper(_resultobj, o); | |
9943 | } | |
9944 | return _resultobj; | |
9945 | } | |
9946 | ||
9947 | static void *SwigwxRegionTowxGDIObject(void *ptr) { | |
9948 | wxRegion *src; | |
9949 | wxGDIObject *dest; | |
9950 | src = (wxRegion *) ptr; | |
9951 | dest = (wxGDIObject *) src; | |
9952 | return (void *) dest; | |
9953 | } | |
9954 | ||
9955 | static void *SwigwxRegionTowxObject(void *ptr) { | |
9956 | wxRegion *src; | |
9957 | wxObject *dest; | |
9958 | src = (wxRegion *) ptr; | |
9959 | dest = (wxObject *) src; | |
9960 | return (void *) dest; | |
9961 | } | |
9962 | ||
9963 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9964 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9965 | PyObject * _resultobj; | |
9966 | wxRegion * _result; | |
9967 | long _arg0 = (long ) 0; | |
9968 | long _arg1 = (long ) 0; | |
9969 | long _arg2 = (long ) 0; | |
9970 | long _arg3 = (long ) 0; | |
9971 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
9972 | char _ptemp[128]; | |
9973 | ||
9974 | self = self; | |
9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9976 | return NULL; | |
9977 | { | |
9978 | wxPy_BEGIN_ALLOW_THREADS; | |
9979 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
9980 | ||
9981 | wxPy_END_ALLOW_THREADS; | |
9982 | if (PyErr_Occurred()) return NULL; | |
9983 | } if (_result) { | |
9984 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
9985 | _resultobj = Py_BuildValue("s",_ptemp); | |
9986 | } else { | |
9987 | Py_INCREF(Py_None); | |
9988 | _resultobj = Py_None; | |
9989 | } | |
9990 | return _resultobj; | |
9991 | } | |
9992 | ||
9993 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
9994 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9995 | PyObject * _resultobj; | |
9996 | wxRegion * _arg0; | |
9997 | PyObject * _argo0 = 0; | |
9998 | char *_kwnames[] = { "self", NULL }; | |
9999 | ||
10000 | self = self; | |
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10002 | return NULL; | |
10003 | if (_argo0) { | |
10004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10007 | return NULL; | |
10008 | } | |
10009 | } | |
10010 | { | |
10011 | wxPy_BEGIN_ALLOW_THREADS; | |
10012 | delete_wxRegion(_arg0); | |
10013 | ||
10014 | wxPy_END_ALLOW_THREADS; | |
10015 | if (PyErr_Occurred()) return NULL; | |
10016 | } Py_INCREF(Py_None); | |
10017 | _resultobj = Py_None; | |
10018 | return _resultobj; | |
10019 | } | |
10020 | ||
10021 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10022 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10023 | PyObject * _resultobj; | |
10024 | wxRegion * _arg0; | |
10025 | PyObject * _argo0 = 0; | |
10026 | char *_kwnames[] = { "self", NULL }; | |
10027 | ||
10028 | self = self; | |
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10030 | return NULL; | |
10031 | if (_argo0) { | |
10032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10035 | return NULL; | |
10036 | } | |
10037 | } | |
10038 | { | |
10039 | wxPy_BEGIN_ALLOW_THREADS; | |
10040 | wxRegion_Clear(_arg0); | |
10041 | ||
10042 | wxPy_END_ALLOW_THREADS; | |
10043 | if (PyErr_Occurred()) return NULL; | |
10044 | } Py_INCREF(Py_None); | |
10045 | _resultobj = Py_None; | |
10046 | return _resultobj; | |
10047 | } | |
10048 | ||
10049 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
10050 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10051 | PyObject * _resultobj; | |
10052 | wxRegionContain _result; | |
10053 | wxRegion * _arg0; | |
10054 | long _arg1; | |
10055 | long _arg2; | |
10056 | PyObject * _argo0 = 0; | |
10057 | char *_kwnames[] = { "self","x","y", NULL }; | |
10058 | ||
10059 | self = self; | |
10060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10061 | return NULL; | |
10062 | if (_argo0) { | |
10063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10066 | return NULL; | |
10067 | } | |
10068 | } | |
10069 | { | |
10070 | wxPy_BEGIN_ALLOW_THREADS; | |
10071 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
10072 | ||
10073 | wxPy_END_ALLOW_THREADS; | |
10074 | if (PyErr_Occurred()) return NULL; | |
10075 | } _resultobj = Py_BuildValue("i",_result); | |
10076 | return _resultobj; | |
10077 | } | |
10078 | ||
10079 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10080 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10081 | PyObject * _resultobj; | |
10082 | wxRegionContain _result; | |
10083 | wxRegion * _arg0; | |
10084 | wxPoint * _arg1; | |
10085 | PyObject * _argo0 = 0; | |
10086 | wxPoint temp; | |
10087 | PyObject * _obj1 = 0; | |
10088 | char *_kwnames[] = { "self","pt", NULL }; | |
10089 | ||
10090 | self = self; | |
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10092 | return NULL; | |
10093 | if (_argo0) { | |
10094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10097 | return NULL; | |
10098 | } | |
10099 | } | |
10100 | { | |
10101 | _arg1 = &temp; | |
10102 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10103 | return NULL; | |
10104 | } | |
10105 | { | |
10106 | wxPy_BEGIN_ALLOW_THREADS; | |
10107 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
10108 | ||
10109 | wxPy_END_ALLOW_THREADS; | |
10110 | if (PyErr_Occurred()) return NULL; | |
10111 | } _resultobj = Py_BuildValue("i",_result); | |
10112 | return _resultobj; | |
10113 | } | |
10114 | ||
10115 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10116 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject * _resultobj; | |
10118 | wxRegionContain _result; | |
10119 | wxRegion * _arg0; | |
10120 | wxRect * _arg1; | |
10121 | PyObject * _argo0 = 0; | |
10122 | wxRect temp; | |
10123 | PyObject * _obj1 = 0; | |
10124 | char *_kwnames[] = { "self","rect", NULL }; | |
10125 | ||
10126 | self = self; | |
10127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
10128 | return NULL; | |
10129 | if (_argo0) { | |
10130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
10133 | return NULL; | |
10134 | } | |
10135 | } | |
10136 | { | |
10137 | _arg1 = &temp; | |
10138 | if (! wxRect_helper(_obj1, &_arg1)) | |
10139 | return NULL; | |
10140 | } | |
10141 | { | |
10142 | wxPy_BEGIN_ALLOW_THREADS; | |
10143 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
10144 | ||
10145 | wxPy_END_ALLOW_THREADS; | |
10146 | if (PyErr_Occurred()) return NULL; | |
10147 | } _resultobj = Py_BuildValue("i",_result); | |
10148 | return _resultobj; | |
10149 | } | |
10150 | ||
10151 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10152 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10153 | PyObject * _resultobj; | |
10154 | wxRegionContain _result; | |
10155 | wxRegion * _arg0; | |
10156 | long _arg1; | |
10157 | long _arg2; | |
10158 | long _arg3; | |
10159 | long _arg4; | |
10160 | PyObject * _argo0 = 0; | |
10161 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
10162 | ||
10163 | self = self; | |
10164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10165 | return NULL; | |
10166 | if (_argo0) { | |
10167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
10170 | return NULL; | |
10171 | } | |
10172 | } | |
10173 | { | |
10174 | wxPy_BEGIN_ALLOW_THREADS; | |
10175 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10176 | ||
10177 | wxPy_END_ALLOW_THREADS; | |
10178 | if (PyErr_Occurred()) return NULL; | |
10179 | } _resultobj = Py_BuildValue("i",_result); | |
10180 | return _resultobj; | |
10181 | } | |
10182 | ||
10183 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
10184 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10185 | PyObject * _resultobj; | |
10186 | wxRect * _result; | |
10187 | wxRegion * _arg0; | |
10188 | PyObject * _argo0 = 0; | |
10189 | char *_kwnames[] = { "self", NULL }; | |
10190 | char _ptemp[128]; | |
10191 | ||
10192 | self = self; | |
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
10194 | return NULL; | |
10195 | if (_argo0) { | |
10196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
10199 | return NULL; | |
10200 | } | |
10201 | } | |
10202 | { | |
10203 | wxPy_BEGIN_ALLOW_THREADS; | |
10204 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
10205 | ||
10206 | wxPy_END_ALLOW_THREADS; | |
10207 | if (PyErr_Occurred()) return NULL; | |
10208 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
10209 | _resultobj = Py_BuildValue("s",_ptemp); | |
10210 | return _resultobj; | |
10211 | } | |
10212 | ||
10213 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10214 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10215 | PyObject * _resultobj; | |
10216 | bool _result; | |
10217 | wxRegion * _arg0; | |
10218 | long _arg1; | |
10219 | long _arg2; | |
10220 | long _arg3; | |
10221 | long _arg4; | |
10222 | PyObject * _argo0 = 0; | |
10223 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10224 | ||
10225 | self = self; | |
10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10227 | return NULL; | |
10228 | if (_argo0) { | |
10229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
10232 | return NULL; | |
10233 | } | |
10234 | } | |
10235 | { | |
10236 | wxPy_BEGIN_ALLOW_THREADS; | |
10237 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10238 | ||
10239 | wxPy_END_ALLOW_THREADS; | |
10240 | if (PyErr_Occurred()) return NULL; | |
10241 | } _resultobj = Py_BuildValue("i",_result); | |
10242 | return _resultobj; | |
10243 | } | |
10244 | ||
10245 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10246 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10247 | PyObject * _resultobj; | |
10248 | bool _result; | |
10249 | wxRegion * _arg0; | |
10250 | wxRect * _arg1; | |
10251 | PyObject * _argo0 = 0; | |
10252 | wxRect temp; | |
10253 | PyObject * _obj1 = 0; | |
10254 | char *_kwnames[] = { "self","rect", NULL }; | |
10255 | ||
10256 | self = self; | |
10257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
10258 | return NULL; | |
10259 | if (_argo0) { | |
10260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
10263 | return NULL; | |
10264 | } | |
10265 | } | |
10266 | { | |
10267 | _arg1 = &temp; | |
10268 | if (! wxRect_helper(_obj1, &_arg1)) | |
10269 | return NULL; | |
10270 | } | |
10271 | { | |
10272 | wxPy_BEGIN_ALLOW_THREADS; | |
10273 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
10274 | ||
10275 | wxPy_END_ALLOW_THREADS; | |
10276 | if (PyErr_Occurred()) return NULL; | |
10277 | } _resultobj = Py_BuildValue("i",_result); | |
10278 | return _resultobj; | |
10279 | } | |
10280 | ||
10281 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10282 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10283 | PyObject * _resultobj; | |
10284 | bool _result; | |
10285 | wxRegion * _arg0; | |
10286 | wxRegion * _arg1; | |
10287 | PyObject * _argo0 = 0; | |
10288 | PyObject * _argo1 = 0; | |
10289 | char *_kwnames[] = { "self","region", NULL }; | |
10290 | ||
10291 | self = self; | |
10292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
10293 | return NULL; | |
10294 | if (_argo0) { | |
10295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10298 | return NULL; | |
10299 | } | |
10300 | } | |
10301 | if (_argo1) { | |
10302 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10303 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10305 | return NULL; | |
10306 | } | |
10307 | } | |
10308 | { | |
10309 | wxPy_BEGIN_ALLOW_THREADS; | |
10310 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
10311 | ||
10312 | wxPy_END_ALLOW_THREADS; | |
10313 | if (PyErr_Occurred()) return NULL; | |
10314 | } _resultobj = Py_BuildValue("i",_result); | |
10315 | return _resultobj; | |
10316 | } | |
10317 | ||
10318 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
10319 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10320 | PyObject * _resultobj; | |
10321 | bool _result; | |
10322 | wxRegion * _arg0; | |
10323 | PyObject * _argo0 = 0; | |
10324 | char *_kwnames[] = { "self", NULL }; | |
10325 | ||
10326 | self = self; | |
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
10328 | return NULL; | |
10329 | if (_argo0) { | |
10330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
10333 | return NULL; | |
10334 | } | |
10335 | } | |
10336 | { | |
10337 | wxPy_BEGIN_ALLOW_THREADS; | |
10338 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
10339 | ||
10340 | wxPy_END_ALLOW_THREADS; | |
10341 | if (PyErr_Occurred()) return NULL; | |
10342 | } _resultobj = Py_BuildValue("i",_result); | |
10343 | return _resultobj; | |
10344 | } | |
10345 | ||
10346 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10347 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10348 | PyObject * _resultobj; | |
10349 | bool _result; | |
10350 | wxRegion * _arg0; | |
10351 | long _arg1; | |
10352 | long _arg2; | |
10353 | long _arg3; | |
10354 | long _arg4; | |
10355 | PyObject * _argo0 = 0; | |
10356 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10357 | ||
10358 | self = self; | |
10359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10360 | return NULL; | |
10361 | if (_argo0) { | |
10362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
10365 | return NULL; | |
10366 | } | |
10367 | } | |
10368 | { | |
10369 | wxPy_BEGIN_ALLOW_THREADS; | |
10370 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10371 | ||
10372 | wxPy_END_ALLOW_THREADS; | |
10373 | if (PyErr_Occurred()) return NULL; | |
10374 | } _resultobj = Py_BuildValue("i",_result); | |
10375 | return _resultobj; | |
10376 | } | |
10377 | ||
10378 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10379 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10380 | PyObject * _resultobj; | |
10381 | bool _result; | |
10382 | wxRegion * _arg0; | |
10383 | wxRect * _arg1; | |
10384 | PyObject * _argo0 = 0; | |
10385 | wxRect temp; | |
10386 | PyObject * _obj1 = 0; | |
10387 | char *_kwnames[] = { "self","rect", NULL }; | |
10388 | ||
10389 | self = self; | |
10390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
10391 | return NULL; | |
10392 | if (_argo0) { | |
10393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
10396 | return NULL; | |
10397 | } | |
10398 | } | |
10399 | { | |
10400 | _arg1 = &temp; | |
10401 | if (! wxRect_helper(_obj1, &_arg1)) | |
10402 | return NULL; | |
10403 | } | |
10404 | { | |
10405 | wxPy_BEGIN_ALLOW_THREADS; | |
10406 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
10407 | ||
10408 | wxPy_END_ALLOW_THREADS; | |
10409 | if (PyErr_Occurred()) return NULL; | |
10410 | } _resultobj = Py_BuildValue("i",_result); | |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10415 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | bool _result; | |
10418 | wxRegion * _arg0; | |
10419 | wxRegion * _arg1; | |
10420 | PyObject * _argo0 = 0; | |
10421 | PyObject * _argo1 = 0; | |
10422 | char *_kwnames[] = { "self","region", NULL }; | |
10423 | ||
10424 | self = self; | |
10425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
10426 | return NULL; | |
10427 | if (_argo0) { | |
10428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10431 | return NULL; | |
10432 | } | |
10433 | } | |
10434 | if (_argo1) { | |
10435 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10436 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10438 | return NULL; | |
10439 | } | |
10440 | } | |
10441 | { | |
10442 | wxPy_BEGIN_ALLOW_THREADS; | |
10443 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
10444 | ||
10445 | wxPy_END_ALLOW_THREADS; | |
10446 | if (PyErr_Occurred()) return NULL; | |
10447 | } _resultobj = Py_BuildValue("i",_result); | |
10448 | return _resultobj; | |
10449 | } | |
10450 | ||
10451 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10452 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject * _resultobj; | |
10454 | bool _result; | |
10455 | wxRegion * _arg0; | |
10456 | long _arg1; | |
10457 | long _arg2; | |
10458 | long _arg3; | |
10459 | long _arg4; | |
10460 | PyObject * _argo0 = 0; | |
10461 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10462 | ||
10463 | self = self; | |
10464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10465 | return NULL; | |
10466 | if (_argo0) { | |
10467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
10470 | return NULL; | |
10471 | } | |
10472 | } | |
10473 | { | |
10474 | wxPy_BEGIN_ALLOW_THREADS; | |
10475 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10476 | ||
10477 | wxPy_END_ALLOW_THREADS; | |
10478 | if (PyErr_Occurred()) return NULL; | |
10479 | } _resultobj = Py_BuildValue("i",_result); | |
10480 | return _resultobj; | |
10481 | } | |
10482 | ||
10483 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10484 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10485 | PyObject * _resultobj; | |
10486 | bool _result; | |
10487 | wxRegion * _arg0; | |
10488 | wxRect * _arg1; | |
10489 | PyObject * _argo0 = 0; | |
10490 | wxRect temp; | |
10491 | PyObject * _obj1 = 0; | |
10492 | char *_kwnames[] = { "self","rect", NULL }; | |
10493 | ||
10494 | self = self; | |
10495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
10496 | return NULL; | |
10497 | if (_argo0) { | |
10498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
10501 | return NULL; | |
10502 | } | |
10503 | } | |
10504 | { | |
10505 | _arg1 = &temp; | |
10506 | if (! wxRect_helper(_obj1, &_arg1)) | |
10507 | return NULL; | |
10508 | } | |
10509 | { | |
10510 | wxPy_BEGIN_ALLOW_THREADS; | |
10511 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
10512 | ||
10513 | wxPy_END_ALLOW_THREADS; | |
10514 | if (PyErr_Occurred()) return NULL; | |
10515 | } _resultobj = Py_BuildValue("i",_result); | |
10516 | return _resultobj; | |
10517 | } | |
10518 | ||
10519 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10520 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10521 | PyObject * _resultobj; | |
10522 | bool _result; | |
10523 | wxRegion * _arg0; | |
10524 | wxRegion * _arg1; | |
10525 | PyObject * _argo0 = 0; | |
10526 | PyObject * _argo1 = 0; | |
10527 | char *_kwnames[] = { "self","region", NULL }; | |
10528 | ||
10529 | self = self; | |
10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
10531 | return NULL; | |
10532 | if (_argo0) { | |
10533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10536 | return NULL; | |
10537 | } | |
10538 | } | |
10539 | if (_argo1) { | |
10540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10543 | return NULL; | |
10544 | } | |
10545 | } | |
10546 | { | |
10547 | wxPy_BEGIN_ALLOW_THREADS; | |
10548 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
10549 | ||
10550 | wxPy_END_ALLOW_THREADS; | |
10551 | if (PyErr_Occurred()) return NULL; | |
10552 | } _resultobj = Py_BuildValue("i",_result); | |
10553 | return _resultobj; | |
10554 | } | |
10555 | ||
10556 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10557 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10558 | PyObject * _resultobj; | |
10559 | bool _result; | |
10560 | wxRegion * _arg0; | |
10561 | long _arg1; | |
10562 | long _arg2; | |
10563 | long _arg3; | |
10564 | long _arg4; | |
10565 | PyObject * _argo0 = 0; | |
10566 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10567 | ||
10568 | self = self; | |
10569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10570 | return NULL; | |
10571 | if (_argo0) { | |
10572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
10575 | return NULL; | |
10576 | } | |
10577 | } | |
10578 | { | |
10579 | wxPy_BEGIN_ALLOW_THREADS; | |
10580 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10581 | ||
10582 | wxPy_END_ALLOW_THREADS; | |
10583 | if (PyErr_Occurred()) return NULL; | |
10584 | } _resultobj = Py_BuildValue("i",_result); | |
10585 | return _resultobj; | |
10586 | } | |
10587 | ||
10588 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10589 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10590 | PyObject * _resultobj; | |
10591 | bool _result; | |
10592 | wxRegion * _arg0; | |
10593 | wxRect * _arg1; | |
10594 | PyObject * _argo0 = 0; | |
10595 | wxRect temp; | |
10596 | PyObject * _obj1 = 0; | |
10597 | char *_kwnames[] = { "self","rect", NULL }; | |
10598 | ||
10599 | self = self; | |
10600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
10601 | return NULL; | |
10602 | if (_argo0) { | |
10603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
10606 | return NULL; | |
10607 | } | |
10608 | } | |
10609 | { | |
10610 | _arg1 = &temp; | |
10611 | if (! wxRect_helper(_obj1, &_arg1)) | |
10612 | return NULL; | |
10613 | } | |
10614 | { | |
10615 | wxPy_BEGIN_ALLOW_THREADS; | |
10616 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
10617 | ||
10618 | wxPy_END_ALLOW_THREADS; | |
10619 | if (PyErr_Occurred()) return NULL; | |
10620 | } _resultobj = Py_BuildValue("i",_result); | |
10621 | return _resultobj; | |
10622 | } | |
10623 | ||
10624 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10625 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10626 | PyObject * _resultobj; | |
10627 | bool _result; | |
10628 | wxRegion * _arg0; | |
10629 | wxRegion * _arg1; | |
10630 | PyObject * _argo0 = 0; | |
10631 | PyObject * _argo1 = 0; | |
10632 | char *_kwnames[] = { "self","region", NULL }; | |
10633 | ||
10634 | self = self; | |
10635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
10636 | return NULL; | |
10637 | if (_argo0) { | |
10638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10641 | return NULL; | |
10642 | } | |
10643 | } | |
10644 | if (_argo1) { | |
10645 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10646 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10648 | return NULL; | |
10649 | } | |
10650 | } | |
10651 | { | |
10652 | wxPy_BEGIN_ALLOW_THREADS; | |
10653 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
10654 | ||
10655 | wxPy_END_ALLOW_THREADS; | |
10656 | if (PyErr_Occurred()) return NULL; | |
10657 | } _resultobj = Py_BuildValue("i",_result); | |
10658 | return _resultobj; | |
10659 | } | |
10660 | ||
10661 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
10662 | wxRegionIterator *src; | |
10663 | wxObject *dest; | |
10664 | src = (wxRegionIterator *) ptr; | |
10665 | dest = (wxObject *) src; | |
10666 | return (void *) dest; | |
10667 | } | |
10668 | ||
10669 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
10670 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10671 | PyObject * _resultobj; | |
10672 | wxRegionIterator * _result; | |
10673 | wxRegion * _arg0; | |
10674 | PyObject * _argo0 = 0; | |
10675 | char *_kwnames[] = { "region", NULL }; | |
10676 | char _ptemp[128]; | |
10677 | ||
10678 | self = self; | |
10679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
10680 | return NULL; | |
10681 | if (_argo0) { | |
10682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
10685 | return NULL; | |
10686 | } | |
10687 | } | |
10688 | { | |
10689 | wxPy_BEGIN_ALLOW_THREADS; | |
10690 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
10691 | ||
10692 | wxPy_END_ALLOW_THREADS; | |
10693 | if (PyErr_Occurred()) return NULL; | |
10694 | } if (_result) { | |
10695 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
10696 | _resultobj = Py_BuildValue("s",_ptemp); | |
10697 | } else { | |
10698 | Py_INCREF(Py_None); | |
10699 | _resultobj = Py_None; | |
10700 | } | |
10701 | return _resultobj; | |
10702 | } | |
10703 | ||
10704 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
10705 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10706 | PyObject * _resultobj; | |
10707 | wxRegionIterator * _arg0; | |
10708 | PyObject * _argo0 = 0; | |
10709 | char *_kwnames[] = { "self", NULL }; | |
10710 | ||
10711 | self = self; | |
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
10713 | return NULL; | |
10714 | if (_argo0) { | |
10715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
10718 | return NULL; | |
10719 | } | |
10720 | } | |
10721 | { | |
10722 | wxPy_BEGIN_ALLOW_THREADS; | |
10723 | delete_wxRegionIterator(_arg0); | |
10724 | ||
10725 | wxPy_END_ALLOW_THREADS; | |
10726 | if (PyErr_Occurred()) return NULL; | |
10727 | } Py_INCREF(Py_None); | |
10728 | _resultobj = Py_None; | |
10729 | return _resultobj; | |
10730 | } | |
10731 | ||
10732 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
10733 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10734 | PyObject * _resultobj; | |
10735 | long _result; | |
10736 | wxRegionIterator * _arg0; | |
10737 | PyObject * _argo0 = 0; | |
10738 | char *_kwnames[] = { "self", NULL }; | |
10739 | ||
10740 | self = self; | |
10741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
10742 | return NULL; | |
10743 | if (_argo0) { | |
10744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
10747 | return NULL; | |
10748 | } | |
10749 | } | |
10750 | { | |
10751 | wxPy_BEGIN_ALLOW_THREADS; | |
10752 | _result = (long )wxRegionIterator_GetX(_arg0); | |
10753 | ||
10754 | wxPy_END_ALLOW_THREADS; | |
10755 | if (PyErr_Occurred()) return NULL; | |
10756 | } _resultobj = Py_BuildValue("l",_result); | |
10757 | return _resultobj; | |
10758 | } | |
10759 | ||
10760 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
10761 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10762 | PyObject * _resultobj; | |
10763 | long _result; | |
10764 | wxRegionIterator * _arg0; | |
10765 | PyObject * _argo0 = 0; | |
10766 | char *_kwnames[] = { "self", NULL }; | |
10767 | ||
10768 | self = self; | |
10769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
10770 | return NULL; | |
10771 | if (_argo0) { | |
10772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
10775 | return NULL; | |
10776 | } | |
10777 | } | |
10778 | { | |
10779 | wxPy_BEGIN_ALLOW_THREADS; | |
10780 | _result = (long )wxRegionIterator_GetY(_arg0); | |
10781 | ||
10782 | wxPy_END_ALLOW_THREADS; | |
10783 | if (PyErr_Occurred()) return NULL; | |
10784 | } _resultobj = Py_BuildValue("l",_result); | |
10785 | return _resultobj; | |
10786 | } | |
10787 | ||
10788 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
10789 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10790 | PyObject * _resultobj; | |
10791 | long _result; | |
10792 | wxRegionIterator * _arg0; | |
10793 | PyObject * _argo0 = 0; | |
10794 | char *_kwnames[] = { "self", NULL }; | |
10795 | ||
10796 | self = self; | |
10797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
10798 | return NULL; | |
10799 | if (_argo0) { | |
10800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
10803 | return NULL; | |
10804 | } | |
10805 | } | |
10806 | { | |
10807 | wxPy_BEGIN_ALLOW_THREADS; | |
10808 | _result = (long )wxRegionIterator_GetW(_arg0); | |
10809 | ||
10810 | wxPy_END_ALLOW_THREADS; | |
10811 | if (PyErr_Occurred()) return NULL; | |
10812 | } _resultobj = Py_BuildValue("l",_result); | |
10813 | return _resultobj; | |
10814 | } | |
10815 | ||
10816 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
10817 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10818 | PyObject * _resultobj; | |
10819 | long _result; | |
10820 | wxRegionIterator * _arg0; | |
10821 | PyObject * _argo0 = 0; | |
10822 | char *_kwnames[] = { "self", NULL }; | |
10823 | ||
10824 | self = self; | |
10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
10826 | return NULL; | |
10827 | if (_argo0) { | |
10828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
10831 | return NULL; | |
10832 | } | |
10833 | } | |
10834 | { | |
10835 | wxPy_BEGIN_ALLOW_THREADS; | |
10836 | _result = (long )wxRegionIterator_GetWidth(_arg0); | |
10837 | ||
10838 | wxPy_END_ALLOW_THREADS; | |
10839 | if (PyErr_Occurred()) return NULL; | |
10840 | } _resultobj = Py_BuildValue("l",_result); | |
10841 | return _resultobj; | |
10842 | } | |
10843 | ||
10844 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
10845 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10846 | PyObject * _resultobj; | |
10847 | long _result; | |
10848 | wxRegionIterator * _arg0; | |
10849 | PyObject * _argo0 = 0; | |
10850 | char *_kwnames[] = { "self", NULL }; | |
10851 | ||
10852 | self = self; | |
10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
10854 | return NULL; | |
10855 | if (_argo0) { | |
10856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
10859 | return NULL; | |
10860 | } | |
10861 | } | |
10862 | { | |
10863 | wxPy_BEGIN_ALLOW_THREADS; | |
10864 | _result = (long )wxRegionIterator_GetH(_arg0); | |
10865 | ||
10866 | wxPy_END_ALLOW_THREADS; | |
10867 | if (PyErr_Occurred()) return NULL; | |
10868 | } _resultobj = Py_BuildValue("l",_result); | |
10869 | return _resultobj; | |
10870 | } | |
10871 | ||
10872 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
10873 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10874 | PyObject * _resultobj; | |
10875 | long _result; | |
10876 | wxRegionIterator * _arg0; | |
10877 | PyObject * _argo0 = 0; | |
10878 | char *_kwnames[] = { "self", NULL }; | |
10879 | ||
10880 | self = self; | |
10881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
10882 | return NULL; | |
10883 | if (_argo0) { | |
10884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
10887 | return NULL; | |
10888 | } | |
10889 | } | |
10890 | { | |
10891 | wxPy_BEGIN_ALLOW_THREADS; | |
10892 | _result = (long )wxRegionIterator_GetHeight(_arg0); | |
10893 | ||
10894 | wxPy_END_ALLOW_THREADS; | |
10895 | if (PyErr_Occurred()) return NULL; | |
10896 | } _resultobj = Py_BuildValue("l",_result); | |
10897 | return _resultobj; | |
10898 | } | |
10899 | ||
10900 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
10901 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10902 | PyObject * _resultobj; | |
10903 | wxRect * _result; | |
10904 | wxRegionIterator * _arg0; | |
10905 | PyObject * _argo0 = 0; | |
10906 | char *_kwnames[] = { "self", NULL }; | |
10907 | char _ptemp[128]; | |
10908 | ||
10909 | self = self; | |
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
10911 | return NULL; | |
10912 | if (_argo0) { | |
10913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
10916 | return NULL; | |
10917 | } | |
10918 | } | |
10919 | { | |
10920 | wxPy_BEGIN_ALLOW_THREADS; | |
10921 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
10922 | ||
10923 | wxPy_END_ALLOW_THREADS; | |
10924 | if (PyErr_Occurred()) return NULL; | |
10925 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
10926 | _resultobj = Py_BuildValue("s",_ptemp); | |
10927 | return _resultobj; | |
10928 | } | |
10929 | ||
10930 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
10931 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10932 | PyObject * _resultobj; | |
10933 | bool _result; | |
10934 | wxRegionIterator * _arg0; | |
10935 | PyObject * _argo0 = 0; | |
10936 | char *_kwnames[] = { "self", NULL }; | |
10937 | ||
10938 | self = self; | |
10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
10940 | return NULL; | |
10941 | if (_argo0) { | |
10942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
10945 | return NULL; | |
10946 | } | |
10947 | } | |
10948 | { | |
10949 | wxPy_BEGIN_ALLOW_THREADS; | |
10950 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
10951 | ||
10952 | wxPy_END_ALLOW_THREADS; | |
10953 | if (PyErr_Occurred()) return NULL; | |
10954 | } _resultobj = Py_BuildValue("i",_result); | |
10955 | return _resultobj; | |
10956 | } | |
10957 | ||
10958 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
10959 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10960 | PyObject * _resultobj; | |
10961 | wxRegionIterator * _arg0; | |
10962 | PyObject * _argo0 = 0; | |
10963 | char *_kwnames[] = { "self", NULL }; | |
10964 | ||
10965 | self = self; | |
10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
10967 | return NULL; | |
10968 | if (_argo0) { | |
10969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
10972 | return NULL; | |
10973 | } | |
10974 | } | |
10975 | { | |
10976 | wxPy_BEGIN_ALLOW_THREADS; | |
10977 | wxRegionIterator_Reset(_arg0); | |
10978 | ||
10979 | wxPy_END_ALLOW_THREADS; | |
10980 | if (PyErr_Occurred()) return NULL; | |
10981 | } Py_INCREF(Py_None); | |
10982 | _resultobj = Py_None; | |
10983 | return _resultobj; | |
10984 | } | |
10985 | ||
10986 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
10987 | (*self) ++; | |
10988 | } | |
10989 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10990 | PyObject * _resultobj; | |
10991 | wxRegionIterator * _arg0; | |
10992 | PyObject * _argo0 = 0; | |
10993 | char *_kwnames[] = { "self", NULL }; | |
10994 | ||
10995 | self = self; | |
10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
10997 | return NULL; | |
10998 | if (_argo0) { | |
10999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11002 | return NULL; | |
11003 | } | |
11004 | } | |
11005 | { | |
11006 | wxPy_BEGIN_ALLOW_THREADS; | |
11007 | wxRegionIterator_Next(_arg0); | |
11008 | ||
11009 | wxPy_END_ALLOW_THREADS; | |
11010 | if (PyErr_Occurred()) return NULL; | |
11011 | } Py_INCREF(Py_None); | |
11012 | _resultobj = Py_None; | |
11013 | return _resultobj; | |
11014 | } | |
11015 | ||
11016 | static PyMethodDef gdicMethods[] = { | |
11017 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11032 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11033 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11046 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
11047 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11048 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11049 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11050 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
11052 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11053 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11054 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11056 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11057 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
11058 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
11059 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11060 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11061 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11062 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11063 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11064 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11065 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11066 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
11067 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11068 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11069 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11070 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11071 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
11072 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
11073 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
11074 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
11075 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
11076 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
11077 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11078 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11079 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11080 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
11081 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11082 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11083 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11084 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11085 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11086 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11087 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11088 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11089 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11090 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11091 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11092 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11093 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11094 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11095 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11096 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11097 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11098 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11099 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11100 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11101 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11102 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
11103 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11104 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11105 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11106 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11107 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11108 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11109 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11110 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11111 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11112 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11113 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11114 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11115 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
11116 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11117 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11118 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11119 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11120 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11121 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11122 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11123 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11124 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11125 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
11126 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11127 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11128 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11129 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11130 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11131 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
11132 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11133 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11134 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11135 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11136 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
11137 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
11138 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11139 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
11140 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
11141 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
11142 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
11143 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
11144 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
11145 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
11146 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
11147 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
11148 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
11149 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
11150 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
11151 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
11152 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
11153 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
11154 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
11155 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
11156 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
11157 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
11158 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11159 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
11160 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11161 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
11162 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11163 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
11164 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
11165 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
11166 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
11167 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11168 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11169 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11170 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11171 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11172 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11173 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11174 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
11175 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
11176 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
11177 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
11178 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
11179 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
11180 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11181 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11182 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
11183 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11184 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11185 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11186 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11187 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
11188 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11189 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11190 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11191 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11192 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11193 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
11194 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
11195 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
11196 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
11197 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
11198 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
11199 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
11200 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
11201 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11202 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
11203 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
11204 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
11205 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11206 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11207 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
11208 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
11209 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
11213 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
11214 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
11215 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
11216 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11217 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
11218 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
11219 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
11220 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11221 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
11222 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
11223 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
11224 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11225 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
11226 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
11227 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
11228 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11229 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
11230 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
11231 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11232 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
11233 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
11234 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
11235 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
11236 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
11237 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
11238 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
11239 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
11240 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
11241 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
11242 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11243 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
11252 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11267 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11268 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11272 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
11276 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11277 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11278 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
11282 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11283 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11284 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11285 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11286 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
11288 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { NULL, NULL } | |
11297 | }; | |
11298 | #ifdef __cplusplus | |
11299 | } | |
11300 | #endif | |
11301 | /* | |
11302 | * This table is used by the pointer type-checker | |
11303 | */ | |
11304 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11305 | { "_signed_long","_long",0}, | |
11306 | { "_wxPrintQuality","_wxCoord",0}, | |
11307 | { "_wxPrintQuality","_int",0}, | |
11308 | { "_wxPrintQuality","_signed_int",0}, | |
11309 | { "_wxPrintQuality","_unsigned_int",0}, | |
11310 | { "_wxPrintQuality","_wxWindowID",0}, | |
11311 | { "_wxPrintQuality","_uint",0}, | |
11312 | { "_wxPrintQuality","_EBool",0}, | |
11313 | { "_wxPrintQuality","_size_t",0}, | |
11314 | { "_wxPrintQuality","_time_t",0}, | |
11315 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, | |
11316 | { "_byte","_unsigned_char",0}, | |
11317 | { "_long","_unsigned_long",0}, | |
11318 | { "_long","_signed_long",0}, | |
11319 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
11320 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
11321 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
11322 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, | |
11323 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
11324 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
11325 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
11326 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
11327 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
e6056257 RD |
11328 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
11329 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
11330 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
11331 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
11332 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
11333 | { "_size_t","_wxCoord",0}, | |
11334 | { "_size_t","_wxPrintQuality",0}, | |
11335 | { "_size_t","_time_t",0}, | |
11336 | { "_size_t","_unsigned_int",0}, | |
11337 | { "_size_t","_int",0}, | |
11338 | { "_size_t","_wxWindowID",0}, | |
11339 | { "_size_t","_uint",0}, | |
11340 | { "_uint","_wxCoord",0}, | |
11341 | { "_uint","_wxPrintQuality",0}, | |
11342 | { "_uint","_time_t",0}, | |
11343 | { "_uint","_size_t",0}, | |
11344 | { "_uint","_unsigned_int",0}, | |
11345 | { "_uint","_int",0}, | |
11346 | { "_uint","_wxWindowID",0}, | |
11347 | { "_wxChar","_char",0}, | |
11348 | { "_char","_wxChar",0}, | |
11349 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11350 | { "_EBool","_wxCoord",0}, | |
11351 | { "_EBool","_wxPrintQuality",0}, | |
11352 | { "_EBool","_signed_int",0}, | |
11353 | { "_EBool","_int",0}, | |
11354 | { "_EBool","_wxWindowID",0}, | |
11355 | { "_unsigned_long","_long",0}, | |
11356 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11357 | { "_signed_int","_wxCoord",0}, | |
11358 | { "_signed_int","_wxPrintQuality",0}, | |
11359 | { "_signed_int","_EBool",0}, | |
11360 | { "_signed_int","_wxWindowID",0}, | |
11361 | { "_signed_int","_int",0}, | |
11362 | { "_WXTYPE","_short",0}, | |
11363 | { "_WXTYPE","_signed_short",0}, | |
11364 | { "_WXTYPE","_unsigned_short",0}, | |
11365 | { "_unsigned_short","_WXTYPE",0}, | |
11366 | { "_unsigned_short","_short",0}, | |
11367 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
11368 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
11369 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
11370 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
e6056257 RD |
11371 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
11372 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
11373 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
11374 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
11375 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
11376 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
11377 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, | |
11378 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
11379 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
11380 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, | |
11381 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
11382 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
11383 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
11384 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
11385 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, | |
11386 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
11387 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
11388 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
11389 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
11390 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
11391 | { "_signed_short","_WXTYPE",0}, | |
11392 | { "_signed_short","_short",0}, | |
11393 | { "_unsigned_char","_byte",0}, | |
11394 | { "_unsigned_int","_wxCoord",0}, | |
11395 | { "_unsigned_int","_wxPrintQuality",0}, | |
11396 | { "_unsigned_int","_time_t",0}, | |
11397 | { "_unsigned_int","_size_t",0}, | |
11398 | { "_unsigned_int","_uint",0}, | |
11399 | { "_unsigned_int","_wxWindowID",0}, | |
11400 | { "_unsigned_int","_int",0}, | |
11401 | { "_short","_WXTYPE",0}, | |
11402 | { "_short","_unsigned_short",0}, | |
11403 | { "_short","_signed_short",0}, | |
11404 | { "_wxWindowID","_wxCoord",0}, | |
11405 | { "_wxWindowID","_wxPrintQuality",0}, | |
11406 | { "_wxWindowID","_time_t",0}, | |
11407 | { "_wxWindowID","_size_t",0}, | |
11408 | { "_wxWindowID","_EBool",0}, | |
11409 | { "_wxWindowID","_uint",0}, | |
11410 | { "_wxWindowID","_int",0}, | |
11411 | { "_wxWindowID","_signed_int",0}, | |
11412 | { "_wxWindowID","_unsigned_int",0}, | |
11413 | { "_int","_wxCoord",0}, | |
11414 | { "_int","_wxPrintQuality",0}, | |
11415 | { "_int","_time_t",0}, | |
11416 | { "_int","_size_t",0}, | |
11417 | { "_int","_EBool",0}, | |
11418 | { "_int","_uint",0}, | |
11419 | { "_int","_wxWindowID",0}, | |
11420 | { "_int","_unsigned_int",0}, | |
11421 | { "_int","_signed_int",0}, | |
11422 | { "_time_t","_wxCoord",0}, | |
11423 | { "_time_t","_wxPrintQuality",0}, | |
11424 | { "_time_t","_unsigned_int",0}, | |
11425 | { "_time_t","_int",0}, | |
11426 | { "_time_t","_wxWindowID",0}, | |
11427 | { "_time_t","_uint",0}, | |
11428 | { "_time_t","_size_t",0}, | |
11429 | { "_wxCoord","_int",0}, | |
11430 | { "_wxCoord","_signed_int",0}, | |
11431 | { "_wxCoord","_unsigned_int",0}, | |
11432 | { "_wxCoord","_wxWindowID",0}, | |
11433 | { "_wxCoord","_uint",0}, | |
11434 | { "_wxCoord","_EBool",0}, | |
11435 | { "_wxCoord","_size_t",0}, | |
11436 | { "_wxCoord","_time_t",0}, | |
11437 | { "_wxCoord","_wxPrintQuality",0}, | |
11438 | {0,0,0}}; | |
11439 | ||
11440 | static PyObject *SWIG_globals; | |
11441 | #ifdef __cplusplus | |
11442 | extern "C" | |
11443 | #endif | |
11444 | SWIGEXPORT(void) initgdic() { | |
11445 | PyObject *m, *d; | |
11446 | SWIG_globals = SWIG_newvarlink(); | |
11447 | m = Py_InitModule("gdic", gdicMethods); | |
11448 | d = PyModule_GetDict(m); | |
11449 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); | |
11450 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
11451 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
11452 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
11453 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
11454 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
11455 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
11456 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
11457 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); | |
11458 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
11459 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
11460 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
11461 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
11462 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
11463 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
11464 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
11465 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); | |
11466 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
11467 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
11468 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
11469 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
11470 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
11471 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
11472 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
11473 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
11474 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
11475 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
11476 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
11477 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
11478 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
11479 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
11480 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
11481 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
11482 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); | |
11483 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
11484 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
11485 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
11486 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
11487 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
11488 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
11489 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
11490 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
11491 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); | |
742fc581 RD |
11492 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
11493 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
11494 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
11495 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
e6056257 RD |
11496 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
11497 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
11498 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
11499 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); | |
11500 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
11501 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
11502 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
11503 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
11504 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
11505 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
11506 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
11507 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
11508 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
11509 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11510 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
11511 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
11512 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
11513 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
11514 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
11515 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
11516 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
11517 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
11518 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
11519 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
11520 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
11521 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
11522 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
11523 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
11524 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
11525 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
11526 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
11527 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
11528 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
11529 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
11530 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
11531 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
11532 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
11533 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
11534 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
11535 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
11536 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
11537 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
11538 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
11539 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
11540 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
11541 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
11542 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
11543 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
11544 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
11545 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
11546 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
11547 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
11548 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
11549 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
11550 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
11551 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
11552 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); | |
11553 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
11554 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
11555 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
11556 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); | |
11557 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
11558 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
11559 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
11560 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
11561 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
11562 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
11563 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
11564 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
11565 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
11566 | { | |
11567 | int i; | |
11568 | for (i = 0; _swig_mapping[i].n1; i++) | |
11569 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11570 | } | |
11571 | } |