]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/gtk/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/metafile.h> | |
60 | #include <wx/imaglist.h> | |
61 | #ifndef __WXMSW__ | |
62 | #include <wx/dcps.h> | |
63 | #endif | |
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 is required for parameter"; | |
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 | ||
182 | wxFontEncoding wxFont_GetDefaultEncoding() { | |
183 | return wxFont::GetDefaultEncoding(); | |
184 | } | |
185 | ||
186 | void wxFont_SetDefaultEncoding(wxFontEncoding encoding) { | |
187 | wxFont::SetDefaultEncoding(encoding); | |
188 | } | |
189 | // Alternate 'constructor' | |
190 | wxColour* wxNamedColour(const wxString& colorName) { | |
191 | return new wxColour(colorName); | |
192 | } | |
193 | // Alternate 'constructor' | |
194 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
195 | return new wxMemoryDC(oldDC); | |
196 | } | |
197 | ||
198 | #if 0 | |
199 | extern wxFont * wxNORMAL_FONT; | |
200 | extern wxFont * wxSMALL_FONT; | |
201 | extern wxFont * wxITALIC_FONT; | |
202 | extern wxFont * wxSWISS_FONT; | |
203 | extern wxPen * wxRED_PEN; | |
204 | extern wxPen * wxCYAN_PEN; | |
205 | extern wxPen * wxGREEN_PEN; | |
206 | extern wxPen * wxBLACK_PEN; | |
207 | extern wxPen * wxWHITE_PEN; | |
208 | extern wxPen * wxTRANSPARENT_PEN; | |
209 | extern wxPen * wxBLACK_DASHED_PEN; | |
210 | extern wxPen * wxGREY_PEN; | |
211 | extern wxPen * wxMEDIUM_GREY_PEN; | |
212 | extern wxPen * wxLIGHT_GREY_PEN; | |
213 | extern wxBrush * wxBLUE_BRUSH; | |
214 | extern wxBrush * wxGREEN_BRUSH; | |
215 | extern wxBrush * wxWHITE_BRUSH; | |
216 | extern wxBrush * wxBLACK_BRUSH; | |
217 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
218 | extern wxBrush * wxCYAN_BRUSH; | |
219 | extern wxBrush * wxRED_BRUSH; | |
220 | extern wxBrush * wxGREY_BRUSH; | |
221 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
222 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
223 | extern wxColour * wxBLACK; | |
224 | extern wxColour * wxWHITE; | |
225 | extern wxColour * wxRED; | |
226 | extern wxColour * wxBLUE; | |
227 | extern wxColour * wxGREEN; | |
228 | extern wxColour * wxCYAN; | |
229 | extern wxColour * wxLIGHT_GREY; | |
230 | extern wxCursor * wxSTANDARD_CURSOR; | |
231 | extern wxCursor * wxHOURGLASS_CURSOR; | |
232 | extern wxCursor * wxCROSS_CURSOR; | |
233 | extern wxBitmap wxNullBitmap; | |
234 | extern wxIcon wxNullIcon; | |
235 | extern wxCursor wxNullCursor; | |
236 | extern wxPen wxNullPen; | |
237 | extern wxBrush wxNullBrush; | |
238 | extern wxPalette wxNullPalette; | |
239 | extern wxFont wxNullFont; | |
240 | extern wxColour wxNullColour; | |
241 | extern wxFontList * wxTheFontList; | |
242 | extern wxPenList * wxThePenList; | |
243 | extern wxBrushlist * wxTheBrushList; | |
244 | extern wxColourDatabase * wxTheColourDatabase; | |
245 | ||
246 | #endif | |
247 | #ifdef __cplusplus | |
248 | extern "C" { | |
249 | #endif | |
250 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
251 | PyObject * _resultobj; | |
252 | wxBitmap * _result; | |
253 | int _arg0; | |
254 | int _arg1; | |
255 | int _arg2 = (int ) -1; | |
256 | char *_kwnames[] = { "width","height","depth", NULL }; | |
257 | char _ptemp[128]; | |
258 | ||
259 | self = self; | |
260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) | |
261 | return NULL; | |
262 | { | |
263 | wxPy_BEGIN_ALLOW_THREADS; | |
264 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
265 | ||
266 | wxPy_END_ALLOW_THREADS; | |
267 | if (PyErr_Occurred()) return NULL; | |
268 | } if (_result) { | |
269 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
270 | _resultobj = Py_BuildValue("s",_ptemp); | |
271 | } else { | |
272 | Py_INCREF(Py_None); | |
273 | _resultobj = Py_None; | |
274 | } | |
275 | return _resultobj; | |
276 | } | |
277 | ||
278 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
279 | PyObject * _resultobj; | |
280 | wxBitmap * _result; | |
281 | PyObject * _arg0; | |
282 | PyObject * _obj0 = 0; | |
283 | char *_kwnames[] = { "listOfStrings", NULL }; | |
284 | char _ptemp[128]; | |
285 | ||
286 | self = self; | |
287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
288 | return NULL; | |
289 | { | |
290 | _arg0 = _obj0; | |
291 | } | |
292 | { | |
293 | wxPy_BEGIN_ALLOW_THREADS; | |
294 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
295 | ||
296 | wxPy_END_ALLOW_THREADS; | |
297 | if (PyErr_Occurred()) return NULL; | |
298 | } if (_result) { | |
299 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
300 | _resultobj = Py_BuildValue("s",_ptemp); | |
301 | } else { | |
302 | Py_INCREF(Py_None); | |
303 | _resultobj = Py_None; | |
304 | } | |
305 | return _resultobj; | |
306 | } | |
307 | ||
308 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
309 | PyObject * _resultobj; | |
310 | wxBitmap * _result; | |
311 | wxIcon * _arg0; | |
312 | PyObject * _argo0 = 0; | |
313 | char *_kwnames[] = { "icon", NULL }; | |
314 | char _ptemp[128]; | |
315 | ||
316 | self = self; | |
317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
318 | return NULL; | |
319 | if (_argo0) { | |
320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
323 | return NULL; | |
324 | } | |
325 | } | |
326 | { | |
327 | wxPy_BEGIN_ALLOW_THREADS; | |
328 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
329 | ||
330 | wxPy_END_ALLOW_THREADS; | |
331 | if (PyErr_Occurred()) return NULL; | |
332 | } if (_result) { | |
333 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
334 | _resultobj = Py_BuildValue("s",_ptemp); | |
335 | } else { | |
336 | Py_INCREF(Py_None); | |
337 | _resultobj = Py_None; | |
338 | } | |
339 | return _resultobj; | |
340 | } | |
341 | ||
342 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
343 | PyObject * _resultobj; | |
344 | wxBitmap * _result; | |
345 | char * _arg0; | |
346 | int _arg1; | |
347 | int _arg2; | |
348 | int _arg3 = (int ) 1; | |
349 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
350 | char _ptemp[128]; | |
351 | ||
352 | self = self; | |
353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
354 | return NULL; | |
355 | { | |
356 | wxPy_BEGIN_ALLOW_THREADS; | |
357 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); | |
358 | ||
359 | wxPy_END_ALLOW_THREADS; | |
360 | if (PyErr_Occurred()) return NULL; | |
361 | } if (_result) { | |
362 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
363 | _resultobj = Py_BuildValue("s",_ptemp); | |
364 | } else { | |
365 | Py_INCREF(Py_None); | |
366 | _resultobj = Py_None; | |
367 | } | |
368 | return _resultobj; | |
369 | } | |
370 | ||
371 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
372 | PyObject * _resultobj; | |
373 | wxMask * _result; | |
374 | wxBitmap * _arg0; | |
375 | wxColour * _arg1; | |
376 | PyObject * _argo0 = 0; | |
377 | wxColour temp; | |
378 | PyObject * _obj1 = 0; | |
379 | char *_kwnames[] = { "bitmap","colour", NULL }; | |
380 | char _ptemp[128]; | |
381 | ||
382 | self = self; | |
383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) | |
384 | return NULL; | |
385 | if (_argo0) { | |
386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
389 | return NULL; | |
390 | } | |
391 | } | |
392 | { | |
393 | _arg1 = &temp; | |
394 | if (! wxColour_helper(_obj1, &_arg1)) | |
395 | return NULL; | |
396 | } | |
397 | { | |
398 | wxPy_BEGIN_ALLOW_THREADS; | |
399 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
400 | ||
401 | wxPy_END_ALLOW_THREADS; | |
402 | if (PyErr_Occurred()) return NULL; | |
403 | } if (_result) { | |
404 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
405 | _resultobj = Py_BuildValue("s",_ptemp); | |
406 | } else { | |
407 | Py_INCREF(Py_None); | |
408 | _resultobj = Py_None; | |
409 | } | |
410 | return _resultobj; | |
411 | } | |
412 | ||
413 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
414 | PyObject * _resultobj; | |
415 | wxIcon * _result; | |
416 | char *_kwnames[] = { NULL }; | |
417 | char _ptemp[128]; | |
418 | ||
419 | self = self; | |
420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
421 | return NULL; | |
422 | { | |
423 | wxPy_BEGIN_ALLOW_THREADS; | |
424 | _result = (wxIcon *)wxEmptyIcon(); | |
425 | ||
426 | wxPy_END_ALLOW_THREADS; | |
427 | if (PyErr_Occurred()) return NULL; | |
428 | } if (_result) { | |
429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
430 | _resultobj = Py_BuildValue("s",_ptemp); | |
431 | } else { | |
432 | Py_INCREF(Py_None); | |
433 | _resultobj = Py_None; | |
434 | } | |
435 | return _resultobj; | |
436 | } | |
437 | ||
438 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
439 | PyObject * _resultobj; | |
440 | wxIcon * _result; | |
441 | PyObject * _arg0; | |
442 | PyObject * _obj0 = 0; | |
443 | char *_kwnames[] = { "listOfStrings", NULL }; | |
444 | char _ptemp[128]; | |
445 | ||
446 | self = self; | |
447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
448 | return NULL; | |
449 | { | |
450 | _arg0 = _obj0; | |
451 | } | |
452 | { | |
453 | wxPy_BEGIN_ALLOW_THREADS; | |
454 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
455 | ||
456 | wxPy_END_ALLOW_THREADS; | |
457 | if (PyErr_Occurred()) return NULL; | |
458 | } if (_result) { | |
459 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
460 | _resultobj = Py_BuildValue("s",_ptemp); | |
461 | } else { | |
462 | Py_INCREF(Py_None); | |
463 | _resultobj = Py_None; | |
464 | } | |
465 | return _resultobj; | |
466 | } | |
467 | ||
468 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
469 | PyObject * _resultobj; | |
470 | wxCursor * _result; | |
471 | int _arg0; | |
472 | char *_kwnames[] = { "id", NULL }; | |
473 | char _ptemp[128]; | |
474 | ||
475 | self = self; | |
476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) | |
477 | return NULL; | |
478 | { | |
479 | wxPy_BEGIN_ALLOW_THREADS; | |
480 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
481 | ||
482 | wxPy_END_ALLOW_THREADS; | |
483 | if (PyErr_Occurred()) return NULL; | |
484 | } if (_result) { | |
485 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
486 | _resultobj = Py_BuildValue("s",_ptemp); | |
487 | } else { | |
488 | Py_INCREF(Py_None); | |
489 | _resultobj = Py_None; | |
490 | } | |
491 | return _resultobj; | |
492 | } | |
493 | ||
494 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
495 | PyObject * _resultobj; | |
496 | wxFontEncoding _result; | |
497 | char *_kwnames[] = { NULL }; | |
498 | ||
499 | self = self; | |
500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
501 | return NULL; | |
502 | { | |
503 | wxPy_BEGIN_ALLOW_THREADS; | |
504 | _result = (wxFontEncoding )wxFont_GetDefaultEncoding(); | |
505 | ||
506 | wxPy_END_ALLOW_THREADS; | |
507 | if (PyErr_Occurred()) return NULL; | |
508 | } _resultobj = Py_BuildValue("i",_result); | |
509 | return _resultobj; | |
510 | } | |
511 | ||
512 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
513 | PyObject * _resultobj; | |
514 | wxFontEncoding _arg0; | |
515 | char *_kwnames[] = { "encoding", NULL }; | |
516 | ||
517 | self = self; | |
518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
519 | return NULL; | |
520 | { | |
521 | wxPy_BEGIN_ALLOW_THREADS; | |
522 | wxFont_SetDefaultEncoding(_arg0); | |
523 | ||
524 | wxPy_END_ALLOW_THREADS; | |
525 | if (PyErr_Occurred()) return NULL; | |
526 | } Py_INCREF(Py_None); | |
527 | _resultobj = Py_None; | |
528 | return _resultobj; | |
529 | } | |
530 | ||
531 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
532 | PyObject * _resultobj; | |
533 | wxColour * _result; | |
534 | wxString * _arg0; | |
535 | PyObject * _obj0 = 0; | |
536 | char *_kwnames[] = { "colorName", NULL }; | |
537 | char _ptemp[128]; | |
538 | ||
539 | self = self; | |
540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) | |
541 | return NULL; | |
542 | { | |
543 | #if PYTHON_API_VERSION >= 1009 | |
544 | char* tmpPtr; int tmpSize; | |
545 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
546 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
547 | return NULL; | |
548 | } | |
549 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
550 | return NULL; | |
551 | _arg0 = new wxString(tmpPtr, tmpSize); | |
552 | #else | |
553 | if (!PyString_Check(_obj0)) { | |
554 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
555 | return NULL; | |
556 | } | |
557 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
558 | #endif | |
559 | } | |
560 | { | |
561 | wxPy_BEGIN_ALLOW_THREADS; | |
562 | _result = (wxColour *)wxNamedColour(*_arg0); | |
563 | ||
564 | wxPy_END_ALLOW_THREADS; | |
565 | if (PyErr_Occurred()) return NULL; | |
566 | } if (_result) { | |
567 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
568 | _resultobj = Py_BuildValue("s",_ptemp); | |
569 | } else { | |
570 | Py_INCREF(Py_None); | |
571 | _resultobj = Py_None; | |
572 | } | |
573 | { | |
574 | if (_obj0) | |
575 | delete _arg0; | |
576 | } | |
577 | return _resultobj; | |
578 | } | |
579 | ||
580 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
581 | PyObject * _resultobj; | |
582 | wxMemoryDC * _result; | |
583 | wxDC * _arg0; | |
584 | PyObject * _argo0 = 0; | |
585 | char *_kwnames[] = { "oldDC", NULL }; | |
586 | char _ptemp[128]; | |
587 | ||
588 | self = self; | |
589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) | |
590 | return NULL; | |
591 | if (_argo0) { | |
592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
595 | return NULL; | |
596 | } | |
597 | } | |
598 | { | |
599 | wxPy_BEGIN_ALLOW_THREADS; | |
600 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
601 | ||
602 | wxPy_END_ALLOW_THREADS; | |
603 | if (PyErr_Occurred()) return NULL; | |
604 | } if (_result) { | |
605 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
606 | _resultobj = Py_BuildValue("s",_ptemp); | |
607 | } else { | |
608 | Py_INCREF(Py_None); | |
609 | _resultobj = Py_None; | |
610 | } | |
611 | return _resultobj; | |
612 | } | |
613 | ||
614 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
615 | ||
616 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
617 | return 1; | |
618 | } | |
619 | ||
620 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
621 | PyObject * pyobj; | |
622 | char ptemp[128]; | |
623 | ||
624 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
625 | pyobj = PyString_FromString(ptemp); | |
626 | return pyobj; | |
627 | } | |
628 | ||
629 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
630 | ||
631 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
632 | return 1; | |
633 | } | |
634 | ||
635 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
636 | PyObject * pyobj; | |
637 | char ptemp[128]; | |
638 | ||
639 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
640 | pyobj = PyString_FromString(ptemp); | |
641 | return pyobj; | |
642 | } | |
643 | ||
644 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
645 | ||
646 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
647 | return 1; | |
648 | } | |
649 | ||
650 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
651 | PyObject * pyobj; | |
652 | char ptemp[128]; | |
653 | ||
654 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
655 | pyobj = PyString_FromString(ptemp); | |
656 | return pyobj; | |
657 | } | |
658 | ||
659 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
660 | ||
661 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
662 | return 1; | |
663 | } | |
664 | ||
665 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
666 | PyObject * pyobj; | |
667 | char ptemp[128]; | |
668 | ||
669 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
670 | pyobj = PyString_FromString(ptemp); | |
671 | return pyobj; | |
672 | } | |
673 | ||
674 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
675 | ||
676 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
677 | return 1; | |
678 | } | |
679 | ||
680 | static PyObject *_wrap_wxRED_PEN_get() { | |
681 | PyObject * pyobj; | |
682 | char ptemp[128]; | |
683 | ||
684 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
685 | pyobj = PyString_FromString(ptemp); | |
686 | return pyobj; | |
687 | } | |
688 | ||
689 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
690 | ||
691 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
692 | return 1; | |
693 | } | |
694 | ||
695 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
696 | PyObject * pyobj; | |
697 | char ptemp[128]; | |
698 | ||
699 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
700 | pyobj = PyString_FromString(ptemp); | |
701 | return pyobj; | |
702 | } | |
703 | ||
704 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
705 | ||
706 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
707 | return 1; | |
708 | } | |
709 | ||
710 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
711 | PyObject * pyobj; | |
712 | char ptemp[128]; | |
713 | ||
714 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
715 | pyobj = PyString_FromString(ptemp); | |
716 | return pyobj; | |
717 | } | |
718 | ||
719 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
720 | ||
721 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
722 | return 1; | |
723 | } | |
724 | ||
725 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
726 | PyObject * pyobj; | |
727 | char ptemp[128]; | |
728 | ||
729 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
730 | pyobj = PyString_FromString(ptemp); | |
731 | return pyobj; | |
732 | } | |
733 | ||
734 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
735 | ||
736 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
737 | return 1; | |
738 | } | |
739 | ||
740 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
741 | PyObject * pyobj; | |
742 | char ptemp[128]; | |
743 | ||
744 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
745 | pyobj = PyString_FromString(ptemp); | |
746 | return pyobj; | |
747 | } | |
748 | ||
749 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
750 | ||
751 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
752 | return 1; | |
753 | } | |
754 | ||
755 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
756 | PyObject * pyobj; | |
757 | char ptemp[128]; | |
758 | ||
759 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
760 | pyobj = PyString_FromString(ptemp); | |
761 | return pyobj; | |
762 | } | |
763 | ||
764 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
765 | ||
766 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
767 | return 1; | |
768 | } | |
769 | ||
770 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
771 | PyObject * pyobj; | |
772 | char ptemp[128]; | |
773 | ||
774 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
775 | pyobj = PyString_FromString(ptemp); | |
776 | return pyobj; | |
777 | } | |
778 | ||
779 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
780 | ||
781 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
782 | return 1; | |
783 | } | |
784 | ||
785 | static PyObject *_wrap_wxGREY_PEN_get() { | |
786 | PyObject * pyobj; | |
787 | char ptemp[128]; | |
788 | ||
789 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
790 | pyobj = PyString_FromString(ptemp); | |
791 | return pyobj; | |
792 | } | |
793 | ||
794 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
795 | ||
796 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
797 | return 1; | |
798 | } | |
799 | ||
800 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
801 | PyObject * pyobj; | |
802 | char ptemp[128]; | |
803 | ||
804 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
805 | pyobj = PyString_FromString(ptemp); | |
806 | return pyobj; | |
807 | } | |
808 | ||
809 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
810 | ||
811 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
812 | return 1; | |
813 | } | |
814 | ||
815 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
816 | PyObject * pyobj; | |
817 | char ptemp[128]; | |
818 | ||
819 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
820 | pyobj = PyString_FromString(ptemp); | |
821 | return pyobj; | |
822 | } | |
823 | ||
824 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
825 | ||
826 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
827 | return 1; | |
828 | } | |
829 | ||
830 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
831 | PyObject * pyobj; | |
832 | char ptemp[128]; | |
833 | ||
834 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
835 | pyobj = PyString_FromString(ptemp); | |
836 | return pyobj; | |
837 | } | |
838 | ||
839 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
840 | ||
841 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
842 | return 1; | |
843 | } | |
844 | ||
845 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
846 | PyObject * pyobj; | |
847 | char ptemp[128]; | |
848 | ||
849 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
850 | pyobj = PyString_FromString(ptemp); | |
851 | return pyobj; | |
852 | } | |
853 | ||
854 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
855 | ||
856 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
857 | return 1; | |
858 | } | |
859 | ||
860 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
861 | PyObject * pyobj; | |
862 | char ptemp[128]; | |
863 | ||
864 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
865 | pyobj = PyString_FromString(ptemp); | |
866 | return pyobj; | |
867 | } | |
868 | ||
869 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
870 | ||
871 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
872 | return 1; | |
873 | } | |
874 | ||
875 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
876 | PyObject * pyobj; | |
877 | char ptemp[128]; | |
878 | ||
879 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
880 | pyobj = PyString_FromString(ptemp); | |
881 | return pyobj; | |
882 | } | |
883 | ||
884 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
885 | ||
886 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
887 | return 1; | |
888 | } | |
889 | ||
890 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
891 | PyObject * pyobj; | |
892 | char ptemp[128]; | |
893 | ||
894 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
895 | pyobj = PyString_FromString(ptemp); | |
896 | return pyobj; | |
897 | } | |
898 | ||
899 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
900 | ||
901 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
902 | return 1; | |
903 | } | |
904 | ||
905 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
906 | PyObject * pyobj; | |
907 | char ptemp[128]; | |
908 | ||
909 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
910 | pyobj = PyString_FromString(ptemp); | |
911 | return pyobj; | |
912 | } | |
913 | ||
914 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
915 | ||
916 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
917 | return 1; | |
918 | } | |
919 | ||
920 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
921 | PyObject * pyobj; | |
922 | char ptemp[128]; | |
923 | ||
924 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
925 | pyobj = PyString_FromString(ptemp); | |
926 | return pyobj; | |
927 | } | |
928 | ||
929 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
930 | ||
931 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
932 | return 1; | |
933 | } | |
934 | ||
935 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
936 | PyObject * pyobj; | |
937 | char ptemp[128]; | |
938 | ||
939 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
940 | pyobj = PyString_FromString(ptemp); | |
941 | return pyobj; | |
942 | } | |
943 | ||
944 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
945 | ||
946 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
947 | return 1; | |
948 | } | |
949 | ||
950 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
951 | PyObject * pyobj; | |
952 | char ptemp[128]; | |
953 | ||
954 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
955 | pyobj = PyString_FromString(ptemp); | |
956 | return pyobj; | |
957 | } | |
958 | ||
959 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
960 | ||
961 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
962 | return 1; | |
963 | } | |
964 | ||
965 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
966 | PyObject * pyobj; | |
967 | char ptemp[128]; | |
968 | ||
969 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
970 | pyobj = PyString_FromString(ptemp); | |
971 | return pyobj; | |
972 | } | |
973 | ||
974 | static int _wrap_wxBLACK_set(PyObject *val) { | |
975 | ||
976 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
977 | return 1; | |
978 | } | |
979 | ||
980 | static PyObject *_wrap_wxBLACK_get() { | |
981 | PyObject * pyobj; | |
982 | char ptemp[128]; | |
983 | ||
984 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
985 | pyobj = PyString_FromString(ptemp); | |
986 | return pyobj; | |
987 | } | |
988 | ||
989 | static int _wrap_wxWHITE_set(PyObject *val) { | |
990 | ||
991 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
992 | return 1; | |
993 | } | |
994 | ||
995 | static PyObject *_wrap_wxWHITE_get() { | |
996 | PyObject * pyobj; | |
997 | char ptemp[128]; | |
998 | ||
999 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1000 | pyobj = PyString_FromString(ptemp); | |
1001 | return pyobj; | |
1002 | } | |
1003 | ||
1004 | static int _wrap_wxRED_set(PyObject *val) { | |
1005 | ||
1006 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1007 | return 1; | |
1008 | } | |
1009 | ||
1010 | static PyObject *_wrap_wxRED_get() { | |
1011 | PyObject * pyobj; | |
1012 | char ptemp[128]; | |
1013 | ||
1014 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1015 | pyobj = PyString_FromString(ptemp); | |
1016 | return pyobj; | |
1017 | } | |
1018 | ||
1019 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1020 | ||
1021 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1022 | return 1; | |
1023 | } | |
1024 | ||
1025 | static PyObject *_wrap_wxBLUE_get() { | |
1026 | PyObject * pyobj; | |
1027 | char ptemp[128]; | |
1028 | ||
1029 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1030 | pyobj = PyString_FromString(ptemp); | |
1031 | return pyobj; | |
1032 | } | |
1033 | ||
1034 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1035 | ||
1036 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1037 | return 1; | |
1038 | } | |
1039 | ||
1040 | static PyObject *_wrap_wxGREEN_get() { | |
1041 | PyObject * pyobj; | |
1042 | char ptemp[128]; | |
1043 | ||
1044 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1045 | pyobj = PyString_FromString(ptemp); | |
1046 | return pyobj; | |
1047 | } | |
1048 | ||
1049 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1050 | ||
1051 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1052 | return 1; | |
1053 | } | |
1054 | ||
1055 | static PyObject *_wrap_wxCYAN_get() { | |
1056 | PyObject * pyobj; | |
1057 | char ptemp[128]; | |
1058 | ||
1059 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1060 | pyobj = PyString_FromString(ptemp); | |
1061 | return pyobj; | |
1062 | } | |
1063 | ||
1064 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1065 | ||
1066 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1067 | return 1; | |
1068 | } | |
1069 | ||
1070 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1071 | PyObject * pyobj; | |
1072 | char ptemp[128]; | |
1073 | ||
1074 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1075 | pyobj = PyString_FromString(ptemp); | |
1076 | return pyobj; | |
1077 | } | |
1078 | ||
1079 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1080 | ||
1081 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1082 | return 1; | |
1083 | } | |
1084 | ||
1085 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1086 | PyObject * pyobj; | |
1087 | char ptemp[128]; | |
1088 | ||
1089 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1090 | pyobj = PyString_FromString(ptemp); | |
1091 | return pyobj; | |
1092 | } | |
1093 | ||
1094 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1095 | ||
1096 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1097 | return 1; | |
1098 | } | |
1099 | ||
1100 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1101 | PyObject * pyobj; | |
1102 | char ptemp[128]; | |
1103 | ||
1104 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1105 | pyobj = PyString_FromString(ptemp); | |
1106 | return pyobj; | |
1107 | } | |
1108 | ||
1109 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1110 | ||
1111 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1112 | return 1; | |
1113 | } | |
1114 | ||
1115 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1116 | PyObject * pyobj; | |
1117 | char ptemp[128]; | |
1118 | ||
1119 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1120 | pyobj = PyString_FromString(ptemp); | |
1121 | return pyobj; | |
1122 | } | |
1123 | ||
1124 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1125 | ||
1126 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1127 | return 1; | |
1128 | } | |
1129 | ||
1130 | static PyObject *_wrap_wxNullBitmap_get() { | |
1131 | PyObject * pyobj; | |
1132 | char ptemp[128]; | |
1133 | ||
1134 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1135 | pyobj = PyString_FromString(ptemp); | |
1136 | return pyobj; | |
1137 | } | |
1138 | ||
1139 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1140 | ||
1141 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1142 | return 1; | |
1143 | } | |
1144 | ||
1145 | static PyObject *_wrap_wxNullIcon_get() { | |
1146 | PyObject * pyobj; | |
1147 | char ptemp[128]; | |
1148 | ||
1149 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1150 | pyobj = PyString_FromString(ptemp); | |
1151 | return pyobj; | |
1152 | } | |
1153 | ||
1154 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1155 | ||
1156 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1157 | return 1; | |
1158 | } | |
1159 | ||
1160 | static PyObject *_wrap_wxNullCursor_get() { | |
1161 | PyObject * pyobj; | |
1162 | char ptemp[128]; | |
1163 | ||
1164 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1165 | pyobj = PyString_FromString(ptemp); | |
1166 | return pyobj; | |
1167 | } | |
1168 | ||
1169 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1170 | ||
1171 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1172 | return 1; | |
1173 | } | |
1174 | ||
1175 | static PyObject *_wrap_wxNullPen_get() { | |
1176 | PyObject * pyobj; | |
1177 | char ptemp[128]; | |
1178 | ||
1179 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1180 | pyobj = PyString_FromString(ptemp); | |
1181 | return pyobj; | |
1182 | } | |
1183 | ||
1184 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1185 | ||
1186 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1187 | return 1; | |
1188 | } | |
1189 | ||
1190 | static PyObject *_wrap_wxNullBrush_get() { | |
1191 | PyObject * pyobj; | |
1192 | char ptemp[128]; | |
1193 | ||
1194 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1195 | pyobj = PyString_FromString(ptemp); | |
1196 | return pyobj; | |
1197 | } | |
1198 | ||
1199 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1200 | ||
1201 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1202 | return 1; | |
1203 | } | |
1204 | ||
1205 | static PyObject *_wrap_wxNullPalette_get() { | |
1206 | PyObject * pyobj; | |
1207 | char ptemp[128]; | |
1208 | ||
1209 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1210 | pyobj = PyString_FromString(ptemp); | |
1211 | return pyobj; | |
1212 | } | |
1213 | ||
1214 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1215 | ||
1216 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1217 | return 1; | |
1218 | } | |
1219 | ||
1220 | static PyObject *_wrap_wxNullFont_get() { | |
1221 | PyObject * pyobj; | |
1222 | char ptemp[128]; | |
1223 | ||
1224 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1225 | pyobj = PyString_FromString(ptemp); | |
1226 | return pyobj; | |
1227 | } | |
1228 | ||
1229 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1230 | ||
1231 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1232 | return 1; | |
1233 | } | |
1234 | ||
1235 | static PyObject *_wrap_wxNullColour_get() { | |
1236 | PyObject * pyobj; | |
1237 | char ptemp[128]; | |
1238 | ||
1239 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1240 | pyobj = PyString_FromString(ptemp); | |
1241 | return pyobj; | |
1242 | } | |
1243 | ||
1244 | static int _wrap_wxTheFontList_set(PyObject *val) { | |
1245 | ||
1246 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1247 | return 1; | |
1248 | } | |
1249 | ||
1250 | static PyObject *_wrap_wxTheFontList_get() { | |
1251 | PyObject * pyobj; | |
1252 | char ptemp[128]; | |
1253 | ||
1254 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1255 | pyobj = PyString_FromString(ptemp); | |
1256 | return pyobj; | |
1257 | } | |
1258 | ||
1259 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1260 | ||
1261 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1262 | return 1; | |
1263 | } | |
1264 | ||
1265 | static PyObject *_wrap_wxThePenList_get() { | |
1266 | PyObject * pyobj; | |
1267 | char ptemp[128]; | |
1268 | ||
1269 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1270 | pyobj = PyString_FromString(ptemp); | |
1271 | return pyobj; | |
1272 | } | |
1273 | ||
1274 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1275 | ||
1276 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1277 | return 1; | |
1278 | } | |
1279 | ||
1280 | static PyObject *_wrap_wxTheBrushList_get() { | |
1281 | PyObject * pyobj; | |
1282 | char ptemp[128]; | |
1283 | ||
1284 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p"); | |
1285 | pyobj = PyString_FromString(ptemp); | |
1286 | return pyobj; | |
1287 | } | |
1288 | ||
1289 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1290 | ||
1291 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1292 | return 1; | |
1293 | } | |
1294 | ||
1295 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1296 | PyObject * pyobj; | |
1297 | char ptemp[128]; | |
1298 | ||
1299 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1300 | pyobj = PyString_FromString(ptemp); | |
1301 | return pyobj; | |
1302 | } | |
1303 | ||
1304 | static void *SwigwxGDIObjectTowxObject(void *ptr) { | |
1305 | wxGDIObject *src; | |
1306 | wxObject *dest; | |
1307 | src = (wxGDIObject *) ptr; | |
1308 | dest = (wxObject *) src; | |
1309 | return (void *) dest; | |
1310 | } | |
1311 | ||
1312 | #define new_wxGDIObject() (new wxGDIObject()) | |
1313 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1314 | PyObject * _resultobj; | |
1315 | wxGDIObject * _result; | |
1316 | char *_kwnames[] = { NULL }; | |
1317 | char _ptemp[128]; | |
1318 | ||
1319 | self = self; | |
1320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1321 | return NULL; | |
1322 | { | |
1323 | wxPy_BEGIN_ALLOW_THREADS; | |
1324 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1325 | ||
1326 | wxPy_END_ALLOW_THREADS; | |
1327 | if (PyErr_Occurred()) return NULL; | |
1328 | } if (_result) { | |
1329 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1330 | _resultobj = Py_BuildValue("s",_ptemp); | |
1331 | } else { | |
1332 | Py_INCREF(Py_None); | |
1333 | _resultobj = Py_None; | |
1334 | } | |
1335 | return _resultobj; | |
1336 | } | |
1337 | ||
1338 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1339 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1340 | PyObject * _resultobj; | |
1341 | wxGDIObject * _arg0; | |
1342 | PyObject * _argo0 = 0; | |
1343 | char *_kwnames[] = { "self", NULL }; | |
1344 | ||
1345 | self = self; | |
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1347 | return NULL; | |
1348 | if (_argo0) { | |
1349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1352 | return NULL; | |
1353 | } | |
1354 | } | |
1355 | { | |
1356 | wxPy_BEGIN_ALLOW_THREADS; | |
1357 | delete_wxGDIObject(_arg0); | |
1358 | ||
1359 | wxPy_END_ALLOW_THREADS; | |
1360 | if (PyErr_Occurred()) return NULL; | |
1361 | } Py_INCREF(Py_None); | |
1362 | _resultobj = Py_None; | |
1363 | return _resultobj; | |
1364 | } | |
1365 | ||
1366 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1367 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1368 | PyObject * _resultobj; | |
1369 | bool _result; | |
1370 | wxGDIObject * _arg0; | |
1371 | PyObject * _argo0 = 0; | |
1372 | char *_kwnames[] = { "self", NULL }; | |
1373 | ||
1374 | self = self; | |
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1376 | return NULL; | |
1377 | if (_argo0) { | |
1378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1381 | return NULL; | |
1382 | } | |
1383 | } | |
1384 | { | |
1385 | wxPy_BEGIN_ALLOW_THREADS; | |
1386 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1387 | ||
1388 | wxPy_END_ALLOW_THREADS; | |
1389 | if (PyErr_Occurred()) return NULL; | |
1390 | } _resultobj = Py_BuildValue("i",_result); | |
1391 | return _resultobj; | |
1392 | } | |
1393 | ||
1394 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1395 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1396 | PyObject * _resultobj; | |
1397 | wxGDIObject * _arg0; | |
1398 | bool _arg1; | |
1399 | PyObject * _argo0 = 0; | |
1400 | int tempbool1; | |
1401 | char *_kwnames[] = { "self","visible", NULL }; | |
1402 | ||
1403 | self = self; | |
1404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1405 | return NULL; | |
1406 | if (_argo0) { | |
1407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1410 | return NULL; | |
1411 | } | |
1412 | } | |
1413 | _arg1 = (bool ) tempbool1; | |
1414 | { | |
1415 | wxPy_BEGIN_ALLOW_THREADS; | |
1416 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1417 | ||
1418 | wxPy_END_ALLOW_THREADS; | |
1419 | if (PyErr_Occurred()) return NULL; | |
1420 | } Py_INCREF(Py_None); | |
1421 | _resultobj = Py_None; | |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
1425 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1426 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1427 | PyObject * _resultobj; | |
1428 | bool _result; | |
1429 | wxGDIObject * _arg0; | |
1430 | PyObject * _argo0 = 0; | |
1431 | char *_kwnames[] = { "self", NULL }; | |
1432 | ||
1433 | self = self; | |
1434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1435 | return NULL; | |
1436 | if (_argo0) { | |
1437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1440 | return NULL; | |
1441 | } | |
1442 | } | |
1443 | { | |
1444 | wxPy_BEGIN_ALLOW_THREADS; | |
1445 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1446 | ||
1447 | wxPy_END_ALLOW_THREADS; | |
1448 | if (PyErr_Occurred()) return NULL; | |
1449 | } _resultobj = Py_BuildValue("i",_result); | |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
1453 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1454 | wxBitmap *src; | |
1455 | wxGDIObject *dest; | |
1456 | src = (wxBitmap *) ptr; | |
1457 | dest = (wxGDIObject *) src; | |
1458 | return (void *) dest; | |
1459 | } | |
1460 | ||
1461 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1462 | wxBitmap *src; | |
1463 | wxObject *dest; | |
1464 | src = (wxBitmap *) ptr; | |
1465 | dest = (wxObject *) src; | |
1466 | return (void *) dest; | |
1467 | } | |
1468 | ||
1469 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
1470 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject * _resultobj; | |
1472 | wxBitmap * _result; | |
1473 | wxString * _arg0; | |
1474 | wxBitmapType _arg1; | |
1475 | PyObject * _obj0 = 0; | |
1476 | char *_kwnames[] = { "name","type", NULL }; | |
1477 | char _ptemp[128]; | |
1478 | ||
1479 | self = self; | |
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxBitmap",_kwnames,&_obj0,&_arg1)) | |
1481 | return NULL; | |
1482 | { | |
1483 | #if PYTHON_API_VERSION >= 1009 | |
1484 | char* tmpPtr; int tmpSize; | |
1485 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1486 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1487 | return NULL; | |
1488 | } | |
1489 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1490 | return NULL; | |
1491 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1492 | #else | |
1493 | if (!PyString_Check(_obj0)) { | |
1494 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1495 | return NULL; | |
1496 | } | |
1497 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1498 | #endif | |
1499 | } | |
1500 | { | |
1501 | wxPy_BEGIN_ALLOW_THREADS; | |
1502 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
1503 | ||
1504 | wxPy_END_ALLOW_THREADS; | |
1505 | if (PyErr_Occurred()) return NULL; | |
1506 | } if (_result) { | |
1507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1508 | _resultobj = Py_BuildValue("s",_ptemp); | |
1509 | } else { | |
1510 | Py_INCREF(Py_None); | |
1511 | _resultobj = Py_None; | |
1512 | } | |
1513 | { | |
1514 | if (_obj0) | |
1515 | delete _arg0; | |
1516 | } | |
1517 | return _resultobj; | |
1518 | } | |
1519 | ||
1520 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
1521 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1522 | PyObject * _resultobj; | |
1523 | wxBitmap * _arg0; | |
1524 | PyObject * _argo0 = 0; | |
1525 | char *_kwnames[] = { "self", NULL }; | |
1526 | ||
1527 | self = self; | |
1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) | |
1529 | return NULL; | |
1530 | if (_argo0) { | |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
1537 | { | |
1538 | wxPy_BEGIN_ALLOW_THREADS; | |
1539 | delete_wxBitmap(_arg0); | |
1540 | ||
1541 | wxPy_END_ALLOW_THREADS; | |
1542 | if (PyErr_Occurred()) return NULL; | |
1543 | } Py_INCREF(Py_None); | |
1544 | _resultobj = Py_None; | |
1545 | return _resultobj; | |
1546 | } | |
1547 | ||
1548 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1549 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject * _resultobj; | |
1551 | wxPalette * _result; | |
1552 | wxBitmap * _arg0; | |
1553 | PyObject * _argo0 = 0; | |
1554 | char *_kwnames[] = { "self", NULL }; | |
1555 | char _ptemp[128]; | |
1556 | ||
1557 | self = self; | |
1558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) | |
1559 | return NULL; | |
1560 | if (_argo0) { | |
1561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1564 | return NULL; | |
1565 | } | |
1566 | } | |
1567 | { | |
1568 | wxPy_BEGIN_ALLOW_THREADS; | |
1569 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1570 | ||
1571 | wxPy_END_ALLOW_THREADS; | |
1572 | if (PyErr_Occurred()) return NULL; | |
1573 | } if (_result) { | |
1574 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1575 | _resultobj = Py_BuildValue("s",_ptemp); | |
1576 | } else { | |
1577 | Py_INCREF(Py_None); | |
1578 | _resultobj = Py_None; | |
1579 | } | |
1580 | return _resultobj; | |
1581 | } | |
1582 | ||
1583 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1584 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1585 | PyObject * _resultobj; | |
1586 | wxMask * _result; | |
1587 | wxBitmap * _arg0; | |
1588 | PyObject * _argo0 = 0; | |
1589 | char *_kwnames[] = { "self", NULL }; | |
1590 | char _ptemp[128]; | |
1591 | ||
1592 | self = self; | |
1593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) | |
1594 | return NULL; | |
1595 | if (_argo0) { | |
1596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1599 | return NULL; | |
1600 | } | |
1601 | } | |
1602 | { | |
1603 | wxPy_BEGIN_ALLOW_THREADS; | |
1604 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1605 | ||
1606 | wxPy_END_ALLOW_THREADS; | |
1607 | if (PyErr_Occurred()) return NULL; | |
1608 | } if (_result) { | |
1609 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1610 | _resultobj = Py_BuildValue("s",_ptemp); | |
1611 | } else { | |
1612 | Py_INCREF(Py_None); | |
1613 | _resultobj = Py_None; | |
1614 | } | |
1615 | return _resultobj; | |
1616 | } | |
1617 | ||
1618 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1619 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1620 | PyObject * _resultobj; | |
1621 | bool _result; | |
1622 | wxBitmap * _arg0; | |
1623 | wxString * _arg1; | |
1624 | long _arg2; | |
1625 | PyObject * _argo0 = 0; | |
1626 | PyObject * _obj1 = 0; | |
1627 | char *_kwnames[] = { "self","name","flags", NULL }; | |
1628 | ||
1629 | self = self; | |
1630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1631 | return NULL; | |
1632 | if (_argo0) { | |
1633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1636 | return NULL; | |
1637 | } | |
1638 | } | |
1639 | { | |
1640 | #if PYTHON_API_VERSION >= 1009 | |
1641 | char* tmpPtr; int tmpSize; | |
1642 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1643 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1644 | return NULL; | |
1645 | } | |
1646 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1647 | return NULL; | |
1648 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1649 | #else | |
1650 | if (!PyString_Check(_obj1)) { | |
1651 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1652 | return NULL; | |
1653 | } | |
1654 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1655 | #endif | |
1656 | } | |
1657 | { | |
1658 | wxPy_BEGIN_ALLOW_THREADS; | |
1659 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); | |
1660 | ||
1661 | wxPy_END_ALLOW_THREADS; | |
1662 | if (PyErr_Occurred()) return NULL; | |
1663 | } _resultobj = Py_BuildValue("i",_result); | |
1664 | { | |
1665 | if (_obj1) | |
1666 | delete _arg1; | |
1667 | } | |
1668 | return _resultobj; | |
1669 | } | |
1670 | ||
1671 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) | |
1672 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1673 | PyObject * _resultobj; | |
1674 | bool _result; | |
1675 | wxBitmap * _arg0; | |
1676 | wxString * _arg1; | |
1677 | int _arg2; | |
1678 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1679 | PyObject * _argo0 = 0; | |
1680 | PyObject * _obj1 = 0; | |
1681 | PyObject * _argo3 = 0; | |
1682 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
1683 | ||
1684 | self = self; | |
1685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) | |
1686 | return NULL; | |
1687 | if (_argo0) { | |
1688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1691 | return NULL; | |
1692 | } | |
1693 | } | |
1694 | { | |
1695 | #if PYTHON_API_VERSION >= 1009 | |
1696 | char* tmpPtr; int tmpSize; | |
1697 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1698 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1699 | return NULL; | |
1700 | } | |
1701 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1702 | return NULL; | |
1703 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1704 | #else | |
1705 | if (!PyString_Check(_obj1)) { | |
1706 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1707 | return NULL; | |
1708 | } | |
1709 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1710 | #endif | |
1711 | } | |
1712 | if (_argo3) { | |
1713 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | wxPy_BEGIN_ALLOW_THREADS; | |
1721 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); | |
1722 | ||
1723 | wxPy_END_ALLOW_THREADS; | |
1724 | if (PyErr_Occurred()) return NULL; | |
1725 | } _resultobj = Py_BuildValue("i",_result); | |
1726 | { | |
1727 | if (_obj1) | |
1728 | delete _arg1; | |
1729 | } | |
1730 | return _resultobj; | |
1731 | } | |
1732 | ||
1733 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1734 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1735 | PyObject * _resultobj; | |
1736 | wxBitmap * _arg0; | |
1737 | wxMask * _arg1; | |
1738 | PyObject * _argo0 = 0; | |
1739 | PyObject * _argo1 = 0; | |
1740 | char *_kwnames[] = { "self","mask", NULL }; | |
1741 | ||
1742 | self = self; | |
1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1744 | return NULL; | |
1745 | if (_argo0) { | |
1746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1749 | return NULL; | |
1750 | } | |
1751 | } | |
1752 | if (_argo1) { | |
1753 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1754 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1756 | return NULL; | |
1757 | } | |
1758 | } | |
1759 | { | |
1760 | wxPy_BEGIN_ALLOW_THREADS; | |
1761 | wxBitmap_SetMask(_arg0,_arg1); | |
1762 | ||
1763 | wxPy_END_ALLOW_THREADS; | |
1764 | if (PyErr_Occurred()) return NULL; | |
1765 | } Py_INCREF(Py_None); | |
1766 | _resultobj = Py_None; | |
1767 | return _resultobj; | |
1768 | } | |
1769 | ||
1770 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1771 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1772 | PyObject * _resultobj; | |
1773 | bool _result; | |
1774 | wxBitmap * _arg0; | |
1775 | PyObject * _argo0 = 0; | |
1776 | char *_kwnames[] = { "self", NULL }; | |
1777 | ||
1778 | self = self; | |
1779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1780 | return NULL; | |
1781 | if (_argo0) { | |
1782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1785 | return NULL; | |
1786 | } | |
1787 | } | |
1788 | { | |
1789 | wxPy_BEGIN_ALLOW_THREADS; | |
1790 | _result = (bool )wxBitmap_Ok(_arg0); | |
1791 | ||
1792 | wxPy_END_ALLOW_THREADS; | |
1793 | if (PyErr_Occurred()) return NULL; | |
1794 | } _resultobj = Py_BuildValue("i",_result); | |
1795 | return _resultobj; | |
1796 | } | |
1797 | ||
1798 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1799 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1800 | PyObject * _resultobj; | |
1801 | int _result; | |
1802 | wxBitmap * _arg0; | |
1803 | PyObject * _argo0 = 0; | |
1804 | char *_kwnames[] = { "self", NULL }; | |
1805 | ||
1806 | self = self; | |
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1808 | return NULL; | |
1809 | if (_argo0) { | |
1810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1813 | return NULL; | |
1814 | } | |
1815 | } | |
1816 | { | |
1817 | wxPy_BEGIN_ALLOW_THREADS; | |
1818 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1819 | ||
1820 | wxPy_END_ALLOW_THREADS; | |
1821 | if (PyErr_Occurred()) return NULL; | |
1822 | } _resultobj = Py_BuildValue("i",_result); | |
1823 | return _resultobj; | |
1824 | } | |
1825 | ||
1826 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1827 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1828 | PyObject * _resultobj; | |
1829 | int _result; | |
1830 | wxBitmap * _arg0; | |
1831 | PyObject * _argo0 = 0; | |
1832 | char *_kwnames[] = { "self", NULL }; | |
1833 | ||
1834 | self = self; | |
1835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1836 | return NULL; | |
1837 | if (_argo0) { | |
1838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1841 | return NULL; | |
1842 | } | |
1843 | } | |
1844 | { | |
1845 | wxPy_BEGIN_ALLOW_THREADS; | |
1846 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1847 | ||
1848 | wxPy_END_ALLOW_THREADS; | |
1849 | if (PyErr_Occurred()) return NULL; | |
1850 | } _resultobj = Py_BuildValue("i",_result); | |
1851 | return _resultobj; | |
1852 | } | |
1853 | ||
1854 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1855 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1856 | PyObject * _resultobj; | |
1857 | int _result; | |
1858 | wxBitmap * _arg0; | |
1859 | PyObject * _argo0 = 0; | |
1860 | char *_kwnames[] = { "self", NULL }; | |
1861 | ||
1862 | self = self; | |
1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) | |
1864 | return NULL; | |
1865 | if (_argo0) { | |
1866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1869 | return NULL; | |
1870 | } | |
1871 | } | |
1872 | { | |
1873 | wxPy_BEGIN_ALLOW_THREADS; | |
1874 | _result = (int )wxBitmap_GetDepth(_arg0); | |
1875 | ||
1876 | wxPy_END_ALLOW_THREADS; | |
1877 | if (PyErr_Occurred()) return NULL; | |
1878 | } _resultobj = Py_BuildValue("i",_result); | |
1879 | return _resultobj; | |
1880 | } | |
1881 | ||
1882 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1883 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1884 | PyObject * _resultobj; | |
1885 | wxBitmap * _arg0; | |
1886 | int _arg1; | |
1887 | PyObject * _argo0 = 0; | |
1888 | char *_kwnames[] = { "self","w", NULL }; | |
1889 | ||
1890 | self = self; | |
1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1892 | return NULL; | |
1893 | if (_argo0) { | |
1894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1897 | return NULL; | |
1898 | } | |
1899 | } | |
1900 | { | |
1901 | wxPy_BEGIN_ALLOW_THREADS; | |
1902 | wxBitmap_SetWidth(_arg0,_arg1); | |
1903 | ||
1904 | wxPy_END_ALLOW_THREADS; | |
1905 | if (PyErr_Occurred()) return NULL; | |
1906 | } Py_INCREF(Py_None); | |
1907 | _resultobj = Py_None; | |
1908 | return _resultobj; | |
1909 | } | |
1910 | ||
1911 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1912 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1913 | PyObject * _resultobj; | |
1914 | wxBitmap * _arg0; | |
1915 | int _arg1; | |
1916 | PyObject * _argo0 = 0; | |
1917 | char *_kwnames[] = { "self","h", NULL }; | |
1918 | ||
1919 | self = self; | |
1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) | |
1921 | return NULL; | |
1922 | if (_argo0) { | |
1923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
1926 | return NULL; | |
1927 | } | |
1928 | } | |
1929 | { | |
1930 | wxPy_BEGIN_ALLOW_THREADS; | |
1931 | wxBitmap_SetHeight(_arg0,_arg1); | |
1932 | ||
1933 | wxPy_END_ALLOW_THREADS; | |
1934 | if (PyErr_Occurred()) return NULL; | |
1935 | } Py_INCREF(Py_None); | |
1936 | _resultobj = Py_None; | |
1937 | return _resultobj; | |
1938 | } | |
1939 | ||
1940 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1941 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1942 | PyObject * _resultobj; | |
1943 | wxBitmap * _arg0; | |
1944 | int _arg1; | |
1945 | PyObject * _argo0 = 0; | |
1946 | char *_kwnames[] = { "self","d", NULL }; | |
1947 | ||
1948 | self = self; | |
1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
1950 | return NULL; | |
1951 | if (_argo0) { | |
1952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
1955 | return NULL; | |
1956 | } | |
1957 | } | |
1958 | { | |
1959 | wxPy_BEGIN_ALLOW_THREADS; | |
1960 | wxBitmap_SetDepth(_arg0,_arg1); | |
1961 | ||
1962 | wxPy_END_ALLOW_THREADS; | |
1963 | if (PyErr_Occurred()) return NULL; | |
1964 | } Py_INCREF(Py_None); | |
1965 | _resultobj = Py_None; | |
1966 | return _resultobj; | |
1967 | } | |
1968 | ||
1969 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) | |
1970 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1971 | PyObject * _resultobj; | |
1972 | wxBitmap * _result; | |
1973 | wxBitmap * _arg0; | |
1974 | wxRect * _arg1; | |
1975 | PyObject * _argo0 = 0; | |
1976 | wxRect temp; | |
1977 | PyObject * _obj1 = 0; | |
1978 | char *_kwnames[] = { "self","rect", NULL }; | |
1979 | char _ptemp[128]; | |
1980 | ||
1981 | self = self; | |
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1983 | return NULL; | |
1984 | if (_argo0) { | |
1985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1988 | return NULL; | |
1989 | } | |
1990 | } | |
1991 | { | |
1992 | _arg1 = &temp; | |
1993 | if (! wxRect_helper(_obj1, &_arg1)) | |
1994 | return NULL; | |
1995 | } | |
1996 | { | |
1997 | wxPy_BEGIN_ALLOW_THREADS; | |
1998 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
1999 | ||
2000 | wxPy_END_ALLOW_THREADS; | |
2001 | if (PyErr_Occurred()) return NULL; | |
2002 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
2003 | _resultobj = Py_BuildValue("s",_ptemp); | |
2004 | return _resultobj; | |
2005 | } | |
2006 | ||
2007 | static void *SwigwxMaskTowxObject(void *ptr) { | |
2008 | wxMask *src; | |
2009 | wxObject *dest; | |
2010 | src = (wxMask *) ptr; | |
2011 | dest = (wxObject *) src; | |
2012 | return (void *) dest; | |
2013 | } | |
2014 | ||
2015 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
2016 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2017 | PyObject * _resultobj; | |
2018 | wxMask * _result; | |
2019 | wxBitmap * _arg0; | |
2020 | PyObject * _argo0 = 0; | |
2021 | char *_kwnames[] = { "bitmap", NULL }; | |
2022 | char _ptemp[128]; | |
2023 | ||
2024 | self = self; | |
2025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2026 | return NULL; | |
2027 | if (_argo0) { | |
2028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
2034 | { | |
2035 | wxPy_BEGIN_ALLOW_THREADS; | |
2036 | _result = (wxMask *)new_wxMask(*_arg0); | |
2037 | ||
2038 | wxPy_END_ALLOW_THREADS; | |
2039 | if (PyErr_Occurred()) return NULL; | |
2040 | } if (_result) { | |
2041 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2042 | _resultobj = Py_BuildValue("s",_ptemp); | |
2043 | } else { | |
2044 | Py_INCREF(Py_None); | |
2045 | _resultobj = Py_None; | |
2046 | } | |
2047 | return _resultobj; | |
2048 | } | |
2049 | ||
2050 | static void wxMask_Destroy(wxMask *self) { delete self; } | |
2051 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject * _resultobj; | |
2053 | wxMask * _arg0; | |
2054 | PyObject * _argo0 = 0; | |
2055 | char *_kwnames[] = { "self", NULL }; | |
2056 | ||
2057 | self = self; | |
2058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2059 | return NULL; | |
2060 | if (_argo0) { | |
2061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2064 | return NULL; | |
2065 | } | |
2066 | } | |
2067 | { | |
2068 | wxPy_BEGIN_ALLOW_THREADS; | |
2069 | wxMask_Destroy(_arg0); | |
2070 | ||
2071 | wxPy_END_ALLOW_THREADS; | |
2072 | if (PyErr_Occurred()) return NULL; | |
2073 | } Py_INCREF(Py_None); | |
2074 | _resultobj = Py_None; | |
2075 | return _resultobj; | |
2076 | } | |
2077 | ||
2078 | static void *SwigwxIconTowxGDIObject(void *ptr) { | |
2079 | wxIcon *src; | |
2080 | wxGDIObject *dest; | |
2081 | src = (wxIcon *) ptr; | |
2082 | dest = (wxGDIObject *) src; | |
2083 | return (void *) dest; | |
2084 | } | |
2085 | ||
2086 | static void *SwigwxIconTowxObject(void *ptr) { | |
2087 | wxIcon *src; | |
2088 | wxObject *dest; | |
2089 | src = (wxIcon *) ptr; | |
2090 | dest = (wxObject *) src; | |
2091 | return (void *) dest; | |
2092 | } | |
2093 | ||
2094 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2095 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2096 | PyObject * _resultobj; | |
2097 | wxIcon * _result; | |
2098 | wxString * _arg0; | |
2099 | long _arg1; | |
2100 | int _arg2 = (int ) -1; | |
2101 | int _arg3 = (int ) -1; | |
2102 | PyObject * _obj0 = 0; | |
2103 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; | |
2104 | char _ptemp[128]; | |
2105 | ||
2106 | self = self; | |
2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2108 | return NULL; | |
2109 | { | |
2110 | #if PYTHON_API_VERSION >= 1009 | |
2111 | char* tmpPtr; int tmpSize; | |
2112 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2113 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2114 | return NULL; | |
2115 | } | |
2116 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2117 | return NULL; | |
2118 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2119 | #else | |
2120 | if (!PyString_Check(_obj0)) { | |
2121 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2122 | return NULL; | |
2123 | } | |
2124 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2125 | #endif | |
2126 | } | |
2127 | { | |
2128 | wxPy_BEGIN_ALLOW_THREADS; | |
2129 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); | |
2130 | ||
2131 | wxPy_END_ALLOW_THREADS; | |
2132 | if (PyErr_Occurred()) return NULL; | |
2133 | } if (_result) { | |
2134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2135 | _resultobj = Py_BuildValue("s",_ptemp); | |
2136 | } else { | |
2137 | Py_INCREF(Py_None); | |
2138 | _resultobj = Py_None; | |
2139 | } | |
2140 | { | |
2141 | if (_obj0) | |
2142 | delete _arg0; | |
2143 | } | |
2144 | return _resultobj; | |
2145 | } | |
2146 | ||
2147 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
2148 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2149 | PyObject * _resultobj; | |
2150 | wxIcon * _arg0; | |
2151 | PyObject * _argo0 = 0; | |
2152 | char *_kwnames[] = { "self", NULL }; | |
2153 | ||
2154 | self = self; | |
2155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) | |
2156 | return NULL; | |
2157 | if (_argo0) { | |
2158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
2161 | return NULL; | |
2162 | } | |
2163 | } | |
2164 | { | |
2165 | wxPy_BEGIN_ALLOW_THREADS; | |
2166 | delete_wxIcon(_arg0); | |
2167 | ||
2168 | wxPy_END_ALLOW_THREADS; | |
2169 | if (PyErr_Occurred()) return NULL; | |
2170 | } Py_INCREF(Py_None); | |
2171 | _resultobj = Py_None; | |
2172 | return _resultobj; | |
2173 | } | |
2174 | ||
2175 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2176 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2177 | PyObject * _resultobj; | |
2178 | bool _result; | |
2179 | wxIcon * _arg0; | |
2180 | wxString * _arg1; | |
2181 | long _arg2; | |
2182 | PyObject * _argo0 = 0; | |
2183 | PyObject * _obj1 = 0; | |
2184 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2185 | ||
2186 | self = self; | |
2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2188 | return NULL; | |
2189 | if (_argo0) { | |
2190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2193 | return NULL; | |
2194 | } | |
2195 | } | |
2196 | { | |
2197 | #if PYTHON_API_VERSION >= 1009 | |
2198 | char* tmpPtr; int tmpSize; | |
2199 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2200 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2201 | return NULL; | |
2202 | } | |
2203 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2204 | return NULL; | |
2205 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2206 | #else | |
2207 | if (!PyString_Check(_obj1)) { | |
2208 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2209 | return NULL; | |
2210 | } | |
2211 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2212 | #endif | |
2213 | } | |
2214 | { | |
2215 | wxPy_BEGIN_ALLOW_THREADS; | |
2216 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
2217 | ||
2218 | wxPy_END_ALLOW_THREADS; | |
2219 | if (PyErr_Occurred()) return NULL; | |
2220 | } _resultobj = Py_BuildValue("i",_result); | |
2221 | { | |
2222 | if (_obj1) | |
2223 | delete _arg1; | |
2224 | } | |
2225 | return _resultobj; | |
2226 | } | |
2227 | ||
2228 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2229 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject * _resultobj; | |
2231 | bool _result; | |
2232 | wxIcon * _arg0; | |
2233 | PyObject * _argo0 = 0; | |
2234 | char *_kwnames[] = { "self", NULL }; | |
2235 | ||
2236 | self = self; | |
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2238 | return NULL; | |
2239 | if (_argo0) { | |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
2246 | { | |
2247 | wxPy_BEGIN_ALLOW_THREADS; | |
2248 | _result = (bool )wxIcon_Ok(_arg0); | |
2249 | ||
2250 | wxPy_END_ALLOW_THREADS; | |
2251 | if (PyErr_Occurred()) return NULL; | |
2252 | } _resultobj = Py_BuildValue("i",_result); | |
2253 | return _resultobj; | |
2254 | } | |
2255 | ||
2256 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2257 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2258 | PyObject * _resultobj; | |
2259 | int _result; | |
2260 | wxIcon * _arg0; | |
2261 | PyObject * _argo0 = 0; | |
2262 | char *_kwnames[] = { "self", NULL }; | |
2263 | ||
2264 | self = self; | |
2265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2266 | return NULL; | |
2267 | if (_argo0) { | |
2268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2271 | return NULL; | |
2272 | } | |
2273 | } | |
2274 | { | |
2275 | wxPy_BEGIN_ALLOW_THREADS; | |
2276 | _result = (int )wxIcon_GetWidth(_arg0); | |
2277 | ||
2278 | wxPy_END_ALLOW_THREADS; | |
2279 | if (PyErr_Occurred()) return NULL; | |
2280 | } _resultobj = Py_BuildValue("i",_result); | |
2281 | return _resultobj; | |
2282 | } | |
2283 | ||
2284 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2285 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2286 | PyObject * _resultobj; | |
2287 | int _result; | |
2288 | wxIcon * _arg0; | |
2289 | PyObject * _argo0 = 0; | |
2290 | char *_kwnames[] = { "self", NULL }; | |
2291 | ||
2292 | self = self; | |
2293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2294 | return NULL; | |
2295 | if (_argo0) { | |
2296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2299 | return NULL; | |
2300 | } | |
2301 | } | |
2302 | { | |
2303 | wxPy_BEGIN_ALLOW_THREADS; | |
2304 | _result = (int )wxIcon_GetHeight(_arg0); | |
2305 | ||
2306 | wxPy_END_ALLOW_THREADS; | |
2307 | if (PyErr_Occurred()) return NULL; | |
2308 | } _resultobj = Py_BuildValue("i",_result); | |
2309 | return _resultobj; | |
2310 | } | |
2311 | ||
2312 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2313 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2314 | PyObject * _resultobj; | |
2315 | int _result; | |
2316 | wxIcon * _arg0; | |
2317 | PyObject * _argo0 = 0; | |
2318 | char *_kwnames[] = { "self", NULL }; | |
2319 | ||
2320 | self = self; | |
2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2322 | return NULL; | |
2323 | if (_argo0) { | |
2324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2327 | return NULL; | |
2328 | } | |
2329 | } | |
2330 | { | |
2331 | wxPy_BEGIN_ALLOW_THREADS; | |
2332 | _result = (int )wxIcon_GetDepth(_arg0); | |
2333 | ||
2334 | wxPy_END_ALLOW_THREADS; | |
2335 | if (PyErr_Occurred()) return NULL; | |
2336 | } _resultobj = Py_BuildValue("i",_result); | |
2337 | return _resultobj; | |
2338 | } | |
2339 | ||
2340 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2341 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject * _resultobj; | |
2343 | wxIcon * _arg0; | |
2344 | int _arg1; | |
2345 | PyObject * _argo0 = 0; | |
2346 | char *_kwnames[] = { "self","w", NULL }; | |
2347 | ||
2348 | self = self; | |
2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2350 | return NULL; | |
2351 | if (_argo0) { | |
2352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2355 | return NULL; | |
2356 | } | |
2357 | } | |
2358 | { | |
2359 | wxPy_BEGIN_ALLOW_THREADS; | |
2360 | wxIcon_SetWidth(_arg0,_arg1); | |
2361 | ||
2362 | wxPy_END_ALLOW_THREADS; | |
2363 | if (PyErr_Occurred()) return NULL; | |
2364 | } Py_INCREF(Py_None); | |
2365 | _resultobj = Py_None; | |
2366 | return _resultobj; | |
2367 | } | |
2368 | ||
2369 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2370 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2371 | PyObject * _resultobj; | |
2372 | wxIcon * _arg0; | |
2373 | int _arg1; | |
2374 | PyObject * _argo0 = 0; | |
2375 | char *_kwnames[] = { "self","h", NULL }; | |
2376 | ||
2377 | self = self; | |
2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2379 | return NULL; | |
2380 | if (_argo0) { | |
2381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2384 | return NULL; | |
2385 | } | |
2386 | } | |
2387 | { | |
2388 | wxPy_BEGIN_ALLOW_THREADS; | |
2389 | wxIcon_SetHeight(_arg0,_arg1); | |
2390 | ||
2391 | wxPy_END_ALLOW_THREADS; | |
2392 | if (PyErr_Occurred()) return NULL; | |
2393 | } Py_INCREF(Py_None); | |
2394 | _resultobj = Py_None; | |
2395 | return _resultobj; | |
2396 | } | |
2397 | ||
2398 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2399 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2400 | PyObject * _resultobj; | |
2401 | wxIcon * _arg0; | |
2402 | int _arg1; | |
2403 | PyObject * _argo0 = 0; | |
2404 | char *_kwnames[] = { "self","d", NULL }; | |
2405 | ||
2406 | self = self; | |
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2408 | return NULL; | |
2409 | if (_argo0) { | |
2410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2413 | return NULL; | |
2414 | } | |
2415 | } | |
2416 | { | |
2417 | wxPy_BEGIN_ALLOW_THREADS; | |
2418 | wxIcon_SetDepth(_arg0,_arg1); | |
2419 | ||
2420 | wxPy_END_ALLOW_THREADS; | |
2421 | if (PyErr_Occurred()) return NULL; | |
2422 | } Py_INCREF(Py_None); | |
2423 | _resultobj = Py_None; | |
2424 | return _resultobj; | |
2425 | } | |
2426 | ||
2427 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) | |
2428 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2429 | PyObject * _resultobj; | |
2430 | wxIcon * _arg0; | |
2431 | wxBitmap * _arg1; | |
2432 | PyObject * _argo0 = 0; | |
2433 | PyObject * _argo1 = 0; | |
2434 | char *_kwnames[] = { "self","bmp", NULL }; | |
2435 | ||
2436 | self = self; | |
2437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2438 | return NULL; | |
2439 | if (_argo0) { | |
2440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2443 | return NULL; | |
2444 | } | |
2445 | } | |
2446 | if (_argo1) { | |
2447 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2448 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2450 | return NULL; | |
2451 | } | |
2452 | } | |
2453 | { | |
2454 | wxPy_BEGIN_ALLOW_THREADS; | |
2455 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2456 | ||
2457 | wxPy_END_ALLOW_THREADS; | |
2458 | if (PyErr_Occurred()) return NULL; | |
2459 | } Py_INCREF(Py_None); | |
2460 | _resultobj = Py_None; | |
2461 | return _resultobj; | |
2462 | } | |
2463 | ||
2464 | static void *SwigwxCursorTowxGDIObject(void *ptr) { | |
2465 | wxCursor *src; | |
2466 | wxGDIObject *dest; | |
2467 | src = (wxCursor *) ptr; | |
2468 | dest = (wxGDIObject *) src; | |
2469 | return (void *) dest; | |
2470 | } | |
2471 | ||
2472 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2473 | wxCursor *src; | |
2474 | wxObject *dest; | |
2475 | src = (wxCursor *) ptr; | |
2476 | dest = (wxObject *) src; | |
2477 | return (void *) dest; | |
2478 | } | |
2479 | ||
2480 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2481 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2482 | PyObject * _resultobj; | |
2483 | wxCursor * _arg0; | |
2484 | PyObject * _argo0 = 0; | |
2485 | char *_kwnames[] = { "self", NULL }; | |
2486 | ||
2487 | self = self; | |
2488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2489 | return NULL; | |
2490 | if (_argo0) { | |
2491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2494 | return NULL; | |
2495 | } | |
2496 | } | |
2497 | { | |
2498 | wxPy_BEGIN_ALLOW_THREADS; | |
2499 | delete_wxCursor(_arg0); | |
2500 | ||
2501 | wxPy_END_ALLOW_THREADS; | |
2502 | if (PyErr_Occurred()) return NULL; | |
2503 | } Py_INCREF(Py_None); | |
2504 | _resultobj = Py_None; | |
2505 | return _resultobj; | |
2506 | } | |
2507 | ||
2508 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2509 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2510 | PyObject * _resultobj; | |
2511 | bool _result; | |
2512 | wxCursor * _arg0; | |
2513 | PyObject * _argo0 = 0; | |
2514 | char *_kwnames[] = { "self", NULL }; | |
2515 | ||
2516 | self = self; | |
2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2518 | return NULL; | |
2519 | if (_argo0) { | |
2520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2523 | return NULL; | |
2524 | } | |
2525 | } | |
2526 | { | |
2527 | wxPy_BEGIN_ALLOW_THREADS; | |
2528 | _result = (bool )wxCursor_Ok(_arg0); | |
2529 | ||
2530 | wxPy_END_ALLOW_THREADS; | |
2531 | if (PyErr_Occurred()) return NULL; | |
2532 | } _resultobj = Py_BuildValue("i",_result); | |
2533 | return _resultobj; | |
2534 | } | |
2535 | ||
2536 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
2537 | wxFont *src; | |
2538 | wxGDIObject *dest; | |
2539 | src = (wxFont *) ptr; | |
2540 | dest = (wxGDIObject *) src; | |
2541 | return (void *) dest; | |
2542 | } | |
2543 | ||
2544 | static void *SwigwxFontTowxObject(void *ptr) { | |
2545 | wxFont *src; | |
2546 | wxObject *dest; | |
2547 | src = (wxFont *) ptr; | |
2548 | dest = (wxObject *) src; | |
2549 | return (void *) dest; | |
2550 | } | |
2551 | ||
2552 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2553 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2554 | PyObject * _resultobj; | |
2555 | wxFont * _result; | |
2556 | int _arg0; | |
2557 | int _arg1; | |
2558 | int _arg2; | |
2559 | int _arg3; | |
2560 | int _arg4 = (int ) FALSE; | |
2561 | char * _arg5 = (char *) ""; | |
2562 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
2563 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
2564 | char _ptemp[128]; | |
2565 | ||
2566 | self = self; | |
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
2568 | return NULL; | |
2569 | { | |
2570 | wxPy_BEGIN_ALLOW_THREADS; | |
2571 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2572 | ||
2573 | wxPy_END_ALLOW_THREADS; | |
2574 | if (PyErr_Occurred()) return NULL; | |
2575 | } if (_result) { | |
2576 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
2577 | _resultobj = Py_BuildValue("s",_ptemp); | |
2578 | } else { | |
2579 | Py_INCREF(Py_None); | |
2580 | _resultobj = Py_None; | |
2581 | } | |
2582 | return _resultobj; | |
2583 | } | |
2584 | ||
2585 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
2586 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2587 | PyObject * _resultobj; | |
2588 | wxFont * _arg0; | |
2589 | PyObject * _argo0 = 0; | |
2590 | char *_kwnames[] = { "self", NULL }; | |
2591 | ||
2592 | self = self; | |
2593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
2594 | return NULL; | |
2595 | if (_argo0) { | |
2596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
2599 | return NULL; | |
2600 | } | |
2601 | } | |
2602 | { | |
2603 | wxPy_BEGIN_ALLOW_THREADS; | |
2604 | delete_wxFont(_arg0); | |
2605 | ||
2606 | wxPy_END_ALLOW_THREADS; | |
2607 | if (PyErr_Occurred()) return NULL; | |
2608 | } Py_INCREF(Py_None); | |
2609 | _resultobj = Py_None; | |
2610 | return _resultobj; | |
2611 | } | |
2612 | ||
2613 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
2614 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2615 | PyObject * _resultobj; | |
2616 | bool _result; | |
2617 | wxFont * _arg0; | |
2618 | PyObject * _argo0 = 0; | |
2619 | char *_kwnames[] = { "self", NULL }; | |
2620 | ||
2621 | self = self; | |
2622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
2623 | return NULL; | |
2624 | if (_argo0) { | |
2625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
2628 | return NULL; | |
2629 | } | |
2630 | } | |
2631 | { | |
2632 | wxPy_BEGIN_ALLOW_THREADS; | |
2633 | _result = (bool )wxFont_Ok(_arg0); | |
2634 | ||
2635 | wxPy_END_ALLOW_THREADS; | |
2636 | if (PyErr_Occurred()) return NULL; | |
2637 | } _resultobj = Py_BuildValue("i",_result); | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
2641 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
2642 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2643 | PyObject * _resultobj; | |
2644 | wxString * _result; | |
2645 | wxFont * _arg0; | |
2646 | PyObject * _argo0 = 0; | |
2647 | char *_kwnames[] = { "self", NULL }; | |
2648 | ||
2649 | self = self; | |
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
2651 | return NULL; | |
2652 | if (_argo0) { | |
2653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
2656 | return NULL; | |
2657 | } | |
2658 | } | |
2659 | { | |
2660 | wxPy_BEGIN_ALLOW_THREADS; | |
2661 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
2662 | ||
2663 | wxPy_END_ALLOW_THREADS; | |
2664 | if (PyErr_Occurred()) return NULL; | |
2665 | }{ | |
2666 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2667 | } | |
2668 | { | |
2669 | delete _result; | |
2670 | } | |
2671 | return _resultobj; | |
2672 | } | |
2673 | ||
2674 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
2675 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject * _resultobj; | |
2677 | int _result; | |
2678 | wxFont * _arg0; | |
2679 | PyObject * _argo0 = 0; | |
2680 | char *_kwnames[] = { "self", NULL }; | |
2681 | ||
2682 | self = self; | |
2683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
2684 | return NULL; | |
2685 | if (_argo0) { | |
2686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
2689 | return NULL; | |
2690 | } | |
2691 | } | |
2692 | { | |
2693 | wxPy_BEGIN_ALLOW_THREADS; | |
2694 | _result = (int )wxFont_GetFamily(_arg0); | |
2695 | ||
2696 | wxPy_END_ALLOW_THREADS; | |
2697 | if (PyErr_Occurred()) return NULL; | |
2698 | } _resultobj = Py_BuildValue("i",_result); | |
2699 | return _resultobj; | |
2700 | } | |
2701 | ||
2702 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
2703 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2704 | PyObject * _resultobj; | |
2705 | int _result; | |
2706 | wxFont * _arg0; | |
2707 | PyObject * _argo0 = 0; | |
2708 | char *_kwnames[] = { "self", NULL }; | |
2709 | ||
2710 | self = self; | |
2711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
2712 | return NULL; | |
2713 | if (_argo0) { | |
2714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
2717 | return NULL; | |
2718 | } | |
2719 | } | |
2720 | { | |
2721 | wxPy_BEGIN_ALLOW_THREADS; | |
2722 | _result = (int )wxFont_GetPointSize(_arg0); | |
2723 | ||
2724 | wxPy_END_ALLOW_THREADS; | |
2725 | if (PyErr_Occurred()) return NULL; | |
2726 | } _resultobj = Py_BuildValue("i",_result); | |
2727 | return _resultobj; | |
2728 | } | |
2729 | ||
2730 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
2731 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2732 | PyObject * _resultobj; | |
2733 | int _result; | |
2734 | wxFont * _arg0; | |
2735 | PyObject * _argo0 = 0; | |
2736 | char *_kwnames[] = { "self", NULL }; | |
2737 | ||
2738 | self = self; | |
2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
2740 | return NULL; | |
2741 | if (_argo0) { | |
2742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
2745 | return NULL; | |
2746 | } | |
2747 | } | |
2748 | { | |
2749 | wxPy_BEGIN_ALLOW_THREADS; | |
2750 | _result = (int )wxFont_GetStyle(_arg0); | |
2751 | ||
2752 | wxPy_END_ALLOW_THREADS; | |
2753 | if (PyErr_Occurred()) return NULL; | |
2754 | } _resultobj = Py_BuildValue("i",_result); | |
2755 | return _resultobj; | |
2756 | } | |
2757 | ||
2758 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
2759 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2760 | PyObject * _resultobj; | |
2761 | bool _result; | |
2762 | wxFont * _arg0; | |
2763 | PyObject * _argo0 = 0; | |
2764 | char *_kwnames[] = { "self", NULL }; | |
2765 | ||
2766 | self = self; | |
2767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
2768 | return NULL; | |
2769 | if (_argo0) { | |
2770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
2773 | return NULL; | |
2774 | } | |
2775 | } | |
2776 | { | |
2777 | wxPy_BEGIN_ALLOW_THREADS; | |
2778 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
2779 | ||
2780 | wxPy_END_ALLOW_THREADS; | |
2781 | if (PyErr_Occurred()) return NULL; | |
2782 | } _resultobj = Py_BuildValue("i",_result); | |
2783 | return _resultobj; | |
2784 | } | |
2785 | ||
2786 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
2787 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2788 | PyObject * _resultobj; | |
2789 | int _result; | |
2790 | wxFont * _arg0; | |
2791 | PyObject * _argo0 = 0; | |
2792 | char *_kwnames[] = { "self", NULL }; | |
2793 | ||
2794 | self = self; | |
2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
2796 | return NULL; | |
2797 | if (_argo0) { | |
2798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
2801 | return NULL; | |
2802 | } | |
2803 | } | |
2804 | { | |
2805 | wxPy_BEGIN_ALLOW_THREADS; | |
2806 | _result = (int )wxFont_GetWeight(_arg0); | |
2807 | ||
2808 | wxPy_END_ALLOW_THREADS; | |
2809 | if (PyErr_Occurred()) return NULL; | |
2810 | } _resultobj = Py_BuildValue("i",_result); | |
2811 | return _resultobj; | |
2812 | } | |
2813 | ||
2814 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
2815 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2816 | PyObject * _resultobj; | |
2817 | wxFontEncoding _result; | |
2818 | wxFont * _arg0; | |
2819 | PyObject * _argo0 = 0; | |
2820 | char *_kwnames[] = { "self", NULL }; | |
2821 | ||
2822 | self = self; | |
2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
2824 | return NULL; | |
2825 | if (_argo0) { | |
2826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
2829 | return NULL; | |
2830 | } | |
2831 | } | |
2832 | { | |
2833 | wxPy_BEGIN_ALLOW_THREADS; | |
2834 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
2835 | ||
2836 | wxPy_END_ALLOW_THREADS; | |
2837 | if (PyErr_Occurred()) return NULL; | |
2838 | } _resultobj = Py_BuildValue("i",_result); | |
2839 | return _resultobj; | |
2840 | } | |
2841 | ||
2842 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
2843 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2844 | PyObject * _resultobj; | |
2845 | wxFont * _arg0; | |
2846 | wxString * _arg1; | |
2847 | PyObject * _argo0 = 0; | |
2848 | PyObject * _obj1 = 0; | |
2849 | char *_kwnames[] = { "self","faceName", NULL }; | |
2850 | ||
2851 | self = self; | |
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
2853 | return NULL; | |
2854 | if (_argo0) { | |
2855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
2858 | return NULL; | |
2859 | } | |
2860 | } | |
2861 | { | |
2862 | #if PYTHON_API_VERSION >= 1009 | |
2863 | char* tmpPtr; int tmpSize; | |
2864 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2865 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2866 | return NULL; | |
2867 | } | |
2868 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2869 | return NULL; | |
2870 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2871 | #else | |
2872 | if (!PyString_Check(_obj1)) { | |
2873 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2874 | return NULL; | |
2875 | } | |
2876 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2877 | #endif | |
2878 | } | |
2879 | { | |
2880 | wxPy_BEGIN_ALLOW_THREADS; | |
2881 | wxFont_SetFaceName(_arg0,*_arg1); | |
2882 | ||
2883 | wxPy_END_ALLOW_THREADS; | |
2884 | if (PyErr_Occurred()) return NULL; | |
2885 | } Py_INCREF(Py_None); | |
2886 | _resultobj = Py_None; | |
2887 | { | |
2888 | if (_obj1) | |
2889 | delete _arg1; | |
2890 | } | |
2891 | return _resultobj; | |
2892 | } | |
2893 | ||
2894 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
2895 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2896 | PyObject * _resultobj; | |
2897 | wxFont * _arg0; | |
2898 | int _arg1; | |
2899 | PyObject * _argo0 = 0; | |
2900 | char *_kwnames[] = { "self","family", NULL }; | |
2901 | ||
2902 | self = self; | |
2903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) | |
2904 | return NULL; | |
2905 | if (_argo0) { | |
2906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); | |
2909 | return NULL; | |
2910 | } | |
2911 | } | |
2912 | { | |
2913 | wxPy_BEGIN_ALLOW_THREADS; | |
2914 | wxFont_SetFamily(_arg0,_arg1); | |
2915 | ||
2916 | wxPy_END_ALLOW_THREADS; | |
2917 | if (PyErr_Occurred()) return NULL; | |
2918 | } Py_INCREF(Py_None); | |
2919 | _resultobj = Py_None; | |
2920 | return _resultobj; | |
2921 | } | |
2922 | ||
2923 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
2924 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2925 | PyObject * _resultobj; | |
2926 | wxFont * _arg0; | |
2927 | int _arg1; | |
2928 | PyObject * _argo0 = 0; | |
2929 | char *_kwnames[] = { "self","pointSize", NULL }; | |
2930 | ||
2931 | self = self; | |
2932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
2933 | return NULL; | |
2934 | if (_argo0) { | |
2935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
2938 | return NULL; | |
2939 | } | |
2940 | } | |
2941 | { | |
2942 | wxPy_BEGIN_ALLOW_THREADS; | |
2943 | wxFont_SetPointSize(_arg0,_arg1); | |
2944 | ||
2945 | wxPy_END_ALLOW_THREADS; | |
2946 | if (PyErr_Occurred()) return NULL; | |
2947 | } Py_INCREF(Py_None); | |
2948 | _resultobj = Py_None; | |
2949 | return _resultobj; | |
2950 | } | |
2951 | ||
2952 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
2953 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject * _resultobj; | |
2955 | wxFont * _arg0; | |
2956 | int _arg1; | |
2957 | PyObject * _argo0 = 0; | |
2958 | char *_kwnames[] = { "self","style", NULL }; | |
2959 | ||
2960 | self = self; | |
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) | |
2962 | return NULL; | |
2963 | if (_argo0) { | |
2964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); | |
2967 | return NULL; | |
2968 | } | |
2969 | } | |
2970 | { | |
2971 | wxPy_BEGIN_ALLOW_THREADS; | |
2972 | wxFont_SetStyle(_arg0,_arg1); | |
2973 | ||
2974 | wxPy_END_ALLOW_THREADS; | |
2975 | if (PyErr_Occurred()) return NULL; | |
2976 | } Py_INCREF(Py_None); | |
2977 | _resultobj = Py_None; | |
2978 | return _resultobj; | |
2979 | } | |
2980 | ||
2981 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
2982 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2983 | PyObject * _resultobj; | |
2984 | wxFont * _arg0; | |
2985 | bool _arg1; | |
2986 | PyObject * _argo0 = 0; | |
2987 | int tempbool1; | |
2988 | char *_kwnames[] = { "self","underlined", NULL }; | |
2989 | ||
2990 | self = self; | |
2991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
2992 | return NULL; | |
2993 | if (_argo0) { | |
2994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); | |
2997 | return NULL; | |
2998 | } | |
2999 | } | |
3000 | _arg1 = (bool ) tempbool1; | |
3001 | { | |
3002 | wxPy_BEGIN_ALLOW_THREADS; | |
3003 | wxFont_SetUnderlined(_arg0,_arg1); | |
3004 | ||
3005 | wxPy_END_ALLOW_THREADS; | |
3006 | if (PyErr_Occurred()) return NULL; | |
3007 | } Py_INCREF(Py_None); | |
3008 | _resultobj = Py_None; | |
3009 | return _resultobj; | |
3010 | } | |
3011 | ||
3012 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
3013 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3014 | PyObject * _resultobj; | |
3015 | wxFont * _arg0; | |
3016 | int _arg1; | |
3017 | PyObject * _argo0 = 0; | |
3018 | char *_kwnames[] = { "self","weight", NULL }; | |
3019 | ||
3020 | self = self; | |
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) | |
3022 | return NULL; | |
3023 | if (_argo0) { | |
3024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); | |
3027 | return NULL; | |
3028 | } | |
3029 | } | |
3030 | { | |
3031 | wxPy_BEGIN_ALLOW_THREADS; | |
3032 | wxFont_SetWeight(_arg0,_arg1); | |
3033 | ||
3034 | wxPy_END_ALLOW_THREADS; | |
3035 | if (PyErr_Occurred()) return NULL; | |
3036 | } Py_INCREF(Py_None); | |
3037 | _resultobj = Py_None; | |
3038 | return _resultobj; | |
3039 | } | |
3040 | ||
3041 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
3042 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3043 | PyObject * _resultobj; | |
3044 | wxFont * _arg0; | |
3045 | wxFontEncoding _arg1; | |
3046 | PyObject * _argo0 = 0; | |
3047 | char *_kwnames[] = { "self","encoding", NULL }; | |
3048 | ||
3049 | self = self; | |
3050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3051 | return NULL; | |
3052 | if (_argo0) { | |
3053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
3056 | return NULL; | |
3057 | } | |
3058 | } | |
3059 | { | |
3060 | wxPy_BEGIN_ALLOW_THREADS; | |
3061 | wxFont_SetEncoding(_arg0,_arg1); | |
3062 | ||
3063 | wxPy_END_ALLOW_THREADS; | |
3064 | if (PyErr_Occurred()) return NULL; | |
3065 | } Py_INCREF(Py_None); | |
3066 | _resultobj = Py_None; | |
3067 | return _resultobj; | |
3068 | } | |
3069 | ||
3070 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
3071 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject * _resultobj; | |
3073 | wxString * _result; | |
3074 | wxFont * _arg0; | |
3075 | PyObject * _argo0 = 0; | |
3076 | char *_kwnames[] = { "self", NULL }; | |
3077 | ||
3078 | self = self; | |
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
3080 | return NULL; | |
3081 | if (_argo0) { | |
3082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
3085 | return NULL; | |
3086 | } | |
3087 | } | |
3088 | { | |
3089 | wxPy_BEGIN_ALLOW_THREADS; | |
3090 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
3091 | ||
3092 | wxPy_END_ALLOW_THREADS; | |
3093 | if (PyErr_Occurred()) return NULL; | |
3094 | }{ | |
3095 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3096 | } | |
3097 | { | |
3098 | delete _result; | |
3099 | } | |
3100 | return _resultobj; | |
3101 | } | |
3102 | ||
3103 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
3104 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3105 | PyObject * _resultobj; | |
3106 | wxString * _result; | |
3107 | wxFont * _arg0; | |
3108 | PyObject * _argo0 = 0; | |
3109 | char *_kwnames[] = { "self", NULL }; | |
3110 | ||
3111 | self = self; | |
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
3113 | return NULL; | |
3114 | if (_argo0) { | |
3115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
3118 | return NULL; | |
3119 | } | |
3120 | } | |
3121 | { | |
3122 | wxPy_BEGIN_ALLOW_THREADS; | |
3123 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
3124 | ||
3125 | wxPy_END_ALLOW_THREADS; | |
3126 | if (PyErr_Occurred()) return NULL; | |
3127 | }{ | |
3128 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3129 | } | |
3130 | { | |
3131 | delete _result; | |
3132 | } | |
3133 | return _resultobj; | |
3134 | } | |
3135 | ||
3136 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
3137 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject * _resultobj; | |
3139 | wxString * _result; | |
3140 | wxFont * _arg0; | |
3141 | PyObject * _argo0 = 0; | |
3142 | char *_kwnames[] = { "self", NULL }; | |
3143 | ||
3144 | self = self; | |
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
3146 | return NULL; | |
3147 | if (_argo0) { | |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
3151 | return NULL; | |
3152 | } | |
3153 | } | |
3154 | { | |
3155 | wxPy_BEGIN_ALLOW_THREADS; | |
3156 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
3157 | ||
3158 | wxPy_END_ALLOW_THREADS; | |
3159 | if (PyErr_Occurred()) return NULL; | |
3160 | }{ | |
3161 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3162 | } | |
3163 | { | |
3164 | delete _result; | |
3165 | } | |
3166 | return _resultobj; | |
3167 | } | |
3168 | ||
3169 | static void *SwigwxFontListTowxObject(void *ptr) { | |
3170 | wxFontList *src; | |
3171 | wxObject *dest; | |
3172 | src = (wxFontList *) ptr; | |
3173 | dest = (wxObject *) src; | |
3174 | return (void *) dest; | |
3175 | } | |
3176 | ||
3177 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) | |
3178 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3179 | PyObject * _resultobj; | |
3180 | wxFontList * _arg0; | |
3181 | wxFont * _arg1; | |
3182 | PyObject * _argo0 = 0; | |
3183 | PyObject * _argo1 = 0; | |
3184 | char *_kwnames[] = { "self","font", NULL }; | |
3185 | ||
3186 | self = self; | |
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
3188 | return NULL; | |
3189 | if (_argo0) { | |
3190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
3193 | return NULL; | |
3194 | } | |
3195 | } | |
3196 | if (_argo1) { | |
3197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
3200 | return NULL; | |
3201 | } | |
3202 | } | |
3203 | { | |
3204 | wxPy_BEGIN_ALLOW_THREADS; | |
3205 | wxFontList_AddFont(_arg0,_arg1); | |
3206 | ||
3207 | wxPy_END_ALLOW_THREADS; | |
3208 | if (PyErr_Occurred()) return NULL; | |
3209 | } Py_INCREF(Py_None); | |
3210 | _resultobj = Py_None; | |
3211 | return _resultobj; | |
3212 | } | |
3213 | ||
3214 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3215 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3216 | PyObject * _resultobj; | |
3217 | wxFont * _result; | |
3218 | wxFontList * _arg0; | |
3219 | int _arg1; | |
3220 | int _arg2; | |
3221 | int _arg3; | |
3222 | int _arg4; | |
3223 | bool _arg5 = (bool ) FALSE; | |
3224 | char * _arg6 = (char *) NULL; | |
3225 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3226 | PyObject * _argo0 = 0; | |
3227 | int tempbool5 = (int) FALSE; | |
3228 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
3229 | char _ptemp[128]; | |
3230 | ||
3231 | self = self; | |
3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
3233 | return NULL; | |
3234 | if (_argo0) { | |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
3238 | return NULL; | |
3239 | } | |
3240 | } | |
3241 | _arg5 = (bool ) tempbool5; | |
3242 | { | |
3243 | wxPy_BEGIN_ALLOW_THREADS; | |
3244 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
3245 | ||
3246 | wxPy_END_ALLOW_THREADS; | |
3247 | if (PyErr_Occurred()) return NULL; | |
3248 | } if (_result) { | |
3249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3250 | _resultobj = Py_BuildValue("s",_ptemp); | |
3251 | } else { | |
3252 | Py_INCREF(Py_None); | |
3253 | _resultobj = Py_None; | |
3254 | } | |
3255 | return _resultobj; | |
3256 | } | |
3257 | ||
3258 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
3259 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3260 | PyObject * _resultobj; | |
3261 | wxFontList * _arg0; | |
3262 | wxFont * _arg1; | |
3263 | PyObject * _argo0 = 0; | |
3264 | PyObject * _argo1 = 0; | |
3265 | char *_kwnames[] = { "self","font", NULL }; | |
3266 | ||
3267 | self = self; | |
3268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
3269 | return NULL; | |
3270 | if (_argo0) { | |
3271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
3274 | return NULL; | |
3275 | } | |
3276 | } | |
3277 | if (_argo1) { | |
3278 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3279 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
3281 | return NULL; | |
3282 | } | |
3283 | } | |
3284 | { | |
3285 | wxPy_BEGIN_ALLOW_THREADS; | |
3286 | wxFontList_RemoveFont(_arg0,_arg1); | |
3287 | ||
3288 | wxPy_END_ALLOW_THREADS; | |
3289 | if (PyErr_Occurred()) return NULL; | |
3290 | } Py_INCREF(Py_None); | |
3291 | _resultobj = Py_None; | |
3292 | return _resultobj; | |
3293 | } | |
3294 | ||
3295 | static void *SwigwxColourTowxObject(void *ptr) { | |
3296 | wxColour *src; | |
3297 | wxObject *dest; | |
3298 | src = (wxColour *) ptr; | |
3299 | dest = (wxObject *) src; | |
3300 | return (void *) dest; | |
3301 | } | |
3302 | ||
3303 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) | |
3304 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject * _resultobj; | |
3306 | wxColour * _result; | |
3307 | unsigned char _arg0 = (unsigned char ) 0; | |
3308 | unsigned char _arg1 = (unsigned char ) 0; | |
3309 | unsigned char _arg2 = (unsigned char ) 0; | |
3310 | char *_kwnames[] = { "red","green","blue", NULL }; | |
3311 | char _ptemp[128]; | |
3312 | ||
3313 | self = self; | |
3314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) | |
3315 | return NULL; | |
3316 | { | |
3317 | wxPy_BEGIN_ALLOW_THREADS; | |
3318 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
3319 | ||
3320 | wxPy_END_ALLOW_THREADS; | |
3321 | if (PyErr_Occurred()) return NULL; | |
3322 | } if (_result) { | |
3323 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3324 | _resultobj = Py_BuildValue("s",_ptemp); | |
3325 | } else { | |
3326 | Py_INCREF(Py_None); | |
3327 | _resultobj = Py_None; | |
3328 | } | |
3329 | return _resultobj; | |
3330 | } | |
3331 | ||
3332 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
3333 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3334 | PyObject * _resultobj; | |
3335 | wxColour * _arg0; | |
3336 | wxColour temp; | |
3337 | PyObject * _obj0 = 0; | |
3338 | char *_kwnames[] = { "self", NULL }; | |
3339 | ||
3340 | self = self; | |
3341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) | |
3342 | return NULL; | |
3343 | { | |
3344 | _arg0 = &temp; | |
3345 | if (! wxColour_helper(_obj0, &_arg0)) | |
3346 | return NULL; | |
3347 | } | |
3348 | { | |
3349 | wxPy_BEGIN_ALLOW_THREADS; | |
3350 | delete_wxColour(_arg0); | |
3351 | ||
3352 | wxPy_END_ALLOW_THREADS; | |
3353 | if (PyErr_Occurred()) return NULL; | |
3354 | } Py_INCREF(Py_None); | |
3355 | _resultobj = Py_None; | |
3356 | return _resultobj; | |
3357 | } | |
3358 | ||
3359 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
3360 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3361 | PyObject * _resultobj; | |
3362 | unsigned char _result; | |
3363 | wxColour * _arg0; | |
3364 | wxColour temp; | |
3365 | PyObject * _obj0 = 0; | |
3366 | char *_kwnames[] = { "self", NULL }; | |
3367 | ||
3368 | self = self; | |
3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) | |
3370 | return NULL; | |
3371 | { | |
3372 | _arg0 = &temp; | |
3373 | if (! wxColour_helper(_obj0, &_arg0)) | |
3374 | return NULL; | |
3375 | } | |
3376 | { | |
3377 | wxPy_BEGIN_ALLOW_THREADS; | |
3378 | _result = (unsigned char )wxColour_Red(_arg0); | |
3379 | ||
3380 | wxPy_END_ALLOW_THREADS; | |
3381 | if (PyErr_Occurred()) return NULL; | |
3382 | } _resultobj = Py_BuildValue("b",_result); | |
3383 | return _resultobj; | |
3384 | } | |
3385 | ||
3386 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
3387 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3388 | PyObject * _resultobj; | |
3389 | unsigned char _result; | |
3390 | wxColour * _arg0; | |
3391 | wxColour temp; | |
3392 | PyObject * _obj0 = 0; | |
3393 | char *_kwnames[] = { "self", NULL }; | |
3394 | ||
3395 | self = self; | |
3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) | |
3397 | return NULL; | |
3398 | { | |
3399 | _arg0 = &temp; | |
3400 | if (! wxColour_helper(_obj0, &_arg0)) | |
3401 | return NULL; | |
3402 | } | |
3403 | { | |
3404 | wxPy_BEGIN_ALLOW_THREADS; | |
3405 | _result = (unsigned char )wxColour_Green(_arg0); | |
3406 | ||
3407 | wxPy_END_ALLOW_THREADS; | |
3408 | if (PyErr_Occurred()) return NULL; | |
3409 | } _resultobj = Py_BuildValue("b",_result); | |
3410 | return _resultobj; | |
3411 | } | |
3412 | ||
3413 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
3414 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3415 | PyObject * _resultobj; | |
3416 | unsigned char _result; | |
3417 | wxColour * _arg0; | |
3418 | wxColour temp; | |
3419 | PyObject * _obj0 = 0; | |
3420 | char *_kwnames[] = { "self", NULL }; | |
3421 | ||
3422 | self = self; | |
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) | |
3424 | return NULL; | |
3425 | { | |
3426 | _arg0 = &temp; | |
3427 | if (! wxColour_helper(_obj0, &_arg0)) | |
3428 | return NULL; | |
3429 | } | |
3430 | { | |
3431 | wxPy_BEGIN_ALLOW_THREADS; | |
3432 | _result = (unsigned char )wxColour_Blue(_arg0); | |
3433 | ||
3434 | wxPy_END_ALLOW_THREADS; | |
3435 | if (PyErr_Occurred()) return NULL; | |
3436 | } _resultobj = Py_BuildValue("b",_result); | |
3437 | return _resultobj; | |
3438 | } | |
3439 | ||
3440 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
3441 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3442 | PyObject * _resultobj; | |
3443 | bool _result; | |
3444 | wxColour * _arg0; | |
3445 | wxColour temp; | |
3446 | PyObject * _obj0 = 0; | |
3447 | char *_kwnames[] = { "self", NULL }; | |
3448 | ||
3449 | self = self; | |
3450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) | |
3451 | return NULL; | |
3452 | { | |
3453 | _arg0 = &temp; | |
3454 | if (! wxColour_helper(_obj0, &_arg0)) | |
3455 | return NULL; | |
3456 | } | |
3457 | { | |
3458 | wxPy_BEGIN_ALLOW_THREADS; | |
3459 | _result = (bool )wxColour_Ok(_arg0); | |
3460 | ||
3461 | wxPy_END_ALLOW_THREADS; | |
3462 | if (PyErr_Occurred()) return NULL; | |
3463 | } _resultobj = Py_BuildValue("i",_result); | |
3464 | return _resultobj; | |
3465 | } | |
3466 | ||
3467 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
3468 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3469 | PyObject * _resultobj; | |
3470 | wxColour * _arg0; | |
3471 | unsigned char _arg1; | |
3472 | unsigned char _arg2; | |
3473 | unsigned char _arg3; | |
3474 | wxColour temp; | |
3475 | PyObject * _obj0 = 0; | |
3476 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
3477 | ||
3478 | self = self; | |
3479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
3480 | return NULL; | |
3481 | { | |
3482 | _arg0 = &temp; | |
3483 | if (! wxColour_helper(_obj0, &_arg0)) | |
3484 | return NULL; | |
3485 | } | |
3486 | { | |
3487 | wxPy_BEGIN_ALLOW_THREADS; | |
3488 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
3489 | ||
3490 | wxPy_END_ALLOW_THREADS; | |
3491 | if (PyErr_Occurred()) return NULL; | |
3492 | } Py_INCREF(Py_None); | |
3493 | _resultobj = Py_None; | |
3494 | return _resultobj; | |
3495 | } | |
3496 | ||
3497 | static PyObject * wxColour_Get(wxColour *self) { | |
3498 | PyObject* rv = PyTuple_New(3); | |
3499 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3500 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3501 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3502 | return rv; | |
3503 | } | |
3504 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3505 | PyObject * _resultobj; | |
3506 | PyObject * _result; | |
3507 | wxColour * _arg0; | |
3508 | wxColour temp; | |
3509 | PyObject * _obj0 = 0; | |
3510 | char *_kwnames[] = { "self", NULL }; | |
3511 | ||
3512 | self = self; | |
3513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) | |
3514 | return NULL; | |
3515 | { | |
3516 | _arg0 = &temp; | |
3517 | if (! wxColour_helper(_obj0, &_arg0)) | |
3518 | return NULL; | |
3519 | } | |
3520 | { | |
3521 | wxPy_BEGIN_ALLOW_THREADS; | |
3522 | _result = (PyObject *)wxColour_Get(_arg0); | |
3523 | ||
3524 | wxPy_END_ALLOW_THREADS; | |
3525 | if (PyErr_Occurred()) return NULL; | |
3526 | }{ | |
3527 | _resultobj = _result; | |
3528 | } | |
3529 | return _resultobj; | |
3530 | } | |
3531 | ||
3532 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { | |
3533 | wxColourDatabase *src; | |
3534 | wxObject *dest; | |
3535 | src = (wxColourDatabase *) ptr; | |
3536 | dest = (wxObject *) src; | |
3537 | return (void *) dest; | |
3538 | } | |
3539 | ||
3540 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) | |
3541 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject * _resultobj; | |
3543 | wxColour * _result; | |
3544 | wxColourDatabase * _arg0; | |
3545 | wxString * _arg1; | |
3546 | PyObject * _argo0 = 0; | |
3547 | PyObject * _obj1 = 0; | |
3548 | char *_kwnames[] = { "self","colour", NULL }; | |
3549 | char _ptemp[128]; | |
3550 | ||
3551 | self = self; | |
3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
3553 | return NULL; | |
3554 | if (_argo0) { | |
3555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
3558 | return NULL; | |
3559 | } | |
3560 | } | |
3561 | { | |
3562 | #if PYTHON_API_VERSION >= 1009 | |
3563 | char* tmpPtr; int tmpSize; | |
3564 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3565 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3566 | return NULL; | |
3567 | } | |
3568 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3569 | return NULL; | |
3570 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3571 | #else | |
3572 | if (!PyString_Check(_obj1)) { | |
3573 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3574 | return NULL; | |
3575 | } | |
3576 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3577 | #endif | |
3578 | } | |
3579 | { | |
3580 | wxPy_BEGIN_ALLOW_THREADS; | |
3581 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
3582 | ||
3583 | wxPy_END_ALLOW_THREADS; | |
3584 | if (PyErr_Occurred()) return NULL; | |
3585 | } if (_result) { | |
3586 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3587 | _resultobj = Py_BuildValue("s",_ptemp); | |
3588 | } else { | |
3589 | Py_INCREF(Py_None); | |
3590 | _resultobj = Py_None; | |
3591 | } | |
3592 | { | |
3593 | if (_obj1) | |
3594 | delete _arg1; | |
3595 | } | |
3596 | return _resultobj; | |
3597 | } | |
3598 | ||
3599 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
3600 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3601 | PyObject * _resultobj; | |
3602 | wxString * _result; | |
3603 | wxColourDatabase * _arg0; | |
3604 | wxColour * _arg1; | |
3605 | PyObject * _argo0 = 0; | |
3606 | wxColour temp; | |
3607 | PyObject * _obj1 = 0; | |
3608 | char *_kwnames[] = { "self","colour", NULL }; | |
3609 | ||
3610 | self = self; | |
3611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
3612 | return NULL; | |
3613 | if (_argo0) { | |
3614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
3617 | return NULL; | |
3618 | } | |
3619 | } | |
3620 | { | |
3621 | _arg1 = &temp; | |
3622 | if (! wxColour_helper(_obj1, &_arg1)) | |
3623 | return NULL; | |
3624 | } | |
3625 | { | |
3626 | wxPy_BEGIN_ALLOW_THREADS; | |
3627 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
3628 | ||
3629 | wxPy_END_ALLOW_THREADS; | |
3630 | if (PyErr_Occurred()) return NULL; | |
3631 | }{ | |
3632 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3633 | } | |
3634 | { | |
3635 | delete _result; | |
3636 | } | |
3637 | return _resultobj; | |
3638 | } | |
3639 | ||
3640 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
3641 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
3642 | } | |
3643 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject * _resultobj; | |
3645 | wxColourDatabase * _arg0; | |
3646 | wxString * _arg1; | |
3647 | int _arg2; | |
3648 | int _arg3; | |
3649 | int _arg4; | |
3650 | PyObject * _argo0 = 0; | |
3651 | PyObject * _obj1 = 0; | |
3652 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
3653 | ||
3654 | self = self; | |
3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
3656 | return NULL; | |
3657 | if (_argo0) { | |
3658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
3661 | return NULL; | |
3662 | } | |
3663 | } | |
3664 | { | |
3665 | #if PYTHON_API_VERSION >= 1009 | |
3666 | char* tmpPtr; int tmpSize; | |
3667 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3668 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3669 | return NULL; | |
3670 | } | |
3671 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3672 | return NULL; | |
3673 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3674 | #else | |
3675 | if (!PyString_Check(_obj1)) { | |
3676 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3677 | return NULL; | |
3678 | } | |
3679 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3680 | #endif | |
3681 | } | |
3682 | { | |
3683 | wxPy_BEGIN_ALLOW_THREADS; | |
3684 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3685 | ||
3686 | wxPy_END_ALLOW_THREADS; | |
3687 | if (PyErr_Occurred()) return NULL; | |
3688 | } Py_INCREF(Py_None); | |
3689 | _resultobj = Py_None; | |
3690 | { | |
3691 | if (_obj1) | |
3692 | delete _arg1; | |
3693 | } | |
3694 | return _resultobj; | |
3695 | } | |
3696 | ||
3697 | static void *SwigwxPenTowxGDIObject(void *ptr) { | |
3698 | wxPen *src; | |
3699 | wxGDIObject *dest; | |
3700 | src = (wxPen *) ptr; | |
3701 | dest = (wxGDIObject *) src; | |
3702 | return (void *) dest; | |
3703 | } | |
3704 | ||
3705 | static void *SwigwxPenTowxObject(void *ptr) { | |
3706 | wxPen *src; | |
3707 | wxObject *dest; | |
3708 | src = (wxPen *) ptr; | |
3709 | dest = (wxObject *) src; | |
3710 | return (void *) dest; | |
3711 | } | |
3712 | ||
3713 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
3714 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3715 | PyObject * _resultobj; | |
3716 | wxPen * _result; | |
3717 | wxColour * _arg0; | |
3718 | int _arg1 = (int ) 1; | |
3719 | int _arg2 = (int ) wxSOLID; | |
3720 | wxColour temp; | |
3721 | PyObject * _obj0 = 0; | |
3722 | char *_kwnames[] = { "colour","width","style", NULL }; | |
3723 | char _ptemp[128]; | |
3724 | ||
3725 | self = self; | |
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
3727 | return NULL; | |
3728 | { | |
3729 | _arg0 = &temp; | |
3730 | if (! wxColour_helper(_obj0, &_arg0)) | |
3731 | return NULL; | |
3732 | } | |
3733 | { | |
3734 | wxPy_BEGIN_ALLOW_THREADS; | |
3735 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); | |
3736 | ||
3737 | wxPy_END_ALLOW_THREADS; | |
3738 | if (PyErr_Occurred()) return NULL; | |
3739 | } if (_result) { | |
3740 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3741 | _resultobj = Py_BuildValue("s",_ptemp); | |
3742 | } else { | |
3743 | Py_INCREF(Py_None); | |
3744 | _resultobj = Py_None; | |
3745 | } | |
3746 | return _resultobj; | |
3747 | } | |
3748 | ||
3749 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
3750 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3751 | PyObject * _resultobj; | |
3752 | wxPen * _arg0; | |
3753 | PyObject * _argo0 = 0; | |
3754 | char *_kwnames[] = { "self", NULL }; | |
3755 | ||
3756 | self = self; | |
3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
3758 | return NULL; | |
3759 | if (_argo0) { | |
3760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
3763 | return NULL; | |
3764 | } | |
3765 | } | |
3766 | { | |
3767 | wxPy_BEGIN_ALLOW_THREADS; | |
3768 | delete_wxPen(_arg0); | |
3769 | ||
3770 | wxPy_END_ALLOW_THREADS; | |
3771 | if (PyErr_Occurred()) return NULL; | |
3772 | } Py_INCREF(Py_None); | |
3773 | _resultobj = Py_None; | |
3774 | return _resultobj; | |
3775 | } | |
3776 | ||
3777 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
3778 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3779 | PyObject * _resultobj; | |
3780 | int _result; | |
3781 | wxPen * _arg0; | |
3782 | PyObject * _argo0 = 0; | |
3783 | char *_kwnames[] = { "self", NULL }; | |
3784 | ||
3785 | self = self; | |
3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
3787 | return NULL; | |
3788 | if (_argo0) { | |
3789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
3792 | return NULL; | |
3793 | } | |
3794 | } | |
3795 | { | |
3796 | wxPy_BEGIN_ALLOW_THREADS; | |
3797 | _result = (int )wxPen_GetCap(_arg0); | |
3798 | ||
3799 | wxPy_END_ALLOW_THREADS; | |
3800 | if (PyErr_Occurred()) return NULL; | |
3801 | } _resultobj = Py_BuildValue("i",_result); | |
3802 | return _resultobj; | |
3803 | } | |
3804 | ||
3805 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
3806 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3807 | PyObject * _resultobj; | |
3808 | wxColour * _result; | |
3809 | wxPen * _arg0; | |
3810 | PyObject * _argo0 = 0; | |
3811 | char *_kwnames[] = { "self", NULL }; | |
3812 | char _ptemp[128]; | |
3813 | ||
3814 | self = self; | |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
3816 | return NULL; | |
3817 | if (_argo0) { | |
3818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
3821 | return NULL; | |
3822 | } | |
3823 | } | |
3824 | { | |
3825 | wxPy_BEGIN_ALLOW_THREADS; | |
3826 | _result = new wxColour (wxPen_GetColour(_arg0)); | |
3827 | ||
3828 | wxPy_END_ALLOW_THREADS; | |
3829 | if (PyErr_Occurred()) return NULL; | |
3830 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
3831 | _resultobj = Py_BuildValue("s",_ptemp); | |
3832 | return _resultobj; | |
3833 | } | |
3834 | ||
3835 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
3836 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3837 | PyObject * _resultobj; | |
3838 | int _result; | |
3839 | wxPen * _arg0; | |
3840 | PyObject * _argo0 = 0; | |
3841 | char *_kwnames[] = { "self", NULL }; | |
3842 | ||
3843 | self = self; | |
3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) | |
3845 | return NULL; | |
3846 | if (_argo0) { | |
3847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
3850 | return NULL; | |
3851 | } | |
3852 | } | |
3853 | { | |
3854 | wxPy_BEGIN_ALLOW_THREADS; | |
3855 | _result = (int )wxPen_GetJoin(_arg0); | |
3856 | ||
3857 | wxPy_END_ALLOW_THREADS; | |
3858 | if (PyErr_Occurred()) return NULL; | |
3859 | } _resultobj = Py_BuildValue("i",_result); | |
3860 | return _resultobj; | |
3861 | } | |
3862 | ||
3863 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3864 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3865 | PyObject * _resultobj; | |
3866 | int _result; | |
3867 | wxPen * _arg0; | |
3868 | PyObject * _argo0 = 0; | |
3869 | char *_kwnames[] = { "self", NULL }; | |
3870 | ||
3871 | self = self; | |
3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) | |
3873 | return NULL; | |
3874 | if (_argo0) { | |
3875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
3878 | return NULL; | |
3879 | } | |
3880 | } | |
3881 | { | |
3882 | wxPy_BEGIN_ALLOW_THREADS; | |
3883 | _result = (int )wxPen_GetStyle(_arg0); | |
3884 | ||
3885 | wxPy_END_ALLOW_THREADS; | |
3886 | if (PyErr_Occurred()) return NULL; | |
3887 | } _resultobj = Py_BuildValue("i",_result); | |
3888 | return _resultobj; | |
3889 | } | |
3890 | ||
3891 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
3892 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3893 | PyObject * _resultobj; | |
3894 | int _result; | |
3895 | wxPen * _arg0; | |
3896 | PyObject * _argo0 = 0; | |
3897 | char *_kwnames[] = { "self", NULL }; | |
3898 | ||
3899 | self = self; | |
3900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) | |
3901 | return NULL; | |
3902 | if (_argo0) { | |
3903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
3906 | return NULL; | |
3907 | } | |
3908 | } | |
3909 | { | |
3910 | wxPy_BEGIN_ALLOW_THREADS; | |
3911 | _result = (int )wxPen_GetWidth(_arg0); | |
3912 | ||
3913 | wxPy_END_ALLOW_THREADS; | |
3914 | if (PyErr_Occurred()) return NULL; | |
3915 | } _resultobj = Py_BuildValue("i",_result); | |
3916 | return _resultobj; | |
3917 | } | |
3918 | ||
3919 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
3920 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3921 | PyObject * _resultobj; | |
3922 | bool _result; | |
3923 | wxPen * _arg0; | |
3924 | PyObject * _argo0 = 0; | |
3925 | char *_kwnames[] = { "self", NULL }; | |
3926 | ||
3927 | self = self; | |
3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) | |
3929 | return NULL; | |
3930 | if (_argo0) { | |
3931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
3934 | return NULL; | |
3935 | } | |
3936 | } | |
3937 | { | |
3938 | wxPy_BEGIN_ALLOW_THREADS; | |
3939 | _result = (bool )wxPen_Ok(_arg0); | |
3940 | ||
3941 | wxPy_END_ALLOW_THREADS; | |
3942 | if (PyErr_Occurred()) return NULL; | |
3943 | } _resultobj = Py_BuildValue("i",_result); | |
3944 | return _resultobj; | |
3945 | } | |
3946 | ||
3947 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
3948 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3949 | PyObject * _resultobj; | |
3950 | wxPen * _arg0; | |
3951 | int _arg1; | |
3952 | PyObject * _argo0 = 0; | |
3953 | char *_kwnames[] = { "self","cap_style", NULL }; | |
3954 | ||
3955 | self = self; | |
3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) | |
3957 | return NULL; | |
3958 | if (_argo0) { | |
3959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
3962 | return NULL; | |
3963 | } | |
3964 | } | |
3965 | { | |
3966 | wxPy_BEGIN_ALLOW_THREADS; | |
3967 | wxPen_SetCap(_arg0,_arg1); | |
3968 | ||
3969 | wxPy_END_ALLOW_THREADS; | |
3970 | if (PyErr_Occurred()) return NULL; | |
3971 | } Py_INCREF(Py_None); | |
3972 | _resultobj = Py_None; | |
3973 | return _resultobj; | |
3974 | } | |
3975 | ||
3976 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
3977 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3978 | PyObject * _resultobj; | |
3979 | wxPen * _arg0; | |
3980 | wxColour * _arg1; | |
3981 | PyObject * _argo0 = 0; | |
3982 | wxColour temp; | |
3983 | PyObject * _obj1 = 0; | |
3984 | char *_kwnames[] = { "self","colour", NULL }; | |
3985 | ||
3986 | self = self; | |
3987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) | |
3988 | return NULL; | |
3989 | if (_argo0) { | |
3990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
3993 | return NULL; | |
3994 | } | |
3995 | } | |
3996 | { | |
3997 | _arg1 = &temp; | |
3998 | if (! wxColour_helper(_obj1, &_arg1)) | |
3999 | return NULL; | |
4000 | } | |
4001 | { | |
4002 | wxPy_BEGIN_ALLOW_THREADS; | |
4003 | wxPen_SetColour(_arg0,*_arg1); | |
4004 | ||
4005 | wxPy_END_ALLOW_THREADS; | |
4006 | if (PyErr_Occurred()) return NULL; | |
4007 | } Py_INCREF(Py_None); | |
4008 | _resultobj = Py_None; | |
4009 | return _resultobj; | |
4010 | } | |
4011 | ||
4012 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
4013 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4014 | PyObject * _resultobj; | |
4015 | wxPen * _arg0; | |
4016 | int _arg1; | |
4017 | PyObject * _argo0 = 0; | |
4018 | char *_kwnames[] = { "self","join_style", NULL }; | |
4019 | ||
4020 | self = self; | |
4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) | |
4022 | return NULL; | |
4023 | if (_argo0) { | |
4024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
4027 | return NULL; | |
4028 | } | |
4029 | } | |
4030 | { | |
4031 | wxPy_BEGIN_ALLOW_THREADS; | |
4032 | wxPen_SetJoin(_arg0,_arg1); | |
4033 | ||
4034 | wxPy_END_ALLOW_THREADS; | |
4035 | if (PyErr_Occurred()) return NULL; | |
4036 | } Py_INCREF(Py_None); | |
4037 | _resultobj = Py_None; | |
4038 | return _resultobj; | |
4039 | } | |
4040 | ||
4041 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4042 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4043 | PyObject * _resultobj; | |
4044 | wxPen * _arg0; | |
4045 | int _arg1; | |
4046 | PyObject * _argo0 = 0; | |
4047 | char *_kwnames[] = { "self","style", NULL }; | |
4048 | ||
4049 | self = self; | |
4050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4051 | return NULL; | |
4052 | if (_argo0) { | |
4053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
4056 | return NULL; | |
4057 | } | |
4058 | } | |
4059 | { | |
4060 | wxPy_BEGIN_ALLOW_THREADS; | |
4061 | wxPen_SetStyle(_arg0,_arg1); | |
4062 | ||
4063 | wxPy_END_ALLOW_THREADS; | |
4064 | if (PyErr_Occurred()) return NULL; | |
4065 | } Py_INCREF(Py_None); | |
4066 | _resultobj = Py_None; | |
4067 | return _resultobj; | |
4068 | } | |
4069 | ||
4070 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
4071 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4072 | PyObject * _resultobj; | |
4073 | wxPen * _arg0; | |
4074 | int _arg1; | |
4075 | PyObject * _argo0 = 0; | |
4076 | char *_kwnames[] = { "self","width", NULL }; | |
4077 | ||
4078 | self = self; | |
4079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) | |
4080 | return NULL; | |
4081 | if (_argo0) { | |
4082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
4085 | return NULL; | |
4086 | } | |
4087 | } | |
4088 | { | |
4089 | wxPy_BEGIN_ALLOW_THREADS; | |
4090 | wxPen_SetWidth(_arg0,_arg1); | |
4091 | ||
4092 | wxPy_END_ALLOW_THREADS; | |
4093 | if (PyErr_Occurred()) return NULL; | |
4094 | } Py_INCREF(Py_None); | |
4095 | _resultobj = Py_None; | |
4096 | return _resultobj; | |
4097 | } | |
4098 | ||
4099 | #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0)) | |
4100 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4101 | PyObject * _resultobj; | |
4102 | int _result; | |
4103 | wxPen * _arg0; | |
4104 | wxDash ** _arg1; | |
4105 | PyObject * _argo0 = 0; | |
4106 | PyObject * _argo1 = 0; | |
4107 | char *_kwnames[] = { "self","dashes", NULL }; | |
4108 | ||
4109 | self = self; | |
4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1)) | |
4111 | return NULL; | |
4112 | if (_argo0) { | |
4113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
4116 | return NULL; | |
4117 | } | |
4118 | } | |
4119 | if (_argo1) { | |
4120 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4121 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) { | |
4122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp."); | |
4123 | return NULL; | |
4124 | } | |
4125 | } | |
4126 | { | |
4127 | wxPy_BEGIN_ALLOW_THREADS; | |
4128 | _result = (int )wxPen_GetDashes(_arg0,_arg1); | |
4129 | ||
4130 | wxPy_END_ALLOW_THREADS; | |
4131 | if (PyErr_Occurred()) return NULL; | |
4132 | } _resultobj = Py_BuildValue("i",_result); | |
4133 | return _resultobj; | |
4134 | } | |
4135 | ||
4136 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
4137 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4138 | PyObject * _resultobj; | |
4139 | wxPen * _arg0; | |
4140 | int _arg1; | |
4141 | wxDash * _arg2; | |
4142 | PyObject * _argo0 = 0; | |
4143 | PyObject * _obj2 = 0; | |
4144 | char *_kwnames[] = { "self","choices", NULL }; | |
4145 | ||
4146 | self = self; | |
4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
4148 | return NULL; | |
4149 | if (_argo0) { | |
4150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
4153 | return NULL; | |
4154 | } | |
4155 | } | |
4156 | if (_obj2) | |
4157 | { | |
4158 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
4159 | if (_arg2 == NULL) { | |
4160 | return NULL; | |
4161 | } | |
4162 | } | |
4163 | { | |
4164 | if (_obj2) { | |
4165 | _arg1 = PyList_Size(_obj2); | |
4166 | } | |
4167 | else { | |
4168 | _arg1 = 0; | |
4169 | } | |
4170 | } | |
4171 | { | |
4172 | wxPy_BEGIN_ALLOW_THREADS; | |
4173 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
4174 | ||
4175 | wxPy_END_ALLOW_THREADS; | |
4176 | if (PyErr_Occurred()) return NULL; | |
4177 | } Py_INCREF(Py_None); | |
4178 | _resultobj = Py_None; | |
4179 | { | |
4180 | delete [] _arg2; | |
4181 | } | |
4182 | return _resultobj; | |
4183 | } | |
4184 | ||
4185 | static void *SwigwxPenListTowxObject(void *ptr) { | |
4186 | wxPenList *src; | |
4187 | wxObject *dest; | |
4188 | src = (wxPenList *) ptr; | |
4189 | dest = (wxObject *) src; | |
4190 | return (void *) dest; | |
4191 | } | |
4192 | ||
4193 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) | |
4194 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4195 | PyObject * _resultobj; | |
4196 | wxPenList * _arg0; | |
4197 | wxPen * _arg1; | |
4198 | PyObject * _argo0 = 0; | |
4199 | PyObject * _argo1 = 0; | |
4200 | char *_kwnames[] = { "self","pen", NULL }; | |
4201 | ||
4202 | self = self; | |
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
4204 | return NULL; | |
4205 | if (_argo0) { | |
4206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
4212 | if (_argo1) { | |
4213 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4214 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
4216 | return NULL; | |
4217 | } | |
4218 | } | |
4219 | { | |
4220 | wxPy_BEGIN_ALLOW_THREADS; | |
4221 | wxPenList_AddPen(_arg0,_arg1); | |
4222 | ||
4223 | wxPy_END_ALLOW_THREADS; | |
4224 | if (PyErr_Occurred()) return NULL; | |
4225 | } Py_INCREF(Py_None); | |
4226 | _resultobj = Py_None; | |
4227 | return _resultobj; | |
4228 | } | |
4229 | ||
4230 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
4231 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4232 | PyObject * _resultobj; | |
4233 | wxPen * _result; | |
4234 | wxPenList * _arg0; | |
4235 | wxColour * _arg1; | |
4236 | int _arg2; | |
4237 | int _arg3; | |
4238 | PyObject * _argo0 = 0; | |
4239 | wxColour temp; | |
4240 | PyObject * _obj1 = 0; | |
4241 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
4242 | char _ptemp[128]; | |
4243 | ||
4244 | self = self; | |
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
4246 | return NULL; | |
4247 | if (_argo0) { | |
4248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
4251 | return NULL; | |
4252 | } | |
4253 | } | |
4254 | { | |
4255 | _arg1 = &temp; | |
4256 | if (! wxColour_helper(_obj1, &_arg1)) | |
4257 | return NULL; | |
4258 | } | |
4259 | { | |
4260 | wxPy_BEGIN_ALLOW_THREADS; | |
4261 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
4262 | ||
4263 | wxPy_END_ALLOW_THREADS; | |
4264 | if (PyErr_Occurred()) return NULL; | |
4265 | } if (_result) { | |
4266 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4267 | _resultobj = Py_BuildValue("s",_ptemp); | |
4268 | } else { | |
4269 | Py_INCREF(Py_None); | |
4270 | _resultobj = Py_None; | |
4271 | } | |
4272 | return _resultobj; | |
4273 | } | |
4274 | ||
4275 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
4276 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4277 | PyObject * _resultobj; | |
4278 | wxPenList * _arg0; | |
4279 | wxPen * _arg1; | |
4280 | PyObject * _argo0 = 0; | |
4281 | PyObject * _argo1 = 0; | |
4282 | char *_kwnames[] = { "self","pen", NULL }; | |
4283 | ||
4284 | self = self; | |
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
4286 | return NULL; | |
4287 | if (_argo0) { | |
4288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
4291 | return NULL; | |
4292 | } | |
4293 | } | |
4294 | if (_argo1) { | |
4295 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4296 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
4298 | return NULL; | |
4299 | } | |
4300 | } | |
4301 | { | |
4302 | wxPy_BEGIN_ALLOW_THREADS; | |
4303 | wxPenList_RemovePen(_arg0,_arg1); | |
4304 | ||
4305 | wxPy_END_ALLOW_THREADS; | |
4306 | if (PyErr_Occurred()) return NULL; | |
4307 | } Py_INCREF(Py_None); | |
4308 | _resultobj = Py_None; | |
4309 | return _resultobj; | |
4310 | } | |
4311 | ||
4312 | static void *SwigwxBrushTowxGDIObject(void *ptr) { | |
4313 | wxBrush *src; | |
4314 | wxGDIObject *dest; | |
4315 | src = (wxBrush *) ptr; | |
4316 | dest = (wxGDIObject *) src; | |
4317 | return (void *) dest; | |
4318 | } | |
4319 | ||
4320 | static void *SwigwxBrushTowxObject(void *ptr) { | |
4321 | wxBrush *src; | |
4322 | wxObject *dest; | |
4323 | src = (wxBrush *) ptr; | |
4324 | dest = (wxObject *) src; | |
4325 | return (void *) dest; | |
4326 | } | |
4327 | ||
4328 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
4329 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4330 | PyObject * _resultobj; | |
4331 | wxBrush * _result; | |
4332 | wxColour * _arg0; | |
4333 | int _arg1 = (int ) wxSOLID; | |
4334 | wxColour temp; | |
4335 | PyObject * _obj0 = 0; | |
4336 | char *_kwnames[] = { "colour","style", NULL }; | |
4337 | char _ptemp[128]; | |
4338 | ||
4339 | self = self; | |
4340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) | |
4341 | return NULL; | |
4342 | { | |
4343 | _arg0 = &temp; | |
4344 | if (! wxColour_helper(_obj0, &_arg0)) | |
4345 | return NULL; | |
4346 | } | |
4347 | { | |
4348 | wxPy_BEGIN_ALLOW_THREADS; | |
4349 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); | |
4350 | ||
4351 | wxPy_END_ALLOW_THREADS; | |
4352 | if (PyErr_Occurred()) return NULL; | |
4353 | } if (_result) { | |
4354 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4355 | _resultobj = Py_BuildValue("s",_ptemp); | |
4356 | } else { | |
4357 | Py_INCREF(Py_None); | |
4358 | _resultobj = Py_None; | |
4359 | } | |
4360 | return _resultobj; | |
4361 | } | |
4362 | ||
4363 | #define delete_wxBrush(_swigobj) (delete _swigobj) | |
4364 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4365 | PyObject * _resultobj; | |
4366 | wxBrush * _arg0; | |
4367 | PyObject * _argo0 = 0; | |
4368 | char *_kwnames[] = { "self", NULL }; | |
4369 | ||
4370 | self = self; | |
4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
4372 | return NULL; | |
4373 | if (_argo0) { | |
4374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
4377 | return NULL; | |
4378 | } | |
4379 | } | |
4380 | { | |
4381 | wxPy_BEGIN_ALLOW_THREADS; | |
4382 | delete_wxBrush(_arg0); | |
4383 | ||
4384 | wxPy_END_ALLOW_THREADS; | |
4385 | if (PyErr_Occurred()) return NULL; | |
4386 | } Py_INCREF(Py_None); | |
4387 | _resultobj = Py_None; | |
4388 | return _resultobj; | |
4389 | } | |
4390 | ||
4391 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
4392 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4393 | PyObject * _resultobj; | |
4394 | wxColour * _result; | |
4395 | wxBrush * _arg0; | |
4396 | PyObject * _argo0 = 0; | |
4397 | char *_kwnames[] = { "self", NULL }; | |
4398 | char _ptemp[128]; | |
4399 | ||
4400 | self = self; | |
4401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) | |
4402 | return NULL; | |
4403 | if (_argo0) { | |
4404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
4407 | return NULL; | |
4408 | } | |
4409 | } | |
4410 | { | |
4411 | wxPy_BEGIN_ALLOW_THREADS; | |
4412 | _result = new wxColour (wxBrush_GetColour(_arg0)); | |
4413 | ||
4414 | wxPy_END_ALLOW_THREADS; | |
4415 | if (PyErr_Occurred()) return NULL; | |
4416 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4417 | _resultobj = Py_BuildValue("s",_ptemp); | |
4418 | return _resultobj; | |
4419 | } | |
4420 | ||
4421 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
4422 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4423 | PyObject * _resultobj; | |
4424 | wxBitmap * _result; | |
4425 | wxBrush * _arg0; | |
4426 | PyObject * _argo0 = 0; | |
4427 | char *_kwnames[] = { "self", NULL }; | |
4428 | char _ptemp[128]; | |
4429 | ||
4430 | self = self; | |
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) | |
4432 | return NULL; | |
4433 | if (_argo0) { | |
4434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
4437 | return NULL; | |
4438 | } | |
4439 | } | |
4440 | { | |
4441 | wxPy_BEGIN_ALLOW_THREADS; | |
4442 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
4443 | ||
4444 | wxPy_END_ALLOW_THREADS; | |
4445 | if (PyErr_Occurred()) return NULL; | |
4446 | } if (_result) { | |
4447 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4448 | _resultobj = Py_BuildValue("s",_ptemp); | |
4449 | } else { | |
4450 | Py_INCREF(Py_None); | |
4451 | _resultobj = Py_None; | |
4452 | } | |
4453 | return _resultobj; | |
4454 | } | |
4455 | ||
4456 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
4457 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4458 | PyObject * _resultobj; | |
4459 | int _result; | |
4460 | wxBrush * _arg0; | |
4461 | PyObject * _argo0 = 0; | |
4462 | char *_kwnames[] = { "self", NULL }; | |
4463 | ||
4464 | self = self; | |
4465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) | |
4466 | return NULL; | |
4467 | if (_argo0) { | |
4468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
4471 | return NULL; | |
4472 | } | |
4473 | } | |
4474 | { | |
4475 | wxPy_BEGIN_ALLOW_THREADS; | |
4476 | _result = (int )wxBrush_GetStyle(_arg0); | |
4477 | ||
4478 | wxPy_END_ALLOW_THREADS; | |
4479 | if (PyErr_Occurred()) return NULL; | |
4480 | } _resultobj = Py_BuildValue("i",_result); | |
4481 | return _resultobj; | |
4482 | } | |
4483 | ||
4484 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
4485 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4486 | PyObject * _resultobj; | |
4487 | bool _result; | |
4488 | wxBrush * _arg0; | |
4489 | PyObject * _argo0 = 0; | |
4490 | char *_kwnames[] = { "self", NULL }; | |
4491 | ||
4492 | self = self; | |
4493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) | |
4494 | return NULL; | |
4495 | if (_argo0) { | |
4496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
4499 | return NULL; | |
4500 | } | |
4501 | } | |
4502 | { | |
4503 | wxPy_BEGIN_ALLOW_THREADS; | |
4504 | _result = (bool )wxBrush_Ok(_arg0); | |
4505 | ||
4506 | wxPy_END_ALLOW_THREADS; | |
4507 | if (PyErr_Occurred()) return NULL; | |
4508 | } _resultobj = Py_BuildValue("i",_result); | |
4509 | return _resultobj; | |
4510 | } | |
4511 | ||
4512 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
4513 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4514 | PyObject * _resultobj; | |
4515 | wxBrush * _arg0; | |
4516 | wxColour * _arg1; | |
4517 | PyObject * _argo0 = 0; | |
4518 | wxColour temp; | |
4519 | PyObject * _obj1 = 0; | |
4520 | char *_kwnames[] = { "self","colour", NULL }; | |
4521 | ||
4522 | self = self; | |
4523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) | |
4524 | return NULL; | |
4525 | if (_argo0) { | |
4526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
4529 | return NULL; | |
4530 | } | |
4531 | } | |
4532 | { | |
4533 | _arg1 = &temp; | |
4534 | if (! wxColour_helper(_obj1, &_arg1)) | |
4535 | return NULL; | |
4536 | } | |
4537 | { | |
4538 | wxPy_BEGIN_ALLOW_THREADS; | |
4539 | wxBrush_SetColour(_arg0,*_arg1); | |
4540 | ||
4541 | wxPy_END_ALLOW_THREADS; | |
4542 | if (PyErr_Occurred()) return NULL; | |
4543 | } Py_INCREF(Py_None); | |
4544 | _resultobj = Py_None; | |
4545 | return _resultobj; | |
4546 | } | |
4547 | ||
4548 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
4549 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4550 | PyObject * _resultobj; | |
4551 | wxBrush * _arg0; | |
4552 | wxBitmap * _arg1; | |
4553 | PyObject * _argo0 = 0; | |
4554 | PyObject * _argo1 = 0; | |
4555 | char *_kwnames[] = { "self","bitmap", NULL }; | |
4556 | ||
4557 | self = self; | |
4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) | |
4559 | return NULL; | |
4560 | if (_argo0) { | |
4561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
4564 | return NULL; | |
4565 | } | |
4566 | } | |
4567 | if (_argo1) { | |
4568 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4569 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
4570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
4571 | return NULL; | |
4572 | } | |
4573 | } | |
4574 | { | |
4575 | wxPy_BEGIN_ALLOW_THREADS; | |
4576 | wxBrush_SetStipple(_arg0,*_arg1); | |
4577 | ||
4578 | wxPy_END_ALLOW_THREADS; | |
4579 | if (PyErr_Occurred()) return NULL; | |
4580 | } Py_INCREF(Py_None); | |
4581 | _resultobj = Py_None; | |
4582 | return _resultobj; | |
4583 | } | |
4584 | ||
4585 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4586 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4587 | PyObject * _resultobj; | |
4588 | wxBrush * _arg0; | |
4589 | int _arg1; | |
4590 | PyObject * _argo0 = 0; | |
4591 | char *_kwnames[] = { "self","style", NULL }; | |
4592 | ||
4593 | self = self; | |
4594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4595 | return NULL; | |
4596 | if (_argo0) { | |
4597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
4600 | return NULL; | |
4601 | } | |
4602 | } | |
4603 | { | |
4604 | wxPy_BEGIN_ALLOW_THREADS; | |
4605 | wxBrush_SetStyle(_arg0,_arg1); | |
4606 | ||
4607 | wxPy_END_ALLOW_THREADS; | |
4608 | if (PyErr_Occurred()) return NULL; | |
4609 | } Py_INCREF(Py_None); | |
4610 | _resultobj = Py_None; | |
4611 | return _resultobj; | |
4612 | } | |
4613 | ||
4614 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) | |
4615 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4616 | PyObject * _resultobj; | |
4617 | wxBrushList * _arg0; | |
4618 | wxBrush * _arg1; | |
4619 | PyObject * _argo0 = 0; | |
4620 | PyObject * _argo1 = 0; | |
4621 | char *_kwnames[] = { "self","brush", NULL }; | |
4622 | ||
4623 | self = self; | |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
4625 | return NULL; | |
4626 | if (_argo0) { | |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | if (_argo1) { | |
4634 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4635 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
4637 | return NULL; | |
4638 | } | |
4639 | } | |
4640 | { | |
4641 | wxPy_BEGIN_ALLOW_THREADS; | |
4642 | wxBrushList_AddBrush(_arg0,_arg1); | |
4643 | ||
4644 | wxPy_END_ALLOW_THREADS; | |
4645 | if (PyErr_Occurred()) return NULL; | |
4646 | } Py_INCREF(Py_None); | |
4647 | _resultobj = Py_None; | |
4648 | return _resultobj; | |
4649 | } | |
4650 | ||
4651 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
4652 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4653 | PyObject * _resultobj; | |
4654 | wxBrush * _result; | |
4655 | wxBrushList * _arg0; | |
4656 | wxColour * _arg1; | |
4657 | int _arg2; | |
4658 | PyObject * _argo0 = 0; | |
4659 | wxColour temp; | |
4660 | PyObject * _obj1 = 0; | |
4661 | char *_kwnames[] = { "self","colour","style", NULL }; | |
4662 | char _ptemp[128]; | |
4663 | ||
4664 | self = self; | |
4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4666 | return NULL; | |
4667 | if (_argo0) { | |
4668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
4671 | return NULL; | |
4672 | } | |
4673 | } | |
4674 | { | |
4675 | _arg1 = &temp; | |
4676 | if (! wxColour_helper(_obj1, &_arg1)) | |
4677 | return NULL; | |
4678 | } | |
4679 | { | |
4680 | wxPy_BEGIN_ALLOW_THREADS; | |
4681 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
4682 | ||
4683 | wxPy_END_ALLOW_THREADS; | |
4684 | if (PyErr_Occurred()) return NULL; | |
4685 | } if (_result) { | |
4686 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4687 | _resultobj = Py_BuildValue("s",_ptemp); | |
4688 | } else { | |
4689 | Py_INCREF(Py_None); | |
4690 | _resultobj = Py_None; | |
4691 | } | |
4692 | return _resultobj; | |
4693 | } | |
4694 | ||
4695 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
4696 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4697 | PyObject * _resultobj; | |
4698 | wxBrushList * _arg0; | |
4699 | wxBrush * _arg1; | |
4700 | PyObject * _argo0 = 0; | |
4701 | PyObject * _argo1 = 0; | |
4702 | char *_kwnames[] = { "self","brush", NULL }; | |
4703 | ||
4704 | self = self; | |
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
4706 | return NULL; | |
4707 | if (_argo0) { | |
4708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
4711 | return NULL; | |
4712 | } | |
4713 | } | |
4714 | if (_argo1) { | |
4715 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4716 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
4718 | return NULL; | |
4719 | } | |
4720 | } | |
4721 | { | |
4722 | wxPy_BEGIN_ALLOW_THREADS; | |
4723 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
4724 | ||
4725 | wxPy_END_ALLOW_THREADS; | |
4726 | if (PyErr_Occurred()) return NULL; | |
4727 | } Py_INCREF(Py_None); | |
4728 | _resultobj = Py_None; | |
4729 | return _resultobj; | |
4730 | } | |
4731 | ||
4732 | static void *SwigwxDCTowxObject(void *ptr) { | |
4733 | wxDC *src; | |
4734 | wxObject *dest; | |
4735 | src = (wxDC *) ptr; | |
4736 | dest = (wxObject *) src; | |
4737 | return (void *) dest; | |
4738 | } | |
4739 | ||
4740 | #define delete_wxDC(_swigobj) (delete _swigobj) | |
4741 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4742 | PyObject * _resultobj; | |
4743 | wxDC * _arg0; | |
4744 | PyObject * _argo0 = 0; | |
4745 | char *_kwnames[] = { "self", NULL }; | |
4746 | ||
4747 | self = self; | |
4748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) | |
4749 | return NULL; | |
4750 | if (_argo0) { | |
4751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
4754 | return NULL; | |
4755 | } | |
4756 | } | |
4757 | { | |
4758 | wxPy_BEGIN_ALLOW_THREADS; | |
4759 | delete_wxDC(_arg0); | |
4760 | ||
4761 | wxPy_END_ALLOW_THREADS; | |
4762 | if (PyErr_Occurred()) return NULL; | |
4763 | } Py_INCREF(Py_None); | |
4764 | _resultobj = Py_None; | |
4765 | return _resultobj; | |
4766 | } | |
4767 | ||
4768 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
4769 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4770 | PyObject * _resultobj; | |
4771 | wxDC * _arg0; | |
4772 | PyObject * _argo0 = 0; | |
4773 | char *_kwnames[] = { "self", NULL }; | |
4774 | ||
4775 | self = self; | |
4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) | |
4777 | return NULL; | |
4778 | if (_argo0) { | |
4779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
4782 | return NULL; | |
4783 | } | |
4784 | } | |
4785 | { | |
4786 | wxPy_BEGIN_ALLOW_THREADS; | |
4787 | wxDC_BeginDrawing(_arg0); | |
4788 | ||
4789 | wxPy_END_ALLOW_THREADS; | |
4790 | if (PyErr_Occurred()) return NULL; | |
4791 | } Py_INCREF(Py_None); | |
4792 | _resultobj = Py_None; | |
4793 | return _resultobj; | |
4794 | } | |
4795 | ||
4796 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4797 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4798 | PyObject * _resultobj; | |
4799 | bool _result; | |
4800 | wxDC * _arg0; | |
4801 | long _arg1; | |
4802 | long _arg2; | |
4803 | long _arg3; | |
4804 | long _arg4; | |
4805 | wxDC * _arg5; | |
4806 | long _arg6; | |
4807 | long _arg7; | |
4808 | int _arg8 = (int ) wxCOPY; | |
4809 | int _arg9 = (int ) FALSE; | |
4810 | PyObject * _argo0 = 0; | |
4811 | PyObject * _argo5 = 0; | |
4812 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; | |
4813 | ||
4814 | self = self; | |
4815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
4816 | return NULL; | |
4817 | if (_argo0) { | |
4818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
4821 | return NULL; | |
4822 | } | |
4823 | } | |
4824 | if (_argo5) { | |
4825 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
4826 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
4827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
4828 | return NULL; | |
4829 | } | |
4830 | } | |
4831 | { | |
4832 | wxPy_BEGIN_ALLOW_THREADS; | |
4833 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
4834 | ||
4835 | wxPy_END_ALLOW_THREADS; | |
4836 | if (PyErr_Occurred()) return NULL; | |
4837 | } _resultobj = Py_BuildValue("i",_result); | |
4838 | return _resultobj; | |
4839 | } | |
4840 | ||
4841 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
4842 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4843 | PyObject * _resultobj; | |
4844 | wxDC * _arg0; | |
4845 | PyObject * _argo0 = 0; | |
4846 | char *_kwnames[] = { "self", NULL }; | |
4847 | ||
4848 | self = self; | |
4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) | |
4850 | return NULL; | |
4851 | if (_argo0) { | |
4852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
4855 | return NULL; | |
4856 | } | |
4857 | } | |
4858 | { | |
4859 | wxPy_BEGIN_ALLOW_THREADS; | |
4860 | wxDC_Clear(_arg0); | |
4861 | ||
4862 | wxPy_END_ALLOW_THREADS; | |
4863 | if (PyErr_Occurred()) return NULL; | |
4864 | } Py_INCREF(Py_None); | |
4865 | _resultobj = Py_None; | |
4866 | return _resultobj; | |
4867 | } | |
4868 | ||
4869 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
4870 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4871 | PyObject * _resultobj; | |
4872 | wxDC * _arg0; | |
4873 | long _arg1; | |
4874 | long _arg2; | |
4875 | PyObject * _argo0 = 0; | |
4876 | char *_kwnames[] = { "self","x","y", NULL }; | |
4877 | ||
4878 | self = self; | |
4879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4880 | return NULL; | |
4881 | if (_argo0) { | |
4882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
4885 | return NULL; | |
4886 | } | |
4887 | } | |
4888 | { | |
4889 | wxPy_BEGIN_ALLOW_THREADS; | |
4890 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
4891 | ||
4892 | wxPy_END_ALLOW_THREADS; | |
4893 | if (PyErr_Occurred()) return NULL; | |
4894 | } Py_INCREF(Py_None); | |
4895 | _resultobj = Py_None; | |
4896 | return _resultobj; | |
4897 | } | |
4898 | ||
4899 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
4900 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4901 | PyObject * _resultobj; | |
4902 | wxDC * _arg0; | |
4903 | PyObject * _argo0 = 0; | |
4904 | char *_kwnames[] = { "self", NULL }; | |
4905 | ||
4906 | self = self; | |
4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) | |
4908 | return NULL; | |
4909 | if (_argo0) { | |
4910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
4913 | return NULL; | |
4914 | } | |
4915 | } | |
4916 | { | |
4917 | wxPy_BEGIN_ALLOW_THREADS; | |
4918 | wxDC_DestroyClippingRegion(_arg0); | |
4919 | ||
4920 | wxPy_END_ALLOW_THREADS; | |
4921 | if (PyErr_Occurred()) return NULL; | |
4922 | } Py_INCREF(Py_None); | |
4923 | _resultobj = Py_None; | |
4924 | return _resultobj; | |
4925 | } | |
4926 | ||
4927 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
4928 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject * _resultobj; | |
4930 | long _result; | |
4931 | wxDC * _arg0; | |
4932 | long _arg1; | |
4933 | PyObject * _argo0 = 0; | |
4934 | char *_kwnames[] = { "self","x", NULL }; | |
4935 | ||
4936 | self = self; | |
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) | |
4938 | return NULL; | |
4939 | if (_argo0) { | |
4940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
4943 | return NULL; | |
4944 | } | |
4945 | } | |
4946 | { | |
4947 | wxPy_BEGIN_ALLOW_THREADS; | |
4948 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
4949 | ||
4950 | wxPy_END_ALLOW_THREADS; | |
4951 | if (PyErr_Occurred()) return NULL; | |
4952 | } _resultobj = Py_BuildValue("l",_result); | |
4953 | return _resultobj; | |
4954 | } | |
4955 | ||
4956 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
4957 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4958 | PyObject * _resultobj; | |
4959 | long _result; | |
4960 | wxDC * _arg0; | |
4961 | long _arg1; | |
4962 | PyObject * _argo0 = 0; | |
4963 | char *_kwnames[] = { "self","x", NULL }; | |
4964 | ||
4965 | self = self; | |
4966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) | |
4967 | return NULL; | |
4968 | if (_argo0) { | |
4969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
4972 | return NULL; | |
4973 | } | |
4974 | } | |
4975 | { | |
4976 | wxPy_BEGIN_ALLOW_THREADS; | |
4977 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
4978 | ||
4979 | wxPy_END_ALLOW_THREADS; | |
4980 | if (PyErr_Occurred()) return NULL; | |
4981 | } _resultobj = Py_BuildValue("l",_result); | |
4982 | return _resultobj; | |
4983 | } | |
4984 | ||
4985 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
4986 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4987 | PyObject * _resultobj; | |
4988 | long _result; | |
4989 | wxDC * _arg0; | |
4990 | long _arg1; | |
4991 | PyObject * _argo0 = 0; | |
4992 | char *_kwnames[] = { "self","y", NULL }; | |
4993 | ||
4994 | self = self; | |
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) | |
4996 | return NULL; | |
4997 | if (_argo0) { | |
4998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
5001 | return NULL; | |
5002 | } | |
5003 | } | |
5004 | { | |
5005 | wxPy_BEGIN_ALLOW_THREADS; | |
5006 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
5007 | ||
5008 | wxPy_END_ALLOW_THREADS; | |
5009 | if (PyErr_Occurred()) return NULL; | |
5010 | } _resultobj = Py_BuildValue("l",_result); | |
5011 | return _resultobj; | |
5012 | } | |
5013 | ||
5014 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
5015 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject * _resultobj; | |
5017 | long _result; | |
5018 | wxDC * _arg0; | |
5019 | long _arg1; | |
5020 | PyObject * _argo0 = 0; | |
5021 | char *_kwnames[] = { "self","y", NULL }; | |
5022 | ||
5023 | self = self; | |
5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) | |
5025 | return NULL; | |
5026 | if (_argo0) { | |
5027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
5030 | return NULL; | |
5031 | } | |
5032 | } | |
5033 | { | |
5034 | wxPy_BEGIN_ALLOW_THREADS; | |
5035 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
5036 | ||
5037 | wxPy_END_ALLOW_THREADS; | |
5038 | if (PyErr_Occurred()) return NULL; | |
5039 | } _resultobj = Py_BuildValue("l",_result); | |
5040 | return _resultobj; | |
5041 | } | |
5042 | ||
5043 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5044 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5045 | PyObject * _resultobj; | |
5046 | wxDC * _arg0; | |
5047 | long _arg1; | |
5048 | long _arg2; | |
5049 | long _arg3; | |
5050 | long _arg4; | |
5051 | long _arg5; | |
5052 | long _arg6; | |
5053 | PyObject * _argo0 = 0; | |
5054 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; | |
5055 | ||
5056 | self = self; | |
5057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
5058 | return NULL; | |
5059 | if (_argo0) { | |
5060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
5063 | return NULL; | |
5064 | } | |
5065 | } | |
5066 | { | |
5067 | wxPy_BEGIN_ALLOW_THREADS; | |
5068 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5069 | ||
5070 | wxPy_END_ALLOW_THREADS; | |
5071 | if (PyErr_Occurred()) return NULL; | |
5072 | } Py_INCREF(Py_None); | |
5073 | _resultobj = Py_None; | |
5074 | return _resultobj; | |
5075 | } | |
5076 | ||
5077 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) | |
5078 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5079 | PyObject * _resultobj; | |
5080 | wxDC * _arg0; | |
5081 | long _arg1; | |
5082 | long _arg2; | |
5083 | long _arg3; | |
5084 | PyObject * _argo0 = 0; | |
5085 | char *_kwnames[] = { "self","x","y","radius", NULL }; | |
5086 | ||
5087 | self = self; | |
5088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
5089 | return NULL; | |
5090 | if (_argo0) { | |
5091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); | |
5094 | return NULL; | |
5095 | } | |
5096 | } | |
5097 | { | |
5098 | wxPy_BEGIN_ALLOW_THREADS; | |
5099 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
5100 | ||
5101 | wxPy_END_ALLOW_THREADS; | |
5102 | if (PyErr_Occurred()) return NULL; | |
5103 | } Py_INCREF(Py_None); | |
5104 | _resultobj = Py_None; | |
5105 | return _resultobj; | |
5106 | } | |
5107 | ||
5108 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5109 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5110 | PyObject * _resultobj; | |
5111 | wxDC * _arg0; | |
5112 | long _arg1; | |
5113 | long _arg2; | |
5114 | long _arg3; | |
5115 | long _arg4; | |
5116 | PyObject * _argo0 = 0; | |
5117 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
5118 | ||
5119 | self = self; | |
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5121 | return NULL; | |
5122 | if (_argo0) { | |
5123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
5126 | return NULL; | |
5127 | } | |
5128 | } | |
5129 | { | |
5130 | wxPy_BEGIN_ALLOW_THREADS; | |
5131 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5132 | ||
5133 | wxPy_END_ALLOW_THREADS; | |
5134 | if (PyErr_Occurred()) return NULL; | |
5135 | } Py_INCREF(Py_None); | |
5136 | _resultobj = Py_None; | |
5137 | return _resultobj; | |
5138 | } | |
5139 | ||
5140 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5141 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5142 | PyObject * _resultobj; | |
5143 | wxDC * _arg0; | |
5144 | long _arg1; | |
5145 | long _arg2; | |
5146 | long _arg3; | |
5147 | long _arg4; | |
5148 | long _arg5; | |
5149 | long _arg6; | |
5150 | PyObject * _argo0 = 0; | |
5151 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; | |
5152 | ||
5153 | self = self; | |
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
5155 | return NULL; | |
5156 | if (_argo0) { | |
5157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
5160 | return NULL; | |
5161 | } | |
5162 | } | |
5163 | { | |
5164 | wxPy_BEGIN_ALLOW_THREADS; | |
5165 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5166 | ||
5167 | wxPy_END_ALLOW_THREADS; | |
5168 | if (PyErr_Occurred()) return NULL; | |
5169 | } Py_INCREF(Py_None); | |
5170 | _resultobj = Py_None; | |
5171 | return _resultobj; | |
5172 | } | |
5173 | ||
5174 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
5175 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject * _resultobj; | |
5177 | wxDC * _arg0; | |
5178 | wxIcon * _arg1; | |
5179 | long _arg2; | |
5180 | long _arg3; | |
5181 | PyObject * _argo0 = 0; | |
5182 | PyObject * _argo1 = 0; | |
5183 | char *_kwnames[] = { "self","icon","x","y", NULL }; | |
5184 | ||
5185 | self = self; | |
5186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
5187 | return NULL; | |
5188 | if (_argo0) { | |
5189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
5192 | return NULL; | |
5193 | } | |
5194 | } | |
5195 | if (_argo1) { | |
5196 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5197 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
5198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
5199 | return NULL; | |
5200 | } | |
5201 | } | |
5202 | { | |
5203 | wxPy_BEGIN_ALLOW_THREADS; | |
5204 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
5205 | ||
5206 | wxPy_END_ALLOW_THREADS; | |
5207 | if (PyErr_Occurred()) return NULL; | |
5208 | } Py_INCREF(Py_None); | |
5209 | _resultobj = Py_None; | |
5210 | return _resultobj; | |
5211 | } | |
5212 | ||
5213 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5214 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5215 | PyObject * _resultobj; | |
5216 | wxDC * _arg0; | |
5217 | long _arg1; | |
5218 | long _arg2; | |
5219 | long _arg3; | |
5220 | long _arg4; | |
5221 | PyObject * _argo0 = 0; | |
5222 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
5223 | ||
5224 | self = self; | |
5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5226 | return NULL; | |
5227 | if (_argo0) { | |
5228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
5231 | return NULL; | |
5232 | } | |
5233 | } | |
5234 | { | |
5235 | wxPy_BEGIN_ALLOW_THREADS; | |
5236 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5237 | ||
5238 | wxPy_END_ALLOW_THREADS; | |
5239 | if (PyErr_Occurred()) return NULL; | |
5240 | } Py_INCREF(Py_None); | |
5241 | _resultobj = Py_None; | |
5242 | return _resultobj; | |
5243 | } | |
5244 | ||
5245 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5246 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5247 | PyObject * _resultobj; | |
5248 | wxDC * _arg0; | |
5249 | int _arg1; | |
5250 | wxPoint * _arg2; | |
5251 | long _arg3 = (long ) 0; | |
5252 | long _arg4 = (long ) 0; | |
5253 | PyObject * _argo0 = 0; | |
5254 | int NPOINTS; | |
5255 | PyObject * _obj2 = 0; | |
5256 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; | |
5257 | ||
5258 | self = self; | |
5259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) | |
5260 | return NULL; | |
5261 | if (_argo0) { | |
5262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
5265 | return NULL; | |
5266 | } | |
5267 | } | |
5268 | if (_obj2) | |
5269 | { | |
5270 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5271 | if (_arg2 == NULL) { | |
5272 | return NULL; | |
5273 | } | |
5274 | } | |
5275 | { | |
5276 | _arg1 = NPOINTS; | |
5277 | } | |
5278 | { | |
5279 | wxPy_BEGIN_ALLOW_THREADS; | |
5280 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5281 | ||
5282 | wxPy_END_ALLOW_THREADS; | |
5283 | if (PyErr_Occurred()) return NULL; | |
5284 | } Py_INCREF(Py_None); | |
5285 | _resultobj = Py_None; | |
5286 | { | |
5287 | delete [] _arg2; | |
5288 | } | |
5289 | return _resultobj; | |
5290 | } | |
5291 | ||
5292 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
5293 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5294 | PyObject * _resultobj; | |
5295 | wxDC * _arg0; | |
5296 | int _arg1; | |
5297 | wxPoint * _arg2; | |
5298 | long _arg3 = (long ) 0; | |
5299 | long _arg4 = (long ) 0; | |
5300 | int _arg5 = (int ) wxODDEVEN_RULE; | |
5301 | PyObject * _argo0 = 0; | |
5302 | int NPOINTS; | |
5303 | PyObject * _obj2 = 0; | |
5304 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; | |
5305 | ||
5306 | self = self; | |
5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
5308 | return NULL; | |
5309 | if (_argo0) { | |
5310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
5313 | return NULL; | |
5314 | } | |
5315 | } | |
5316 | if (_obj2) | |
5317 | { | |
5318 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5319 | if (_arg2 == NULL) { | |
5320 | return NULL; | |
5321 | } | |
5322 | } | |
5323 | { | |
5324 | _arg1 = NPOINTS; | |
5325 | } | |
5326 | { | |
5327 | wxPy_BEGIN_ALLOW_THREADS; | |
5328 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5329 | ||
5330 | wxPy_END_ALLOW_THREADS; | |
5331 | if (PyErr_Occurred()) return NULL; | |
5332 | } Py_INCREF(Py_None); | |
5333 | _resultobj = Py_None; | |
5334 | { | |
5335 | delete [] _arg2; | |
5336 | } | |
5337 | return _resultobj; | |
5338 | } | |
5339 | ||
5340 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
5341 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5342 | PyObject * _resultobj; | |
5343 | wxDC * _arg0; | |
5344 | long _arg1; | |
5345 | long _arg2; | |
5346 | PyObject * _argo0 = 0; | |
5347 | char *_kwnames[] = { "self","x","y", NULL }; | |
5348 | ||
5349 | self = self; | |
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5351 | return NULL; | |
5352 | if (_argo0) { | |
5353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
5356 | return NULL; | |
5357 | } | |
5358 | } | |
5359 | { | |
5360 | wxPy_BEGIN_ALLOW_THREADS; | |
5361 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
5362 | ||
5363 | wxPy_END_ALLOW_THREADS; | |
5364 | if (PyErr_Occurred()) return NULL; | |
5365 | } Py_INCREF(Py_None); | |
5366 | _resultobj = Py_None; | |
5367 | return _resultobj; | |
5368 | } | |
5369 | ||
5370 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5371 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5372 | PyObject * _resultobj; | |
5373 | wxDC * _arg0; | |
5374 | long _arg1; | |
5375 | long _arg2; | |
5376 | long _arg3; | |
5377 | long _arg4; | |
5378 | PyObject * _argo0 = 0; | |
5379 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
5380 | ||
5381 | self = self; | |
5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5383 | return NULL; | |
5384 | if (_argo0) { | |
5385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
5388 | return NULL; | |
5389 | } | |
5390 | } | |
5391 | { | |
5392 | wxPy_BEGIN_ALLOW_THREADS; | |
5393 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5394 | ||
5395 | wxPy_END_ALLOW_THREADS; | |
5396 | if (PyErr_Occurred()) return NULL; | |
5397 | } Py_INCREF(Py_None); | |
5398 | _resultobj = Py_None; | |
5399 | return _resultobj; | |
5400 | } | |
5401 | ||
5402 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5403 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5404 | PyObject * _resultobj; | |
5405 | wxDC * _arg0; | |
5406 | wxString * _arg1; | |
5407 | wxCoord _arg2; | |
5408 | wxCoord _arg3; | |
5409 | double _arg4; | |
5410 | PyObject * _argo0 = 0; | |
5411 | PyObject * _obj1 = 0; | |
5412 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
5413 | ||
5414 | self = self; | |
5415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5416 | return NULL; | |
5417 | if (_argo0) { | |
5418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
5421 | return NULL; | |
5422 | } | |
5423 | } | |
5424 | { | |
5425 | #if PYTHON_API_VERSION >= 1009 | |
5426 | char* tmpPtr; int tmpSize; | |
5427 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5428 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5429 | return NULL; | |
5430 | } | |
5431 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5432 | return NULL; | |
5433 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5434 | #else | |
5435 | if (!PyString_Check(_obj1)) { | |
5436 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5437 | return NULL; | |
5438 | } | |
5439 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5440 | #endif | |
5441 | } | |
5442 | { | |
5443 | wxPy_BEGIN_ALLOW_THREADS; | |
5444 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
5445 | ||
5446 | wxPy_END_ALLOW_THREADS; | |
5447 | if (PyErr_Occurred()) return NULL; | |
5448 | } Py_INCREF(Py_None); | |
5449 | _resultobj = Py_None; | |
5450 | { | |
5451 | if (_obj1) | |
5452 | delete _arg1; | |
5453 | } | |
5454 | return _resultobj; | |
5455 | } | |
5456 | ||
5457 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
5458 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5459 | PyObject * _resultobj; | |
5460 | wxDC * _arg0; | |
5461 | long _arg1; | |
5462 | long _arg2; | |
5463 | long _arg3; | |
5464 | long _arg4; | |
5465 | long _arg5 = (long ) 20; | |
5466 | PyObject * _argo0 = 0; | |
5467 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; | |
5468 | ||
5469 | self = self; | |
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
5471 | return NULL; | |
5472 | if (_argo0) { | |
5473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
5476 | return NULL; | |
5477 | } | |
5478 | } | |
5479 | { | |
5480 | wxPy_BEGIN_ALLOW_THREADS; | |
5481 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5482 | ||
5483 | wxPy_END_ALLOW_THREADS; | |
5484 | if (PyErr_Occurred()) return NULL; | |
5485 | } Py_INCREF(Py_None); | |
5486 | _resultobj = Py_None; | |
5487 | return _resultobj; | |
5488 | } | |
5489 | ||
5490 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
5491 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5492 | PyObject * _resultobj; | |
5493 | wxDC * _arg0; | |
5494 | int _arg1; | |
5495 | wxPoint * _arg2; | |
5496 | PyObject * _argo0 = 0; | |
5497 | int NPOINTS; | |
5498 | PyObject * _obj2 = 0; | |
5499 | char *_kwnames[] = { "self","points", NULL }; | |
5500 | ||
5501 | self = self; | |
5502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) | |
5503 | return NULL; | |
5504 | if (_argo0) { | |
5505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
5508 | return NULL; | |
5509 | } | |
5510 | } | |
5511 | if (_obj2) | |
5512 | { | |
5513 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5514 | if (_arg2 == NULL) { | |
5515 | return NULL; | |
5516 | } | |
5517 | } | |
5518 | { | |
5519 | _arg1 = NPOINTS; | |
5520 | } | |
5521 | { | |
5522 | wxPy_BEGIN_ALLOW_THREADS; | |
5523 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
5524 | ||
5525 | wxPy_END_ALLOW_THREADS; | |
5526 | if (PyErr_Occurred()) return NULL; | |
5527 | } Py_INCREF(Py_None); | |
5528 | _resultobj = Py_None; | |
5529 | { | |
5530 | delete [] _arg2; | |
5531 | } | |
5532 | return _resultobj; | |
5533 | } | |
5534 | ||
5535 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
5536 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5537 | PyObject * _resultobj; | |
5538 | wxDC * _arg0; | |
5539 | wxString * _arg1; | |
5540 | long _arg2; | |
5541 | long _arg3; | |
5542 | PyObject * _argo0 = 0; | |
5543 | PyObject * _obj1 = 0; | |
5544 | char *_kwnames[] = { "self","text","x","y", NULL }; | |
5545 | ||
5546 | self = self; | |
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5548 | return NULL; | |
5549 | if (_argo0) { | |
5550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); | |
5553 | return NULL; | |
5554 | } | |
5555 | } | |
5556 | { | |
5557 | #if PYTHON_API_VERSION >= 1009 | |
5558 | char* tmpPtr; int tmpSize; | |
5559 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5560 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5561 | return NULL; | |
5562 | } | |
5563 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5564 | return NULL; | |
5565 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5566 | #else | |
5567 | if (!PyString_Check(_obj1)) { | |
5568 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5569 | return NULL; | |
5570 | } | |
5571 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5572 | #endif | |
5573 | } | |
5574 | { | |
5575 | wxPy_BEGIN_ALLOW_THREADS; | |
5576 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
5577 | ||
5578 | wxPy_END_ALLOW_THREADS; | |
5579 | if (PyErr_Occurred()) return NULL; | |
5580 | } Py_INCREF(Py_None); | |
5581 | _resultobj = Py_None; | |
5582 | { | |
5583 | if (_obj1) | |
5584 | delete _arg1; | |
5585 | } | |
5586 | return _resultobj; | |
5587 | } | |
5588 | ||
5589 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
5590 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject * _resultobj; | |
5592 | wxDC * _arg0; | |
5593 | PyObject * _argo0 = 0; | |
5594 | char *_kwnames[] = { "self", NULL }; | |
5595 | ||
5596 | self = self; | |
5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) | |
5598 | return NULL; | |
5599 | if (_argo0) { | |
5600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
5606 | { | |
5607 | wxPy_BEGIN_ALLOW_THREADS; | |
5608 | wxDC_EndDoc(_arg0); | |
5609 | ||
5610 | wxPy_END_ALLOW_THREADS; | |
5611 | if (PyErr_Occurred()) return NULL; | |
5612 | } Py_INCREF(Py_None); | |
5613 | _resultobj = Py_None; | |
5614 | return _resultobj; | |
5615 | } | |
5616 | ||
5617 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
5618 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5619 | PyObject * _resultobj; | |
5620 | wxDC * _arg0; | |
5621 | PyObject * _argo0 = 0; | |
5622 | char *_kwnames[] = { "self", NULL }; | |
5623 | ||
5624 | self = self; | |
5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) | |
5626 | return NULL; | |
5627 | if (_argo0) { | |
5628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
5631 | return NULL; | |
5632 | } | |
5633 | } | |
5634 | { | |
5635 | wxPy_BEGIN_ALLOW_THREADS; | |
5636 | wxDC_EndDrawing(_arg0); | |
5637 | ||
5638 | wxPy_END_ALLOW_THREADS; | |
5639 | if (PyErr_Occurred()) return NULL; | |
5640 | } Py_INCREF(Py_None); | |
5641 | _resultobj = Py_None; | |
5642 | return _resultobj; | |
5643 | } | |
5644 | ||
5645 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
5646 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5647 | PyObject * _resultobj; | |
5648 | wxDC * _arg0; | |
5649 | PyObject * _argo0 = 0; | |
5650 | char *_kwnames[] = { "self", NULL }; | |
5651 | ||
5652 | self = self; | |
5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) | |
5654 | return NULL; | |
5655 | if (_argo0) { | |
5656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
5659 | return NULL; | |
5660 | } | |
5661 | } | |
5662 | { | |
5663 | wxPy_BEGIN_ALLOW_THREADS; | |
5664 | wxDC_EndPage(_arg0); | |
5665 | ||
5666 | wxPy_END_ALLOW_THREADS; | |
5667 | if (PyErr_Occurred()) return NULL; | |
5668 | } Py_INCREF(Py_None); | |
5669 | _resultobj = Py_None; | |
5670 | return _resultobj; | |
5671 | } | |
5672 | ||
5673 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5674 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5675 | PyObject * _resultobj; | |
5676 | wxDC * _arg0; | |
5677 | long _arg1; | |
5678 | long _arg2; | |
5679 | wxColour * _arg3; | |
5680 | int _arg4 = (int ) wxFLOOD_SURFACE; | |
5681 | PyObject * _argo0 = 0; | |
5682 | wxColour temp; | |
5683 | PyObject * _obj3 = 0; | |
5684 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; | |
5685 | ||
5686 | self = self; | |
5687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
5688 | return NULL; | |
5689 | if (_argo0) { | |
5690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
5693 | return NULL; | |
5694 | } | |
5695 | } | |
5696 | { | |
5697 | _arg3 = &temp; | |
5698 | if (! wxColour_helper(_obj3, &_arg3)) | |
5699 | return NULL; | |
5700 | } | |
5701 | { | |
5702 | wxPy_BEGIN_ALLOW_THREADS; | |
5703 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
5704 | ||
5705 | wxPy_END_ALLOW_THREADS; | |
5706 | if (PyErr_Occurred()) return NULL; | |
5707 | } Py_INCREF(Py_None); | |
5708 | _resultobj = Py_None; | |
5709 | return _resultobj; | |
5710 | } | |
5711 | ||
5712 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
5713 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5714 | PyObject * _resultobj; | |
5715 | wxBrush * _result; | |
5716 | wxDC * _arg0; | |
5717 | PyObject * _argo0 = 0; | |
5718 | char *_kwnames[] = { "self", NULL }; | |
5719 | char _ptemp[128]; | |
5720 | ||
5721 | self = self; | |
5722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) | |
5723 | return NULL; | |
5724 | if (_argo0) { | |
5725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
5728 | return NULL; | |
5729 | } | |
5730 | } | |
5731 | { | |
5732 | wxPy_BEGIN_ALLOW_THREADS; | |
5733 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
5734 | _result = (wxBrush *) &_result_ref; | |
5735 | ||
5736 | wxPy_END_ALLOW_THREADS; | |
5737 | if (PyErr_Occurred()) return NULL; | |
5738 | } if (_result) { | |
5739 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5740 | _resultobj = Py_BuildValue("s",_ptemp); | |
5741 | } else { | |
5742 | Py_INCREF(Py_None); | |
5743 | _resultobj = Py_None; | |
5744 | } | |
5745 | return _resultobj; | |
5746 | } | |
5747 | ||
5748 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
5749 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5750 | PyObject * _resultobj; | |
5751 | wxBrush * _result; | |
5752 | wxDC * _arg0; | |
5753 | PyObject * _argo0 = 0; | |
5754 | char *_kwnames[] = { "self", NULL }; | |
5755 | char _ptemp[128]; | |
5756 | ||
5757 | self = self; | |
5758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) | |
5759 | return NULL; | |
5760 | if (_argo0) { | |
5761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
5764 | return NULL; | |
5765 | } | |
5766 | } | |
5767 | { | |
5768 | wxPy_BEGIN_ALLOW_THREADS; | |
5769 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
5770 | _result = (wxBrush *) &_result_ref; | |
5771 | ||
5772 | wxPy_END_ALLOW_THREADS; | |
5773 | if (PyErr_Occurred()) return NULL; | |
5774 | } if (_result) { | |
5775 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5776 | _resultobj = Py_BuildValue("s",_ptemp); | |
5777 | } else { | |
5778 | Py_INCREF(Py_None); | |
5779 | _resultobj = Py_None; | |
5780 | } | |
5781 | return _resultobj; | |
5782 | } | |
5783 | ||
5784 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
5785 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5786 | PyObject * _resultobj; | |
5787 | long _result; | |
5788 | wxDC * _arg0; | |
5789 | PyObject * _argo0 = 0; | |
5790 | char *_kwnames[] = { "self", NULL }; | |
5791 | ||
5792 | self = self; | |
5793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) | |
5794 | return NULL; | |
5795 | if (_argo0) { | |
5796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
5799 | return NULL; | |
5800 | } | |
5801 | } | |
5802 | { | |
5803 | wxPy_BEGIN_ALLOW_THREADS; | |
5804 | _result = (long )wxDC_GetCharHeight(_arg0); | |
5805 | ||
5806 | wxPy_END_ALLOW_THREADS; | |
5807 | if (PyErr_Occurred()) return NULL; | |
5808 | } _resultobj = Py_BuildValue("l",_result); | |
5809 | return _resultobj; | |
5810 | } | |
5811 | ||
5812 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
5813 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5814 | PyObject * _resultobj; | |
5815 | long _result; | |
5816 | wxDC * _arg0; | |
5817 | PyObject * _argo0 = 0; | |
5818 | char *_kwnames[] = { "self", NULL }; | |
5819 | ||
5820 | self = self; | |
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) | |
5822 | return NULL; | |
5823 | if (_argo0) { | |
5824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
5827 | return NULL; | |
5828 | } | |
5829 | } | |
5830 | { | |
5831 | wxPy_BEGIN_ALLOW_THREADS; | |
5832 | _result = (long )wxDC_GetCharWidth(_arg0); | |
5833 | ||
5834 | wxPy_END_ALLOW_THREADS; | |
5835 | if (PyErr_Occurred()) return NULL; | |
5836 | } _resultobj = Py_BuildValue("l",_result); | |
5837 | return _resultobj; | |
5838 | } | |
5839 | ||
5840 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5841 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5842 | PyObject * _resultobj; | |
5843 | wxDC * _arg0; | |
5844 | long * _arg1; | |
5845 | long temp; | |
5846 | long * _arg2; | |
5847 | long temp0; | |
5848 | long * _arg3; | |
5849 | long temp1; | |
5850 | long * _arg4; | |
5851 | long temp2; | |
5852 | PyObject * _argo0 = 0; | |
5853 | char *_kwnames[] = { "self", NULL }; | |
5854 | ||
5855 | self = self; | |
5856 | { | |
5857 | _arg1 = &temp; | |
5858 | } | |
5859 | { | |
5860 | _arg2 = &temp0; | |
5861 | } | |
5862 | { | |
5863 | _arg3 = &temp1; | |
5864 | } | |
5865 | { | |
5866 | _arg4 = &temp2; | |
5867 | } | |
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) | |
5869 | return NULL; | |
5870 | if (_argo0) { | |
5871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
5874 | return NULL; | |
5875 | } | |
5876 | } | |
5877 | { | |
5878 | wxPy_BEGIN_ALLOW_THREADS; | |
5879 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5880 | ||
5881 | wxPy_END_ALLOW_THREADS; | |
5882 | if (PyErr_Occurred()) return NULL; | |
5883 | } Py_INCREF(Py_None); | |
5884 | _resultobj = Py_None; | |
5885 | { | |
5886 | PyObject *o; | |
5887 | o = PyInt_FromLong((long) (*_arg1)); | |
5888 | _resultobj = t_output_helper(_resultobj, o); | |
5889 | } | |
5890 | { | |
5891 | PyObject *o; | |
5892 | o = PyInt_FromLong((long) (*_arg2)); | |
5893 | _resultobj = t_output_helper(_resultobj, o); | |
5894 | } | |
5895 | { | |
5896 | PyObject *o; | |
5897 | o = PyInt_FromLong((long) (*_arg3)); | |
5898 | _resultobj = t_output_helper(_resultobj, o); | |
5899 | } | |
5900 | { | |
5901 | PyObject *o; | |
5902 | o = PyInt_FromLong((long) (*_arg4)); | |
5903 | _resultobj = t_output_helper(_resultobj, o); | |
5904 | } | |
5905 | return _resultobj; | |
5906 | } | |
5907 | ||
5908 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
5909 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5910 | PyObject * _resultobj; | |
5911 | wxFont * _result; | |
5912 | wxDC * _arg0; | |
5913 | PyObject * _argo0 = 0; | |
5914 | char *_kwnames[] = { "self", NULL }; | |
5915 | char _ptemp[128]; | |
5916 | ||
5917 | self = self; | |
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) | |
5919 | return NULL; | |
5920 | if (_argo0) { | |
5921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
5924 | return NULL; | |
5925 | } | |
5926 | } | |
5927 | { | |
5928 | wxPy_BEGIN_ALLOW_THREADS; | |
5929 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
5930 | _result = (wxFont *) &_result_ref; | |
5931 | ||
5932 | wxPy_END_ALLOW_THREADS; | |
5933 | if (PyErr_Occurred()) return NULL; | |
5934 | } if (_result) { | |
5935 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5936 | _resultobj = Py_BuildValue("s",_ptemp); | |
5937 | } else { | |
5938 | Py_INCREF(Py_None); | |
5939 | _resultobj = Py_None; | |
5940 | } | |
5941 | return _resultobj; | |
5942 | } | |
5943 | ||
5944 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
5945 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5946 | PyObject * _resultobj; | |
5947 | int _result; | |
5948 | wxDC * _arg0; | |
5949 | PyObject * _argo0 = 0; | |
5950 | char *_kwnames[] = { "self", NULL }; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) | |
5954 | return NULL; | |
5955 | if (_argo0) { | |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | { | |
5963 | wxPy_BEGIN_ALLOW_THREADS; | |
5964 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
5965 | ||
5966 | wxPy_END_ALLOW_THREADS; | |
5967 | if (PyErr_Occurred()) return NULL; | |
5968 | } _resultobj = Py_BuildValue("i",_result); | |
5969 | return _resultobj; | |
5970 | } | |
5971 | ||
5972 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) | |
5973 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject * _resultobj; | |
5975 | wxDC * _arg0; | |
5976 | double * _arg1; | |
5977 | double temp; | |
5978 | double * _arg2; | |
5979 | double temp0; | |
5980 | PyObject * _argo0 = 0; | |
5981 | char *_kwnames[] = { "self", NULL }; | |
5982 | ||
5983 | self = self; | |
5984 | { | |
5985 | _arg1 = &temp; | |
5986 | } | |
5987 | { | |
5988 | _arg2 = &temp0; | |
5989 | } | |
5990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
5991 | return NULL; | |
5992 | if (_argo0) { | |
5993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
5996 | return NULL; | |
5997 | } | |
5998 | } | |
5999 | { | |
6000 | wxPy_BEGIN_ALLOW_THREADS; | |
6001 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
6002 | ||
6003 | wxPy_END_ALLOW_THREADS; | |
6004 | if (PyErr_Occurred()) return NULL; | |
6005 | } Py_INCREF(Py_None); | |
6006 | _resultobj = Py_None; | |
6007 | { | |
6008 | PyObject *o; | |
6009 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6010 | _resultobj = t_output_helper(_resultobj, o); | |
6011 | } | |
6012 | { | |
6013 | PyObject *o; | |
6014 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6015 | _resultobj = t_output_helper(_resultobj, o); | |
6016 | } | |
6017 | return _resultobj; | |
6018 | } | |
6019 | ||
6020 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
6021 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6022 | PyObject * _resultobj; | |
6023 | int _result; | |
6024 | wxDC * _arg0; | |
6025 | PyObject * _argo0 = 0; | |
6026 | char *_kwnames[] = { "self", NULL }; | |
6027 | ||
6028 | self = self; | |
6029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) | |
6030 | return NULL; | |
6031 | if (_argo0) { | |
6032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
6035 | return NULL; | |
6036 | } | |
6037 | } | |
6038 | { | |
6039 | wxPy_BEGIN_ALLOW_THREADS; | |
6040 | _result = (int )wxDC_GetMapMode(_arg0); | |
6041 | ||
6042 | wxPy_END_ALLOW_THREADS; | |
6043 | if (PyErr_Occurred()) return NULL; | |
6044 | } _resultobj = Py_BuildValue("i",_result); | |
6045 | return _resultobj; | |
6046 | } | |
6047 | ||
6048 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
6049 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6050 | PyObject * _resultobj; | |
6051 | bool _result; | |
6052 | wxDC * _arg0; | |
6053 | PyObject * _argo0 = 0; | |
6054 | char *_kwnames[] = { "self", NULL }; | |
6055 | ||
6056 | self = self; | |
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) | |
6058 | return NULL; | |
6059 | if (_argo0) { | |
6060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
6063 | return NULL; | |
6064 | } | |
6065 | } | |
6066 | { | |
6067 | wxPy_BEGIN_ALLOW_THREADS; | |
6068 | _result = (bool )wxDC_GetOptimization(_arg0); | |
6069 | ||
6070 | wxPy_END_ALLOW_THREADS; | |
6071 | if (PyErr_Occurred()) return NULL; | |
6072 | } _resultobj = Py_BuildValue("i",_result); | |
6073 | return _resultobj; | |
6074 | } | |
6075 | ||
6076 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
6077 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6078 | PyObject * _resultobj; | |
6079 | wxPen * _result; | |
6080 | wxDC * _arg0; | |
6081 | PyObject * _argo0 = 0; | |
6082 | char *_kwnames[] = { "self", NULL }; | |
6083 | char _ptemp[128]; | |
6084 | ||
6085 | self = self; | |
6086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) | |
6087 | return NULL; | |
6088 | if (_argo0) { | |
6089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
6092 | return NULL; | |
6093 | } | |
6094 | } | |
6095 | { | |
6096 | wxPy_BEGIN_ALLOW_THREADS; | |
6097 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
6098 | _result = (wxPen *) &_result_ref; | |
6099 | ||
6100 | wxPy_END_ALLOW_THREADS; | |
6101 | if (PyErr_Occurred()) return NULL; | |
6102 | } if (_result) { | |
6103 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6104 | _resultobj = Py_BuildValue("s",_ptemp); | |
6105 | } else { | |
6106 | Py_INCREF(Py_None); | |
6107 | _resultobj = Py_None; | |
6108 | } | |
6109 | return _resultobj; | |
6110 | } | |
6111 | ||
6112 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
6113 | wxColour* wc = new wxColour(); | |
6114 | self->GetPixel(x, y, wc); | |
6115 | return wc; | |
6116 | } | |
6117 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6118 | PyObject * _resultobj; | |
6119 | wxColour * _result; | |
6120 | wxDC * _arg0; | |
6121 | long _arg1; | |
6122 | long _arg2; | |
6123 | PyObject * _argo0 = 0; | |
6124 | char *_kwnames[] = { "self","x","y", NULL }; | |
6125 | char _ptemp[128]; | |
6126 | ||
6127 | self = self; | |
6128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6129 | return NULL; | |
6130 | if (_argo0) { | |
6131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
6134 | return NULL; | |
6135 | } | |
6136 | } | |
6137 | { | |
6138 | wxPy_BEGIN_ALLOW_THREADS; | |
6139 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
6140 | ||
6141 | wxPy_END_ALLOW_THREADS; | |
6142 | if (PyErr_Occurred()) return NULL; | |
6143 | } if (_result) { | |
6144 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6145 | _resultobj = Py_BuildValue("s",_ptemp); | |
6146 | } else { | |
6147 | Py_INCREF(Py_None); | |
6148 | _resultobj = Py_None; | |
6149 | } | |
6150 | return _resultobj; | |
6151 | } | |
6152 | ||
6153 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
6154 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject * _resultobj; | |
6156 | wxDC * _arg0; | |
6157 | int * _arg1; | |
6158 | int temp; | |
6159 | int * _arg2; | |
6160 | int temp0; | |
6161 | PyObject * _argo0 = 0; | |
6162 | char *_kwnames[] = { "self", NULL }; | |
6163 | ||
6164 | self = self; | |
6165 | { | |
6166 | _arg1 = &temp; | |
6167 | } | |
6168 | { | |
6169 | _arg2 = &temp0; | |
6170 | } | |
6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) | |
6172 | return NULL; | |
6173 | if (_argo0) { | |
6174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); | |
6177 | return NULL; | |
6178 | } | |
6179 | } | |
6180 | { | |
6181 | wxPy_BEGIN_ALLOW_THREADS; | |
6182 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); | |
6183 | ||
6184 | wxPy_END_ALLOW_THREADS; | |
6185 | if (PyErr_Occurred()) return NULL; | |
6186 | } Py_INCREF(Py_None); | |
6187 | _resultobj = Py_None; | |
6188 | { | |
6189 | PyObject *o; | |
6190 | o = PyInt_FromLong((long) (*_arg1)); | |
6191 | _resultobj = t_output_helper(_resultobj, o); | |
6192 | } | |
6193 | { | |
6194 | PyObject *o; | |
6195 | o = PyInt_FromLong((long) (*_arg2)); | |
6196 | _resultobj = t_output_helper(_resultobj, o); | |
6197 | } | |
6198 | return _resultobj; | |
6199 | } | |
6200 | ||
6201 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) | |
6202 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6203 | PyObject * _resultobj; | |
6204 | wxSize * _result; | |
6205 | wxDC * _arg0; | |
6206 | PyObject * _argo0 = 0; | |
6207 | char *_kwnames[] = { "self", NULL }; | |
6208 | char _ptemp[128]; | |
6209 | ||
6210 | self = self; | |
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) | |
6212 | return NULL; | |
6213 | if (_argo0) { | |
6214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); | |
6217 | return NULL; | |
6218 | } | |
6219 | } | |
6220 | { | |
6221 | wxPy_BEGIN_ALLOW_THREADS; | |
6222 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
6223 | ||
6224 | wxPy_END_ALLOW_THREADS; | |
6225 | if (PyErr_Occurred()) return NULL; | |
6226 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
6227 | _resultobj = Py_BuildValue("s",_ptemp); | |
6228 | return _resultobj; | |
6229 | } | |
6230 | ||
6231 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) | |
6232 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6233 | PyObject * _resultobj; | |
6234 | wxSize * _result; | |
6235 | wxDC * _arg0; | |
6236 | PyObject * _argo0 = 0; | |
6237 | char *_kwnames[] = { "self", NULL }; | |
6238 | char _ptemp[128]; | |
6239 | ||
6240 | self = self; | |
6241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
6242 | return NULL; | |
6243 | if (_argo0) { | |
6244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
6247 | return NULL; | |
6248 | } | |
6249 | } | |
6250 | { | |
6251 | wxPy_BEGIN_ALLOW_THREADS; | |
6252 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
6253 | ||
6254 | wxPy_END_ALLOW_THREADS; | |
6255 | if (PyErr_Occurred()) return NULL; | |
6256 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
6257 | _resultobj = Py_BuildValue("s",_ptemp); | |
6258 | return _resultobj; | |
6259 | } | |
6260 | ||
6261 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
6262 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6263 | PyObject * _resultobj; | |
6264 | wxColour * _result; | |
6265 | wxDC * _arg0; | |
6266 | PyObject * _argo0 = 0; | |
6267 | char *_kwnames[] = { "self", NULL }; | |
6268 | char _ptemp[128]; | |
6269 | ||
6270 | self = self; | |
6271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) | |
6272 | return NULL; | |
6273 | if (_argo0) { | |
6274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
6277 | return NULL; | |
6278 | } | |
6279 | } | |
6280 | { | |
6281 | wxPy_BEGIN_ALLOW_THREADS; | |
6282 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); | |
6283 | ||
6284 | wxPy_END_ALLOW_THREADS; | |
6285 | if (PyErr_Occurred()) return NULL; | |
6286 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6287 | _resultobj = Py_BuildValue("s",_ptemp); | |
6288 | return _resultobj; | |
6289 | } | |
6290 | ||
6291 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
6292 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6293 | PyObject * _resultobj; | |
6294 | wxDC * _arg0; | |
6295 | wxString * _arg1; | |
6296 | long * _arg2; | |
6297 | long temp; | |
6298 | long * _arg3; | |
6299 | long temp0; | |
6300 | PyObject * _argo0 = 0; | |
6301 | PyObject * _obj1 = 0; | |
6302 | char *_kwnames[] = { "self","string", NULL }; | |
6303 | ||
6304 | self = self; | |
6305 | { | |
6306 | _arg2 = &temp; | |
6307 | } | |
6308 | { | |
6309 | _arg3 = &temp0; | |
6310 | } | |
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
6312 | return NULL; | |
6313 | if (_argo0) { | |
6314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); | |
6317 | return NULL; | |
6318 | } | |
6319 | } | |
6320 | { | |
6321 | #if PYTHON_API_VERSION >= 1009 | |
6322 | char* tmpPtr; int tmpSize; | |
6323 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6324 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6325 | return NULL; | |
6326 | } | |
6327 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6328 | return NULL; | |
6329 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6330 | #else | |
6331 | if (!PyString_Check(_obj1)) { | |
6332 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6333 | return NULL; | |
6334 | } | |
6335 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6336 | #endif | |
6337 | } | |
6338 | { | |
6339 | wxPy_BEGIN_ALLOW_THREADS; | |
6340 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
6341 | ||
6342 | wxPy_END_ALLOW_THREADS; | |
6343 | if (PyErr_Occurred()) return NULL; | |
6344 | } Py_INCREF(Py_None); | |
6345 | _resultobj = Py_None; | |
6346 | { | |
6347 | PyObject *o; | |
6348 | o = PyInt_FromLong((long) (*_arg2)); | |
6349 | _resultobj = t_output_helper(_resultobj, o); | |
6350 | } | |
6351 | { | |
6352 | PyObject *o; | |
6353 | o = PyInt_FromLong((long) (*_arg3)); | |
6354 | _resultobj = t_output_helper(_resultobj, o); | |
6355 | } | |
6356 | { | |
6357 | if (_obj1) | |
6358 | delete _arg1; | |
6359 | } | |
6360 | return _resultobj; | |
6361 | } | |
6362 | ||
6363 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6364 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6365 | PyObject * _resultobj; | |
6366 | wxDC * _arg0; | |
6367 | wxString * _arg1; | |
6368 | long * _arg2; | |
6369 | long temp; | |
6370 | long * _arg3; | |
6371 | long temp0; | |
6372 | long * _arg4; | |
6373 | long temp1; | |
6374 | long * _arg5; | |
6375 | long temp2; | |
6376 | wxFont * _arg6 = (wxFont *) NULL; | |
6377 | PyObject * _argo0 = 0; | |
6378 | PyObject * _obj1 = 0; | |
6379 | PyObject * _argo6 = 0; | |
6380 | char *_kwnames[] = { "self","string","font", NULL }; | |
6381 | ||
6382 | self = self; | |
6383 | { | |
6384 | _arg2 = &temp; | |
6385 | } | |
6386 | { | |
6387 | _arg3 = &temp0; | |
6388 | } | |
6389 | { | |
6390 | _arg4 = &temp1; | |
6391 | } | |
6392 | { | |
6393 | _arg5 = &temp2; | |
6394 | } | |
6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
6396 | return NULL; | |
6397 | if (_argo0) { | |
6398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); | |
6401 | return NULL; | |
6402 | } | |
6403 | } | |
6404 | { | |
6405 | #if PYTHON_API_VERSION >= 1009 | |
6406 | char* tmpPtr; int tmpSize; | |
6407 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6408 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6409 | return NULL; | |
6410 | } | |
6411 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6412 | return NULL; | |
6413 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6414 | #else | |
6415 | if (!PyString_Check(_obj1)) { | |
6416 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6417 | return NULL; | |
6418 | } | |
6419 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6420 | #endif | |
6421 | } | |
6422 | if (_argo6) { | |
6423 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6424 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
6425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); | |
6426 | return NULL; | |
6427 | } | |
6428 | } | |
6429 | { | |
6430 | wxPy_BEGIN_ALLOW_THREADS; | |
6431 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6432 | ||
6433 | wxPy_END_ALLOW_THREADS; | |
6434 | if (PyErr_Occurred()) return NULL; | |
6435 | } Py_INCREF(Py_None); | |
6436 | _resultobj = Py_None; | |
6437 | { | |
6438 | PyObject *o; | |
6439 | o = PyInt_FromLong((long) (*_arg2)); | |
6440 | _resultobj = t_output_helper(_resultobj, o); | |
6441 | } | |
6442 | { | |
6443 | PyObject *o; | |
6444 | o = PyInt_FromLong((long) (*_arg3)); | |
6445 | _resultobj = t_output_helper(_resultobj, o); | |
6446 | } | |
6447 | { | |
6448 | PyObject *o; | |
6449 | o = PyInt_FromLong((long) (*_arg4)); | |
6450 | _resultobj = t_output_helper(_resultobj, o); | |
6451 | } | |
6452 | { | |
6453 | PyObject *o; | |
6454 | o = PyInt_FromLong((long) (*_arg5)); | |
6455 | _resultobj = t_output_helper(_resultobj, o); | |
6456 | } | |
6457 | { | |
6458 | if (_obj1) | |
6459 | delete _arg1; | |
6460 | } | |
6461 | return _resultobj; | |
6462 | } | |
6463 | ||
6464 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
6465 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6466 | PyObject * _resultobj; | |
6467 | wxColour * _result; | |
6468 | wxDC * _arg0; | |
6469 | PyObject * _argo0 = 0; | |
6470 | char *_kwnames[] = { "self", NULL }; | |
6471 | char _ptemp[128]; | |
6472 | ||
6473 | self = self; | |
6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
6475 | return NULL; | |
6476 | if (_argo0) { | |
6477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
6480 | return NULL; | |
6481 | } | |
6482 | } | |
6483 | { | |
6484 | wxPy_BEGIN_ALLOW_THREADS; | |
6485 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); | |
6486 | ||
6487 | wxPy_END_ALLOW_THREADS; | |
6488 | if (PyErr_Occurred()) return NULL; | |
6489 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6490 | _resultobj = Py_BuildValue("s",_ptemp); | |
6491 | return _resultobj; | |
6492 | } | |
6493 | ||
6494 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
6495 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6496 | PyObject * _resultobj; | |
6497 | wxDC * _arg0; | |
6498 | double * _arg1; | |
6499 | double temp; | |
6500 | double * _arg2; | |
6501 | double temp0; | |
6502 | PyObject * _argo0 = 0; | |
6503 | char *_kwnames[] = { "self", NULL }; | |
6504 | ||
6505 | self = self; | |
6506 | { | |
6507 | _arg1 = &temp; | |
6508 | } | |
6509 | { | |
6510 | _arg2 = &temp0; | |
6511 | } | |
6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
6513 | return NULL; | |
6514 | if (_argo0) { | |
6515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
6518 | return NULL; | |
6519 | } | |
6520 | } | |
6521 | { | |
6522 | wxPy_BEGIN_ALLOW_THREADS; | |
6523 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
6524 | ||
6525 | wxPy_END_ALLOW_THREADS; | |
6526 | if (PyErr_Occurred()) return NULL; | |
6527 | } Py_INCREF(Py_None); | |
6528 | _resultobj = Py_None; | |
6529 | { | |
6530 | PyObject *o; | |
6531 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6532 | _resultobj = t_output_helper(_resultobj, o); | |
6533 | } | |
6534 | { | |
6535 | PyObject *o; | |
6536 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6537 | _resultobj = t_output_helper(_resultobj, o); | |
6538 | } | |
6539 | return _resultobj; | |
6540 | } | |
6541 | ||
6542 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
6543 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6544 | PyObject * _resultobj; | |
6545 | long _result; | |
6546 | wxDC * _arg0; | |
6547 | long _arg1; | |
6548 | PyObject * _argo0 = 0; | |
6549 | char *_kwnames[] = { "self","x", NULL }; | |
6550 | ||
6551 | self = self; | |
6552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) | |
6553 | return NULL; | |
6554 | if (_argo0) { | |
6555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
6558 | return NULL; | |
6559 | } | |
6560 | } | |
6561 | { | |
6562 | wxPy_BEGIN_ALLOW_THREADS; | |
6563 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
6564 | ||
6565 | wxPy_END_ALLOW_THREADS; | |
6566 | if (PyErr_Occurred()) return NULL; | |
6567 | } _resultobj = Py_BuildValue("l",_result); | |
6568 | return _resultobj; | |
6569 | } | |
6570 | ||
6571 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
6572 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6573 | PyObject * _resultobj; | |
6574 | long _result; | |
6575 | wxDC * _arg0; | |
6576 | long _arg1; | |
6577 | PyObject * _argo0 = 0; | |
6578 | char *_kwnames[] = { "self","x", NULL }; | |
6579 | ||
6580 | self = self; | |
6581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) | |
6582 | return NULL; | |
6583 | if (_argo0) { | |
6584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
6587 | return NULL; | |
6588 | } | |
6589 | } | |
6590 | { | |
6591 | wxPy_BEGIN_ALLOW_THREADS; | |
6592 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
6593 | ||
6594 | wxPy_END_ALLOW_THREADS; | |
6595 | if (PyErr_Occurred()) return NULL; | |
6596 | } _resultobj = Py_BuildValue("l",_result); | |
6597 | return _resultobj; | |
6598 | } | |
6599 | ||
6600 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
6601 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6602 | PyObject * _resultobj; | |
6603 | long _result; | |
6604 | wxDC * _arg0; | |
6605 | long _arg1; | |
6606 | PyObject * _argo0 = 0; | |
6607 | char *_kwnames[] = { "self","y", NULL }; | |
6608 | ||
6609 | self = self; | |
6610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) | |
6611 | return NULL; | |
6612 | if (_argo0) { | |
6613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); | |
6616 | return NULL; | |
6617 | } | |
6618 | } | |
6619 | { | |
6620 | wxPy_BEGIN_ALLOW_THREADS; | |
6621 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
6622 | ||
6623 | wxPy_END_ALLOW_THREADS; | |
6624 | if (PyErr_Occurred()) return NULL; | |
6625 | } _resultobj = Py_BuildValue("l",_result); | |
6626 | return _resultobj; | |
6627 | } | |
6628 | ||
6629 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
6630 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6631 | PyObject * _resultobj; | |
6632 | long _result; | |
6633 | wxDC * _arg0; | |
6634 | long _arg1; | |
6635 | PyObject * _argo0 = 0; | |
6636 | char *_kwnames[] = { "self","y", NULL }; | |
6637 | ||
6638 | self = self; | |
6639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) | |
6640 | return NULL; | |
6641 | if (_argo0) { | |
6642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
6645 | return NULL; | |
6646 | } | |
6647 | } | |
6648 | { | |
6649 | wxPy_BEGIN_ALLOW_THREADS; | |
6650 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
6651 | ||
6652 | wxPy_END_ALLOW_THREADS; | |
6653 | if (PyErr_Occurred()) return NULL; | |
6654 | } _resultobj = Py_BuildValue("l",_result); | |
6655 | return _resultobj; | |
6656 | } | |
6657 | ||
6658 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
6659 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6660 | PyObject * _resultobj; | |
6661 | long _result; | |
6662 | wxDC * _arg0; | |
6663 | PyObject * _argo0 = 0; | |
6664 | char *_kwnames[] = { "self", NULL }; | |
6665 | ||
6666 | self = self; | |
6667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) | |
6668 | return NULL; | |
6669 | if (_argo0) { | |
6670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
6673 | return NULL; | |
6674 | } | |
6675 | } | |
6676 | { | |
6677 | wxPy_BEGIN_ALLOW_THREADS; | |
6678 | _result = (long )wxDC_MaxX(_arg0); | |
6679 | ||
6680 | wxPy_END_ALLOW_THREADS; | |
6681 | if (PyErr_Occurred()) return NULL; | |
6682 | } _resultobj = Py_BuildValue("l",_result); | |
6683 | return _resultobj; | |
6684 | } | |
6685 | ||
6686 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
6687 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject * _resultobj; | |
6689 | long _result; | |
6690 | wxDC * _arg0; | |
6691 | PyObject * _argo0 = 0; | |
6692 | char *_kwnames[] = { "self", NULL }; | |
6693 | ||
6694 | self = self; | |
6695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) | |
6696 | return NULL; | |
6697 | if (_argo0) { | |
6698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
6701 | return NULL; | |
6702 | } | |
6703 | } | |
6704 | { | |
6705 | wxPy_BEGIN_ALLOW_THREADS; | |
6706 | _result = (long )wxDC_MaxY(_arg0); | |
6707 | ||
6708 | wxPy_END_ALLOW_THREADS; | |
6709 | if (PyErr_Occurred()) return NULL; | |
6710 | } _resultobj = Py_BuildValue("l",_result); | |
6711 | return _resultobj; | |
6712 | } | |
6713 | ||
6714 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
6715 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject * _resultobj; | |
6717 | long _result; | |
6718 | wxDC * _arg0; | |
6719 | PyObject * _argo0 = 0; | |
6720 | char *_kwnames[] = { "self", NULL }; | |
6721 | ||
6722 | self = self; | |
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) | |
6724 | return NULL; | |
6725 | if (_argo0) { | |
6726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
6729 | return NULL; | |
6730 | } | |
6731 | } | |
6732 | { | |
6733 | wxPy_BEGIN_ALLOW_THREADS; | |
6734 | _result = (long )wxDC_MinX(_arg0); | |
6735 | ||
6736 | wxPy_END_ALLOW_THREADS; | |
6737 | if (PyErr_Occurred()) return NULL; | |
6738 | } _resultobj = Py_BuildValue("l",_result); | |
6739 | return _resultobj; | |
6740 | } | |
6741 | ||
6742 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
6743 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject * _resultobj; | |
6745 | long _result; | |
6746 | wxDC * _arg0; | |
6747 | PyObject * _argo0 = 0; | |
6748 | char *_kwnames[] = { "self", NULL }; | |
6749 | ||
6750 | self = self; | |
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) | |
6752 | return NULL; | |
6753 | if (_argo0) { | |
6754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
6757 | return NULL; | |
6758 | } | |
6759 | } | |
6760 | { | |
6761 | wxPy_BEGIN_ALLOW_THREADS; | |
6762 | _result = (long )wxDC_MinY(_arg0); | |
6763 | ||
6764 | wxPy_END_ALLOW_THREADS; | |
6765 | if (PyErr_Occurred()) return NULL; | |
6766 | } _resultobj = Py_BuildValue("l",_result); | |
6767 | return _resultobj; | |
6768 | } | |
6769 | ||
6770 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
6771 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6772 | PyObject * _resultobj; | |
6773 | bool _result; | |
6774 | wxDC * _arg0; | |
6775 | PyObject * _argo0 = 0; | |
6776 | char *_kwnames[] = { "self", NULL }; | |
6777 | ||
6778 | self = self; | |
6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) | |
6780 | return NULL; | |
6781 | if (_argo0) { | |
6782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
6785 | return NULL; | |
6786 | } | |
6787 | } | |
6788 | { | |
6789 | wxPy_BEGIN_ALLOW_THREADS; | |
6790 | _result = (bool )wxDC_Ok(_arg0); | |
6791 | ||
6792 | wxPy_END_ALLOW_THREADS; | |
6793 | if (PyErr_Occurred()) return NULL; | |
6794 | } _resultobj = Py_BuildValue("i",_result); | |
6795 | return _resultobj; | |
6796 | } | |
6797 | ||
6798 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
6799 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject * _resultobj; | |
6801 | wxDC * _arg0; | |
6802 | long _arg1; | |
6803 | long _arg2; | |
6804 | PyObject * _argo0 = 0; | |
6805 | char *_kwnames[] = { "self","x","y", NULL }; | |
6806 | ||
6807 | self = self; | |
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6809 | return NULL; | |
6810 | if (_argo0) { | |
6811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
6814 | return NULL; | |
6815 | } | |
6816 | } | |
6817 | { | |
6818 | wxPy_BEGIN_ALLOW_THREADS; | |
6819 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
6820 | ||
6821 | wxPy_END_ALLOW_THREADS; | |
6822 | if (PyErr_Occurred()) return NULL; | |
6823 | } Py_INCREF(Py_None); | |
6824 | _resultobj = Py_None; | |
6825 | return _resultobj; | |
6826 | } | |
6827 | ||
6828 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
6829 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6830 | PyObject * _resultobj; | |
6831 | wxDC * _arg0; | |
6832 | wxBrush * _arg1; | |
6833 | PyObject * _argo0 = 0; | |
6834 | PyObject * _argo1 = 0; | |
6835 | char *_kwnames[] = { "self","brush", NULL }; | |
6836 | ||
6837 | self = self; | |
6838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) | |
6839 | return NULL; | |
6840 | if (_argo0) { | |
6841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
6844 | return NULL; | |
6845 | } | |
6846 | } | |
6847 | if (_argo1) { | |
6848 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6849 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
6851 | return NULL; | |
6852 | } | |
6853 | } | |
6854 | { | |
6855 | wxPy_BEGIN_ALLOW_THREADS; | |
6856 | wxDC_SetBackground(_arg0,*_arg1); | |
6857 | ||
6858 | wxPy_END_ALLOW_THREADS; | |
6859 | if (PyErr_Occurred()) return NULL; | |
6860 | } Py_INCREF(Py_None); | |
6861 | _resultobj = Py_None; | |
6862 | return _resultobj; | |
6863 | } | |
6864 | ||
6865 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
6866 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6867 | PyObject * _resultobj; | |
6868 | wxDC * _arg0; | |
6869 | int _arg1; | |
6870 | PyObject * _argo0 = 0; | |
6871 | char *_kwnames[] = { "self","mode", NULL }; | |
6872 | ||
6873 | self = self; | |
6874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) | |
6875 | return NULL; | |
6876 | if (_argo0) { | |
6877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
6880 | return NULL; | |
6881 | } | |
6882 | } | |
6883 | { | |
6884 | wxPy_BEGIN_ALLOW_THREADS; | |
6885 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
6886 | ||
6887 | wxPy_END_ALLOW_THREADS; | |
6888 | if (PyErr_Occurred()) return NULL; | |
6889 | } Py_INCREF(Py_None); | |
6890 | _resultobj = Py_None; | |
6891 | return _resultobj; | |
6892 | } | |
6893 | ||
6894 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6895 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6896 | PyObject * _resultobj; | |
6897 | wxDC * _arg0; | |
6898 | long _arg1; | |
6899 | long _arg2; | |
6900 | long _arg3; | |
6901 | long _arg4; | |
6902 | PyObject * _argo0 = 0; | |
6903 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
6904 | ||
6905 | self = self; | |
6906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6907 | return NULL; | |
6908 | if (_argo0) { | |
6909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
6912 | return NULL; | |
6913 | } | |
6914 | } | |
6915 | { | |
6916 | wxPy_BEGIN_ALLOW_THREADS; | |
6917 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6918 | ||
6919 | wxPy_END_ALLOW_THREADS; | |
6920 | if (PyErr_Occurred()) return NULL; | |
6921 | } Py_INCREF(Py_None); | |
6922 | _resultobj = Py_None; | |
6923 | return _resultobj; | |
6924 | } | |
6925 | ||
6926 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
6927 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6928 | PyObject * _resultobj; | |
6929 | wxDC * _arg0; | |
6930 | wxPalette * _arg1; | |
6931 | PyObject * _argo0 = 0; | |
6932 | PyObject * _argo1 = 0; | |
6933 | char *_kwnames[] = { "self","colourMap", NULL }; | |
6934 | ||
6935 | self = self; | |
6936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) | |
6937 | return NULL; | |
6938 | if (_argo0) { | |
6939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
6942 | return NULL; | |
6943 | } | |
6944 | } | |
6945 | if (_argo1) { | |
6946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
6949 | return NULL; | |
6950 | } | |
6951 | } | |
6952 | { | |
6953 | wxPy_BEGIN_ALLOW_THREADS; | |
6954 | wxDC_SetPalette(_arg0,*_arg1); | |
6955 | ||
6956 | wxPy_END_ALLOW_THREADS; | |
6957 | if (PyErr_Occurred()) return NULL; | |
6958 | } Py_INCREF(Py_None); | |
6959 | _resultobj = Py_None; | |
6960 | return _resultobj; | |
6961 | } | |
6962 | ||
6963 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
6964 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject * _resultobj; | |
6966 | wxDC * _arg0; | |
6967 | wxBrush * _arg1; | |
6968 | PyObject * _argo0 = 0; | |
6969 | PyObject * _argo1 = 0; | |
6970 | char *_kwnames[] = { "self","brush", NULL }; | |
6971 | ||
6972 | self = self; | |
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) | |
6974 | return NULL; | |
6975 | if (_argo0) { | |
6976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
6979 | return NULL; | |
6980 | } | |
6981 | } | |
6982 | if (_argo1) { | |
6983 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6984 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
6986 | return NULL; | |
6987 | } | |
6988 | } | |
6989 | { | |
6990 | wxPy_BEGIN_ALLOW_THREADS; | |
6991 | wxDC_SetBrush(_arg0,*_arg1); | |
6992 | ||
6993 | wxPy_END_ALLOW_THREADS; | |
6994 | if (PyErr_Occurred()) return NULL; | |
6995 | } Py_INCREF(Py_None); | |
6996 | _resultobj = Py_None; | |
6997 | return _resultobj; | |
6998 | } | |
6999 | ||
7000 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
7001 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7002 | PyObject * _resultobj; | |
7003 | wxDC * _arg0; | |
7004 | wxFont * _arg1; | |
7005 | PyObject * _argo0 = 0; | |
7006 | PyObject * _argo1 = 0; | |
7007 | char *_kwnames[] = { "self","font", NULL }; | |
7008 | ||
7009 | self = self; | |
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) | |
7011 | return NULL; | |
7012 | if (_argo0) { | |
7013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
7019 | if (_argo1) { | |
7020 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7021 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
7022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
7023 | return NULL; | |
7024 | } | |
7025 | } | |
7026 | { | |
7027 | wxPy_BEGIN_ALLOW_THREADS; | |
7028 | wxDC_SetFont(_arg0,*_arg1); | |
7029 | ||
7030 | wxPy_END_ALLOW_THREADS; | |
7031 | if (PyErr_Occurred()) return NULL; | |
7032 | } Py_INCREF(Py_None); | |
7033 | _resultobj = Py_None; | |
7034 | return _resultobj; | |
7035 | } | |
7036 | ||
7037 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
7038 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7039 | PyObject * _resultobj; | |
7040 | wxDC * _arg0; | |
7041 | int _arg1; | |
7042 | PyObject * _argo0 = 0; | |
7043 | char *_kwnames[] = { "self","function", NULL }; | |
7044 | ||
7045 | self = self; | |
7046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) | |
7047 | return NULL; | |
7048 | if (_argo0) { | |
7049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
7052 | return NULL; | |
7053 | } | |
7054 | } | |
7055 | { | |
7056 | wxPy_BEGIN_ALLOW_THREADS; | |
7057 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
7058 | ||
7059 | wxPy_END_ALLOW_THREADS; | |
7060 | if (PyErr_Occurred()) return NULL; | |
7061 | } Py_INCREF(Py_None); | |
7062 | _resultobj = Py_None; | |
7063 | return _resultobj; | |
7064 | } | |
7065 | ||
7066 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) | |
7067 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7068 | PyObject * _resultobj; | |
7069 | wxDC * _arg0; | |
7070 | double _arg1; | |
7071 | double _arg2; | |
7072 | PyObject * _argo0 = 0; | |
7073 | char *_kwnames[] = { "self","x","y", NULL }; | |
7074 | ||
7075 | self = self; | |
7076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7077 | return NULL; | |
7078 | if (_argo0) { | |
7079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
7082 | return NULL; | |
7083 | } | |
7084 | } | |
7085 | { | |
7086 | wxPy_BEGIN_ALLOW_THREADS; | |
7087 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
7088 | ||
7089 | wxPy_END_ALLOW_THREADS; | |
7090 | if (PyErr_Occurred()) return NULL; | |
7091 | } Py_INCREF(Py_None); | |
7092 | _resultobj = Py_None; | |
7093 | return _resultobj; | |
7094 | } | |
7095 | ||
7096 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
7097 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7098 | PyObject * _resultobj; | |
7099 | wxDC * _arg0; | |
7100 | int _arg1; | |
7101 | PyObject * _argo0 = 0; | |
7102 | char *_kwnames[] = { "self","mode", NULL }; | |
7103 | ||
7104 | self = self; | |
7105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) | |
7106 | return NULL; | |
7107 | if (_argo0) { | |
7108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); | |
7111 | return NULL; | |
7112 | } | |
7113 | } | |
7114 | { | |
7115 | wxPy_BEGIN_ALLOW_THREADS; | |
7116 | wxDC_SetMapMode(_arg0,_arg1); | |
7117 | ||
7118 | wxPy_END_ALLOW_THREADS; | |
7119 | if (PyErr_Occurred()) return NULL; | |
7120 | } Py_INCREF(Py_None); | |
7121 | _resultobj = Py_None; | |
7122 | return _resultobj; | |
7123 | } | |
7124 | ||
7125 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
7126 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject * _resultobj; | |
7128 | wxDC * _arg0; | |
7129 | bool _arg1; | |
7130 | PyObject * _argo0 = 0; | |
7131 | int tempbool1; | |
7132 | char *_kwnames[] = { "self","optimize", NULL }; | |
7133 | ||
7134 | self = self; | |
7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) | |
7136 | return NULL; | |
7137 | if (_argo0) { | |
7138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
7141 | return NULL; | |
7142 | } | |
7143 | } | |
7144 | _arg1 = (bool ) tempbool1; | |
7145 | { | |
7146 | wxPy_BEGIN_ALLOW_THREADS; | |
7147 | wxDC_SetOptimization(_arg0,_arg1); | |
7148 | ||
7149 | wxPy_END_ALLOW_THREADS; | |
7150 | if (PyErr_Occurred()) return NULL; | |
7151 | } Py_INCREF(Py_None); | |
7152 | _resultobj = Py_None; | |
7153 | return _resultobj; | |
7154 | } | |
7155 | ||
7156 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
7157 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7158 | PyObject * _resultobj; | |
7159 | wxDC * _arg0; | |
7160 | wxPen * _arg1; | |
7161 | PyObject * _argo0 = 0; | |
7162 | PyObject * _argo1 = 0; | |
7163 | char *_kwnames[] = { "self","pen", NULL }; | |
7164 | ||
7165 | self = self; | |
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) | |
7167 | return NULL; | |
7168 | if (_argo0) { | |
7169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
7172 | return NULL; | |
7173 | } | |
7174 | } | |
7175 | if (_argo1) { | |
7176 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7177 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
7178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
7179 | return NULL; | |
7180 | } | |
7181 | } | |
7182 | { | |
7183 | wxPy_BEGIN_ALLOW_THREADS; | |
7184 | wxDC_SetPen(_arg0,*_arg1); | |
7185 | ||
7186 | wxPy_END_ALLOW_THREADS; | |
7187 | if (PyErr_Occurred()) return NULL; | |
7188 | } Py_INCREF(Py_None); | |
7189 | _resultobj = Py_None; | |
7190 | return _resultobj; | |
7191 | } | |
7192 | ||
7193 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
7194 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7195 | PyObject * _resultobj; | |
7196 | wxDC * _arg0; | |
7197 | wxColour * _arg1; | |
7198 | PyObject * _argo0 = 0; | |
7199 | wxColour temp; | |
7200 | PyObject * _obj1 = 0; | |
7201 | char *_kwnames[] = { "self","colour", NULL }; | |
7202 | ||
7203 | self = self; | |
7204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) | |
7205 | return NULL; | |
7206 | if (_argo0) { | |
7207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
7210 | return NULL; | |
7211 | } | |
7212 | } | |
7213 | { | |
7214 | _arg1 = &temp; | |
7215 | if (! wxColour_helper(_obj1, &_arg1)) | |
7216 | return NULL; | |
7217 | } | |
7218 | { | |
7219 | wxPy_BEGIN_ALLOW_THREADS; | |
7220 | wxDC_SetTextBackground(_arg0,*_arg1); | |
7221 | ||
7222 | wxPy_END_ALLOW_THREADS; | |
7223 | if (PyErr_Occurred()) return NULL; | |
7224 | } Py_INCREF(Py_None); | |
7225 | _resultobj = Py_None; | |
7226 | return _resultobj; | |
7227 | } | |
7228 | ||
7229 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
7230 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7231 | PyObject * _resultobj; | |
7232 | wxDC * _arg0; | |
7233 | wxColour * _arg1; | |
7234 | PyObject * _argo0 = 0; | |
7235 | wxColour temp; | |
7236 | PyObject * _obj1 = 0; | |
7237 | char *_kwnames[] = { "self","colour", NULL }; | |
7238 | ||
7239 | self = self; | |
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) | |
7241 | return NULL; | |
7242 | if (_argo0) { | |
7243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
7246 | return NULL; | |
7247 | } | |
7248 | } | |
7249 | { | |
7250 | _arg1 = &temp; | |
7251 | if (! wxColour_helper(_obj1, &_arg1)) | |
7252 | return NULL; | |
7253 | } | |
7254 | { | |
7255 | wxPy_BEGIN_ALLOW_THREADS; | |
7256 | wxDC_SetTextForeground(_arg0,*_arg1); | |
7257 | ||
7258 | wxPy_END_ALLOW_THREADS; | |
7259 | if (PyErr_Occurred()) return NULL; | |
7260 | } Py_INCREF(Py_None); | |
7261 | _resultobj = Py_None; | |
7262 | return _resultobj; | |
7263 | } | |
7264 | ||
7265 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
7266 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7267 | PyObject * _resultobj; | |
7268 | wxDC * _arg0; | |
7269 | double _arg1; | |
7270 | double _arg2; | |
7271 | PyObject * _argo0 = 0; | |
7272 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; | |
7273 | ||
7274 | self = self; | |
7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7276 | return NULL; | |
7277 | if (_argo0) { | |
7278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); | |
7281 | return NULL; | |
7282 | } | |
7283 | } | |
7284 | { | |
7285 | wxPy_BEGIN_ALLOW_THREADS; | |
7286 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
7287 | ||
7288 | wxPy_END_ALLOW_THREADS; | |
7289 | if (PyErr_Occurred()) return NULL; | |
7290 | } Py_INCREF(Py_None); | |
7291 | _resultobj = Py_None; | |
7292 | return _resultobj; | |
7293 | } | |
7294 | ||
7295 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
7296 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7297 | PyObject * _resultobj; | |
7298 | bool _result; | |
7299 | wxDC * _arg0; | |
7300 | wxString * _arg1; | |
7301 | PyObject * _argo0 = 0; | |
7302 | PyObject * _obj1 = 0; | |
7303 | char *_kwnames[] = { "self","message", NULL }; | |
7304 | ||
7305 | self = self; | |
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) | |
7307 | return NULL; | |
7308 | if (_argo0) { | |
7309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
7312 | return NULL; | |
7313 | } | |
7314 | } | |
7315 | { | |
7316 | #if PYTHON_API_VERSION >= 1009 | |
7317 | char* tmpPtr; int tmpSize; | |
7318 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7319 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7320 | return NULL; | |
7321 | } | |
7322 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7323 | return NULL; | |
7324 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7325 | #else | |
7326 | if (!PyString_Check(_obj1)) { | |
7327 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7328 | return NULL; | |
7329 | } | |
7330 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7331 | #endif | |
7332 | } | |
7333 | { | |
7334 | wxPy_BEGIN_ALLOW_THREADS; | |
7335 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
7336 | ||
7337 | wxPy_END_ALLOW_THREADS; | |
7338 | if (PyErr_Occurred()) return NULL; | |
7339 | } _resultobj = Py_BuildValue("i",_result); | |
7340 | { | |
7341 | if (_obj1) | |
7342 | delete _arg1; | |
7343 | } | |
7344 | return _resultobj; | |
7345 | } | |
7346 | ||
7347 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
7348 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7349 | PyObject * _resultobj; | |
7350 | wxDC * _arg0; | |
7351 | PyObject * _argo0 = 0; | |
7352 | char *_kwnames[] = { "self", NULL }; | |
7353 | ||
7354 | self = self; | |
7355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) | |
7356 | return NULL; | |
7357 | if (_argo0) { | |
7358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); | |
7361 | return NULL; | |
7362 | } | |
7363 | } | |
7364 | { | |
7365 | wxPy_BEGIN_ALLOW_THREADS; | |
7366 | wxDC_StartPage(_arg0); | |
7367 | ||
7368 | wxPy_END_ALLOW_THREADS; | |
7369 | if (PyErr_Occurred()) return NULL; | |
7370 | } Py_INCREF(Py_None); | |
7371 | _resultobj = Py_None; | |
7372 | return _resultobj; | |
7373 | } | |
7374 | ||
7375 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7376 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7377 | PyObject * _resultobj; | |
7378 | wxDC * _arg0; | |
7379 | wxBitmap * _arg1; | |
7380 | long _arg2; | |
7381 | long _arg3; | |
7382 | int _arg4 = (int ) FALSE; | |
7383 | PyObject * _argo0 = 0; | |
7384 | PyObject * _argo1 = 0; | |
7385 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; | |
7386 | ||
7387 | self = self; | |
7388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) | |
7389 | return NULL; | |
7390 | if (_argo0) { | |
7391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
7394 | return NULL; | |
7395 | } | |
7396 | } | |
7397 | if (_argo1) { | |
7398 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7399 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
7401 | return NULL; | |
7402 | } | |
7403 | } | |
7404 | { | |
7405 | wxPy_BEGIN_ALLOW_THREADS; | |
7406 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
7407 | ||
7408 | wxPy_END_ALLOW_THREADS; | |
7409 | if (PyErr_Occurred()) return NULL; | |
7410 | } Py_INCREF(Py_None); | |
7411 | _resultobj = Py_None; | |
7412 | return _resultobj; | |
7413 | } | |
7414 | ||
7415 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) | |
7416 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7417 | PyObject * _resultobj; | |
7418 | bool _result; | |
7419 | wxDC * _arg0; | |
7420 | PyObject * _argo0 = 0; | |
7421 | char *_kwnames[] = { "self", NULL }; | |
7422 | ||
7423 | self = self; | |
7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
7425 | return NULL; | |
7426 | if (_argo0) { | |
7427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
7430 | return NULL; | |
7431 | } | |
7432 | } | |
7433 | { | |
7434 | wxPy_BEGIN_ALLOW_THREADS; | |
7435 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
7436 | ||
7437 | wxPy_END_ALLOW_THREADS; | |
7438 | if (PyErr_Occurred()) return NULL; | |
7439 | } _resultobj = Py_BuildValue("i",_result); | |
7440 | return _resultobj; | |
7441 | } | |
7442 | ||
7443 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
7444 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject * _resultobj; | |
7446 | bool _result; | |
7447 | wxDC * _arg0; | |
7448 | PyObject * _argo0 = 0; | |
7449 | char *_kwnames[] = { "self", NULL }; | |
7450 | ||
7451 | self = self; | |
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
7453 | return NULL; | |
7454 | if (_argo0) { | |
7455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
7458 | return NULL; | |
7459 | } | |
7460 | } | |
7461 | { | |
7462 | wxPy_BEGIN_ALLOW_THREADS; | |
7463 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
7464 | ||
7465 | wxPy_END_ALLOW_THREADS; | |
7466 | if (PyErr_Occurred()) return NULL; | |
7467 | } _resultobj = Py_BuildValue("i",_result); | |
7468 | return _resultobj; | |
7469 | } | |
7470 | ||
7471 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
7472 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject * _resultobj; | |
7474 | int _result; | |
7475 | wxDC * _arg0; | |
7476 | PyObject * _argo0 = 0; | |
7477 | char *_kwnames[] = { "self", NULL }; | |
7478 | ||
7479 | self = self; | |
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
7481 | return NULL; | |
7482 | if (_argo0) { | |
7483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
7486 | return NULL; | |
7487 | } | |
7488 | } | |
7489 | { | |
7490 | wxPy_BEGIN_ALLOW_THREADS; | |
7491 | _result = (int )wxDC_GetDepth(_arg0); | |
7492 | ||
7493 | wxPy_END_ALLOW_THREADS; | |
7494 | if (PyErr_Occurred()) return NULL; | |
7495 | } _resultobj = Py_BuildValue("i",_result); | |
7496 | return _resultobj; | |
7497 | } | |
7498 | ||
7499 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
7500 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7501 | PyObject * _resultobj; | |
7502 | wxSize * _result; | |
7503 | wxDC * _arg0; | |
7504 | PyObject * _argo0 = 0; | |
7505 | char *_kwnames[] = { "self", NULL }; | |
7506 | char _ptemp[128]; | |
7507 | ||
7508 | self = self; | |
7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
7510 | return NULL; | |
7511 | if (_argo0) { | |
7512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
7515 | return NULL; | |
7516 | } | |
7517 | } | |
7518 | { | |
7519 | wxPy_BEGIN_ALLOW_THREADS; | |
7520 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
7521 | ||
7522 | wxPy_END_ALLOW_THREADS; | |
7523 | if (PyErr_Occurred()) return NULL; | |
7524 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7525 | _resultobj = Py_BuildValue("s",_ptemp); | |
7526 | return _resultobj; | |
7527 | } | |
7528 | ||
7529 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
7530 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7531 | PyObject * _resultobj; | |
7532 | wxDC * _arg0; | |
7533 | int * _arg1; | |
7534 | int temp; | |
7535 | int * _arg2; | |
7536 | int temp0; | |
7537 | PyObject * _argo0 = 0; | |
7538 | char *_kwnames[] = { "self", NULL }; | |
7539 | ||
7540 | self = self; | |
7541 | { | |
7542 | _arg1 = &temp; | |
7543 | } | |
7544 | { | |
7545 | _arg2 = &temp0; | |
7546 | } | |
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
7548 | return NULL; | |
7549 | if (_argo0) { | |
7550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
7553 | return NULL; | |
7554 | } | |
7555 | } | |
7556 | { | |
7557 | wxPy_BEGIN_ALLOW_THREADS; | |
7558 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
7559 | ||
7560 | wxPy_END_ALLOW_THREADS; | |
7561 | if (PyErr_Occurred()) return NULL; | |
7562 | } Py_INCREF(Py_None); | |
7563 | _resultobj = Py_None; | |
7564 | { | |
7565 | PyObject *o; | |
7566 | o = PyInt_FromLong((long) (*_arg1)); | |
7567 | _resultobj = t_output_helper(_resultobj, o); | |
7568 | } | |
7569 | { | |
7570 | PyObject *o; | |
7571 | o = PyInt_FromLong((long) (*_arg2)); | |
7572 | _resultobj = t_output_helper(_resultobj, o); | |
7573 | } | |
7574 | return _resultobj; | |
7575 | } | |
7576 | ||
7577 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
7578 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7579 | PyObject * _resultobj; | |
7580 | wxDC * _arg0; | |
7581 | int _arg1; | |
7582 | int _arg2; | |
7583 | PyObject * _argo0 = 0; | |
7584 | char *_kwnames[] = { "self","x","y", NULL }; | |
7585 | ||
7586 | self = self; | |
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7588 | return NULL; | |
7589 | if (_argo0) { | |
7590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
7593 | return NULL; | |
7594 | } | |
7595 | } | |
7596 | { | |
7597 | wxPy_BEGIN_ALLOW_THREADS; | |
7598 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
7599 | ||
7600 | wxPy_END_ALLOW_THREADS; | |
7601 | if (PyErr_Occurred()) return NULL; | |
7602 | } Py_INCREF(Py_None); | |
7603 | _resultobj = Py_None; | |
7604 | return _resultobj; | |
7605 | } | |
7606 | ||
7607 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
7608 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7609 | PyObject * _resultobj; | |
7610 | wxDC * _arg0; | |
7611 | int * _arg1; | |
7612 | int temp; | |
7613 | int * _arg2; | |
7614 | int temp0; | |
7615 | PyObject * _argo0 = 0; | |
7616 | char *_kwnames[] = { "self", NULL }; | |
7617 | ||
7618 | self = self; | |
7619 | { | |
7620 | _arg1 = &temp; | |
7621 | } | |
7622 | { | |
7623 | _arg2 = &temp0; | |
7624 | } | |
7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
7626 | return NULL; | |
7627 | if (_argo0) { | |
7628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
7631 | return NULL; | |
7632 | } | |
7633 | } | |
7634 | { | |
7635 | wxPy_BEGIN_ALLOW_THREADS; | |
7636 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
7637 | ||
7638 | wxPy_END_ALLOW_THREADS; | |
7639 | if (PyErr_Occurred()) return NULL; | |
7640 | } Py_INCREF(Py_None); | |
7641 | _resultobj = Py_None; | |
7642 | { | |
7643 | PyObject *o; | |
7644 | o = PyInt_FromLong((long) (*_arg1)); | |
7645 | _resultobj = t_output_helper(_resultobj, o); | |
7646 | } | |
7647 | { | |
7648 | PyObject *o; | |
7649 | o = PyInt_FromLong((long) (*_arg2)); | |
7650 | _resultobj = t_output_helper(_resultobj, o); | |
7651 | } | |
7652 | return _resultobj; | |
7653 | } | |
7654 | ||
7655 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
7656 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7657 | PyObject * _resultobj; | |
7658 | wxDC * _arg0; | |
7659 | bool _arg1; | |
7660 | bool _arg2; | |
7661 | PyObject * _argo0 = 0; | |
7662 | int tempbool1; | |
7663 | int tempbool2; | |
7664 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
7665 | ||
7666 | self = self; | |
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7668 | return NULL; | |
7669 | if (_argo0) { | |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
7673 | return NULL; | |
7674 | } | |
7675 | } | |
7676 | _arg1 = (bool ) tempbool1; | |
7677 | _arg2 = (bool ) tempbool2; | |
7678 | { | |
7679 | wxPy_BEGIN_ALLOW_THREADS; | |
7680 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
7681 | ||
7682 | wxPy_END_ALLOW_THREADS; | |
7683 | if (PyErr_Occurred()) return NULL; | |
7684 | } Py_INCREF(Py_None); | |
7685 | _resultobj = Py_None; | |
7686 | return _resultobj; | |
7687 | } | |
7688 | ||
7689 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) | |
7690 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7691 | PyObject * _resultobj; | |
7692 | wxDC * _arg0; | |
7693 | int _arg1; | |
7694 | int _arg2; | |
7695 | PyObject * _argo0 = 0; | |
7696 | char *_kwnames[] = { "self","x","y", NULL }; | |
7697 | ||
7698 | self = self; | |
7699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7700 | return NULL; | |
7701 | if (_argo0) { | |
7702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
7705 | return NULL; | |
7706 | } | |
7707 | } | |
7708 | { | |
7709 | wxPy_BEGIN_ALLOW_THREADS; | |
7710 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
7711 | ||
7712 | wxPy_END_ALLOW_THREADS; | |
7713 | if (PyErr_Occurred()) return NULL; | |
7714 | } Py_INCREF(Py_None); | |
7715 | _resultobj = Py_None; | |
7716 | return _resultobj; | |
7717 | } | |
7718 | ||
7719 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
7720 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7721 | PyObject * _resultobj; | |
7722 | wxDC * _arg0; | |
7723 | PyObject * _argo0 = 0; | |
7724 | char *_kwnames[] = { "self", NULL }; | |
7725 | ||
7726 | self = self; | |
7727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
7728 | return NULL; | |
7729 | if (_argo0) { | |
7730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
7733 | return NULL; | |
7734 | } | |
7735 | } | |
7736 | { | |
7737 | wxPy_BEGIN_ALLOW_THREADS; | |
7738 | wxDC_ResetBoundingBox(_arg0); | |
7739 | ||
7740 | wxPy_END_ALLOW_THREADS; | |
7741 | if (PyErr_Occurred()) return NULL; | |
7742 | } Py_INCREF(Py_None); | |
7743 | _resultobj = Py_None; | |
7744 | return _resultobj; | |
7745 | } | |
7746 | ||
7747 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
7748 | wxMemoryDC *src; | |
7749 | wxDC *dest; | |
7750 | src = (wxMemoryDC *) ptr; | |
7751 | dest = (wxDC *) src; | |
7752 | return (void *) dest; | |
7753 | } | |
7754 | ||
7755 | static void *SwigwxMemoryDCTowxObject(void *ptr) { | |
7756 | wxMemoryDC *src; | |
7757 | wxObject *dest; | |
7758 | src = (wxMemoryDC *) ptr; | |
7759 | dest = (wxObject *) src; | |
7760 | return (void *) dest; | |
7761 | } | |
7762 | ||
7763 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
7764 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7765 | PyObject * _resultobj; | |
7766 | wxMemoryDC * _result; | |
7767 | char *_kwnames[] = { NULL }; | |
7768 | char _ptemp[128]; | |
7769 | ||
7770 | self = self; | |
7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) | |
7772 | return NULL; | |
7773 | { | |
7774 | wxPy_BEGIN_ALLOW_THREADS; | |
7775 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
7776 | ||
7777 | wxPy_END_ALLOW_THREADS; | |
7778 | if (PyErr_Occurred()) return NULL; | |
7779 | } if (_result) { | |
7780 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
7781 | _resultobj = Py_BuildValue("s",_ptemp); | |
7782 | } else { | |
7783 | Py_INCREF(Py_None); | |
7784 | _resultobj = Py_None; | |
7785 | } | |
7786 | return _resultobj; | |
7787 | } | |
7788 | ||
7789 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
7790 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7791 | PyObject * _resultobj; | |
7792 | wxMemoryDC * _arg0; | |
7793 | wxBitmap * _arg1; | |
7794 | PyObject * _argo0 = 0; | |
7795 | PyObject * _argo1 = 0; | |
7796 | char *_kwnames[] = { "self","bitmap", NULL }; | |
7797 | ||
7798 | self = self; | |
7799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) | |
7800 | return NULL; | |
7801 | if (_argo0) { | |
7802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
7804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
7805 | return NULL; | |
7806 | } | |
7807 | } | |
7808 | if (_argo1) { | |
7809 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7810 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
7812 | return NULL; | |
7813 | } | |
7814 | } | |
7815 | { | |
7816 | wxPy_BEGIN_ALLOW_THREADS; | |
7817 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
7818 | ||
7819 | wxPy_END_ALLOW_THREADS; | |
7820 | if (PyErr_Occurred()) return NULL; | |
7821 | } Py_INCREF(Py_None); | |
7822 | _resultobj = Py_None; | |
7823 | return _resultobj; | |
7824 | } | |
7825 | ||
7826 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
7827 | wxScreenDC *src; | |
7828 | wxDC *dest; | |
7829 | src = (wxScreenDC *) ptr; | |
7830 | dest = (wxDC *) src; | |
7831 | return (void *) dest; | |
7832 | } | |
7833 | ||
7834 | static void *SwigwxScreenDCTowxObject(void *ptr) { | |
7835 | wxScreenDC *src; | |
7836 | wxObject *dest; | |
7837 | src = (wxScreenDC *) ptr; | |
7838 | dest = (wxObject *) src; | |
7839 | return (void *) dest; | |
7840 | } | |
7841 | ||
7842 | #define new_wxScreenDC() (new wxScreenDC()) | |
7843 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7844 | PyObject * _resultobj; | |
7845 | wxScreenDC * _result; | |
7846 | char *_kwnames[] = { NULL }; | |
7847 | char _ptemp[128]; | |
7848 | ||
7849 | self = self; | |
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) | |
7851 | return NULL; | |
7852 | { | |
7853 | wxPy_BEGIN_ALLOW_THREADS; | |
7854 | _result = (wxScreenDC *)new_wxScreenDC(); | |
7855 | ||
7856 | wxPy_END_ALLOW_THREADS; | |
7857 | if (PyErr_Occurred()) return NULL; | |
7858 | } if (_result) { | |
7859 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
7860 | _resultobj = Py_BuildValue("s",_ptemp); | |
7861 | } else { | |
7862 | Py_INCREF(Py_None); | |
7863 | _resultobj = Py_None; | |
7864 | } | |
7865 | return _resultobj; | |
7866 | } | |
7867 | ||
7868 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
7869 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject * _resultobj; | |
7871 | bool _result; | |
7872 | wxScreenDC * _arg0; | |
7873 | wxWindow * _arg1; | |
7874 | PyObject * _argo0 = 0; | |
7875 | PyObject * _argo1 = 0; | |
7876 | char *_kwnames[] = { "self","window", NULL }; | |
7877 | ||
7878 | self = self; | |
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) | |
7880 | return NULL; | |
7881 | if (_argo0) { | |
7882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); | |
7885 | return NULL; | |
7886 | } | |
7887 | } | |
7888 | if (_argo1) { | |
7889 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7890 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); | |
7892 | return NULL; | |
7893 | } | |
7894 | } | |
7895 | { | |
7896 | wxPy_BEGIN_ALLOW_THREADS; | |
7897 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); | |
7898 | ||
7899 | wxPy_END_ALLOW_THREADS; | |
7900 | if (PyErr_Occurred()) return NULL; | |
7901 | } _resultobj = Py_BuildValue("i",_result); | |
7902 | return _resultobj; | |
7903 | } | |
7904 | ||
7905 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
7906 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7907 | PyObject * _resultobj; | |
7908 | bool _result; | |
7909 | wxScreenDC * _arg0; | |
7910 | wxRect * _arg1 = (wxRect *) NULL; | |
7911 | PyObject * _argo0 = 0; | |
7912 | wxRect temp; | |
7913 | PyObject * _obj1 = 0; | |
7914 | char *_kwnames[] = { "self","rect", NULL }; | |
7915 | ||
7916 | self = self; | |
7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) | |
7918 | return NULL; | |
7919 | if (_argo0) { | |
7920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
7923 | return NULL; | |
7924 | } | |
7925 | } | |
7926 | if (_obj1) | |
7927 | { | |
7928 | _arg1 = &temp; | |
7929 | if (! wxRect_helper(_obj1, &_arg1)) | |
7930 | return NULL; | |
7931 | } | |
7932 | { | |
7933 | wxPy_BEGIN_ALLOW_THREADS; | |
7934 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); | |
7935 | ||
7936 | wxPy_END_ALLOW_THREADS; | |
7937 | if (PyErr_Occurred()) return NULL; | |
7938 | } _resultobj = Py_BuildValue("i",_result); | |
7939 | return _resultobj; | |
7940 | } | |
7941 | ||
7942 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
7943 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7944 | PyObject * _resultobj; | |
7945 | bool _result; | |
7946 | wxScreenDC * _arg0; | |
7947 | PyObject * _argo0 = 0; | |
7948 | char *_kwnames[] = { "self", NULL }; | |
7949 | ||
7950 | self = self; | |
7951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) | |
7952 | return NULL; | |
7953 | if (_argo0) { | |
7954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
7956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
7957 | return NULL; | |
7958 | } | |
7959 | } | |
7960 | { | |
7961 | wxPy_BEGIN_ALLOW_THREADS; | |
7962 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
7963 | ||
7964 | wxPy_END_ALLOW_THREADS; | |
7965 | if (PyErr_Occurred()) return NULL; | |
7966 | } _resultobj = Py_BuildValue("i",_result); | |
7967 | return _resultobj; | |
7968 | } | |
7969 | ||
7970 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
7971 | wxClientDC *src; | |
7972 | wxDC *dest; | |
7973 | src = (wxClientDC *) ptr; | |
7974 | dest = (wxDC *) src; | |
7975 | return (void *) dest; | |
7976 | } | |
7977 | ||
7978 | static void *SwigwxClientDCTowxObject(void *ptr) { | |
7979 | wxClientDC *src; | |
7980 | wxObject *dest; | |
7981 | src = (wxClientDC *) ptr; | |
7982 | dest = (wxObject *) src; | |
7983 | return (void *) dest; | |
7984 | } | |
7985 | ||
7986 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
7987 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7988 | PyObject * _resultobj; | |
7989 | wxClientDC * _result; | |
7990 | wxWindow * _arg0; | |
7991 | PyObject * _argo0 = 0; | |
7992 | char *_kwnames[] = { "win", NULL }; | |
7993 | char _ptemp[128]; | |
7994 | ||
7995 | self = self; | |
7996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) | |
7997 | return NULL; | |
7998 | if (_argo0) { | |
7999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
8002 | return NULL; | |
8003 | } | |
8004 | } | |
8005 | { | |
8006 | wxPy_BEGIN_ALLOW_THREADS; | |
8007 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
8008 | ||
8009 | wxPy_END_ALLOW_THREADS; | |
8010 | if (PyErr_Occurred()) return NULL; | |
8011 | } if (_result) { | |
8012 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
8013 | _resultobj = Py_BuildValue("s",_ptemp); | |
8014 | } else { | |
8015 | Py_INCREF(Py_None); | |
8016 | _resultobj = Py_None; | |
8017 | } | |
8018 | return _resultobj; | |
8019 | } | |
8020 | ||
8021 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
8022 | wxPaintDC *src; | |
8023 | wxDC *dest; | |
8024 | src = (wxPaintDC *) ptr; | |
8025 | dest = (wxDC *) src; | |
8026 | return (void *) dest; | |
8027 | } | |
8028 | ||
8029 | static void *SwigwxPaintDCTowxObject(void *ptr) { | |
8030 | wxPaintDC *src; | |
8031 | wxObject *dest; | |
8032 | src = (wxPaintDC *) ptr; | |
8033 | dest = (wxObject *) src; | |
8034 | return (void *) dest; | |
8035 | } | |
8036 | ||
8037 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
8038 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject * _resultobj; | |
8040 | wxPaintDC * _result; | |
8041 | wxWindow * _arg0; | |
8042 | PyObject * _argo0 = 0; | |
8043 | char *_kwnames[] = { "win", NULL }; | |
8044 | char _ptemp[128]; | |
8045 | ||
8046 | self = self; | |
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) | |
8048 | return NULL; | |
8049 | if (_argo0) { | |
8050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
8053 | return NULL; | |
8054 | } | |
8055 | } | |
8056 | { | |
8057 | wxPy_BEGIN_ALLOW_THREADS; | |
8058 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
8059 | ||
8060 | wxPy_END_ALLOW_THREADS; | |
8061 | if (PyErr_Occurred()) return NULL; | |
8062 | } if (_result) { | |
8063 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
8064 | _resultobj = Py_BuildValue("s",_ptemp); | |
8065 | } else { | |
8066 | Py_INCREF(Py_None); | |
8067 | _resultobj = Py_None; | |
8068 | } | |
8069 | return _resultobj; | |
8070 | } | |
8071 | ||
8072 | static void *SwigwxWindowDCTowxDC(void *ptr) { | |
8073 | wxWindowDC *src; | |
8074 | wxDC *dest; | |
8075 | src = (wxWindowDC *) ptr; | |
8076 | dest = (wxDC *) src; | |
8077 | return (void *) dest; | |
8078 | } | |
8079 | ||
8080 | static void *SwigwxWindowDCTowxObject(void *ptr) { | |
8081 | wxWindowDC *src; | |
8082 | wxObject *dest; | |
8083 | src = (wxWindowDC *) ptr; | |
8084 | dest = (wxObject *) src; | |
8085 | return (void *) dest; | |
8086 | } | |
8087 | ||
8088 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
8089 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8090 | PyObject * _resultobj; | |
8091 | wxWindowDC * _result; | |
8092 | wxWindow * _arg0; | |
8093 | PyObject * _argo0 = 0; | |
8094 | char *_kwnames[] = { "win", NULL }; | |
8095 | char _ptemp[128]; | |
8096 | ||
8097 | self = self; | |
8098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) | |
8099 | return NULL; | |
8100 | if (_argo0) { | |
8101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
8104 | return NULL; | |
8105 | } | |
8106 | } | |
8107 | { | |
8108 | wxPy_BEGIN_ALLOW_THREADS; | |
8109 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
8110 | ||
8111 | wxPy_END_ALLOW_THREADS; | |
8112 | if (PyErr_Occurred()) return NULL; | |
8113 | } if (_result) { | |
8114 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
8115 | _resultobj = Py_BuildValue("s",_ptemp); | |
8116 | } else { | |
8117 | Py_INCREF(Py_None); | |
8118 | _resultobj = Py_None; | |
8119 | } | |
8120 | return _resultobj; | |
8121 | } | |
8122 | ||
8123 | static void *SwigwxPostScriptDCTowxDC(void *ptr) { | |
8124 | wxPostScriptDC *src; | |
8125 | wxDC *dest; | |
8126 | src = (wxPostScriptDC *) ptr; | |
8127 | dest = (wxDC *) src; | |
8128 | return (void *) dest; | |
8129 | } | |
8130 | ||
8131 | static void *SwigwxPostScriptDCTowxObject(void *ptr) { | |
8132 | wxPostScriptDC *src; | |
8133 | wxObject *dest; | |
8134 | src = (wxPostScriptDC *) ptr; | |
8135 | dest = (wxObject *) src; | |
8136 | return (void *) dest; | |
8137 | } | |
8138 | ||
8139 | #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2)) | |
8140 | static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8141 | PyObject * _resultobj; | |
8142 | wxPostScriptDC * _result; | |
8143 | wxString * _arg0; | |
8144 | bool _arg1 = (bool ) TRUE; | |
8145 | wxWindow * _arg2 = (wxWindow *) NULL; | |
8146 | PyObject * _obj0 = 0; | |
8147 | int tempbool1 = (int) TRUE; | |
8148 | PyObject * _argo2 = 0; | |
8149 | char *_kwnames[] = { "output","interactive","win", NULL }; | |
8150 | char _ptemp[128]; | |
8151 | ||
8152 | self = self; | |
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC",_kwnames,&_obj0,&tempbool1,&_argo2)) | |
8154 | return NULL; | |
8155 | { | |
8156 | #if PYTHON_API_VERSION >= 1009 | |
8157 | char* tmpPtr; int tmpSize; | |
8158 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8159 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8160 | return NULL; | |
8161 | } | |
8162 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8163 | return NULL; | |
8164 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8165 | #else | |
8166 | if (!PyString_Check(_obj0)) { | |
8167 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8168 | return NULL; | |
8169 | } | |
8170 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
8171 | #endif | |
8172 | } | |
8173 | _arg1 = (bool ) tempbool1; | |
8174 | if (_argo2) { | |
8175 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8176 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
8177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p."); | |
8178 | return NULL; | |
8179 | } | |
8180 | } | |
8181 | { | |
8182 | wxPy_BEGIN_ALLOW_THREADS; | |
8183 | _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2); | |
8184 | ||
8185 | wxPy_END_ALLOW_THREADS; | |
8186 | if (PyErr_Occurred()) return NULL; | |
8187 | } if (_result) { | |
8188 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p"); | |
8189 | _resultobj = Py_BuildValue("s",_ptemp); | |
8190 | } else { | |
8191 | Py_INCREF(Py_None); | |
8192 | _resultobj = Py_None; | |
8193 | } | |
8194 | { | |
8195 | if (_obj0) | |
8196 | delete _arg0; | |
8197 | } | |
8198 | return _resultobj; | |
8199 | } | |
8200 | ||
8201 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { | |
8202 | wxPalette *src; | |
8203 | wxGDIObject *dest; | |
8204 | src = (wxPalette *) ptr; | |
8205 | dest = (wxGDIObject *) src; | |
8206 | return (void *) dest; | |
8207 | } | |
8208 | ||
8209 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
8210 | wxPalette *src; | |
8211 | wxObject *dest; | |
8212 | src = (wxPalette *) ptr; | |
8213 | dest = (wxObject *) src; | |
8214 | return (void *) dest; | |
8215 | } | |
8216 | ||
8217 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8218 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8219 | PyObject * _resultobj; | |
8220 | wxPalette * _result; | |
8221 | int _arg0; | |
8222 | byte * _arg1; | |
8223 | byte * _arg2; | |
8224 | byte * _arg3; | |
8225 | PyObject * _obj1 = 0; | |
8226 | PyObject * _obj2 = 0; | |
8227 | PyObject * _obj3 = 0; | |
8228 | char *_kwnames[] = { "choices","choices","choices", NULL }; | |
8229 | char _ptemp[128]; | |
8230 | ||
8231 | self = self; | |
8232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) | |
8233 | return NULL; | |
8234 | { | |
8235 | _arg1 = byte_LIST_helper(_obj1); | |
8236 | if (_arg1 == NULL) { | |
8237 | return NULL; | |
8238 | } | |
8239 | } | |
8240 | { | |
8241 | _arg2 = byte_LIST_helper(_obj2); | |
8242 | if (_arg2 == NULL) { | |
8243 | return NULL; | |
8244 | } | |
8245 | } | |
8246 | if (_obj3) | |
8247 | { | |
8248 | _arg3 = byte_LIST_helper(_obj3); | |
8249 | if (_arg3 == NULL) { | |
8250 | return NULL; | |
8251 | } | |
8252 | } | |
8253 | { | |
8254 | if (_obj1) { | |
8255 | _arg0 = PyList_Size(_obj1); | |
8256 | } | |
8257 | else { | |
8258 | _arg0 = 0; | |
8259 | } | |
8260 | } | |
8261 | { | |
8262 | wxPy_BEGIN_ALLOW_THREADS; | |
8263 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
8264 | ||
8265 | wxPy_END_ALLOW_THREADS; | |
8266 | if (PyErr_Occurred()) return NULL; | |
8267 | } if (_result) { | |
8268 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
8269 | _resultobj = Py_BuildValue("s",_ptemp); | |
8270 | } else { | |
8271 | Py_INCREF(Py_None); | |
8272 | _resultobj = Py_None; | |
8273 | } | |
8274 | { | |
8275 | delete [] _arg1; | |
8276 | } | |
8277 | { | |
8278 | delete [] _arg2; | |
8279 | } | |
8280 | { | |
8281 | delete [] _arg3; | |
8282 | } | |
8283 | return _resultobj; | |
8284 | } | |
8285 | ||
8286 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
8287 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8288 | PyObject * _resultobj; | |
8289 | wxPalette * _arg0; | |
8290 | PyObject * _argo0 = 0; | |
8291 | char *_kwnames[] = { "self", NULL }; | |
8292 | ||
8293 | self = self; | |
8294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) | |
8295 | return NULL; | |
8296 | if (_argo0) { | |
8297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
8300 | return NULL; | |
8301 | } | |
8302 | } | |
8303 | { | |
8304 | wxPy_BEGIN_ALLOW_THREADS; | |
8305 | delete_wxPalette(_arg0); | |
8306 | ||
8307 | wxPy_END_ALLOW_THREADS; | |
8308 | if (PyErr_Occurred()) return NULL; | |
8309 | } Py_INCREF(Py_None); | |
8310 | _resultobj = Py_None; | |
8311 | return _resultobj; | |
8312 | } | |
8313 | ||
8314 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
8315 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8316 | PyObject * _resultobj; | |
8317 | int _result; | |
8318 | wxPalette * _arg0; | |
8319 | byte _arg1; | |
8320 | byte _arg2; | |
8321 | byte _arg3; | |
8322 | PyObject * _argo0 = 0; | |
8323 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
8324 | ||
8325 | self = self; | |
8326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
8327 | return NULL; | |
8328 | if (_argo0) { | |
8329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
8332 | return NULL; | |
8333 | } | |
8334 | } | |
8335 | { | |
8336 | wxPy_BEGIN_ALLOW_THREADS; | |
8337 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
8338 | ||
8339 | wxPy_END_ALLOW_THREADS; | |
8340 | if (PyErr_Occurred()) return NULL; | |
8341 | } _resultobj = Py_BuildValue("i",_result); | |
8342 | return _resultobj; | |
8343 | } | |
8344 | ||
8345 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8346 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject * _resultobj; | |
8348 | bool _result; | |
8349 | wxPalette * _arg0; | |
8350 | int _arg1; | |
8351 | byte * _arg2; | |
8352 | byte * _arg3; | |
8353 | byte * _arg4; | |
8354 | PyObject * _argo0 = 0; | |
8355 | PyObject * _argo2 = 0; | |
8356 | PyObject * _argo3 = 0; | |
8357 | PyObject * _argo4 = 0; | |
8358 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; | |
8359 | ||
8360 | self = self; | |
8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) | |
8362 | return NULL; | |
8363 | if (_argo0) { | |
8364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
8367 | return NULL; | |
8368 | } | |
8369 | } | |
8370 | if (_argo2) { | |
8371 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8372 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
8373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); | |
8374 | return NULL; | |
8375 | } | |
8376 | } | |
8377 | if (_argo3) { | |
8378 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8379 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
8380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); | |
8381 | return NULL; | |
8382 | } | |
8383 | } | |
8384 | if (_argo4) { | |
8385 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8386 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
8387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); | |
8388 | return NULL; | |
8389 | } | |
8390 | } | |
8391 | { | |
8392 | wxPy_BEGIN_ALLOW_THREADS; | |
8393 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8394 | ||
8395 | wxPy_END_ALLOW_THREADS; | |
8396 | if (PyErr_Occurred()) return NULL; | |
8397 | } _resultobj = Py_BuildValue("i",_result); | |
8398 | return _resultobj; | |
8399 | } | |
8400 | ||
8401 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
8402 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8403 | PyObject * _resultobj; | |
8404 | bool _result; | |
8405 | wxPalette * _arg0; | |
8406 | PyObject * _argo0 = 0; | |
8407 | char *_kwnames[] = { "self", NULL }; | |
8408 | ||
8409 | self = self; | |
8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) | |
8411 | return NULL; | |
8412 | if (_argo0) { | |
8413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
8416 | return NULL; | |
8417 | } | |
8418 | } | |
8419 | { | |
8420 | wxPy_BEGIN_ALLOW_THREADS; | |
8421 | _result = (bool )wxPalette_Ok(_arg0); | |
8422 | ||
8423 | wxPy_END_ALLOW_THREADS; | |
8424 | if (PyErr_Occurred()) return NULL; | |
8425 | } _resultobj = Py_BuildValue("i",_result); | |
8426 | return _resultobj; | |
8427 | } | |
8428 | ||
8429 | static void *SwigwxImageListTowxObject(void *ptr) { | |
8430 | wxImageList *src; | |
8431 | wxObject *dest; | |
8432 | src = (wxImageList *) ptr; | |
8433 | dest = (wxObject *) src; | |
8434 | return (void *) dest; | |
8435 | } | |
8436 | ||
8437 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8438 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8439 | PyObject * _resultobj; | |
8440 | wxImageList * _result; | |
8441 | int _arg0; | |
8442 | int _arg1; | |
8443 | int _arg2 = (int ) TRUE; | |
8444 | int _arg3 = (int ) 1; | |
8445 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; | |
8446 | char _ptemp[128]; | |
8447 | ||
8448 | self = self; | |
8449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
8450 | return NULL; | |
8451 | { | |
8452 | wxPy_BEGIN_ALLOW_THREADS; | |
8453 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
8454 | ||
8455 | wxPy_END_ALLOW_THREADS; | |
8456 | if (PyErr_Occurred()) return NULL; | |
8457 | } if (_result) { | |
8458 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
8459 | _resultobj = Py_BuildValue("s",_ptemp); | |
8460 | } else { | |
8461 | Py_INCREF(Py_None); | |
8462 | _resultobj = Py_None; | |
8463 | } | |
8464 | return _resultobj; | |
8465 | } | |
8466 | ||
8467 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
8468 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8469 | PyObject * _resultobj; | |
8470 | wxImageList * _arg0; | |
8471 | PyObject * _argo0 = 0; | |
8472 | char *_kwnames[] = { "self", NULL }; | |
8473 | ||
8474 | self = self; | |
8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) | |
8476 | return NULL; | |
8477 | if (_argo0) { | |
8478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); | |
8481 | return NULL; | |
8482 | } | |
8483 | } | |
8484 | { | |
8485 | wxPy_BEGIN_ALLOW_THREADS; | |
8486 | delete_wxImageList(_arg0); | |
8487 | ||
8488 | wxPy_END_ALLOW_THREADS; | |
8489 | if (PyErr_Occurred()) return NULL; | |
8490 | } Py_INCREF(Py_None); | |
8491 | _resultobj = Py_None; | |
8492 | return _resultobj; | |
8493 | } | |
8494 | ||
8495 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
8496 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8497 | PyObject * _resultobj; | |
8498 | int _result; | |
8499 | wxImageList * _arg0; | |
8500 | wxBitmap * _arg1; | |
8501 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
8502 | PyObject * _argo0 = 0; | |
8503 | PyObject * _argo1 = 0; | |
8504 | PyObject * _argo2 = 0; | |
8505 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
8506 | ||
8507 | self = self; | |
8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) | |
8509 | return NULL; | |
8510 | if (_argo0) { | |
8511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); | |
8514 | return NULL; | |
8515 | } | |
8516 | } | |
8517 | if (_argo1) { | |
8518 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8519 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); | |
8521 | return NULL; | |
8522 | } | |
8523 | } | |
8524 | if (_argo2) { | |
8525 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8526 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
8528 | return NULL; | |
8529 | } | |
8530 | } | |
8531 | { | |
8532 | wxPy_BEGIN_ALLOW_THREADS; | |
8533 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
8534 | ||
8535 | wxPy_END_ALLOW_THREADS; | |
8536 | if (PyErr_Occurred()) return NULL; | |
8537 | } _resultobj = Py_BuildValue("i",_result); | |
8538 | return _resultobj; | |
8539 | } | |
8540 | ||
8541 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
8542 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8543 | PyObject * _resultobj; | |
8544 | int _result; | |
8545 | wxImageList * _arg0; | |
8546 | wxBitmap * _arg1; | |
8547 | wxColour * _arg2; | |
8548 | PyObject * _argo0 = 0; | |
8549 | PyObject * _argo1 = 0; | |
8550 | wxColour temp; | |
8551 | PyObject * _obj2 = 0; | |
8552 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
8553 | ||
8554 | self = self; | |
8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
8556 | return NULL; | |
8557 | if (_argo0) { | |
8558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
8561 | return NULL; | |
8562 | } | |
8563 | } | |
8564 | if (_argo1) { | |
8565 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8566 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
8568 | return NULL; | |
8569 | } | |
8570 | } | |
8571 | { | |
8572 | _arg2 = &temp; | |
8573 | if (! wxColour_helper(_obj2, &_arg2)) | |
8574 | return NULL; | |
8575 | } | |
8576 | { | |
8577 | wxPy_BEGIN_ALLOW_THREADS; | |
8578 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
8579 | ||
8580 | wxPy_END_ALLOW_THREADS; | |
8581 | if (PyErr_Occurred()) return NULL; | |
8582 | } _resultobj = Py_BuildValue("i",_result); | |
8583 | return _resultobj; | |
8584 | } | |
8585 | ||
8586 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
8587 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8588 | PyObject * _resultobj; | |
8589 | int _result; | |
8590 | wxImageList * _arg0; | |
8591 | wxIcon * _arg1; | |
8592 | PyObject * _argo0 = 0; | |
8593 | PyObject * _argo1 = 0; | |
8594 | char *_kwnames[] = { "self","icon", NULL }; | |
8595 | ||
8596 | self = self; | |
8597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
8598 | return NULL; | |
8599 | if (_argo0) { | |
8600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
8603 | return NULL; | |
8604 | } | |
8605 | } | |
8606 | if (_argo1) { | |
8607 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8608 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
8610 | return NULL; | |
8611 | } | |
8612 | } | |
8613 | { | |
8614 | wxPy_BEGIN_ALLOW_THREADS; | |
8615 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
8616 | ||
8617 | wxPy_END_ALLOW_THREADS; | |
8618 | if (PyErr_Occurred()) return NULL; | |
8619 | } _resultobj = Py_BuildValue("i",_result); | |
8620 | return _resultobj; | |
8621 | } | |
8622 | ||
8623 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
8624 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8625 | PyObject * _resultobj; | |
8626 | bool _result; | |
8627 | wxImageList * _arg0; | |
8628 | int _arg1; | |
8629 | wxBitmap * _arg2; | |
8630 | PyObject * _argo0 = 0; | |
8631 | PyObject * _argo2 = 0; | |
8632 | char *_kwnames[] = { "self","index","bitmap", NULL }; | |
8633 | ||
8634 | self = self; | |
8635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) | |
8636 | return NULL; | |
8637 | if (_argo0) { | |
8638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); | |
8641 | return NULL; | |
8642 | } | |
8643 | } | |
8644 | if (_argo2) { | |
8645 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8646 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); | |
8648 | return NULL; | |
8649 | } | |
8650 | } | |
8651 | { | |
8652 | wxPy_BEGIN_ALLOW_THREADS; | |
8653 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); | |
8654 | ||
8655 | wxPy_END_ALLOW_THREADS; | |
8656 | if (PyErr_Occurred()) return NULL; | |
8657 | } _resultobj = Py_BuildValue("i",_result); | |
8658 | return _resultobj; | |
8659 | } | |
8660 | ||
8661 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8662 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject * _resultobj; | |
8664 | bool _result; | |
8665 | wxImageList * _arg0; | |
8666 | int _arg1; | |
8667 | wxDC * _arg2; | |
8668 | int _arg3; | |
8669 | int _arg4; | |
8670 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); | |
8671 | bool _arg6 = (bool ) FALSE; | |
8672 | PyObject * _argo0 = 0; | |
8673 | PyObject * _argo2 = 0; | |
8674 | int tempbool6 = (int) FALSE; | |
8675 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; | |
8676 | ||
8677 | self = self; | |
8678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
8679 | return NULL; | |
8680 | if (_argo0) { | |
8681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); | |
8684 | return NULL; | |
8685 | } | |
8686 | } | |
8687 | if (_argo2) { | |
8688 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8689 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
8690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); | |
8691 | return NULL; | |
8692 | } | |
8693 | } | |
8694 | _arg6 = (bool ) tempbool6; | |
8695 | { | |
8696 | wxPy_BEGIN_ALLOW_THREADS; | |
8697 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
8698 | ||
8699 | wxPy_END_ALLOW_THREADS; | |
8700 | if (PyErr_Occurred()) return NULL; | |
8701 | } _resultobj = Py_BuildValue("i",_result); | |
8702 | return _resultobj; | |
8703 | } | |
8704 | ||
8705 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
8706 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8707 | PyObject * _resultobj; | |
8708 | int _result; | |
8709 | wxImageList * _arg0; | |
8710 | PyObject * _argo0 = 0; | |
8711 | char *_kwnames[] = { "self", NULL }; | |
8712 | ||
8713 | self = self; | |
8714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) | |
8715 | return NULL; | |
8716 | if (_argo0) { | |
8717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); | |
8720 | return NULL; | |
8721 | } | |
8722 | } | |
8723 | { | |
8724 | wxPy_BEGIN_ALLOW_THREADS; | |
8725 | _result = (int )wxImageList_GetImageCount(_arg0); | |
8726 | ||
8727 | wxPy_END_ALLOW_THREADS; | |
8728 | if (PyErr_Occurred()) return NULL; | |
8729 | } _resultobj = Py_BuildValue("i",_result); | |
8730 | return _resultobj; | |
8731 | } | |
8732 | ||
8733 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8734 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject * _resultobj; | |
8736 | bool _result; | |
8737 | wxImageList * _arg0; | |
8738 | int _arg1; | |
8739 | PyObject * _argo0 = 0; | |
8740 | char *_kwnames[] = { "self","index", NULL }; | |
8741 | ||
8742 | self = self; | |
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) | |
8744 | return NULL; | |
8745 | if (_argo0) { | |
8746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); | |
8749 | return NULL; | |
8750 | } | |
8751 | } | |
8752 | { | |
8753 | wxPy_BEGIN_ALLOW_THREADS; | |
8754 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
8755 | ||
8756 | wxPy_END_ALLOW_THREADS; | |
8757 | if (PyErr_Occurred()) return NULL; | |
8758 | } _resultobj = Py_BuildValue("i",_result); | |
8759 | return _resultobj; | |
8760 | } | |
8761 | ||
8762 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
8763 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject * _resultobj; | |
8765 | bool _result; | |
8766 | wxImageList * _arg0; | |
8767 | PyObject * _argo0 = 0; | |
8768 | char *_kwnames[] = { "self", NULL }; | |
8769 | ||
8770 | self = self; | |
8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) | |
8772 | return NULL; | |
8773 | if (_argo0) { | |
8774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); | |
8777 | return NULL; | |
8778 | } | |
8779 | } | |
8780 | { | |
8781 | wxPy_BEGIN_ALLOW_THREADS; | |
8782 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
8783 | ||
8784 | wxPy_END_ALLOW_THREADS; | |
8785 | if (PyErr_Occurred()) return NULL; | |
8786 | } _resultobj = Py_BuildValue("i",_result); | |
8787 | return _resultobj; | |
8788 | } | |
8789 | ||
8790 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) | |
8791 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8792 | PyObject * _resultobj; | |
8793 | wxImageList * _arg0; | |
8794 | int _arg1; | |
8795 | int * _arg2; | |
8796 | int temp; | |
8797 | int * _arg3; | |
8798 | int temp0; | |
8799 | PyObject * _argo0 = 0; | |
8800 | char *_kwnames[] = { "self","index", NULL }; | |
8801 | ||
8802 | self = self; | |
8803 | { | |
8804 | _arg2 = &temp; | |
8805 | } | |
8806 | { | |
8807 | _arg3 = &temp0; | |
8808 | } | |
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
8810 | return NULL; | |
8811 | if (_argo0) { | |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
8815 | return NULL; | |
8816 | } | |
8817 | } | |
8818 | { | |
8819 | wxPy_BEGIN_ALLOW_THREADS; | |
8820 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
8821 | ||
8822 | wxPy_END_ALLOW_THREADS; | |
8823 | if (PyErr_Occurred()) return NULL; | |
8824 | } Py_INCREF(Py_None); | |
8825 | _resultobj = Py_None; | |
8826 | { | |
8827 | PyObject *o; | |
8828 | o = PyInt_FromLong((long) (*_arg2)); | |
8829 | _resultobj = t_output_helper(_resultobj, o); | |
8830 | } | |
8831 | { | |
8832 | PyObject *o; | |
8833 | o = PyInt_FromLong((long) (*_arg3)); | |
8834 | _resultobj = t_output_helper(_resultobj, o); | |
8835 | } | |
8836 | return _resultobj; | |
8837 | } | |
8838 | ||
8839 | static void *SwigwxRegionTowxGDIObject(void *ptr) { | |
8840 | wxRegion *src; | |
8841 | wxGDIObject *dest; | |
8842 | src = (wxRegion *) ptr; | |
8843 | dest = (wxGDIObject *) src; | |
8844 | return (void *) dest; | |
8845 | } | |
8846 | ||
8847 | static void *SwigwxRegionTowxObject(void *ptr) { | |
8848 | wxRegion *src; | |
8849 | wxObject *dest; | |
8850 | src = (wxRegion *) ptr; | |
8851 | dest = (wxObject *) src; | |
8852 | return (void *) dest; | |
8853 | } | |
8854 | ||
8855 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8856 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8857 | PyObject * _resultobj; | |
8858 | wxRegion * _result; | |
8859 | long _arg0 = (long ) 0; | |
8860 | long _arg1 = (long ) 0; | |
8861 | long _arg2 = (long ) 0; | |
8862 | long _arg3 = (long ) 0; | |
8863 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
8864 | char _ptemp[128]; | |
8865 | ||
8866 | self = self; | |
8867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
8868 | return NULL; | |
8869 | { | |
8870 | wxPy_BEGIN_ALLOW_THREADS; | |
8871 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
8872 | ||
8873 | wxPy_END_ALLOW_THREADS; | |
8874 | if (PyErr_Occurred()) return NULL; | |
8875 | } if (_result) { | |
8876 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
8877 | _resultobj = Py_BuildValue("s",_ptemp); | |
8878 | } else { | |
8879 | Py_INCREF(Py_None); | |
8880 | _resultobj = Py_None; | |
8881 | } | |
8882 | return _resultobj; | |
8883 | } | |
8884 | ||
8885 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
8886 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8887 | PyObject * _resultobj; | |
8888 | wxRegion * _arg0; | |
8889 | PyObject * _argo0 = 0; | |
8890 | char *_kwnames[] = { "self", NULL }; | |
8891 | ||
8892 | self = self; | |
8893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
8894 | return NULL; | |
8895 | if (_argo0) { | |
8896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
8898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
8899 | return NULL; | |
8900 | } | |
8901 | } | |
8902 | { | |
8903 | wxPy_BEGIN_ALLOW_THREADS; | |
8904 | delete_wxRegion(_arg0); | |
8905 | ||
8906 | wxPy_END_ALLOW_THREADS; | |
8907 | if (PyErr_Occurred()) return NULL; | |
8908 | } Py_INCREF(Py_None); | |
8909 | _resultobj = Py_None; | |
8910 | return _resultobj; | |
8911 | } | |
8912 | ||
8913 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
8914 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8915 | PyObject * _resultobj; | |
8916 | wxRegion * _arg0; | |
8917 | PyObject * _argo0 = 0; | |
8918 | char *_kwnames[] = { "self", NULL }; | |
8919 | ||
8920 | self = self; | |
8921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
8922 | return NULL; | |
8923 | if (_argo0) { | |
8924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
8926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
8927 | return NULL; | |
8928 | } | |
8929 | } | |
8930 | { | |
8931 | wxPy_BEGIN_ALLOW_THREADS; | |
8932 | wxRegion_Clear(_arg0); | |
8933 | ||
8934 | wxPy_END_ALLOW_THREADS; | |
8935 | if (PyErr_Occurred()) return NULL; | |
8936 | } Py_INCREF(Py_None); | |
8937 | _resultobj = Py_None; | |
8938 | return _resultobj; | |
8939 | } | |
8940 | ||
8941 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
8942 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8943 | PyObject * _resultobj; | |
8944 | wxRegionContain _result; | |
8945 | wxRegion * _arg0; | |
8946 | long _arg1; | |
8947 | long _arg2; | |
8948 | PyObject * _argo0 = 0; | |
8949 | char *_kwnames[] = { "self","x","y", NULL }; | |
8950 | ||
8951 | self = self; | |
8952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8953 | return NULL; | |
8954 | if (_argo0) { | |
8955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
8957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
8958 | return NULL; | |
8959 | } | |
8960 | } | |
8961 | { | |
8962 | wxPy_BEGIN_ALLOW_THREADS; | |
8963 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
8964 | ||
8965 | wxPy_END_ALLOW_THREADS; | |
8966 | if (PyErr_Occurred()) return NULL; | |
8967 | } _resultobj = Py_BuildValue("i",_result); | |
8968 | return _resultobj; | |
8969 | } | |
8970 | ||
8971 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
8972 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject * _resultobj; | |
8974 | wxRegionContain _result; | |
8975 | wxRegion * _arg0; | |
8976 | wxPoint * _arg1; | |
8977 | PyObject * _argo0 = 0; | |
8978 | wxPoint temp; | |
8979 | PyObject * _obj1 = 0; | |
8980 | char *_kwnames[] = { "self","pt", NULL }; | |
8981 | ||
8982 | self = self; | |
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
8984 | return NULL; | |
8985 | if (_argo0) { | |
8986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
8988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
8989 | return NULL; | |
8990 | } | |
8991 | } | |
8992 | { | |
8993 | _arg1 = &temp; | |
8994 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8995 | return NULL; | |
8996 | } | |
8997 | { | |
8998 | wxPy_BEGIN_ALLOW_THREADS; | |
8999 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
9000 | ||
9001 | wxPy_END_ALLOW_THREADS; | |
9002 | if (PyErr_Occurred()) return NULL; | |
9003 | } _resultobj = Py_BuildValue("i",_result); | |
9004 | return _resultobj; | |
9005 | } | |
9006 | ||
9007 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9008 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9009 | PyObject * _resultobj; | |
9010 | wxRegionContain _result; | |
9011 | wxRegion * _arg0; | |
9012 | wxRect * _arg1; | |
9013 | PyObject * _argo0 = 0; | |
9014 | wxRect temp; | |
9015 | PyObject * _obj1 = 0; | |
9016 | char *_kwnames[] = { "self","rect", NULL }; | |
9017 | ||
9018 | self = self; | |
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
9020 | return NULL; | |
9021 | if (_argo0) { | |
9022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
9025 | return NULL; | |
9026 | } | |
9027 | } | |
9028 | { | |
9029 | _arg1 = &temp; | |
9030 | if (! wxRect_helper(_obj1, &_arg1)) | |
9031 | return NULL; | |
9032 | } | |
9033 | { | |
9034 | wxPy_BEGIN_ALLOW_THREADS; | |
9035 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
9036 | ||
9037 | wxPy_END_ALLOW_THREADS; | |
9038 | if (PyErr_Occurred()) return NULL; | |
9039 | } _resultobj = Py_BuildValue("i",_result); | |
9040 | return _resultobj; | |
9041 | } | |
9042 | ||
9043 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9044 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9045 | PyObject * _resultobj; | |
9046 | wxRegionContain _result; | |
9047 | wxRegion * _arg0; | |
9048 | long _arg1; | |
9049 | long _arg2; | |
9050 | long _arg3; | |
9051 | long _arg4; | |
9052 | PyObject * _argo0 = 0; | |
9053 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
9054 | ||
9055 | self = self; | |
9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9057 | return NULL; | |
9058 | if (_argo0) { | |
9059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
9062 | return NULL; | |
9063 | } | |
9064 | } | |
9065 | { | |
9066 | wxPy_BEGIN_ALLOW_THREADS; | |
9067 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9068 | ||
9069 | wxPy_END_ALLOW_THREADS; | |
9070 | if (PyErr_Occurred()) return NULL; | |
9071 | } _resultobj = Py_BuildValue("i",_result); | |
9072 | return _resultobj; | |
9073 | } | |
9074 | ||
9075 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
9076 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9077 | PyObject * _resultobj; | |
9078 | wxRect * _result; | |
9079 | wxRegion * _arg0; | |
9080 | PyObject * _argo0 = 0; | |
9081 | char *_kwnames[] = { "self", NULL }; | |
9082 | char _ptemp[128]; | |
9083 | ||
9084 | self = self; | |
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
9086 | return NULL; | |
9087 | if (_argo0) { | |
9088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
9091 | return NULL; | |
9092 | } | |
9093 | } | |
9094 | { | |
9095 | wxPy_BEGIN_ALLOW_THREADS; | |
9096 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
9097 | ||
9098 | wxPy_END_ALLOW_THREADS; | |
9099 | if (PyErr_Occurred()) return NULL; | |
9100 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
9101 | _resultobj = Py_BuildValue("s",_ptemp); | |
9102 | return _resultobj; | |
9103 | } | |
9104 | ||
9105 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9106 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9107 | PyObject * _resultobj; | |
9108 | bool _result; | |
9109 | wxRegion * _arg0; | |
9110 | long _arg1; | |
9111 | long _arg2; | |
9112 | long _arg3; | |
9113 | long _arg4; | |
9114 | PyObject * _argo0 = 0; | |
9115 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9116 | ||
9117 | self = self; | |
9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9119 | return NULL; | |
9120 | if (_argo0) { | |
9121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
9124 | return NULL; | |
9125 | } | |
9126 | } | |
9127 | { | |
9128 | wxPy_BEGIN_ALLOW_THREADS; | |
9129 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9130 | ||
9131 | wxPy_END_ALLOW_THREADS; | |
9132 | if (PyErr_Occurred()) return NULL; | |
9133 | } _resultobj = Py_BuildValue("i",_result); | |
9134 | return _resultobj; | |
9135 | } | |
9136 | ||
9137 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9138 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9139 | PyObject * _resultobj; | |
9140 | bool _result; | |
9141 | wxRegion * _arg0; | |
9142 | wxRect * _arg1; | |
9143 | PyObject * _argo0 = 0; | |
9144 | wxRect temp; | |
9145 | PyObject * _obj1 = 0; | |
9146 | char *_kwnames[] = { "self","rect", NULL }; | |
9147 | ||
9148 | self = self; | |
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
9150 | return NULL; | |
9151 | if (_argo0) { | |
9152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
9155 | return NULL; | |
9156 | } | |
9157 | } | |
9158 | { | |
9159 | _arg1 = &temp; | |
9160 | if (! wxRect_helper(_obj1, &_arg1)) | |
9161 | return NULL; | |
9162 | } | |
9163 | { | |
9164 | wxPy_BEGIN_ALLOW_THREADS; | |
9165 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
9166 | ||
9167 | wxPy_END_ALLOW_THREADS; | |
9168 | if (PyErr_Occurred()) return NULL; | |
9169 | } _resultobj = Py_BuildValue("i",_result); | |
9170 | return _resultobj; | |
9171 | } | |
9172 | ||
9173 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9174 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject * _resultobj; | |
9176 | bool _result; | |
9177 | wxRegion * _arg0; | |
9178 | wxRegion * _arg1; | |
9179 | PyObject * _argo0 = 0; | |
9180 | PyObject * _argo1 = 0; | |
9181 | char *_kwnames[] = { "self","region", NULL }; | |
9182 | ||
9183 | self = self; | |
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
9185 | return NULL; | |
9186 | if (_argo0) { | |
9187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9190 | return NULL; | |
9191 | } | |
9192 | } | |
9193 | if (_argo1) { | |
9194 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9195 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9197 | return NULL; | |
9198 | } | |
9199 | } | |
9200 | { | |
9201 | wxPy_BEGIN_ALLOW_THREADS; | |
9202 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
9203 | ||
9204 | wxPy_END_ALLOW_THREADS; | |
9205 | if (PyErr_Occurred()) return NULL; | |
9206 | } _resultobj = Py_BuildValue("i",_result); | |
9207 | return _resultobj; | |
9208 | } | |
9209 | ||
9210 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
9211 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9212 | PyObject * _resultobj; | |
9213 | bool _result; | |
9214 | wxRegion * _arg0; | |
9215 | PyObject * _argo0 = 0; | |
9216 | char *_kwnames[] = { "self", NULL }; | |
9217 | ||
9218 | self = self; | |
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
9220 | return NULL; | |
9221 | if (_argo0) { | |
9222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
9225 | return NULL; | |
9226 | } | |
9227 | } | |
9228 | { | |
9229 | wxPy_BEGIN_ALLOW_THREADS; | |
9230 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
9231 | ||
9232 | wxPy_END_ALLOW_THREADS; | |
9233 | if (PyErr_Occurred()) return NULL; | |
9234 | } _resultobj = Py_BuildValue("i",_result); | |
9235 | return _resultobj; | |
9236 | } | |
9237 | ||
9238 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9239 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9240 | PyObject * _resultobj; | |
9241 | bool _result; | |
9242 | wxRegion * _arg0; | |
9243 | long _arg1; | |
9244 | long _arg2; | |
9245 | long _arg3; | |
9246 | long _arg4; | |
9247 | PyObject * _argo0 = 0; | |
9248 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9249 | ||
9250 | self = self; | |
9251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9252 | return NULL; | |
9253 | if (_argo0) { | |
9254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
9257 | return NULL; | |
9258 | } | |
9259 | } | |
9260 | { | |
9261 | wxPy_BEGIN_ALLOW_THREADS; | |
9262 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9263 | ||
9264 | wxPy_END_ALLOW_THREADS; | |
9265 | if (PyErr_Occurred()) return NULL; | |
9266 | } _resultobj = Py_BuildValue("i",_result); | |
9267 | return _resultobj; | |
9268 | } | |
9269 | ||
9270 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
9271 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9272 | PyObject * _resultobj; | |
9273 | bool _result; | |
9274 | wxRegion * _arg0; | |
9275 | wxRect * _arg1; | |
9276 | PyObject * _argo0 = 0; | |
9277 | wxRect temp; | |
9278 | PyObject * _obj1 = 0; | |
9279 | char *_kwnames[] = { "self","rect", NULL }; | |
9280 | ||
9281 | self = self; | |
9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
9283 | return NULL; | |
9284 | if (_argo0) { | |
9285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
9288 | return NULL; | |
9289 | } | |
9290 | } | |
9291 | { | |
9292 | _arg1 = &temp; | |
9293 | if (! wxRect_helper(_obj1, &_arg1)) | |
9294 | return NULL; | |
9295 | } | |
9296 | { | |
9297 | wxPy_BEGIN_ALLOW_THREADS; | |
9298 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
9299 | ||
9300 | wxPy_END_ALLOW_THREADS; | |
9301 | if (PyErr_Occurred()) return NULL; | |
9302 | } _resultobj = Py_BuildValue("i",_result); | |
9303 | return _resultobj; | |
9304 | } | |
9305 | ||
9306 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
9307 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject * _resultobj; | |
9309 | bool _result; | |
9310 | wxRegion * _arg0; | |
9311 | wxRegion * _arg1; | |
9312 | PyObject * _argo0 = 0; | |
9313 | PyObject * _argo1 = 0; | |
9314 | char *_kwnames[] = { "self","region", NULL }; | |
9315 | ||
9316 | self = self; | |
9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
9318 | return NULL; | |
9319 | if (_argo0) { | |
9320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
9323 | return NULL; | |
9324 | } | |
9325 | } | |
9326 | if (_argo1) { | |
9327 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9328 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
9330 | return NULL; | |
9331 | } | |
9332 | } | |
9333 | { | |
9334 | wxPy_BEGIN_ALLOW_THREADS; | |
9335 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
9336 | ||
9337 | wxPy_END_ALLOW_THREADS; | |
9338 | if (PyErr_Occurred()) return NULL; | |
9339 | } _resultobj = Py_BuildValue("i",_result); | |
9340 | return _resultobj; | |
9341 | } | |
9342 | ||
9343 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9344 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9345 | PyObject * _resultobj; | |
9346 | bool _result; | |
9347 | wxRegion * _arg0; | |
9348 | long _arg1; | |
9349 | long _arg2; | |
9350 | long _arg3; | |
9351 | long _arg4; | |
9352 | PyObject * _argo0 = 0; | |
9353 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9354 | ||
9355 | self = self; | |
9356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9357 | return NULL; | |
9358 | if (_argo0) { | |
9359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
9362 | return NULL; | |
9363 | } | |
9364 | } | |
9365 | { | |
9366 | wxPy_BEGIN_ALLOW_THREADS; | |
9367 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9368 | ||
9369 | wxPy_END_ALLOW_THREADS; | |
9370 | if (PyErr_Occurred()) return NULL; | |
9371 | } _resultobj = Py_BuildValue("i",_result); | |
9372 | return _resultobj; | |
9373 | } | |
9374 | ||
9375 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
9376 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9377 | PyObject * _resultobj; | |
9378 | bool _result; | |
9379 | wxRegion * _arg0; | |
9380 | wxRect * _arg1; | |
9381 | PyObject * _argo0 = 0; | |
9382 | wxRect temp; | |
9383 | PyObject * _obj1 = 0; | |
9384 | char *_kwnames[] = { "self","rect", NULL }; | |
9385 | ||
9386 | self = self; | |
9387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
9388 | return NULL; | |
9389 | if (_argo0) { | |
9390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
9393 | return NULL; | |
9394 | } | |
9395 | } | |
9396 | { | |
9397 | _arg1 = &temp; | |
9398 | if (! wxRect_helper(_obj1, &_arg1)) | |
9399 | return NULL; | |
9400 | } | |
9401 | { | |
9402 | wxPy_BEGIN_ALLOW_THREADS; | |
9403 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
9404 | ||
9405 | wxPy_END_ALLOW_THREADS; | |
9406 | if (PyErr_Occurred()) return NULL; | |
9407 | } _resultobj = Py_BuildValue("i",_result); | |
9408 | return _resultobj; | |
9409 | } | |
9410 | ||
9411 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
9412 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9413 | PyObject * _resultobj; | |
9414 | bool _result; | |
9415 | wxRegion * _arg0; | |
9416 | wxRegion * _arg1; | |
9417 | PyObject * _argo0 = 0; | |
9418 | PyObject * _argo1 = 0; | |
9419 | char *_kwnames[] = { "self","region", NULL }; | |
9420 | ||
9421 | self = self; | |
9422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
9423 | return NULL; | |
9424 | if (_argo0) { | |
9425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
9428 | return NULL; | |
9429 | } | |
9430 | } | |
9431 | if (_argo1) { | |
9432 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9433 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
9435 | return NULL; | |
9436 | } | |
9437 | } | |
9438 | { | |
9439 | wxPy_BEGIN_ALLOW_THREADS; | |
9440 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
9441 | ||
9442 | wxPy_END_ALLOW_THREADS; | |
9443 | if (PyErr_Occurred()) return NULL; | |
9444 | } _resultobj = Py_BuildValue("i",_result); | |
9445 | return _resultobj; | |
9446 | } | |
9447 | ||
9448 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9449 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9450 | PyObject * _resultobj; | |
9451 | bool _result; | |
9452 | wxRegion * _arg0; | |
9453 | long _arg1; | |
9454 | long _arg2; | |
9455 | long _arg3; | |
9456 | long _arg4; | |
9457 | PyObject * _argo0 = 0; | |
9458 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9459 | ||
9460 | self = self; | |
9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9462 | return NULL; | |
9463 | if (_argo0) { | |
9464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
9467 | return NULL; | |
9468 | } | |
9469 | } | |
9470 | { | |
9471 | wxPy_BEGIN_ALLOW_THREADS; | |
9472 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9473 | ||
9474 | wxPy_END_ALLOW_THREADS; | |
9475 | if (PyErr_Occurred()) return NULL; | |
9476 | } _resultobj = Py_BuildValue("i",_result); | |
9477 | return _resultobj; | |
9478 | } | |
9479 | ||
9480 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
9481 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9482 | PyObject * _resultobj; | |
9483 | bool _result; | |
9484 | wxRegion * _arg0; | |
9485 | wxRect * _arg1; | |
9486 | PyObject * _argo0 = 0; | |
9487 | wxRect temp; | |
9488 | PyObject * _obj1 = 0; | |
9489 | char *_kwnames[] = { "self","rect", NULL }; | |
9490 | ||
9491 | self = self; | |
9492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
9493 | return NULL; | |
9494 | if (_argo0) { | |
9495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
9498 | return NULL; | |
9499 | } | |
9500 | } | |
9501 | { | |
9502 | _arg1 = &temp; | |
9503 | if (! wxRect_helper(_obj1, &_arg1)) | |
9504 | return NULL; | |
9505 | } | |
9506 | { | |
9507 | wxPy_BEGIN_ALLOW_THREADS; | |
9508 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
9509 | ||
9510 | wxPy_END_ALLOW_THREADS; | |
9511 | if (PyErr_Occurred()) return NULL; | |
9512 | } _resultobj = Py_BuildValue("i",_result); | |
9513 | return _resultobj; | |
9514 | } | |
9515 | ||
9516 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
9517 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9518 | PyObject * _resultobj; | |
9519 | bool _result; | |
9520 | wxRegion * _arg0; | |
9521 | wxRegion * _arg1; | |
9522 | PyObject * _argo0 = 0; | |
9523 | PyObject * _argo1 = 0; | |
9524 | char *_kwnames[] = { "self","region", NULL }; | |
9525 | ||
9526 | self = self; | |
9527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
9528 | return NULL; | |
9529 | if (_argo0) { | |
9530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
9533 | return NULL; | |
9534 | } | |
9535 | } | |
9536 | if (_argo1) { | |
9537 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9538 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
9540 | return NULL; | |
9541 | } | |
9542 | } | |
9543 | { | |
9544 | wxPy_BEGIN_ALLOW_THREADS; | |
9545 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
9546 | ||
9547 | wxPy_END_ALLOW_THREADS; | |
9548 | if (PyErr_Occurred()) return NULL; | |
9549 | } _resultobj = Py_BuildValue("i",_result); | |
9550 | return _resultobj; | |
9551 | } | |
9552 | ||
9553 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
9554 | wxRegionIterator *src; | |
9555 | wxObject *dest; | |
9556 | src = (wxRegionIterator *) ptr; | |
9557 | dest = (wxObject *) src; | |
9558 | return (void *) dest; | |
9559 | } | |
9560 | ||
9561 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
9562 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9563 | PyObject * _resultobj; | |
9564 | wxRegionIterator * _result; | |
9565 | wxRegion * _arg0; | |
9566 | PyObject * _argo0 = 0; | |
9567 | char *_kwnames[] = { "region", NULL }; | |
9568 | char _ptemp[128]; | |
9569 | ||
9570 | self = self; | |
9571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
9572 | return NULL; | |
9573 | if (_argo0) { | |
9574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
9577 | return NULL; | |
9578 | } | |
9579 | } | |
9580 | { | |
9581 | wxPy_BEGIN_ALLOW_THREADS; | |
9582 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
9583 | ||
9584 | wxPy_END_ALLOW_THREADS; | |
9585 | if (PyErr_Occurred()) return NULL; | |
9586 | } if (_result) { | |
9587 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
9588 | _resultobj = Py_BuildValue("s",_ptemp); | |
9589 | } else { | |
9590 | Py_INCREF(Py_None); | |
9591 | _resultobj = Py_None; | |
9592 | } | |
9593 | return _resultobj; | |
9594 | } | |
9595 | ||
9596 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
9597 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9598 | PyObject * _resultobj; | |
9599 | wxRegionIterator * _arg0; | |
9600 | PyObject * _argo0 = 0; | |
9601 | char *_kwnames[] = { "self", NULL }; | |
9602 | ||
9603 | self = self; | |
9604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
9605 | return NULL; | |
9606 | if (_argo0) { | |
9607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
9610 | return NULL; | |
9611 | } | |
9612 | } | |
9613 | { | |
9614 | wxPy_BEGIN_ALLOW_THREADS; | |
9615 | delete_wxRegionIterator(_arg0); | |
9616 | ||
9617 | wxPy_END_ALLOW_THREADS; | |
9618 | if (PyErr_Occurred()) return NULL; | |
9619 | } Py_INCREF(Py_None); | |
9620 | _resultobj = Py_None; | |
9621 | return _resultobj; | |
9622 | } | |
9623 | ||
9624 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
9625 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9626 | PyObject * _resultobj; | |
9627 | long _result; | |
9628 | wxRegionIterator * _arg0; | |
9629 | PyObject * _argo0 = 0; | |
9630 | char *_kwnames[] = { "self", NULL }; | |
9631 | ||
9632 | self = self; | |
9633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
9634 | return NULL; | |
9635 | if (_argo0) { | |
9636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
9639 | return NULL; | |
9640 | } | |
9641 | } | |
9642 | { | |
9643 | wxPy_BEGIN_ALLOW_THREADS; | |
9644 | _result = (long )wxRegionIterator_GetX(_arg0); | |
9645 | ||
9646 | wxPy_END_ALLOW_THREADS; | |
9647 | if (PyErr_Occurred()) return NULL; | |
9648 | } _resultobj = Py_BuildValue("l",_result); | |
9649 | return _resultobj; | |
9650 | } | |
9651 | ||
9652 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
9653 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject * _resultobj; | |
9655 | long _result; | |
9656 | wxRegionIterator * _arg0; | |
9657 | PyObject * _argo0 = 0; | |
9658 | char *_kwnames[] = { "self", NULL }; | |
9659 | ||
9660 | self = self; | |
9661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
9662 | return NULL; | |
9663 | if (_argo0) { | |
9664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
9667 | return NULL; | |
9668 | } | |
9669 | } | |
9670 | { | |
9671 | wxPy_BEGIN_ALLOW_THREADS; | |
9672 | _result = (long )wxRegionIterator_GetY(_arg0); | |
9673 | ||
9674 | wxPy_END_ALLOW_THREADS; | |
9675 | if (PyErr_Occurred()) return NULL; | |
9676 | } _resultobj = Py_BuildValue("l",_result); | |
9677 | return _resultobj; | |
9678 | } | |
9679 | ||
9680 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
9681 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9682 | PyObject * _resultobj; | |
9683 | long _result; | |
9684 | wxRegionIterator * _arg0; | |
9685 | PyObject * _argo0 = 0; | |
9686 | char *_kwnames[] = { "self", NULL }; | |
9687 | ||
9688 | self = self; | |
9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
9690 | return NULL; | |
9691 | if (_argo0) { | |
9692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
9695 | return NULL; | |
9696 | } | |
9697 | } | |
9698 | { | |
9699 | wxPy_BEGIN_ALLOW_THREADS; | |
9700 | _result = (long )wxRegionIterator_GetW(_arg0); | |
9701 | ||
9702 | wxPy_END_ALLOW_THREADS; | |
9703 | if (PyErr_Occurred()) return NULL; | |
9704 | } _resultobj = Py_BuildValue("l",_result); | |
9705 | return _resultobj; | |
9706 | } | |
9707 | ||
9708 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
9709 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9710 | PyObject * _resultobj; | |
9711 | long _result; | |
9712 | wxRegionIterator * _arg0; | |
9713 | PyObject * _argo0 = 0; | |
9714 | char *_kwnames[] = { "self", NULL }; | |
9715 | ||
9716 | self = self; | |
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
9718 | return NULL; | |
9719 | if (_argo0) { | |
9720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
9723 | return NULL; | |
9724 | } | |
9725 | } | |
9726 | { | |
9727 | wxPy_BEGIN_ALLOW_THREADS; | |
9728 | _result = (long )wxRegionIterator_GetWidth(_arg0); | |
9729 | ||
9730 | wxPy_END_ALLOW_THREADS; | |
9731 | if (PyErr_Occurred()) return NULL; | |
9732 | } _resultobj = Py_BuildValue("l",_result); | |
9733 | return _resultobj; | |
9734 | } | |
9735 | ||
9736 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
9737 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9738 | PyObject * _resultobj; | |
9739 | long _result; | |
9740 | wxRegionIterator * _arg0; | |
9741 | PyObject * _argo0 = 0; | |
9742 | char *_kwnames[] = { "self", NULL }; | |
9743 | ||
9744 | self = self; | |
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
9746 | return NULL; | |
9747 | if (_argo0) { | |
9748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
9751 | return NULL; | |
9752 | } | |
9753 | } | |
9754 | { | |
9755 | wxPy_BEGIN_ALLOW_THREADS; | |
9756 | _result = (long )wxRegionIterator_GetH(_arg0); | |
9757 | ||
9758 | wxPy_END_ALLOW_THREADS; | |
9759 | if (PyErr_Occurred()) return NULL; | |
9760 | } _resultobj = Py_BuildValue("l",_result); | |
9761 | return _resultobj; | |
9762 | } | |
9763 | ||
9764 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
9765 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9766 | PyObject * _resultobj; | |
9767 | long _result; | |
9768 | wxRegionIterator * _arg0; | |
9769 | PyObject * _argo0 = 0; | |
9770 | char *_kwnames[] = { "self", NULL }; | |
9771 | ||
9772 | self = self; | |
9773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
9774 | return NULL; | |
9775 | if (_argo0) { | |
9776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
9779 | return NULL; | |
9780 | } | |
9781 | } | |
9782 | { | |
9783 | wxPy_BEGIN_ALLOW_THREADS; | |
9784 | _result = (long )wxRegionIterator_GetHeight(_arg0); | |
9785 | ||
9786 | wxPy_END_ALLOW_THREADS; | |
9787 | if (PyErr_Occurred()) return NULL; | |
9788 | } _resultobj = Py_BuildValue("l",_result); | |
9789 | return _resultobj; | |
9790 | } | |
9791 | ||
9792 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
9793 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9794 | PyObject * _resultobj; | |
9795 | wxRect * _result; | |
9796 | wxRegionIterator * _arg0; | |
9797 | PyObject * _argo0 = 0; | |
9798 | char *_kwnames[] = { "self", NULL }; | |
9799 | char _ptemp[128]; | |
9800 | ||
9801 | self = self; | |
9802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
9803 | return NULL; | |
9804 | if (_argo0) { | |
9805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
9808 | return NULL; | |
9809 | } | |
9810 | } | |
9811 | { | |
9812 | wxPy_BEGIN_ALLOW_THREADS; | |
9813 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
9814 | ||
9815 | wxPy_END_ALLOW_THREADS; | |
9816 | if (PyErr_Occurred()) return NULL; | |
9817 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
9818 | _resultobj = Py_BuildValue("s",_ptemp); | |
9819 | return _resultobj; | |
9820 | } | |
9821 | ||
9822 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
9823 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9824 | PyObject * _resultobj; | |
9825 | bool _result; | |
9826 | wxRegionIterator * _arg0; | |
9827 | PyObject * _argo0 = 0; | |
9828 | char *_kwnames[] = { "self", NULL }; | |
9829 | ||
9830 | self = self; | |
9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
9832 | return NULL; | |
9833 | if (_argo0) { | |
9834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
9837 | return NULL; | |
9838 | } | |
9839 | } | |
9840 | { | |
9841 | wxPy_BEGIN_ALLOW_THREADS; | |
9842 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
9843 | ||
9844 | wxPy_END_ALLOW_THREADS; | |
9845 | if (PyErr_Occurred()) return NULL; | |
9846 | } _resultobj = Py_BuildValue("i",_result); | |
9847 | return _resultobj; | |
9848 | } | |
9849 | ||
9850 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
9851 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9852 | PyObject * _resultobj; | |
9853 | wxRegionIterator * _arg0; | |
9854 | PyObject * _argo0 = 0; | |
9855 | char *_kwnames[] = { "self", NULL }; | |
9856 | ||
9857 | self = self; | |
9858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
9859 | return NULL; | |
9860 | if (_argo0) { | |
9861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
9864 | return NULL; | |
9865 | } | |
9866 | } | |
9867 | { | |
9868 | wxPy_BEGIN_ALLOW_THREADS; | |
9869 | wxRegionIterator_Reset(_arg0); | |
9870 | ||
9871 | wxPy_END_ALLOW_THREADS; | |
9872 | if (PyErr_Occurred()) return NULL; | |
9873 | } Py_INCREF(Py_None); | |
9874 | _resultobj = Py_None; | |
9875 | return _resultobj; | |
9876 | } | |
9877 | ||
9878 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
9879 | (*self) ++; | |
9880 | } | |
9881 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject * _resultobj; | |
9883 | wxRegionIterator * _arg0; | |
9884 | PyObject * _argo0 = 0; | |
9885 | char *_kwnames[] = { "self", NULL }; | |
9886 | ||
9887 | self = self; | |
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
9889 | return NULL; | |
9890 | if (_argo0) { | |
9891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
9894 | return NULL; | |
9895 | } | |
9896 | } | |
9897 | { | |
9898 | wxPy_BEGIN_ALLOW_THREADS; | |
9899 | wxRegionIterator_Next(_arg0); | |
9900 | ||
9901 | wxPy_END_ALLOW_THREADS; | |
9902 | if (PyErr_Occurred()) return NULL; | |
9903 | } Py_INCREF(Py_None); | |
9904 | _resultobj = Py_None; | |
9905 | return _resultobj; | |
9906 | } | |
9907 | ||
9908 | static PyMethodDef gdicMethods[] = { | |
9909 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
9910 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
9911 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
9912 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
9913 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
9914 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
9915 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9916 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
9917 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
9918 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
9921 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
9922 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
9923 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
9924 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
9925 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
9926 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
9927 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
9928 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
9929 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
9930 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
9931 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
9932 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
9933 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
9934 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
9936 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
9937 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
9938 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
9939 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9940 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
9941 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
9942 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9943 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
9944 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9945 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
9946 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
9947 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9948 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
9949 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
9950 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
9951 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
9952 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
9953 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
9954 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
9955 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
9956 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
9957 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
9958 | { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
9959 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, | |
9960 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
9963 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
9964 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
9965 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
9966 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
9967 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
9968 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
9969 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
9970 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
9971 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
9972 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
9973 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
9976 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9977 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9978 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
9980 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
9981 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
9982 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
9983 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
9984 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
9985 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
9986 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
9987 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
9988 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
9989 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9990 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
9991 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
9992 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
9993 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
9994 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
9995 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
9996 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
9998 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
9999 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
10000 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
10001 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
10002 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
10003 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
10004 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
10005 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
10006 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
10007 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10008 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10009 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
10010 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10011 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10012 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10013 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10014 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
10015 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10016 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
10017 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
10018 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
10019 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10020 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
10021 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10022 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
10023 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10024 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10025 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
10026 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
10027 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10028 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
10029 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
10030 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
10031 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
10032 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
10033 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
10034 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
10035 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
10036 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
10037 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
10038 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
10039 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
10040 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
10041 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
10042 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
10043 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
10044 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
10045 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
10046 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
10047 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
10048 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
10049 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10050 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
10051 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10052 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
10053 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
10054 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
10055 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
10056 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10057 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10058 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10059 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10060 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10061 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10062 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10063 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
10064 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
10065 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
10066 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
10067 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
10068 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
10069 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
10070 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10071 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10072 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10073 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10074 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
10075 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10076 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10077 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10078 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10079 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10080 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
10081 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
10082 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
10083 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
10084 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
10085 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
10086 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
10087 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
10088 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10089 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
10090 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
10091 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
10092 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
10093 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
10094 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
10095 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
10096 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
10097 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
10098 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
10099 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
10100 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
10101 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
10102 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
10103 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10104 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
10105 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
10106 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
10107 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
10108 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
10109 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
10110 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10111 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
10112 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
10113 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
10114 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10115 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
10116 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
10117 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10118 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
10119 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10120 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10121 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10122 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10123 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10124 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10125 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10126 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10127 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
10128 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
10129 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
10130 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10131 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, | |
10132 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10133 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10134 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10135 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10136 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10137 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10138 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10139 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10140 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
10141 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
10142 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
10143 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10144 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
10145 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10146 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10147 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
10148 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10149 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10150 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
10151 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
10152 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
10153 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
10154 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
10155 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
10156 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
10157 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
10158 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
10159 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
10160 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
10161 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
10162 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
10163 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10164 | { NULL, NULL } | |
10165 | }; | |
10166 | #ifdef __cplusplus | |
10167 | } | |
10168 | #endif | |
10169 | /* | |
10170 | * This table is used by the pointer type-checker | |
10171 | */ | |
10172 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
10173 | { "_signed_long","_long",0}, | |
10174 | { "_wxPrintQuality","_wxCoord",0}, | |
10175 | { "_wxPrintQuality","_int",0}, | |
10176 | { "_wxPrintQuality","_signed_int",0}, | |
10177 | { "_wxPrintQuality","_unsigned_int",0}, | |
10178 | { "_wxPrintQuality","_wxWindowID",0}, | |
10179 | { "_wxPrintQuality","_uint",0}, | |
10180 | { "_wxPrintQuality","_EBool",0}, | |
10181 | { "_wxPrintQuality","_size_t",0}, | |
10182 | { "_wxPrintQuality","_time_t",0}, | |
10183 | { "_byte","_unsigned_char",0}, | |
10184 | { "_long","_unsigned_long",0}, | |
10185 | { "_long","_signed_long",0}, | |
10186 | { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject}, | |
10187 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
10188 | { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject}, | |
10189 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
10190 | { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject}, | |
10191 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
10192 | { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject}, | |
10193 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
10194 | { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject}, | |
10195 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
10196 | { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject}, | |
10197 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
10198 | { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject}, | |
10199 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
10200 | { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
10201 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
10202 | { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
10203 | { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
10204 | { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
10205 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
10206 | { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
10207 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
10208 | { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
10209 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
10210 | { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
10211 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
10212 | { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
10213 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
10214 | { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
10215 | { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
10216 | { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject}, | |
10217 | { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
10218 | { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject}, | |
10219 | { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
10220 | { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject}, | |
10221 | { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
10222 | { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
10223 | { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
10224 | { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject}, | |
10225 | { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, | |
10226 | { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject}, | |
10227 | { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
10228 | { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject}, | |
10229 | { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
10230 | { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject}, | |
10231 | { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
10232 | { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
10233 | { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
10234 | { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject}, | |
10235 | { "_class_wxObject","_wxDC",SwigwxDCTowxObject}, | |
10236 | { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject}, | |
10237 | { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
10238 | { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject}, | |
10239 | { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
10240 | { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject}, | |
10241 | { "_class_wxObject","_wxPen",SwigwxPenTowxObject}, | |
10242 | { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
10243 | { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
10244 | { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject}, | |
10245 | { "_class_wxObject","_wxColour",SwigwxColourTowxObject}, | |
10246 | { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject}, | |
10247 | { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
10248 | { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject}, | |
10249 | { "_class_wxObject","_wxFont",SwigwxFontTowxObject}, | |
10250 | { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject}, | |
10251 | { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
10252 | { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject}, | |
10253 | { "_class_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
10254 | { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject}, | |
10255 | { "_class_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
10256 | { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject}, | |
10257 | { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
10258 | { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
10259 | { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
10260 | { "_size_t","_wxCoord",0}, | |
10261 | { "_size_t","_wxPrintQuality",0}, | |
10262 | { "_size_t","_time_t",0}, | |
10263 | { "_size_t","_unsigned_int",0}, | |
10264 | { "_size_t","_int",0}, | |
10265 | { "_size_t","_wxWindowID",0}, | |
10266 | { "_size_t","_uint",0}, | |
10267 | { "_uint","_wxCoord",0}, | |
10268 | { "_uint","_wxPrintQuality",0}, | |
10269 | { "_uint","_time_t",0}, | |
10270 | { "_uint","_size_t",0}, | |
10271 | { "_uint","_unsigned_int",0}, | |
10272 | { "_uint","_int",0}, | |
10273 | { "_uint","_wxWindowID",0}, | |
10274 | { "_wxChar","_char",0}, | |
10275 | { "_char","_wxChar",0}, | |
10276 | { "_EBool","_wxCoord",0}, | |
10277 | { "_EBool","_wxPrintQuality",0}, | |
10278 | { "_EBool","_signed_int",0}, | |
10279 | { "_EBool","_int",0}, | |
10280 | { "_EBool","_wxWindowID",0}, | |
10281 | { "_unsigned_long","_long",0}, | |
10282 | { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
10283 | { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
10284 | { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
10285 | { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
10286 | { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
10287 | { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
10288 | { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
10289 | { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
10290 | { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
10291 | { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
10292 | { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
10293 | { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
10294 | { "_signed_int","_wxCoord",0}, | |
10295 | { "_signed_int","_wxPrintQuality",0}, | |
10296 | { "_signed_int","_EBool",0}, | |
10297 | { "_signed_int","_wxWindowID",0}, | |
10298 | { "_signed_int","_int",0}, | |
10299 | { "_WXTYPE","_short",0}, | |
10300 | { "_WXTYPE","_signed_short",0}, | |
10301 | { "_WXTYPE","_unsigned_short",0}, | |
10302 | { "_unsigned_short","_WXTYPE",0}, | |
10303 | { "_unsigned_short","_short",0}, | |
10304 | { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
10305 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
10306 | { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject}, | |
10307 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
10308 | { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject}, | |
10309 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
10310 | { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject}, | |
10311 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
10312 | { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
10313 | { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
10314 | { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject}, | |
10315 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, | |
10316 | { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject}, | |
10317 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
10318 | { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject}, | |
10319 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
10320 | { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject}, | |
10321 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
10322 | { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
10323 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
10324 | { "_wxObject","_class_wxDC",SwigwxDCTowxObject}, | |
10325 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
10326 | { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject}, | |
10327 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
10328 | { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject}, | |
10329 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
10330 | { "_wxObject","_class_wxPen",SwigwxPenTowxObject}, | |
10331 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
10332 | { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
10333 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
10334 | { "_wxObject","_class_wxColour",SwigwxColourTowxObject}, | |
10335 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
10336 | { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject}, | |
10337 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
10338 | { "_wxObject","_class_wxFont",SwigwxFontTowxObject}, | |
10339 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, | |
10340 | { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject}, | |
10341 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
10342 | { "_wxObject","_class_wxIcon",SwigwxIconTowxObject}, | |
10343 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
10344 | { "_wxObject","_class_wxMask",SwigwxMaskTowxObject}, | |
10345 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
10346 | { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject}, | |
10347 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
10348 | { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
10349 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
10350 | { "_signed_short","_WXTYPE",0}, | |
10351 | { "_signed_short","_short",0}, | |
10352 | { "_unsigned_char","_byte",0}, | |
10353 | { "_unsigned_int","_wxCoord",0}, | |
10354 | { "_unsigned_int","_wxPrintQuality",0}, | |
10355 | { "_unsigned_int","_time_t",0}, | |
10356 | { "_unsigned_int","_size_t",0}, | |
10357 | { "_unsigned_int","_uint",0}, | |
10358 | { "_unsigned_int","_wxWindowID",0}, | |
10359 | { "_unsigned_int","_int",0}, | |
10360 | { "_short","_WXTYPE",0}, | |
10361 | { "_short","_unsigned_short",0}, | |
10362 | { "_short","_signed_short",0}, | |
10363 | { "_wxWindowID","_wxCoord",0}, | |
10364 | { "_wxWindowID","_wxPrintQuality",0}, | |
10365 | { "_wxWindowID","_time_t",0}, | |
10366 | { "_wxWindowID","_size_t",0}, | |
10367 | { "_wxWindowID","_EBool",0}, | |
10368 | { "_wxWindowID","_uint",0}, | |
10369 | { "_wxWindowID","_int",0}, | |
10370 | { "_wxWindowID","_signed_int",0}, | |
10371 | { "_wxWindowID","_unsigned_int",0}, | |
10372 | { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject}, | |
10373 | { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
10374 | { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject}, | |
10375 | { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
10376 | { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject}, | |
10377 | { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
10378 | { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject}, | |
10379 | { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
10380 | { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject}, | |
10381 | { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
10382 | { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject}, | |
10383 | { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
10384 | { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject}, | |
10385 | { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
10386 | { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
10387 | { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
10388 | { "_int","_wxCoord",0}, | |
10389 | { "_int","_wxPrintQuality",0}, | |
10390 | { "_int","_time_t",0}, | |
10391 | { "_int","_size_t",0}, | |
10392 | { "_int","_EBool",0}, | |
10393 | { "_int","_uint",0}, | |
10394 | { "_int","_wxWindowID",0}, | |
10395 | { "_int","_unsigned_int",0}, | |
10396 | { "_int","_signed_int",0}, | |
10397 | { "_time_t","_wxCoord",0}, | |
10398 | { "_time_t","_wxPrintQuality",0}, | |
10399 | { "_time_t","_unsigned_int",0}, | |
10400 | { "_time_t","_int",0}, | |
10401 | { "_time_t","_wxWindowID",0}, | |
10402 | { "_time_t","_uint",0}, | |
10403 | { "_time_t","_size_t",0}, | |
10404 | { "_wxCoord","_int",0}, | |
10405 | { "_wxCoord","_signed_int",0}, | |
10406 | { "_wxCoord","_unsigned_int",0}, | |
10407 | { "_wxCoord","_wxWindowID",0}, | |
10408 | { "_wxCoord","_uint",0}, | |
10409 | { "_wxCoord","_EBool",0}, | |
10410 | { "_wxCoord","_size_t",0}, | |
10411 | { "_wxCoord","_time_t",0}, | |
10412 | { "_wxCoord","_wxPrintQuality",0}, | |
10413 | {0,0,0}}; | |
10414 | ||
10415 | static PyObject *SWIG_globals; | |
10416 | #ifdef __cplusplus | |
10417 | extern "C" | |
10418 | #endif | |
10419 | SWIGEXPORT(void) initgdic() { | |
10420 | PyObject *m, *d; | |
10421 | SWIG_globals = SWIG_newvarlink(); | |
10422 | m = Py_InitModule("gdic", gdicMethods); | |
10423 | d = PyModule_GetDict(m); | |
10424 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); | |
10425 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
10426 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
10427 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
10428 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
10429 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
10430 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
10431 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
10432 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
10433 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
10434 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
10435 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
10436 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
10437 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
10438 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
10439 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
10440 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
10441 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
10442 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
10443 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
10444 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
10445 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
10446 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
10447 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
10448 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
10449 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); | |
10450 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
10451 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
10452 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
10453 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10454 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
10455 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
10456 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
10457 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
10458 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
10459 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
10460 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
10461 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
10462 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
10463 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
10464 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
10465 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
10466 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
10467 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
10468 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
10469 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
10470 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
10471 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
10472 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
10473 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
10474 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
10475 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
10476 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
10477 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
10478 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
10479 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
10480 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
10481 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
10482 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
10483 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
10484 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
10485 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
10486 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
10487 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
10488 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
10489 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
10490 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
10491 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
10492 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
10493 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
10494 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
10495 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
10496 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); | |
10497 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
10498 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
10499 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
10500 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); | |
10501 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
10502 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
10503 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
10504 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
10505 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
10506 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
10507 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
10508 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
10509 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
10510 | { | |
10511 | int i; | |
10512 | for (i = 0; _swig_mapping[i].n1; i++) | |
10513 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10514 | } | |
10515 | } |