]>
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/imaglist.h> | |
60 | #include <wx/fontmap.h> | |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
64 | ||
65 | ||
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
70 | if (!target) { | |
71 | target = o; | |
72 | } else if (target == Py_None) { | |
73 | Py_DECREF(Py_None); | |
74 | target = o; | |
75 | } else { | |
76 | if (!PyTuple_Check(target)) { | |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
81 | o3 = PyTuple_New(1); | |
82 | PyTuple_SetItem(o3, 0, o); | |
83 | ||
84 | o2 = target; | |
85 | target = PySequence_Concat(o2, o3); | |
86 | Py_DECREF(o2); | |
87 | Py_DECREF(o3); | |
88 | } | |
89 | return target; | |
90 | } | |
91 | // Implementations of some alternate "constructors" | |
92 | ||
93 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { | |
94 | return new wxBitmap(width, height, depth); | |
95 | } | |
96 | ||
97 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
98 | char** cArray = NULL; | |
99 | int count; | |
100 | ||
101 | if (!PyList_Check(listOfStrings)) { | |
102 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
103 | return NULL; | |
104 | } | |
105 | count = PyList_Size(listOfStrings); | |
106 | cArray = new char*[count]; | |
107 | ||
108 | for(int x=0; x<count; x++) { | |
109 | // TODO: Need some validation and error checking here | |
110 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
111 | } | |
112 | return cArray; | |
113 | } | |
114 | ||
115 | ||
116 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { | |
117 | char** cArray = NULL; | |
118 | wxBitmap* bmp; | |
119 | ||
120 | cArray = ConvertListOfStrings(listOfStrings); | |
121 | if (! cArray) | |
122 | return NULL; | |
123 | bmp = new wxBitmap(cArray); | |
124 | delete [] cArray; | |
125 | return bmp; | |
126 | } | |
127 | ||
128 | ||
129 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
130 | return new wxBitmap(icon); | |
131 | } | |
132 | ||
133 | ||
134 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { | |
135 | return new wxBitmap(bits, width, height, depth); | |
136 | } | |
137 | ||
138 | ||
139 | // #ifdef __WXMSW__ | |
140 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
141 | // int width, int height, int depth = 1) { | |
142 | // if (! PyString_Check(data)) { | |
143 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
144 | // return NULL; | |
145 | // } | |
146 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
147 | // } | |
148 | // #endif | |
149 | ||
150 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { | |
151 | return new wxMask(bitmap, colour); | |
152 | } | |
153 | // Implementations of some alternate "constructors" | |
154 | wxIcon* wxEmptyIcon() { | |
155 | return new wxIcon(); | |
156 | } | |
157 | ||
158 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
159 | char** cArray = NULL; | |
160 | wxIcon* icon; | |
161 | ||
162 | cArray = ConvertListOfStrings(listOfStrings); | |
163 | if (! cArray) | |
164 | return NULL; | |
165 | icon = new wxIcon(cArray); | |
166 | delete [] cArray; | |
167 | return icon; | |
168 | } | |
169 | ||
170 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
171 | wxIcon* icon = new wxIcon(); | |
172 | icon->CopyFromBitmap(bmp); | |
173 | return icon; | |
174 | } | |
175 | // Alternate 'constructor' | |
176 | wxCursor* wxPyStockCursor(int id) { | |
177 | return new wxCursor(id); | |
178 | } | |
179 | // Alternate 'constructor' | |
180 | wxColour* wxNamedColour(const wxString& colorName) { | |
181 | return new wxColour(colorName); | |
182 | } | |
183 | ||
184 | class wxPyPen : public wxPen { | |
185 | public: | |
186 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
187 | : wxPen(colour, width, style) | |
188 | { m_dash = NULL; } | |
189 | ~wxPyPen() { | |
190 | if (m_dash) | |
191 | delete [] m_dash; | |
192 | } | |
193 | ||
194 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
195 | if (m_dash) | |
196 | delete [] m_dash; | |
197 | m_dash = new wxDash[nb_dashes]; | |
198 | for (int i=0; i<nb_dashes; i++) { | |
199 | m_dash[i] = dash[i]; | |
200 | } | |
201 | wxPen::SetDashes(nb_dashes, m_dash); | |
202 | } | |
203 | ||
204 | private: | |
205 | wxDash* m_dash; | |
206 | }; | |
207 | ||
208 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
209 | *x1 = dc->MinX(); | |
210 | *y1 = dc->MinY(); | |
211 | *x2 = dc->MaxX(); | |
212 | *y2 = dc->MaxY(); | |
213 | } | |
214 | // Alternate 'constructor' | |
215 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
216 | return new wxMemoryDC(oldDC); | |
217 | } | |
218 | ||
219 | #if 0 | |
220 | extern wxFont * wxNORMAL_FONT; | |
221 | extern wxFont * wxSMALL_FONT; | |
222 | extern wxFont * wxITALIC_FONT; | |
223 | extern wxFont * wxSWISS_FONT; | |
224 | extern wxPen * wxRED_PEN; | |
225 | extern wxPen * wxCYAN_PEN; | |
226 | extern wxPen * wxGREEN_PEN; | |
227 | extern wxPen * wxBLACK_PEN; | |
228 | extern wxPen * wxWHITE_PEN; | |
229 | extern wxPen * wxTRANSPARENT_PEN; | |
230 | extern wxPen * wxBLACK_DASHED_PEN; | |
231 | extern wxPen * wxGREY_PEN; | |
232 | extern wxPen * wxMEDIUM_GREY_PEN; | |
233 | extern wxPen * wxLIGHT_GREY_PEN; | |
234 | extern wxBrush * wxBLUE_BRUSH; | |
235 | extern wxBrush * wxGREEN_BRUSH; | |
236 | extern wxBrush * wxWHITE_BRUSH; | |
237 | extern wxBrush * wxBLACK_BRUSH; | |
238 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
239 | extern wxBrush * wxCYAN_BRUSH; | |
240 | extern wxBrush * wxRED_BRUSH; | |
241 | extern wxBrush * wxGREY_BRUSH; | |
242 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
243 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
244 | extern wxColour * wxBLACK; | |
245 | extern wxColour * wxWHITE; | |
246 | extern wxColour * wxRED; | |
247 | extern wxColour * wxBLUE; | |
248 | extern wxColour * wxGREEN; | |
249 | extern wxColour * wxCYAN; | |
250 | extern wxColour * wxLIGHT_GREY; | |
251 | extern wxCursor * wxSTANDARD_CURSOR; | |
252 | extern wxCursor * wxHOURGLASS_CURSOR; | |
253 | extern wxCursor * wxCROSS_CURSOR; | |
254 | extern wxBitmap wxNullBitmap; | |
255 | extern wxIcon wxNullIcon; | |
256 | extern wxCursor wxNullCursor; | |
257 | extern wxPen wxNullPen; | |
258 | extern wxBrush wxNullBrush; | |
259 | extern wxPalette wxNullPalette; | |
260 | extern wxFont wxNullFont; | |
261 | extern wxColour wxNullColour; | |
262 | extern wxFontList * wxTheFontList; | |
263 | extern wxPenList * wxThePenList; | |
264 | extern wxBrushList * wxTheBrushList; | |
265 | extern wxColourDatabase * wxTheColourDatabase; | |
266 | ||
267 | #endif | |
268 | #ifdef __cplusplus | |
269 | extern "C" { | |
270 | #endif | |
271 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
272 | PyObject * _resultobj; | |
273 | wxBitmap * _result; | |
274 | int _arg0; | |
275 | int _arg1; | |
276 | int _arg2 = (int ) -1; | |
277 | char *_kwnames[] = { "width","height","depth", NULL }; | |
278 | char _ptemp[128]; | |
279 | ||
280 | self = self; | |
281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) | |
282 | return NULL; | |
283 | { | |
284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
285 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
286 | ||
287 | wxPyEndAllowThreads(__tstate); | |
288 | if (PyErr_Occurred()) return NULL; | |
289 | } if (_result) { | |
290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
291 | _resultobj = Py_BuildValue("s",_ptemp); | |
292 | } else { | |
293 | Py_INCREF(Py_None); | |
294 | _resultobj = Py_None; | |
295 | } | |
296 | return _resultobj; | |
297 | } | |
298 | ||
299 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
300 | PyObject * _resultobj; | |
301 | wxBitmap * _result; | |
302 | PyObject * _arg0; | |
303 | PyObject * _obj0 = 0; | |
304 | char *_kwnames[] = { "listOfStrings", NULL }; | |
305 | char _ptemp[128]; | |
306 | ||
307 | self = self; | |
308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
309 | return NULL; | |
310 | { | |
311 | _arg0 = _obj0; | |
312 | } | |
313 | { | |
314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
315 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
316 | ||
317 | wxPyEndAllowThreads(__tstate); | |
318 | if (PyErr_Occurred()) return NULL; | |
319 | } if (_result) { | |
320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
321 | _resultobj = Py_BuildValue("s",_ptemp); | |
322 | } else { | |
323 | Py_INCREF(Py_None); | |
324 | _resultobj = Py_None; | |
325 | } | |
326 | return _resultobj; | |
327 | } | |
328 | ||
329 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
330 | PyObject * _resultobj; | |
331 | wxBitmap * _result; | |
332 | wxIcon * _arg0; | |
333 | PyObject * _argo0 = 0; | |
334 | char *_kwnames[] = { "icon", NULL }; | |
335 | char _ptemp[128]; | |
336 | ||
337 | self = self; | |
338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
339 | return NULL; | |
340 | if (_argo0) { | |
341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
344 | return NULL; | |
345 | } | |
346 | } | |
347 | { | |
348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
349 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
350 | ||
351 | wxPyEndAllowThreads(__tstate); | |
352 | if (PyErr_Occurred()) return NULL; | |
353 | } if (_result) { | |
354 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
355 | _resultobj = Py_BuildValue("s",_ptemp); | |
356 | } else { | |
357 | Py_INCREF(Py_None); | |
358 | _resultobj = Py_None; | |
359 | } | |
360 | return _resultobj; | |
361 | } | |
362 | ||
363 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
364 | PyObject * _resultobj; | |
365 | wxBitmap * _result; | |
366 | char * _arg0; | |
367 | int _arg1; | |
368 | int _arg2; | |
369 | int _arg3 = (int ) 1; | |
370 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
371 | char _ptemp[128]; | |
372 | ||
373 | self = self; | |
374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
375 | return NULL; | |
376 | { | |
377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
378 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); | |
379 | ||
380 | wxPyEndAllowThreads(__tstate); | |
381 | if (PyErr_Occurred()) return NULL; | |
382 | } if (_result) { | |
383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
384 | _resultobj = Py_BuildValue("s",_ptemp); | |
385 | } else { | |
386 | Py_INCREF(Py_None); | |
387 | _resultobj = Py_None; | |
388 | } | |
389 | return _resultobj; | |
390 | } | |
391 | ||
392 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
393 | PyObject * _resultobj; | |
394 | wxMask * _result; | |
395 | wxBitmap * _arg0; | |
396 | wxColour * _arg1; | |
397 | PyObject * _argo0 = 0; | |
398 | wxColour temp; | |
399 | PyObject * _obj1 = 0; | |
400 | char *_kwnames[] = { "bitmap","colour", NULL }; | |
401 | char _ptemp[128]; | |
402 | ||
403 | self = self; | |
404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) | |
405 | return NULL; | |
406 | if (_argo0) { | |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
410 | return NULL; | |
411 | } | |
412 | } | |
413 | { | |
414 | _arg1 = &temp; | |
415 | if (! wxColour_helper(_obj1, &_arg1)) | |
416 | return NULL; | |
417 | } | |
418 | { | |
419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
420 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
421 | ||
422 | wxPyEndAllowThreads(__tstate); | |
423 | if (PyErr_Occurred()) return NULL; | |
424 | } if (_result) { | |
425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
426 | _resultobj = Py_BuildValue("s",_ptemp); | |
427 | } else { | |
428 | Py_INCREF(Py_None); | |
429 | _resultobj = Py_None; | |
430 | } | |
431 | return _resultobj; | |
432 | } | |
433 | ||
434 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
435 | PyObject * _resultobj; | |
436 | wxIcon * _result; | |
437 | char *_kwnames[] = { NULL }; | |
438 | char _ptemp[128]; | |
439 | ||
440 | self = self; | |
441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
442 | return NULL; | |
443 | { | |
444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
445 | _result = (wxIcon *)wxEmptyIcon(); | |
446 | ||
447 | wxPyEndAllowThreads(__tstate); | |
448 | if (PyErr_Occurred()) return NULL; | |
449 | } if (_result) { | |
450 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
451 | _resultobj = Py_BuildValue("s",_ptemp); | |
452 | } else { | |
453 | Py_INCREF(Py_None); | |
454 | _resultobj = Py_None; | |
455 | } | |
456 | return _resultobj; | |
457 | } | |
458 | ||
459 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
460 | PyObject * _resultobj; | |
461 | wxIcon * _result; | |
462 | PyObject * _arg0; | |
463 | PyObject * _obj0 = 0; | |
464 | char *_kwnames[] = { "listOfStrings", NULL }; | |
465 | char _ptemp[128]; | |
466 | ||
467 | self = self; | |
468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
469 | return NULL; | |
470 | { | |
471 | _arg0 = _obj0; | |
472 | } | |
473 | { | |
474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
475 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
476 | ||
477 | wxPyEndAllowThreads(__tstate); | |
478 | if (PyErr_Occurred()) return NULL; | |
479 | } if (_result) { | |
480 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
481 | _resultobj = Py_BuildValue("s",_ptemp); | |
482 | } else { | |
483 | Py_INCREF(Py_None); | |
484 | _resultobj = Py_None; | |
485 | } | |
486 | return _resultobj; | |
487 | } | |
488 | ||
489 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
490 | PyObject * _resultobj; | |
491 | wxIcon * _result; | |
492 | wxBitmap * _arg0; | |
493 | PyObject * _argo0 = 0; | |
494 | char *_kwnames[] = { "bmp", NULL }; | |
495 | char _ptemp[128]; | |
496 | ||
497 | self = self; | |
498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
499 | return NULL; | |
500 | if (_argo0) { | |
501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
504 | return NULL; | |
505 | } | |
506 | } | |
507 | { | |
508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
509 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); | |
510 | ||
511 | wxPyEndAllowThreads(__tstate); | |
512 | if (PyErr_Occurred()) return NULL; | |
513 | } if (_result) { | |
514 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
515 | _resultobj = Py_BuildValue("s",_ptemp); | |
516 | } else { | |
517 | Py_INCREF(Py_None); | |
518 | _resultobj = Py_None; | |
519 | } | |
520 | return _resultobj; | |
521 | } | |
522 | ||
523 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
524 | PyObject * _resultobj; | |
525 | wxCursor * _result; | |
526 | int _arg0; | |
527 | char *_kwnames[] = { "id", NULL }; | |
528 | char _ptemp[128]; | |
529 | ||
530 | self = self; | |
531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) | |
532 | return NULL; | |
533 | { | |
534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
535 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
536 | ||
537 | wxPyEndAllowThreads(__tstate); | |
538 | if (PyErr_Occurred()) return NULL; | |
539 | } if (_result) { | |
540 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
541 | _resultobj = Py_BuildValue("s",_ptemp); | |
542 | } else { | |
543 | Py_INCREF(Py_None); | |
544 | _resultobj = Py_None; | |
545 | } | |
546 | return _resultobj; | |
547 | } | |
548 | ||
549 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
550 | PyObject * _resultobj; | |
551 | wxColour * _result; | |
552 | wxString * _arg0; | |
553 | PyObject * _obj0 = 0; | |
554 | char *_kwnames[] = { "colorName", NULL }; | |
555 | char _ptemp[128]; | |
556 | ||
557 | self = self; | |
558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) | |
559 | return NULL; | |
560 | { | |
561 | _arg0 = wxString_in_helper(_obj0); | |
562 | if (_arg0 == NULL) | |
563 | return NULL; | |
564 | } | |
565 | { | |
566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
567 | _result = (wxColour *)wxNamedColour(*_arg0); | |
568 | ||
569 | wxPyEndAllowThreads(__tstate); | |
570 | if (PyErr_Occurred()) return NULL; | |
571 | } if (_result) { | |
572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
573 | _resultobj = Py_BuildValue("s",_ptemp); | |
574 | } else { | |
575 | Py_INCREF(Py_None); | |
576 | _resultobj = Py_None; | |
577 | } | |
578 | { | |
579 | if (_obj0) | |
580 | delete _arg0; | |
581 | } | |
582 | return _resultobj; | |
583 | } | |
584 | ||
585 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
586 | PyObject * _resultobj; | |
587 | wxMemoryDC * _result; | |
588 | wxDC * _arg0; | |
589 | PyObject * _argo0 = 0; | |
590 | char *_kwnames[] = { "oldDC", NULL }; | |
591 | char _ptemp[128]; | |
592 | ||
593 | self = self; | |
594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) | |
595 | return NULL; | |
596 | if (_argo0) { | |
597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
600 | return NULL; | |
601 | } | |
602 | } | |
603 | { | |
604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
605 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
606 | ||
607 | wxPyEndAllowThreads(__tstate); | |
608 | if (PyErr_Occurred()) return NULL; | |
609 | } if (_result) { | |
610 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
611 | _resultobj = Py_BuildValue("s",_ptemp); | |
612 | } else { | |
613 | Py_INCREF(Py_None); | |
614 | _resultobj = Py_None; | |
615 | } | |
616 | return _resultobj; | |
617 | } | |
618 | ||
619 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
620 | ||
621 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
622 | return 1; | |
623 | } | |
624 | ||
625 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
626 | PyObject * pyobj; | |
627 | char ptemp[128]; | |
628 | ||
629 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
630 | pyobj = PyString_FromString(ptemp); | |
631 | return pyobj; | |
632 | } | |
633 | ||
634 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
635 | ||
636 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
637 | return 1; | |
638 | } | |
639 | ||
640 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
641 | PyObject * pyobj; | |
642 | char ptemp[128]; | |
643 | ||
644 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
645 | pyobj = PyString_FromString(ptemp); | |
646 | return pyobj; | |
647 | } | |
648 | ||
649 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
650 | ||
651 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
652 | return 1; | |
653 | } | |
654 | ||
655 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
656 | PyObject * pyobj; | |
657 | char ptemp[128]; | |
658 | ||
659 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
660 | pyobj = PyString_FromString(ptemp); | |
661 | return pyobj; | |
662 | } | |
663 | ||
664 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
665 | ||
666 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
667 | return 1; | |
668 | } | |
669 | ||
670 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
671 | PyObject * pyobj; | |
672 | char ptemp[128]; | |
673 | ||
674 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
675 | pyobj = PyString_FromString(ptemp); | |
676 | return pyobj; | |
677 | } | |
678 | ||
679 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
680 | ||
681 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
682 | return 1; | |
683 | } | |
684 | ||
685 | static PyObject *_wrap_wxRED_PEN_get() { | |
686 | PyObject * pyobj; | |
687 | char ptemp[128]; | |
688 | ||
689 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
690 | pyobj = PyString_FromString(ptemp); | |
691 | return pyobj; | |
692 | } | |
693 | ||
694 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
695 | ||
696 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
697 | return 1; | |
698 | } | |
699 | ||
700 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
701 | PyObject * pyobj; | |
702 | char ptemp[128]; | |
703 | ||
704 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
705 | pyobj = PyString_FromString(ptemp); | |
706 | return pyobj; | |
707 | } | |
708 | ||
709 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
710 | ||
711 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
712 | return 1; | |
713 | } | |
714 | ||
715 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
716 | PyObject * pyobj; | |
717 | char ptemp[128]; | |
718 | ||
719 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
720 | pyobj = PyString_FromString(ptemp); | |
721 | return pyobj; | |
722 | } | |
723 | ||
724 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
725 | ||
726 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
727 | return 1; | |
728 | } | |
729 | ||
730 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
731 | PyObject * pyobj; | |
732 | char ptemp[128]; | |
733 | ||
734 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
735 | pyobj = PyString_FromString(ptemp); | |
736 | return pyobj; | |
737 | } | |
738 | ||
739 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
740 | ||
741 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
742 | return 1; | |
743 | } | |
744 | ||
745 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
746 | PyObject * pyobj; | |
747 | char ptemp[128]; | |
748 | ||
749 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
750 | pyobj = PyString_FromString(ptemp); | |
751 | return pyobj; | |
752 | } | |
753 | ||
754 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
755 | ||
756 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
757 | return 1; | |
758 | } | |
759 | ||
760 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
761 | PyObject * pyobj; | |
762 | char ptemp[128]; | |
763 | ||
764 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
765 | pyobj = PyString_FromString(ptemp); | |
766 | return pyobj; | |
767 | } | |
768 | ||
769 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
770 | ||
771 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
772 | return 1; | |
773 | } | |
774 | ||
775 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
776 | PyObject * pyobj; | |
777 | char ptemp[128]; | |
778 | ||
779 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
780 | pyobj = PyString_FromString(ptemp); | |
781 | return pyobj; | |
782 | } | |
783 | ||
784 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
785 | ||
786 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
787 | return 1; | |
788 | } | |
789 | ||
790 | static PyObject *_wrap_wxGREY_PEN_get() { | |
791 | PyObject * pyobj; | |
792 | char ptemp[128]; | |
793 | ||
794 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
795 | pyobj = PyString_FromString(ptemp); | |
796 | return pyobj; | |
797 | } | |
798 | ||
799 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
800 | ||
801 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
802 | return 1; | |
803 | } | |
804 | ||
805 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
806 | PyObject * pyobj; | |
807 | char ptemp[128]; | |
808 | ||
809 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
810 | pyobj = PyString_FromString(ptemp); | |
811 | return pyobj; | |
812 | } | |
813 | ||
814 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
815 | ||
816 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
817 | return 1; | |
818 | } | |
819 | ||
820 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
821 | PyObject * pyobj; | |
822 | char ptemp[128]; | |
823 | ||
824 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
825 | pyobj = PyString_FromString(ptemp); | |
826 | return pyobj; | |
827 | } | |
828 | ||
829 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
830 | ||
831 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
832 | return 1; | |
833 | } | |
834 | ||
835 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
836 | PyObject * pyobj; | |
837 | char ptemp[128]; | |
838 | ||
839 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
840 | pyobj = PyString_FromString(ptemp); | |
841 | return pyobj; | |
842 | } | |
843 | ||
844 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
845 | ||
846 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
847 | return 1; | |
848 | } | |
849 | ||
850 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
851 | PyObject * pyobj; | |
852 | char ptemp[128]; | |
853 | ||
854 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
855 | pyobj = PyString_FromString(ptemp); | |
856 | return pyobj; | |
857 | } | |
858 | ||
859 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
860 | ||
861 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
862 | return 1; | |
863 | } | |
864 | ||
865 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
866 | PyObject * pyobj; | |
867 | char ptemp[128]; | |
868 | ||
869 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
870 | pyobj = PyString_FromString(ptemp); | |
871 | return pyobj; | |
872 | } | |
873 | ||
874 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
875 | ||
876 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
877 | return 1; | |
878 | } | |
879 | ||
880 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
881 | PyObject * pyobj; | |
882 | char ptemp[128]; | |
883 | ||
884 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
885 | pyobj = PyString_FromString(ptemp); | |
886 | return pyobj; | |
887 | } | |
888 | ||
889 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
890 | ||
891 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
892 | return 1; | |
893 | } | |
894 | ||
895 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
896 | PyObject * pyobj; | |
897 | char ptemp[128]; | |
898 | ||
899 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
900 | pyobj = PyString_FromString(ptemp); | |
901 | return pyobj; | |
902 | } | |
903 | ||
904 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
905 | ||
906 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
907 | return 1; | |
908 | } | |
909 | ||
910 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
911 | PyObject * pyobj; | |
912 | char ptemp[128]; | |
913 | ||
914 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
915 | pyobj = PyString_FromString(ptemp); | |
916 | return pyobj; | |
917 | } | |
918 | ||
919 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
920 | ||
921 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
922 | return 1; | |
923 | } | |
924 | ||
925 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
926 | PyObject * pyobj; | |
927 | char ptemp[128]; | |
928 | ||
929 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
930 | pyobj = PyString_FromString(ptemp); | |
931 | return pyobj; | |
932 | } | |
933 | ||
934 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
935 | ||
936 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
937 | return 1; | |
938 | } | |
939 | ||
940 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
941 | PyObject * pyobj; | |
942 | char ptemp[128]; | |
943 | ||
944 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
945 | pyobj = PyString_FromString(ptemp); | |
946 | return pyobj; | |
947 | } | |
948 | ||
949 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
950 | ||
951 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
952 | return 1; | |
953 | } | |
954 | ||
955 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
956 | PyObject * pyobj; | |
957 | char ptemp[128]; | |
958 | ||
959 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
960 | pyobj = PyString_FromString(ptemp); | |
961 | return pyobj; | |
962 | } | |
963 | ||
964 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
965 | ||
966 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
967 | return 1; | |
968 | } | |
969 | ||
970 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
971 | PyObject * pyobj; | |
972 | char ptemp[128]; | |
973 | ||
974 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
975 | pyobj = PyString_FromString(ptemp); | |
976 | return pyobj; | |
977 | } | |
978 | ||
979 | static int _wrap_wxBLACK_set(PyObject *val) { | |
980 | ||
981 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
982 | return 1; | |
983 | } | |
984 | ||
985 | static PyObject *_wrap_wxBLACK_get() { | |
986 | PyObject * pyobj; | |
987 | char ptemp[128]; | |
988 | ||
989 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
990 | pyobj = PyString_FromString(ptemp); | |
991 | return pyobj; | |
992 | } | |
993 | ||
994 | static int _wrap_wxWHITE_set(PyObject *val) { | |
995 | ||
996 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
997 | return 1; | |
998 | } | |
999 | ||
1000 | static PyObject *_wrap_wxWHITE_get() { | |
1001 | PyObject * pyobj; | |
1002 | char ptemp[128]; | |
1003 | ||
1004 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1005 | pyobj = PyString_FromString(ptemp); | |
1006 | return pyobj; | |
1007 | } | |
1008 | ||
1009 | static int _wrap_wxRED_set(PyObject *val) { | |
1010 | ||
1011 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1012 | return 1; | |
1013 | } | |
1014 | ||
1015 | static PyObject *_wrap_wxRED_get() { | |
1016 | PyObject * pyobj; | |
1017 | char ptemp[128]; | |
1018 | ||
1019 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1020 | pyobj = PyString_FromString(ptemp); | |
1021 | return pyobj; | |
1022 | } | |
1023 | ||
1024 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1025 | ||
1026 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1027 | return 1; | |
1028 | } | |
1029 | ||
1030 | static PyObject *_wrap_wxBLUE_get() { | |
1031 | PyObject * pyobj; | |
1032 | char ptemp[128]; | |
1033 | ||
1034 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1035 | pyobj = PyString_FromString(ptemp); | |
1036 | return pyobj; | |
1037 | } | |
1038 | ||
1039 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1040 | ||
1041 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1042 | return 1; | |
1043 | } | |
1044 | ||
1045 | static PyObject *_wrap_wxGREEN_get() { | |
1046 | PyObject * pyobj; | |
1047 | char ptemp[128]; | |
1048 | ||
1049 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1050 | pyobj = PyString_FromString(ptemp); | |
1051 | return pyobj; | |
1052 | } | |
1053 | ||
1054 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1055 | ||
1056 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1057 | return 1; | |
1058 | } | |
1059 | ||
1060 | static PyObject *_wrap_wxCYAN_get() { | |
1061 | PyObject * pyobj; | |
1062 | char ptemp[128]; | |
1063 | ||
1064 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1065 | pyobj = PyString_FromString(ptemp); | |
1066 | return pyobj; | |
1067 | } | |
1068 | ||
1069 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1070 | ||
1071 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1072 | return 1; | |
1073 | } | |
1074 | ||
1075 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1076 | PyObject * pyobj; | |
1077 | char ptemp[128]; | |
1078 | ||
1079 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1080 | pyobj = PyString_FromString(ptemp); | |
1081 | return pyobj; | |
1082 | } | |
1083 | ||
1084 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1085 | ||
1086 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1087 | return 1; | |
1088 | } | |
1089 | ||
1090 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1091 | PyObject * pyobj; | |
1092 | char ptemp[128]; | |
1093 | ||
1094 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1095 | pyobj = PyString_FromString(ptemp); | |
1096 | return pyobj; | |
1097 | } | |
1098 | ||
1099 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1100 | ||
1101 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1102 | return 1; | |
1103 | } | |
1104 | ||
1105 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1106 | PyObject * pyobj; | |
1107 | char ptemp[128]; | |
1108 | ||
1109 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1110 | pyobj = PyString_FromString(ptemp); | |
1111 | return pyobj; | |
1112 | } | |
1113 | ||
1114 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1115 | ||
1116 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1117 | return 1; | |
1118 | } | |
1119 | ||
1120 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1121 | PyObject * pyobj; | |
1122 | char ptemp[128]; | |
1123 | ||
1124 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1125 | pyobj = PyString_FromString(ptemp); | |
1126 | return pyobj; | |
1127 | } | |
1128 | ||
1129 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1130 | ||
1131 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1132 | return 1; | |
1133 | } | |
1134 | ||
1135 | static PyObject *_wrap_wxNullBitmap_get() { | |
1136 | PyObject * pyobj; | |
1137 | char ptemp[128]; | |
1138 | ||
1139 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1140 | pyobj = PyString_FromString(ptemp); | |
1141 | return pyobj; | |
1142 | } | |
1143 | ||
1144 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1145 | ||
1146 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1147 | return 1; | |
1148 | } | |
1149 | ||
1150 | static PyObject *_wrap_wxNullIcon_get() { | |
1151 | PyObject * pyobj; | |
1152 | char ptemp[128]; | |
1153 | ||
1154 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1155 | pyobj = PyString_FromString(ptemp); | |
1156 | return pyobj; | |
1157 | } | |
1158 | ||
1159 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1160 | ||
1161 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1162 | return 1; | |
1163 | } | |
1164 | ||
1165 | static PyObject *_wrap_wxNullCursor_get() { | |
1166 | PyObject * pyobj; | |
1167 | char ptemp[128]; | |
1168 | ||
1169 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1170 | pyobj = PyString_FromString(ptemp); | |
1171 | return pyobj; | |
1172 | } | |
1173 | ||
1174 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1175 | ||
1176 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1177 | return 1; | |
1178 | } | |
1179 | ||
1180 | static PyObject *_wrap_wxNullPen_get() { | |
1181 | PyObject * pyobj; | |
1182 | char ptemp[128]; | |
1183 | ||
1184 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1185 | pyobj = PyString_FromString(ptemp); | |
1186 | return pyobj; | |
1187 | } | |
1188 | ||
1189 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1190 | ||
1191 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1192 | return 1; | |
1193 | } | |
1194 | ||
1195 | static PyObject *_wrap_wxNullBrush_get() { | |
1196 | PyObject * pyobj; | |
1197 | char ptemp[128]; | |
1198 | ||
1199 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1200 | pyobj = PyString_FromString(ptemp); | |
1201 | return pyobj; | |
1202 | } | |
1203 | ||
1204 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1205 | ||
1206 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1207 | return 1; | |
1208 | } | |
1209 | ||
1210 | static PyObject *_wrap_wxNullPalette_get() { | |
1211 | PyObject * pyobj; | |
1212 | char ptemp[128]; | |
1213 | ||
1214 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1215 | pyobj = PyString_FromString(ptemp); | |
1216 | return pyobj; | |
1217 | } | |
1218 | ||
1219 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1220 | ||
1221 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1222 | return 1; | |
1223 | } | |
1224 | ||
1225 | static PyObject *_wrap_wxNullFont_get() { | |
1226 | PyObject * pyobj; | |
1227 | char ptemp[128]; | |
1228 | ||
1229 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1230 | pyobj = PyString_FromString(ptemp); | |
1231 | return pyobj; | |
1232 | } | |
1233 | ||
1234 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1235 | ||
1236 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1237 | return 1; | |
1238 | } | |
1239 | ||
1240 | static PyObject *_wrap_wxNullColour_get() { | |
1241 | PyObject * pyobj; | |
1242 | char ptemp[128]; | |
1243 | ||
1244 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1245 | pyobj = PyString_FromString(ptemp); | |
1246 | return pyobj; | |
1247 | } | |
1248 | ||
1249 | static int _wrap_wxTheFontList_set(PyObject *val) { | |
1250 | ||
1251 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1252 | return 1; | |
1253 | } | |
1254 | ||
1255 | static PyObject *_wrap_wxTheFontList_get() { | |
1256 | PyObject * pyobj; | |
1257 | char ptemp[128]; | |
1258 | ||
1259 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1260 | pyobj = PyString_FromString(ptemp); | |
1261 | return pyobj; | |
1262 | } | |
1263 | ||
1264 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1265 | ||
1266 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1267 | return 1; | |
1268 | } | |
1269 | ||
1270 | static PyObject *_wrap_wxThePenList_get() { | |
1271 | PyObject * pyobj; | |
1272 | char ptemp[128]; | |
1273 | ||
1274 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1275 | pyobj = PyString_FromString(ptemp); | |
1276 | return pyobj; | |
1277 | } | |
1278 | ||
1279 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1280 | ||
1281 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1282 | return 1; | |
1283 | } | |
1284 | ||
1285 | static PyObject *_wrap_wxTheBrushList_get() { | |
1286 | PyObject * pyobj; | |
1287 | char ptemp[128]; | |
1288 | ||
1289 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); | |
1290 | pyobj = PyString_FromString(ptemp); | |
1291 | return pyobj; | |
1292 | } | |
1293 | ||
1294 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1295 | ||
1296 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1297 | return 1; | |
1298 | } | |
1299 | ||
1300 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1301 | PyObject * pyobj; | |
1302 | char ptemp[128]; | |
1303 | ||
1304 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1305 | pyobj = PyString_FromString(ptemp); | |
1306 | return pyobj; | |
1307 | } | |
1308 | ||
1309 | static void *SwigwxGDIObjectTowxObject(void *ptr) { | |
1310 | wxGDIObject *src; | |
1311 | wxObject *dest; | |
1312 | src = (wxGDIObject *) ptr; | |
1313 | dest = (wxObject *) src; | |
1314 | return (void *) dest; | |
1315 | } | |
1316 | ||
1317 | #define new_wxGDIObject() (new wxGDIObject()) | |
1318 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1319 | PyObject * _resultobj; | |
1320 | wxGDIObject * _result; | |
1321 | char *_kwnames[] = { NULL }; | |
1322 | char _ptemp[128]; | |
1323 | ||
1324 | self = self; | |
1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1326 | return NULL; | |
1327 | { | |
1328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1329 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1330 | ||
1331 | wxPyEndAllowThreads(__tstate); | |
1332 | if (PyErr_Occurred()) return NULL; | |
1333 | } if (_result) { | |
1334 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1335 | _resultobj = Py_BuildValue("s",_ptemp); | |
1336 | } else { | |
1337 | Py_INCREF(Py_None); | |
1338 | _resultobj = Py_None; | |
1339 | } | |
1340 | return _resultobj; | |
1341 | } | |
1342 | ||
1343 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1344 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1345 | PyObject * _resultobj; | |
1346 | wxGDIObject * _arg0; | |
1347 | PyObject * _argo0 = 0; | |
1348 | char *_kwnames[] = { "self", NULL }; | |
1349 | ||
1350 | self = self; | |
1351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1352 | return NULL; | |
1353 | if (_argo0) { | |
1354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1357 | return NULL; | |
1358 | } | |
1359 | } | |
1360 | { | |
1361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1362 | delete_wxGDIObject(_arg0); | |
1363 | ||
1364 | wxPyEndAllowThreads(__tstate); | |
1365 | if (PyErr_Occurred()) return NULL; | |
1366 | } Py_INCREF(Py_None); | |
1367 | _resultobj = Py_None; | |
1368 | return _resultobj; | |
1369 | } | |
1370 | ||
1371 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1372 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1373 | PyObject * _resultobj; | |
1374 | bool _result; | |
1375 | wxGDIObject * _arg0; | |
1376 | PyObject * _argo0 = 0; | |
1377 | char *_kwnames[] = { "self", NULL }; | |
1378 | ||
1379 | self = self; | |
1380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1381 | return NULL; | |
1382 | if (_argo0) { | |
1383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1386 | return NULL; | |
1387 | } | |
1388 | } | |
1389 | { | |
1390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1391 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1392 | ||
1393 | wxPyEndAllowThreads(__tstate); | |
1394 | if (PyErr_Occurred()) return NULL; | |
1395 | } _resultobj = Py_BuildValue("i",_result); | |
1396 | return _resultobj; | |
1397 | } | |
1398 | ||
1399 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1400 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1401 | PyObject * _resultobj; | |
1402 | wxGDIObject * _arg0; | |
1403 | bool _arg1; | |
1404 | PyObject * _argo0 = 0; | |
1405 | int tempbool1; | |
1406 | char *_kwnames[] = { "self","visible", NULL }; | |
1407 | ||
1408 | self = self; | |
1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1410 | return NULL; | |
1411 | if (_argo0) { | |
1412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1415 | return NULL; | |
1416 | } | |
1417 | } | |
1418 | _arg1 = (bool ) tempbool1; | |
1419 | { | |
1420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1421 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1422 | ||
1423 | wxPyEndAllowThreads(__tstate); | |
1424 | if (PyErr_Occurred()) return NULL; | |
1425 | } Py_INCREF(Py_None); | |
1426 | _resultobj = Py_None; | |
1427 | return _resultobj; | |
1428 | } | |
1429 | ||
1430 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1431 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1432 | PyObject * _resultobj; | |
1433 | bool _result; | |
1434 | wxGDIObject * _arg0; | |
1435 | PyObject * _argo0 = 0; | |
1436 | char *_kwnames[] = { "self", NULL }; | |
1437 | ||
1438 | self = self; | |
1439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1440 | return NULL; | |
1441 | if (_argo0) { | |
1442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1445 | return NULL; | |
1446 | } | |
1447 | } | |
1448 | { | |
1449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1450 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1451 | ||
1452 | wxPyEndAllowThreads(__tstate); | |
1453 | if (PyErr_Occurred()) return NULL; | |
1454 | } _resultobj = Py_BuildValue("i",_result); | |
1455 | return _resultobj; | |
1456 | } | |
1457 | ||
1458 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1459 | wxBitmap *src; | |
1460 | wxGDIObject *dest; | |
1461 | src = (wxBitmap *) ptr; | |
1462 | dest = (wxGDIObject *) src; | |
1463 | return (void *) dest; | |
1464 | } | |
1465 | ||
1466 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1467 | wxBitmap *src; | |
1468 | wxObject *dest; | |
1469 | src = (wxBitmap *) ptr; | |
1470 | dest = (wxObject *) src; | |
1471 | return (void *) dest; | |
1472 | } | |
1473 | ||
1474 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
1475 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1476 | PyObject * _resultobj; | |
1477 | wxBitmap * _result; | |
1478 | wxString * _arg0; | |
1479 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; | |
1480 | PyObject * _obj0 = 0; | |
1481 | char *_kwnames[] = { "name","type", NULL }; | |
1482 | char _ptemp[128]; | |
1483 | ||
1484 | self = self; | |
1485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) | |
1486 | return NULL; | |
1487 | { | |
1488 | _arg0 = wxString_in_helper(_obj0); | |
1489 | if (_arg0 == NULL) | |
1490 | return NULL; | |
1491 | } | |
1492 | { | |
1493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1494 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
1495 | ||
1496 | wxPyEndAllowThreads(__tstate); | |
1497 | if (PyErr_Occurred()) return NULL; | |
1498 | } if (_result) { | |
1499 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1500 | _resultobj = Py_BuildValue("s",_ptemp); | |
1501 | } else { | |
1502 | Py_INCREF(Py_None); | |
1503 | _resultobj = Py_None; | |
1504 | } | |
1505 | { | |
1506 | if (_obj0) | |
1507 | delete _arg0; | |
1508 | } | |
1509 | return _resultobj; | |
1510 | } | |
1511 | ||
1512 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
1513 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject * _resultobj; | |
1515 | wxBitmap * _arg0; | |
1516 | PyObject * _argo0 = 0; | |
1517 | char *_kwnames[] = { "self", NULL }; | |
1518 | ||
1519 | self = self; | |
1520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) | |
1521 | return NULL; | |
1522 | if (_argo0) { | |
1523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
1526 | return NULL; | |
1527 | } | |
1528 | } | |
1529 | { | |
1530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1531 | delete_wxBitmap(_arg0); | |
1532 | ||
1533 | wxPyEndAllowThreads(__tstate); | |
1534 | if (PyErr_Occurred()) return NULL; | |
1535 | } Py_INCREF(Py_None); | |
1536 | _resultobj = Py_None; | |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
1540 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1541 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | wxPalette * _result; | |
1544 | wxBitmap * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | char _ptemp[128]; | |
1548 | ||
1549 | self = self; | |
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) | |
1551 | return NULL; | |
1552 | if (_argo0) { | |
1553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1556 | return NULL; | |
1557 | } | |
1558 | } | |
1559 | { | |
1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1561 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1562 | ||
1563 | wxPyEndAllowThreads(__tstate); | |
1564 | if (PyErr_Occurred()) return NULL; | |
1565 | } if (_result) { | |
1566 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1567 | _resultobj = Py_BuildValue("s",_ptemp); | |
1568 | } else { | |
1569 | Py_INCREF(Py_None); | |
1570 | _resultobj = Py_None; | |
1571 | } | |
1572 | return _resultobj; | |
1573 | } | |
1574 | ||
1575 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1576 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1577 | PyObject * _resultobj; | |
1578 | wxMask * _result; | |
1579 | wxBitmap * _arg0; | |
1580 | PyObject * _argo0 = 0; | |
1581 | char *_kwnames[] = { "self", NULL }; | |
1582 | char _ptemp[128]; | |
1583 | ||
1584 | self = self; | |
1585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) | |
1586 | return NULL; | |
1587 | if (_argo0) { | |
1588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1591 | return NULL; | |
1592 | } | |
1593 | } | |
1594 | { | |
1595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1596 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1597 | ||
1598 | wxPyEndAllowThreads(__tstate); | |
1599 | if (PyErr_Occurred()) return NULL; | |
1600 | } if (_result) { | |
1601 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1602 | _resultobj = Py_BuildValue("s",_ptemp); | |
1603 | } else { | |
1604 | Py_INCREF(Py_None); | |
1605 | _resultobj = Py_None; | |
1606 | } | |
1607 | return _resultobj; | |
1608 | } | |
1609 | ||
1610 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1611 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject * _resultobj; | |
1613 | bool _result; | |
1614 | wxBitmap * _arg0; | |
1615 | wxString * _arg1; | |
1616 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; | |
1617 | PyObject * _argo0 = 0; | |
1618 | PyObject * _obj1 = 0; | |
1619 | char *_kwnames[] = { "self","name","type", NULL }; | |
1620 | ||
1621 | self = self; | |
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1623 | return NULL; | |
1624 | if (_argo0) { | |
1625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1628 | return NULL; | |
1629 | } | |
1630 | } | |
1631 | { | |
1632 | _arg1 = wxString_in_helper(_obj1); | |
1633 | if (_arg1 == NULL) | |
1634 | return NULL; | |
1635 | } | |
1636 | { | |
1637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1638 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); | |
1639 | ||
1640 | wxPyEndAllowThreads(__tstate); | |
1641 | if (PyErr_Occurred()) return NULL; | |
1642 | } _resultobj = Py_BuildValue("i",_result); | |
1643 | { | |
1644 | if (_obj1) | |
1645 | delete _arg1; | |
1646 | } | |
1647 | return _resultobj; | |
1648 | } | |
1649 | ||
1650 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) | |
1651 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject * _resultobj; | |
1653 | bool _result; | |
1654 | wxBitmap * _arg0; | |
1655 | wxString * _arg1; | |
1656 | wxBitmapType _arg2; | |
1657 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1658 | PyObject * _argo0 = 0; | |
1659 | PyObject * _obj1 = 0; | |
1660 | PyObject * _argo3 = 0; | |
1661 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
1662 | ||
1663 | self = self; | |
1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) | |
1665 | return NULL; | |
1666 | if (_argo0) { | |
1667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1670 | return NULL; | |
1671 | } | |
1672 | } | |
1673 | { | |
1674 | _arg1 = wxString_in_helper(_obj1); | |
1675 | if (_arg1 == NULL) | |
1676 | return NULL; | |
1677 | } | |
1678 | if (_argo3) { | |
1679 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1680 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1682 | return NULL; | |
1683 | } | |
1684 | } | |
1685 | { | |
1686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1687 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); | |
1688 | ||
1689 | wxPyEndAllowThreads(__tstate); | |
1690 | if (PyErr_Occurred()) return NULL; | |
1691 | } _resultobj = Py_BuildValue("i",_result); | |
1692 | { | |
1693 | if (_obj1) | |
1694 | delete _arg1; | |
1695 | } | |
1696 | return _resultobj; | |
1697 | } | |
1698 | ||
1699 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1700 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject * _resultobj; | |
1702 | wxBitmap * _arg0; | |
1703 | wxMask * _arg1; | |
1704 | PyObject * _argo0 = 0; | |
1705 | PyObject * _argo1 = 0; | |
1706 | char *_kwnames[] = { "self","mask", NULL }; | |
1707 | ||
1708 | self = self; | |
1709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1710 | return NULL; | |
1711 | if (_argo0) { | |
1712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1715 | return NULL; | |
1716 | } | |
1717 | } | |
1718 | if (_argo1) { | |
1719 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1727 | wxBitmap_SetMask(_arg0,_arg1); | |
1728 | ||
1729 | wxPyEndAllowThreads(__tstate); | |
1730 | if (PyErr_Occurred()) return NULL; | |
1731 | } Py_INCREF(Py_None); | |
1732 | _resultobj = Py_None; | |
1733 | return _resultobj; | |
1734 | } | |
1735 | ||
1736 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1737 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1738 | PyObject * _resultobj; | |
1739 | bool _result; | |
1740 | wxBitmap * _arg0; | |
1741 | PyObject * _argo0 = 0; | |
1742 | char *_kwnames[] = { "self", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | { | |
1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1756 | _result = (bool )wxBitmap_Ok(_arg0); | |
1757 | ||
1758 | wxPyEndAllowThreads(__tstate); | |
1759 | if (PyErr_Occurred()) return NULL; | |
1760 | } _resultobj = Py_BuildValue("i",_result); | |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
1764 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1765 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | int _result; | |
1768 | wxBitmap * _arg0; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "self", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | { | |
1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1784 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1785 | ||
1786 | wxPyEndAllowThreads(__tstate); | |
1787 | if (PyErr_Occurred()) return NULL; | |
1788 | } _resultobj = Py_BuildValue("i",_result); | |
1789 | return _resultobj; | |
1790 | } | |
1791 | ||
1792 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1793 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject * _resultobj; | |
1795 | int _result; | |
1796 | wxBitmap * _arg0; | |
1797 | PyObject * _argo0 = 0; | |
1798 | char *_kwnames[] = { "self", NULL }; | |
1799 | ||
1800 | self = self; | |
1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1802 | return NULL; | |
1803 | if (_argo0) { | |
1804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1807 | return NULL; | |
1808 | } | |
1809 | } | |
1810 | { | |
1811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1812 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1813 | ||
1814 | wxPyEndAllowThreads(__tstate); | |
1815 | if (PyErr_Occurred()) return NULL; | |
1816 | } _resultobj = Py_BuildValue("i",_result); | |
1817 | return _resultobj; | |
1818 | } | |
1819 | ||
1820 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1821 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1822 | PyObject * _resultobj; | |
1823 | int _result; | |
1824 | wxBitmap * _arg0; | |
1825 | PyObject * _argo0 = 0; | |
1826 | char *_kwnames[] = { "self", NULL }; | |
1827 | ||
1828 | self = self; | |
1829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) | |
1830 | return NULL; | |
1831 | if (_argo0) { | |
1832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1835 | return NULL; | |
1836 | } | |
1837 | } | |
1838 | { | |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1840 | _result = (int )wxBitmap_GetDepth(_arg0); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
1843 | if (PyErr_Occurred()) return NULL; | |
1844 | } _resultobj = Py_BuildValue("i",_result); | |
1845 | return _resultobj; | |
1846 | } | |
1847 | ||
1848 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1849 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1850 | PyObject * _resultobj; | |
1851 | wxBitmap * _arg0; | |
1852 | int _arg1; | |
1853 | PyObject * _argo0 = 0; | |
1854 | char *_kwnames[] = { "self","w", NULL }; | |
1855 | ||
1856 | self = self; | |
1857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1858 | return NULL; | |
1859 | if (_argo0) { | |
1860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1863 | return NULL; | |
1864 | } | |
1865 | } | |
1866 | { | |
1867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1868 | wxBitmap_SetWidth(_arg0,_arg1); | |
1869 | ||
1870 | wxPyEndAllowThreads(__tstate); | |
1871 | if (PyErr_Occurred()) return NULL; | |
1872 | } Py_INCREF(Py_None); | |
1873 | _resultobj = Py_None; | |
1874 | return _resultobj; | |
1875 | } | |
1876 | ||
1877 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1878 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1879 | PyObject * _resultobj; | |
1880 | wxBitmap * _arg0; | |
1881 | int _arg1; | |
1882 | PyObject * _argo0 = 0; | |
1883 | char *_kwnames[] = { "self","h", NULL }; | |
1884 | ||
1885 | self = self; | |
1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) | |
1887 | return NULL; | |
1888 | if (_argo0) { | |
1889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
1892 | return NULL; | |
1893 | } | |
1894 | } | |
1895 | { | |
1896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1897 | wxBitmap_SetHeight(_arg0,_arg1); | |
1898 | ||
1899 | wxPyEndAllowThreads(__tstate); | |
1900 | if (PyErr_Occurred()) return NULL; | |
1901 | } Py_INCREF(Py_None); | |
1902 | _resultobj = Py_None; | |
1903 | return _resultobj; | |
1904 | } | |
1905 | ||
1906 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1907 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject * _resultobj; | |
1909 | wxBitmap * _arg0; | |
1910 | int _arg1; | |
1911 | PyObject * _argo0 = 0; | |
1912 | char *_kwnames[] = { "self","d", NULL }; | |
1913 | ||
1914 | self = self; | |
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
1916 | return NULL; | |
1917 | if (_argo0) { | |
1918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
1921 | return NULL; | |
1922 | } | |
1923 | } | |
1924 | { | |
1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1926 | wxBitmap_SetDepth(_arg0,_arg1); | |
1927 | ||
1928 | wxPyEndAllowThreads(__tstate); | |
1929 | if (PyErr_Occurred()) return NULL; | |
1930 | } Py_INCREF(Py_None); | |
1931 | _resultobj = Py_None; | |
1932 | return _resultobj; | |
1933 | } | |
1934 | ||
1935 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) | |
1936 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1937 | PyObject * _resultobj; | |
1938 | wxBitmap * _result; | |
1939 | wxBitmap * _arg0; | |
1940 | wxRect * _arg1; | |
1941 | PyObject * _argo0 = 0; | |
1942 | wxRect temp; | |
1943 | PyObject * _obj1 = 0; | |
1944 | char *_kwnames[] = { "self","rect", NULL }; | |
1945 | char _ptemp[128]; | |
1946 | ||
1947 | self = self; | |
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1949 | return NULL; | |
1950 | if (_argo0) { | |
1951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1954 | return NULL; | |
1955 | } | |
1956 | } | |
1957 | { | |
1958 | _arg1 = &temp; | |
1959 | if (! wxRect_helper(_obj1, &_arg1)) | |
1960 | return NULL; | |
1961 | } | |
1962 | { | |
1963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1964 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
1965 | ||
1966 | wxPyEndAllowThreads(__tstate); | |
1967 | if (PyErr_Occurred()) return NULL; | |
1968 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1969 | _resultobj = Py_BuildValue("s",_ptemp); | |
1970 | return _resultobj; | |
1971 | } | |
1972 | ||
1973 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
1974 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1975 | PyObject * _resultobj; | |
1976 | bool _result; | |
1977 | wxBitmap * _arg0; | |
1978 | wxIcon * _arg1; | |
1979 | PyObject * _argo0 = 0; | |
1980 | PyObject * _argo1 = 0; | |
1981 | char *_kwnames[] = { "self","icon", NULL }; | |
1982 | ||
1983 | self = self; | |
1984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
1985 | return NULL; | |
1986 | if (_argo0) { | |
1987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
1990 | return NULL; | |
1991 | } | |
1992 | } | |
1993 | if (_argo1) { | |
1994 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1995 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
1996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
1997 | return NULL; | |
1998 | } | |
1999 | } | |
2000 | { | |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) return NULL; | |
2006 | } _resultobj = Py_BuildValue("i",_result); | |
2007 | return _resultobj; | |
2008 | } | |
2009 | ||
2010 | static void *SwigwxMaskTowxObject(void *ptr) { | |
2011 | wxMask *src; | |
2012 | wxObject *dest; | |
2013 | src = (wxMask *) ptr; | |
2014 | dest = (wxObject *) src; | |
2015 | return (void *) dest; | |
2016 | } | |
2017 | ||
2018 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
2019 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2020 | PyObject * _resultobj; | |
2021 | wxMask * _result; | |
2022 | wxBitmap * _arg0; | |
2023 | PyObject * _argo0 = 0; | |
2024 | char *_kwnames[] = { "bitmap", NULL }; | |
2025 | char _ptemp[128]; | |
2026 | ||
2027 | self = self; | |
2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2029 | return NULL; | |
2030 | if (_argo0) { | |
2031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2034 | return NULL; | |
2035 | } | |
2036 | } | |
2037 | { | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | _result = (wxMask *)new_wxMask(*_arg0); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) return NULL; | |
2043 | } if (_result) { | |
2044 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2045 | _resultobj = Py_BuildValue("s",_ptemp); | |
2046 | } else { | |
2047 | Py_INCREF(Py_None); | |
2048 | _resultobj = Py_None; | |
2049 | } | |
2050 | return _resultobj; | |
2051 | } | |
2052 | ||
2053 | static void wxMask_Destroy(wxMask *self) { delete self; } | |
2054 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2055 | PyObject * _resultobj; | |
2056 | wxMask * _arg0; | |
2057 | PyObject * _argo0 = 0; | |
2058 | char *_kwnames[] = { "self", NULL }; | |
2059 | ||
2060 | self = self; | |
2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2062 | return NULL; | |
2063 | if (_argo0) { | |
2064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2067 | return NULL; | |
2068 | } | |
2069 | } | |
2070 | { | |
2071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2072 | wxMask_Destroy(_arg0); | |
2073 | ||
2074 | wxPyEndAllowThreads(__tstate); | |
2075 | if (PyErr_Occurred()) return NULL; | |
2076 | } Py_INCREF(Py_None); | |
2077 | _resultobj = Py_None; | |
2078 | return _resultobj; | |
2079 | } | |
2080 | ||
2081 | static void *SwigwxIconTowxGDIObject(void *ptr) { | |
2082 | wxIcon *src; | |
2083 | wxGDIObject *dest; | |
2084 | src = (wxIcon *) ptr; | |
2085 | dest = (wxGDIObject *) src; | |
2086 | return (void *) dest; | |
2087 | } | |
2088 | ||
2089 | static void *SwigwxIconTowxObject(void *ptr) { | |
2090 | wxIcon *src; | |
2091 | wxObject *dest; | |
2092 | src = (wxIcon *) ptr; | |
2093 | dest = (wxObject *) src; | |
2094 | return (void *) dest; | |
2095 | } | |
2096 | ||
2097 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2098 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2099 | PyObject * _resultobj; | |
2100 | wxIcon * _result; | |
2101 | wxString * _arg0; | |
2102 | long _arg1; | |
2103 | int _arg2 = (int ) -1; | |
2104 | int _arg3 = (int ) -1; | |
2105 | PyObject * _obj0 = 0; | |
2106 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; | |
2107 | char _ptemp[128]; | |
2108 | ||
2109 | self = self; | |
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2111 | return NULL; | |
2112 | { | |
2113 | _arg0 = wxString_in_helper(_obj0); | |
2114 | if (_arg0 == NULL) | |
2115 | return NULL; | |
2116 | } | |
2117 | { | |
2118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2119 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); | |
2120 | ||
2121 | wxPyEndAllowThreads(__tstate); | |
2122 | if (PyErr_Occurred()) return NULL; | |
2123 | } if (_result) { | |
2124 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2125 | _resultobj = Py_BuildValue("s",_ptemp); | |
2126 | } else { | |
2127 | Py_INCREF(Py_None); | |
2128 | _resultobj = Py_None; | |
2129 | } | |
2130 | { | |
2131 | if (_obj0) | |
2132 | delete _arg0; | |
2133 | } | |
2134 | return _resultobj; | |
2135 | } | |
2136 | ||
2137 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
2138 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject * _resultobj; | |
2140 | wxIcon * _arg0; | |
2141 | PyObject * _argo0 = 0; | |
2142 | char *_kwnames[] = { "self", NULL }; | |
2143 | ||
2144 | self = self; | |
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) | |
2146 | return NULL; | |
2147 | if (_argo0) { | |
2148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
2151 | return NULL; | |
2152 | } | |
2153 | } | |
2154 | { | |
2155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2156 | delete_wxIcon(_arg0); | |
2157 | ||
2158 | wxPyEndAllowThreads(__tstate); | |
2159 | if (PyErr_Occurred()) return NULL; | |
2160 | } Py_INCREF(Py_None); | |
2161 | _resultobj = Py_None; | |
2162 | return _resultobj; | |
2163 | } | |
2164 | ||
2165 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2166 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2167 | PyObject * _resultobj; | |
2168 | bool _result; | |
2169 | wxIcon * _arg0; | |
2170 | wxString * _arg1; | |
2171 | long _arg2; | |
2172 | PyObject * _argo0 = 0; | |
2173 | PyObject * _obj1 = 0; | |
2174 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2175 | ||
2176 | self = self; | |
2177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2178 | return NULL; | |
2179 | if (_argo0) { | |
2180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2183 | return NULL; | |
2184 | } | |
2185 | } | |
2186 | { | |
2187 | _arg1 = wxString_in_helper(_obj1); | |
2188 | if (_arg1 == NULL) | |
2189 | return NULL; | |
2190 | } | |
2191 | { | |
2192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2193 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
2194 | ||
2195 | wxPyEndAllowThreads(__tstate); | |
2196 | if (PyErr_Occurred()) return NULL; | |
2197 | } _resultobj = Py_BuildValue("i",_result); | |
2198 | { | |
2199 | if (_obj1) | |
2200 | delete _arg1; | |
2201 | } | |
2202 | return _resultobj; | |
2203 | } | |
2204 | ||
2205 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2206 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2207 | PyObject * _resultobj; | |
2208 | bool _result; | |
2209 | wxIcon * _arg0; | |
2210 | PyObject * _argo0 = 0; | |
2211 | char *_kwnames[] = { "self", NULL }; | |
2212 | ||
2213 | self = self; | |
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2215 | return NULL; | |
2216 | if (_argo0) { | |
2217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2220 | return NULL; | |
2221 | } | |
2222 | } | |
2223 | { | |
2224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2225 | _result = (bool )wxIcon_Ok(_arg0); | |
2226 | ||
2227 | wxPyEndAllowThreads(__tstate); | |
2228 | if (PyErr_Occurred()) return NULL; | |
2229 | } _resultobj = Py_BuildValue("i",_result); | |
2230 | return _resultobj; | |
2231 | } | |
2232 | ||
2233 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2234 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2235 | PyObject * _resultobj; | |
2236 | int _result; | |
2237 | wxIcon * _arg0; | |
2238 | PyObject * _argo0 = 0; | |
2239 | char *_kwnames[] = { "self", NULL }; | |
2240 | ||
2241 | self = self; | |
2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2243 | return NULL; | |
2244 | if (_argo0) { | |
2245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2248 | return NULL; | |
2249 | } | |
2250 | } | |
2251 | { | |
2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2253 | _result = (int )wxIcon_GetWidth(_arg0); | |
2254 | ||
2255 | wxPyEndAllowThreads(__tstate); | |
2256 | if (PyErr_Occurred()) return NULL; | |
2257 | } _resultobj = Py_BuildValue("i",_result); | |
2258 | return _resultobj; | |
2259 | } | |
2260 | ||
2261 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2262 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2263 | PyObject * _resultobj; | |
2264 | int _result; | |
2265 | wxIcon * _arg0; | |
2266 | PyObject * _argo0 = 0; | |
2267 | char *_kwnames[] = { "self", NULL }; | |
2268 | ||
2269 | self = self; | |
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2271 | return NULL; | |
2272 | if (_argo0) { | |
2273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2276 | return NULL; | |
2277 | } | |
2278 | } | |
2279 | { | |
2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2281 | _result = (int )wxIcon_GetHeight(_arg0); | |
2282 | ||
2283 | wxPyEndAllowThreads(__tstate); | |
2284 | if (PyErr_Occurred()) return NULL; | |
2285 | } _resultobj = Py_BuildValue("i",_result); | |
2286 | return _resultobj; | |
2287 | } | |
2288 | ||
2289 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2290 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject * _resultobj; | |
2292 | int _result; | |
2293 | wxIcon * _arg0; | |
2294 | PyObject * _argo0 = 0; | |
2295 | char *_kwnames[] = { "self", NULL }; | |
2296 | ||
2297 | self = self; | |
2298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2299 | return NULL; | |
2300 | if (_argo0) { | |
2301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2304 | return NULL; | |
2305 | } | |
2306 | } | |
2307 | { | |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | _result = (int )wxIcon_GetDepth(_arg0); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) return NULL; | |
2313 | } _resultobj = Py_BuildValue("i",_result); | |
2314 | return _resultobj; | |
2315 | } | |
2316 | ||
2317 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2318 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2319 | PyObject * _resultobj; | |
2320 | wxIcon * _arg0; | |
2321 | int _arg1; | |
2322 | PyObject * _argo0 = 0; | |
2323 | char *_kwnames[] = { "self","w", NULL }; | |
2324 | ||
2325 | self = self; | |
2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2327 | return NULL; | |
2328 | if (_argo0) { | |
2329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2332 | return NULL; | |
2333 | } | |
2334 | } | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | wxIcon_SetWidth(_arg0,_arg1); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) return NULL; | |
2341 | } Py_INCREF(Py_None); | |
2342 | _resultobj = Py_None; | |
2343 | return _resultobj; | |
2344 | } | |
2345 | ||
2346 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2347 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2348 | PyObject * _resultobj; | |
2349 | wxIcon * _arg0; | |
2350 | int _arg1; | |
2351 | PyObject * _argo0 = 0; | |
2352 | char *_kwnames[] = { "self","h", NULL }; | |
2353 | ||
2354 | self = self; | |
2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2356 | return NULL; | |
2357 | if (_argo0) { | |
2358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2361 | return NULL; | |
2362 | } | |
2363 | } | |
2364 | { | |
2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2366 | wxIcon_SetHeight(_arg0,_arg1); | |
2367 | ||
2368 | wxPyEndAllowThreads(__tstate); | |
2369 | if (PyErr_Occurred()) return NULL; | |
2370 | } Py_INCREF(Py_None); | |
2371 | _resultobj = Py_None; | |
2372 | return _resultobj; | |
2373 | } | |
2374 | ||
2375 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2376 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2377 | PyObject * _resultobj; | |
2378 | wxIcon * _arg0; | |
2379 | int _arg1; | |
2380 | PyObject * _argo0 = 0; | |
2381 | char *_kwnames[] = { "self","d", NULL }; | |
2382 | ||
2383 | self = self; | |
2384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2385 | return NULL; | |
2386 | if (_argo0) { | |
2387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2390 | return NULL; | |
2391 | } | |
2392 | } | |
2393 | { | |
2394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2395 | wxIcon_SetDepth(_arg0,_arg1); | |
2396 | ||
2397 | wxPyEndAllowThreads(__tstate); | |
2398 | if (PyErr_Occurred()) return NULL; | |
2399 | } Py_INCREF(Py_None); | |
2400 | _resultobj = Py_None; | |
2401 | return _resultobj; | |
2402 | } | |
2403 | ||
2404 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) | |
2405 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2406 | PyObject * _resultobj; | |
2407 | wxIcon * _arg0; | |
2408 | wxBitmap * _arg1; | |
2409 | PyObject * _argo0 = 0; | |
2410 | PyObject * _argo1 = 0; | |
2411 | char *_kwnames[] = { "self","bmp", NULL }; | |
2412 | ||
2413 | self = self; | |
2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2415 | return NULL; | |
2416 | if (_argo0) { | |
2417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2420 | return NULL; | |
2421 | } | |
2422 | } | |
2423 | if (_argo1) { | |
2424 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2425 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2427 | return NULL; | |
2428 | } | |
2429 | } | |
2430 | { | |
2431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2432 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2433 | ||
2434 | wxPyEndAllowThreads(__tstate); | |
2435 | if (PyErr_Occurred()) return NULL; | |
2436 | } Py_INCREF(Py_None); | |
2437 | _resultobj = Py_None; | |
2438 | return _resultobj; | |
2439 | } | |
2440 | ||
2441 | static void *SwigwxCursorTowxGDIObject(void *ptr) { | |
2442 | wxCursor *src; | |
2443 | wxGDIObject *dest; | |
2444 | src = (wxCursor *) ptr; | |
2445 | dest = (wxGDIObject *) src; | |
2446 | return (void *) dest; | |
2447 | } | |
2448 | ||
2449 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2450 | wxCursor *src; | |
2451 | wxObject *dest; | |
2452 | src = (wxCursor *) ptr; | |
2453 | dest = (wxObject *) src; | |
2454 | return (void *) dest; | |
2455 | } | |
2456 | ||
2457 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2458 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2459 | PyObject * _resultobj; | |
2460 | wxCursor * _arg0; | |
2461 | PyObject * _argo0 = 0; | |
2462 | char *_kwnames[] = { "self", NULL }; | |
2463 | ||
2464 | self = self; | |
2465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2466 | return NULL; | |
2467 | if (_argo0) { | |
2468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2471 | return NULL; | |
2472 | } | |
2473 | } | |
2474 | { | |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2476 | delete_wxCursor(_arg0); | |
2477 | ||
2478 | wxPyEndAllowThreads(__tstate); | |
2479 | if (PyErr_Occurred()) return NULL; | |
2480 | } Py_INCREF(Py_None); | |
2481 | _resultobj = Py_None; | |
2482 | return _resultobj; | |
2483 | } | |
2484 | ||
2485 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2486 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2487 | PyObject * _resultobj; | |
2488 | bool _result; | |
2489 | wxCursor * _arg0; | |
2490 | PyObject * _argo0 = 0; | |
2491 | char *_kwnames[] = { "self", NULL }; | |
2492 | ||
2493 | self = self; | |
2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2495 | return NULL; | |
2496 | if (_argo0) { | |
2497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2500 | return NULL; | |
2501 | } | |
2502 | } | |
2503 | { | |
2504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2505 | _result = (bool )wxCursor_Ok(_arg0); | |
2506 | ||
2507 | wxPyEndAllowThreads(__tstate); | |
2508 | if (PyErr_Occurred()) return NULL; | |
2509 | } _resultobj = Py_BuildValue("i",_result); | |
2510 | return _resultobj; | |
2511 | } | |
2512 | ||
2513 | #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0)) | |
2514 | static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject * _resultobj; | |
2516 | bool _result; | |
2517 | wxNativeFontInfo * _arg0; | |
2518 | wxString * _arg1; | |
2519 | PyObject * _argo0 = 0; | |
2520 | PyObject * _obj1 = 0; | |
2521 | char *_kwnames[] = { "self","xFontName", NULL }; | |
2522 | ||
2523 | self = self; | |
2524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1)) | |
2525 | return NULL; | |
2526 | if (_argo0) { | |
2527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p."); | |
2530 | return NULL; | |
2531 | } | |
2532 | } | |
2533 | { | |
2534 | _arg1 = wxString_in_helper(_obj1); | |
2535 | if (_arg1 == NULL) | |
2536 | return NULL; | |
2537 | } | |
2538 | { | |
2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2540 | _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1); | |
2541 | ||
2542 | wxPyEndAllowThreads(__tstate); | |
2543 | if (PyErr_Occurred()) return NULL; | |
2544 | } _resultobj = Py_BuildValue("i",_result); | |
2545 | { | |
2546 | if (_obj1) | |
2547 | delete _arg1; | |
2548 | } | |
2549 | return _resultobj; | |
2550 | } | |
2551 | ||
2552 | #define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault()) | |
2553 | static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2554 | PyObject * _resultobj; | |
2555 | bool _result; | |
2556 | wxNativeFontInfo * _arg0; | |
2557 | PyObject * _argo0 = 0; | |
2558 | char *_kwnames[] = { "self", NULL }; | |
2559 | ||
2560 | self = self; | |
2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0)) | |
2562 | return NULL; | |
2563 | if (_argo0) { | |
2564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p."); | |
2567 | return NULL; | |
2568 | } | |
2569 | } | |
2570 | { | |
2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2572 | _result = (bool )wxNativeFontInfo_IsDefault(_arg0); | |
2573 | ||
2574 | wxPyEndAllowThreads(__tstate); | |
2575 | if (PyErr_Occurred()) return NULL; | |
2576 | } _resultobj = Py_BuildValue("i",_result); | |
2577 | return _resultobj; | |
2578 | } | |
2579 | ||
2580 | #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName()) | |
2581 | static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2582 | PyObject * _resultobj; | |
2583 | wxString * _result; | |
2584 | wxNativeFontInfo * _arg0; | |
2585 | PyObject * _argo0 = 0; | |
2586 | char *_kwnames[] = { "self", NULL }; | |
2587 | ||
2588 | self = self; | |
2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0)) | |
2590 | return NULL; | |
2591 | if (_argo0) { | |
2592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p."); | |
2595 | return NULL; | |
2596 | } | |
2597 | } | |
2598 | { | |
2599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2600 | _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0)); | |
2601 | ||
2602 | wxPyEndAllowThreads(__tstate); | |
2603 | if (PyErr_Occurred()) return NULL; | |
2604 | }{ | |
2605 | #if wxUSE_UNICODE | |
2606 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2607 | #else | |
2608 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2609 | #endif | |
2610 | } | |
2611 | { | |
2612 | delete _result; | |
2613 | } | |
2614 | return _resultobj; | |
2615 | } | |
2616 | ||
2617 | #define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0)) | |
2618 | static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2619 | PyObject * _resultobj; | |
2620 | wxNativeFontInfo * _arg0; | |
2621 | wxString * _arg1; | |
2622 | PyObject * _argo0 = 0; | |
2623 | PyObject * _obj1 = 0; | |
2624 | char *_kwnames[] = { "self","xFontName", NULL }; | |
2625 | ||
2626 | self = self; | |
2627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1)) | |
2628 | return NULL; | |
2629 | if (_argo0) { | |
2630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p."); | |
2633 | return NULL; | |
2634 | } | |
2635 | } | |
2636 | { | |
2637 | _arg1 = wxString_in_helper(_obj1); | |
2638 | if (_arg1 == NULL) | |
2639 | return NULL; | |
2640 | } | |
2641 | { | |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | wxNativeFontInfo_SetXFontName(_arg0,*_arg1); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) return NULL; | |
2647 | } Py_INCREF(Py_None); | |
2648 | _resultobj = Py_None; | |
2649 | { | |
2650 | if (_obj1) | |
2651 | delete _arg1; | |
2652 | } | |
2653 | return _resultobj; | |
2654 | } | |
2655 | ||
2656 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) | |
2657 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2658 | PyObject * _resultobj; | |
2659 | wxNativeFontInfo * _result; | |
2660 | char *_kwnames[] = { NULL }; | |
2661 | char _ptemp[128]; | |
2662 | ||
2663 | self = self; | |
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
2665 | return NULL; | |
2666 | { | |
2667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2668 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); | |
2669 | ||
2670 | wxPyEndAllowThreads(__tstate); | |
2671 | if (PyErr_Occurred()) return NULL; | |
2672 | } if (_result) { | |
2673 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
2674 | _resultobj = Py_BuildValue("s",_ptemp); | |
2675 | } else { | |
2676 | Py_INCREF(Py_None); | |
2677 | _resultobj = Py_None; | |
2678 | } | |
2679 | return _resultobj; | |
2680 | } | |
2681 | ||
2682 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
2683 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2684 | PyObject * _resultobj; | |
2685 | wxNativeFontInfo * _arg0; | |
2686 | PyObject * _argo0 = 0; | |
2687 | char *_kwnames[] = { "self", NULL }; | |
2688 | ||
2689 | self = self; | |
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
2691 | return NULL; | |
2692 | if (_argo0) { | |
2693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
2696 | return NULL; | |
2697 | } | |
2698 | } | |
2699 | { | |
2700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2701 | wxNativeFontInfo_Init(_arg0); | |
2702 | ||
2703 | wxPyEndAllowThreads(__tstate); | |
2704 | if (PyErr_Occurred()) return NULL; | |
2705 | } Py_INCREF(Py_None); | |
2706 | _resultobj = Py_None; | |
2707 | return _resultobj; | |
2708 | } | |
2709 | ||
2710 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) | |
2711 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2712 | PyObject * _resultobj; | |
2713 | bool _result; | |
2714 | wxNativeFontInfo * _arg0; | |
2715 | wxString * _arg1; | |
2716 | PyObject * _argo0 = 0; | |
2717 | PyObject * _obj1 = 0; | |
2718 | char *_kwnames[] = { "self","s", NULL }; | |
2719 | ||
2720 | self = self; | |
2721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
2722 | return NULL; | |
2723 | if (_argo0) { | |
2724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
2727 | return NULL; | |
2728 | } | |
2729 | } | |
2730 | { | |
2731 | _arg1 = wxString_in_helper(_obj1); | |
2732 | if (_arg1 == NULL) | |
2733 | return NULL; | |
2734 | } | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) return NULL; | |
2741 | } _resultobj = Py_BuildValue("i",_result); | |
2742 | { | |
2743 | if (_obj1) | |
2744 | delete _arg1; | |
2745 | } | |
2746 | return _resultobj; | |
2747 | } | |
2748 | ||
2749 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) | |
2750 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2751 | PyObject * _resultobj; | |
2752 | wxString * _result; | |
2753 | wxNativeFontInfo * _arg0; | |
2754 | PyObject * _argo0 = 0; | |
2755 | char *_kwnames[] = { "self", NULL }; | |
2756 | ||
2757 | self = self; | |
2758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
2759 | return NULL; | |
2760 | if (_argo0) { | |
2761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
2764 | return NULL; | |
2765 | } | |
2766 | } | |
2767 | { | |
2768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2769 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); | |
2770 | ||
2771 | wxPyEndAllowThreads(__tstate); | |
2772 | if (PyErr_Occurred()) return NULL; | |
2773 | }{ | |
2774 | #if wxUSE_UNICODE | |
2775 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2776 | #else | |
2777 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2778 | #endif | |
2779 | } | |
2780 | { | |
2781 | delete _result; | |
2782 | } | |
2783 | return _resultobj; | |
2784 | } | |
2785 | ||
2786 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
2787 | return self->ToString(); | |
2788 | } | |
2789 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2790 | PyObject * _resultobj; | |
2791 | wxString * _result; | |
2792 | wxNativeFontInfo * _arg0; | |
2793 | PyObject * _argo0 = 0; | |
2794 | char *_kwnames[] = { "self", NULL }; | |
2795 | ||
2796 | self = self; | |
2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
2798 | return NULL; | |
2799 | if (_argo0) { | |
2800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
2803 | return NULL; | |
2804 | } | |
2805 | } | |
2806 | { | |
2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2808 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); | |
2809 | ||
2810 | wxPyEndAllowThreads(__tstate); | |
2811 | if (PyErr_Occurred()) return NULL; | |
2812 | }{ | |
2813 | #if wxUSE_UNICODE | |
2814 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2815 | #else | |
2816 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2817 | #endif | |
2818 | } | |
2819 | { | |
2820 | delete _result; | |
2821 | } | |
2822 | return _resultobj; | |
2823 | } | |
2824 | ||
2825 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) | |
2826 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2827 | PyObject * _resultobj; | |
2828 | bool _result; | |
2829 | wxNativeFontInfo * _arg0; | |
2830 | wxString * _arg1; | |
2831 | PyObject * _argo0 = 0; | |
2832 | PyObject * _obj1 = 0; | |
2833 | char *_kwnames[] = { "self","s", NULL }; | |
2834 | ||
2835 | self = self; | |
2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
2837 | return NULL; | |
2838 | if (_argo0) { | |
2839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
2842 | return NULL; | |
2843 | } | |
2844 | } | |
2845 | { | |
2846 | _arg1 = wxString_in_helper(_obj1); | |
2847 | if (_arg1 == NULL) | |
2848 | return NULL; | |
2849 | } | |
2850 | { | |
2851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2852 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); | |
2853 | ||
2854 | wxPyEndAllowThreads(__tstate); | |
2855 | if (PyErr_Occurred()) return NULL; | |
2856 | } _resultobj = Py_BuildValue("i",_result); | |
2857 | { | |
2858 | if (_obj1) | |
2859 | delete _arg1; | |
2860 | } | |
2861 | return _resultobj; | |
2862 | } | |
2863 | ||
2864 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
2865 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2866 | PyObject * _resultobj; | |
2867 | wxString * _result; | |
2868 | wxNativeFontInfo * _arg0; | |
2869 | PyObject * _argo0 = 0; | |
2870 | char *_kwnames[] = { "self", NULL }; | |
2871 | ||
2872 | self = self; | |
2873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
2874 | return NULL; | |
2875 | if (_argo0) { | |
2876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | { | |
2883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2884 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); | |
2885 | ||
2886 | wxPyEndAllowThreads(__tstate); | |
2887 | if (PyErr_Occurred()) return NULL; | |
2888 | }{ | |
2889 | #if wxUSE_UNICODE | |
2890 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2891 | #else | |
2892 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2893 | #endif | |
2894 | } | |
2895 | { | |
2896 | delete _result; | |
2897 | } | |
2898 | return _resultobj; | |
2899 | } | |
2900 | ||
2901 | #define new_wxFontMapper() (new wxFontMapper()) | |
2902 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2903 | PyObject * _resultobj; | |
2904 | wxFontMapper * _result; | |
2905 | char *_kwnames[] = { NULL }; | |
2906 | char _ptemp[128]; | |
2907 | ||
2908 | self = self; | |
2909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) | |
2910 | return NULL; | |
2911 | { | |
2912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2913 | _result = (wxFontMapper *)new_wxFontMapper(); | |
2914 | ||
2915 | wxPyEndAllowThreads(__tstate); | |
2916 | if (PyErr_Occurred()) return NULL; | |
2917 | } if (_result) { | |
2918 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); | |
2919 | _resultobj = Py_BuildValue("s",_ptemp); | |
2920 | } else { | |
2921 | Py_INCREF(Py_None); | |
2922 | _resultobj = Py_None; | |
2923 | } | |
2924 | return _resultobj; | |
2925 | } | |
2926 | ||
2927 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) | |
2928 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2929 | PyObject * _resultobj; | |
2930 | wxFontMapper * _arg0; | |
2931 | PyObject * _argo0 = 0; | |
2932 | char *_kwnames[] = { "self", NULL }; | |
2933 | ||
2934 | self = self; | |
2935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) | |
2936 | return NULL; | |
2937 | if (_argo0) { | |
2938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
2941 | return NULL; | |
2942 | } | |
2943 | } | |
2944 | { | |
2945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2946 | delete_wxFontMapper(_arg0); | |
2947 | ||
2948 | wxPyEndAllowThreads(__tstate); | |
2949 | if (PyErr_Occurred()) return NULL; | |
2950 | } Py_INCREF(Py_None); | |
2951 | _resultobj = Py_None; | |
2952 | return _resultobj; | |
2953 | } | |
2954 | ||
2955 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { | |
2956 | wxFontEncoding alt_enc; | |
2957 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
2958 | return PyInt_FromLong(alt_enc); | |
2959 | else { | |
2960 | Py_INCREF(Py_None); | |
2961 | return Py_None; | |
2962 | } | |
2963 | } | |
2964 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2965 | PyObject * _resultobj; | |
2966 | PyObject * _result; | |
2967 | wxFontMapper * _arg0; | |
2968 | wxFontEncoding _arg1; | |
2969 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2970 | bool _arg3 = (bool ) TRUE; | |
2971 | PyObject * _argo0 = 0; | |
2972 | PyObject * _obj2 = 0; | |
2973 | int tempbool3 = (int) TRUE; | |
2974 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
2975 | ||
2976 | self = self; | |
2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
2978 | return NULL; | |
2979 | if (_argo0) { | |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
2983 | return NULL; | |
2984 | } | |
2985 | } | |
2986 | if (_obj2) | |
2987 | { | |
2988 | _arg2 = wxString_in_helper(_obj2); | |
2989 | if (_arg2 == NULL) | |
2990 | return NULL; | |
2991 | } | |
2992 | _arg3 = (bool ) tempbool3; | |
2993 | { | |
2994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2995 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); | |
2996 | ||
2997 | wxPyEndAllowThreads(__tstate); | |
2998 | if (PyErr_Occurred()) return NULL; | |
2999 | }{ | |
3000 | _resultobj = _result; | |
3001 | } | |
3002 | { | |
3003 | if (_obj2) | |
3004 | delete _arg2; | |
3005 | } | |
3006 | return _resultobj; | |
3007 | } | |
3008 | ||
3009 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) | |
3010 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3011 | PyObject * _resultobj; | |
3012 | bool _result; | |
3013 | wxFontMapper * _arg0; | |
3014 | wxFontEncoding _arg1; | |
3015 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3016 | PyObject * _argo0 = 0; | |
3017 | PyObject * _obj2 = 0; | |
3018 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
3019 | ||
3020 | self = self; | |
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3022 | return NULL; | |
3023 | if (_argo0) { | |
3024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
3027 | return NULL; | |
3028 | } | |
3029 | } | |
3030 | if (_obj2) | |
3031 | { | |
3032 | _arg2 = wxString_in_helper(_obj2); | |
3033 | if (_arg2 == NULL) | |
3034 | return NULL; | |
3035 | } | |
3036 | { | |
3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3038 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); | |
3039 | ||
3040 | wxPyEndAllowThreads(__tstate); | |
3041 | if (PyErr_Occurred()) return NULL; | |
3042 | } _resultobj = Py_BuildValue("i",_result); | |
3043 | { | |
3044 | if (_obj2) | |
3045 | delete _arg2; | |
3046 | } | |
3047 | return _resultobj; | |
3048 | } | |
3049 | ||
3050 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) | |
3051 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject * _resultobj; | |
3053 | wxFontEncoding _result; | |
3054 | wxFontMapper * _arg0; | |
3055 | wxString * _arg1; | |
3056 | bool _arg2 = (bool ) TRUE; | |
3057 | PyObject * _argo0 = 0; | |
3058 | PyObject * _obj1 = 0; | |
3059 | int tempbool2 = (int) TRUE; | |
3060 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
3061 | ||
3062 | self = self; | |
3063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
3064 | return NULL; | |
3065 | if (_argo0) { | |
3066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
3069 | return NULL; | |
3070 | } | |
3071 | } | |
3072 | { | |
3073 | _arg1 = wxString_in_helper(_obj1); | |
3074 | if (_arg1 == NULL) | |
3075 | return NULL; | |
3076 | } | |
3077 | _arg2 = (bool ) tempbool2; | |
3078 | { | |
3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3080 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); | |
3081 | ||
3082 | wxPyEndAllowThreads(__tstate); | |
3083 | if (PyErr_Occurred()) return NULL; | |
3084 | } _resultobj = Py_BuildValue("i",_result); | |
3085 | { | |
3086 | if (_obj1) | |
3087 | delete _arg1; | |
3088 | } | |
3089 | return _resultobj; | |
3090 | } | |
3091 | ||
3092 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3093 | PyObject * _resultobj; | |
3094 | wxString * _result; | |
3095 | wxFontEncoding _arg0; | |
3096 | char *_kwnames[] = { "encoding", NULL }; | |
3097 | ||
3098 | self = self; | |
3099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
3100 | return NULL; | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) return NULL; | |
3107 | }{ | |
3108 | #if wxUSE_UNICODE | |
3109 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3110 | #else | |
3111 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3112 | #endif | |
3113 | } | |
3114 | { | |
3115 | delete _result; | |
3116 | } | |
3117 | return _resultobj; | |
3118 | } | |
3119 | ||
3120 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3121 | PyObject * _resultobj; | |
3122 | wxString * _result; | |
3123 | wxFontEncoding _arg0; | |
3124 | char *_kwnames[] = { "encoding", NULL }; | |
3125 | ||
3126 | self = self; | |
3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
3128 | return NULL; | |
3129 | { | |
3130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3131 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); | |
3132 | ||
3133 | wxPyEndAllowThreads(__tstate); | |
3134 | if (PyErr_Occurred()) return NULL; | |
3135 | }{ | |
3136 | #if wxUSE_UNICODE | |
3137 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3138 | #else | |
3139 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3140 | #endif | |
3141 | } | |
3142 | { | |
3143 | delete _result; | |
3144 | } | |
3145 | return _resultobj; | |
3146 | } | |
3147 | ||
3148 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
3149 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3150 | PyObject * _resultobj; | |
3151 | wxFontMapper * _arg0; | |
3152 | wxWindow * _arg1; | |
3153 | PyObject * _argo0 = 0; | |
3154 | PyObject * _argo1 = 0; | |
3155 | char *_kwnames[] = { "self","parent", NULL }; | |
3156 | ||
3157 | self = self; | |
3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
3159 | return NULL; | |
3160 | if (_argo0) { | |
3161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
3164 | return NULL; | |
3165 | } | |
3166 | } | |
3167 | if (_argo1) { | |
3168 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3169 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
3171 | return NULL; | |
3172 | } | |
3173 | } | |
3174 | { | |
3175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3176 | wxFontMapper_SetDialogParent(_arg0,_arg1); | |
3177 | ||
3178 | wxPyEndAllowThreads(__tstate); | |
3179 | if (PyErr_Occurred()) return NULL; | |
3180 | } Py_INCREF(Py_None); | |
3181 | _resultobj = Py_None; | |
3182 | return _resultobj; | |
3183 | } | |
3184 | ||
3185 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
3186 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3187 | PyObject * _resultobj; | |
3188 | wxFontMapper * _arg0; | |
3189 | wxString * _arg1; | |
3190 | PyObject * _argo0 = 0; | |
3191 | PyObject * _obj1 = 0; | |
3192 | char *_kwnames[] = { "self","title", NULL }; | |
3193 | ||
3194 | self = self; | |
3195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3196 | return NULL; | |
3197 | if (_argo0) { | |
3198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3201 | return NULL; | |
3202 | } | |
3203 | } | |
3204 | { | |
3205 | _arg1 = wxString_in_helper(_obj1); | |
3206 | if (_arg1 == NULL) | |
3207 | return NULL; | |
3208 | } | |
3209 | { | |
3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3211 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); | |
3212 | ||
3213 | wxPyEndAllowThreads(__tstate); | |
3214 | if (PyErr_Occurred()) return NULL; | |
3215 | } Py_INCREF(Py_None); | |
3216 | _resultobj = Py_None; | |
3217 | { | |
3218 | if (_obj1) | |
3219 | delete _arg1; | |
3220 | } | |
3221 | return _resultobj; | |
3222 | } | |
3223 | ||
3224 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3225 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3226 | PyObject * _resultobj; | |
3227 | wxFontMapper * _arg0; | |
3228 | wxConfigBase * _arg1; | |
3229 | PyObject * _argo0 = 0; | |
3230 | PyObject * _argo1 = 0; | |
3231 | char *_kwnames[] = { "self","config", NULL }; | |
3232 | ||
3233 | self = self; | |
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3235 | return NULL; | |
3236 | if (_argo0) { | |
3237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3240 | return NULL; | |
3241 | } | |
3242 | } | |
3243 | if (_argo1) { | |
3244 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3245 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3247 | return NULL; | |
3248 | } | |
3249 | } | |
3250 | { | |
3251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3252 | wxFontMapper_SetConfig(_arg0,_arg1); | |
3253 | ||
3254 | wxPyEndAllowThreads(__tstate); | |
3255 | if (PyErr_Occurred()) return NULL; | |
3256 | } Py_INCREF(Py_None); | |
3257 | _resultobj = Py_None; | |
3258 | return _resultobj; | |
3259 | } | |
3260 | ||
3261 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3262 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3263 | PyObject * _resultobj; | |
3264 | wxFontMapper * _arg0; | |
3265 | wxString * _arg1; | |
3266 | PyObject * _argo0 = 0; | |
3267 | PyObject * _obj1 = 0; | |
3268 | char *_kwnames[] = { "self","prefix", NULL }; | |
3269 | ||
3270 | self = self; | |
3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3272 | return NULL; | |
3273 | if (_argo0) { | |
3274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3277 | return NULL; | |
3278 | } | |
3279 | } | |
3280 | { | |
3281 | _arg1 = wxString_in_helper(_obj1); | |
3282 | if (_arg1 == NULL) | |
3283 | return NULL; | |
3284 | } | |
3285 | { | |
3286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3287 | wxFontMapper_SetConfigPath(_arg0,*_arg1); | |
3288 | ||
3289 | wxPyEndAllowThreads(__tstate); | |
3290 | if (PyErr_Occurred()) return NULL; | |
3291 | } Py_INCREF(Py_None); | |
3292 | _resultobj = Py_None; | |
3293 | { | |
3294 | if (_obj1) | |
3295 | delete _arg1; | |
3296 | } | |
3297 | return _resultobj; | |
3298 | } | |
3299 | ||
3300 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3301 | PyObject * _resultobj; | |
3302 | wxChar * _result; | |
3303 | char *_kwnames[] = { NULL }; | |
3304 | ||
3305 | self = self; | |
3306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3307 | return NULL; | |
3308 | { | |
3309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3310 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); | |
3311 | ||
3312 | wxPyEndAllowThreads(__tstate); | |
3313 | if (PyErr_Occurred()) return NULL; | |
3314 | } _resultobj = Py_BuildValue("s", _result); | |
3315 | return _resultobj; | |
3316 | } | |
3317 | ||
3318 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3319 | wxFont *src; | |
3320 | wxGDIObject *dest; | |
3321 | src = (wxFont *) ptr; | |
3322 | dest = (wxGDIObject *) src; | |
3323 | return (void *) dest; | |
3324 | } | |
3325 | ||
3326 | static void *SwigwxFontTowxObject(void *ptr) { | |
3327 | wxFont *src; | |
3328 | wxObject *dest; | |
3329 | src = (wxFont *) ptr; | |
3330 | dest = (wxObject *) src; | |
3331 | return (void *) dest; | |
3332 | } | |
3333 | ||
3334 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3335 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3336 | PyObject * _resultobj; | |
3337 | wxFont * _result; | |
3338 | int _arg0; | |
3339 | int _arg1; | |
3340 | int _arg2; | |
3341 | int _arg3; | |
3342 | int _arg4 = (int ) FALSE; | |
3343 | char * _arg5 = (char *) ""; | |
3344 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3345 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3346 | char _ptemp[128]; | |
3347 | ||
3348 | self = self; | |
3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3350 | return NULL; | |
3351 | { | |
3352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3353 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3354 | ||
3355 | wxPyEndAllowThreads(__tstate); | |
3356 | if (PyErr_Occurred()) return NULL; | |
3357 | } if (_result) { | |
3358 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3359 | _resultobj = Py_BuildValue("s",_ptemp); | |
3360 | } else { | |
3361 | Py_INCREF(Py_None); | |
3362 | _resultobj = Py_None; | |
3363 | } | |
3364 | return _resultobj; | |
3365 | } | |
3366 | ||
3367 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3368 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject * _resultobj; | |
3370 | wxFont * _result; | |
3371 | wxNativeFontInfo * _arg0; | |
3372 | PyObject * _argo0 = 0; | |
3373 | char *_kwnames[] = { "info", NULL }; | |
3374 | char _ptemp[128]; | |
3375 | ||
3376 | self = self; | |
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3378 | return NULL; | |
3379 | if (_argo0) { | |
3380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3383 | return NULL; | |
3384 | } | |
3385 | } | |
3386 | { | |
3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3388 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); | |
3389 | ||
3390 | wxPyEndAllowThreads(__tstate); | |
3391 | if (PyErr_Occurred()) return NULL; | |
3392 | } if (_result) { | |
3393 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3394 | _resultobj = Py_BuildValue("s",_ptemp); | |
3395 | } else { | |
3396 | Py_INCREF(Py_None); | |
3397 | _resultobj = Py_None; | |
3398 | } | |
3399 | return _resultobj; | |
3400 | } | |
3401 | ||
3402 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3403 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject * _resultobj; | |
3405 | wxFont * _arg0; | |
3406 | PyObject * _argo0 = 0; | |
3407 | char *_kwnames[] = { "self", NULL }; | |
3408 | ||
3409 | self = self; | |
3410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3411 | return NULL; | |
3412 | if (_argo0) { | |
3413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3416 | return NULL; | |
3417 | } | |
3418 | } | |
3419 | { | |
3420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3421 | delete_wxFont(_arg0); | |
3422 | ||
3423 | wxPyEndAllowThreads(__tstate); | |
3424 | if (PyErr_Occurred()) return NULL; | |
3425 | } Py_INCREF(Py_None); | |
3426 | _resultobj = Py_None; | |
3427 | return _resultobj; | |
3428 | } | |
3429 | ||
3430 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3431 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3432 | PyObject * _resultobj; | |
3433 | bool _result; | |
3434 | wxFont * _arg0; | |
3435 | PyObject * _argo0 = 0; | |
3436 | char *_kwnames[] = { "self", NULL }; | |
3437 | ||
3438 | self = self; | |
3439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3440 | return NULL; | |
3441 | if (_argo0) { | |
3442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3445 | return NULL; | |
3446 | } | |
3447 | } | |
3448 | { | |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3450 | _result = (bool )wxFont_Ok(_arg0); | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) return NULL; | |
3454 | } _resultobj = Py_BuildValue("i",_result); | |
3455 | return _resultobj; | |
3456 | } | |
3457 | ||
3458 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3459 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3460 | PyObject * _resultobj; | |
3461 | int _result; | |
3462 | wxFont * _arg0; | |
3463 | PyObject * _argo0 = 0; | |
3464 | char *_kwnames[] = { "self", NULL }; | |
3465 | ||
3466 | self = self; | |
3467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3468 | return NULL; | |
3469 | if (_argo0) { | |
3470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
3473 | return NULL; | |
3474 | } | |
3475 | } | |
3476 | { | |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | _result = (int )wxFont_GetPointSize(_arg0); | |
3479 | ||
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) return NULL; | |
3482 | } _resultobj = Py_BuildValue("i",_result); | |
3483 | return _resultobj; | |
3484 | } | |
3485 | ||
3486 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3487 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3488 | PyObject * _resultobj; | |
3489 | int _result; | |
3490 | wxFont * _arg0; | |
3491 | PyObject * _argo0 = 0; | |
3492 | char *_kwnames[] = { "self", NULL }; | |
3493 | ||
3494 | self = self; | |
3495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
3496 | return NULL; | |
3497 | if (_argo0) { | |
3498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
3501 | return NULL; | |
3502 | } | |
3503 | } | |
3504 | { | |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | _result = (int )wxFont_GetFamily(_arg0); | |
3507 | ||
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) return NULL; | |
3510 | } _resultobj = Py_BuildValue("i",_result); | |
3511 | return _resultobj; | |
3512 | } | |
3513 | ||
3514 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3515 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject * _resultobj; | |
3517 | int _result; | |
3518 | wxFont * _arg0; | |
3519 | PyObject * _argo0 = 0; | |
3520 | char *_kwnames[] = { "self", NULL }; | |
3521 | ||
3522 | self = self; | |
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
3524 | return NULL; | |
3525 | if (_argo0) { | |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
3532 | { | |
3533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3534 | _result = (int )wxFont_GetStyle(_arg0); | |
3535 | ||
3536 | wxPyEndAllowThreads(__tstate); | |
3537 | if (PyErr_Occurred()) return NULL; | |
3538 | } _resultobj = Py_BuildValue("i",_result); | |
3539 | return _resultobj; | |
3540 | } | |
3541 | ||
3542 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3543 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3544 | PyObject * _resultobj; | |
3545 | int _result; | |
3546 | wxFont * _arg0; | |
3547 | PyObject * _argo0 = 0; | |
3548 | char *_kwnames[] = { "self", NULL }; | |
3549 | ||
3550 | self = self; | |
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
3552 | return NULL; | |
3553 | if (_argo0) { | |
3554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
3557 | return NULL; | |
3558 | } | |
3559 | } | |
3560 | { | |
3561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3562 | _result = (int )wxFont_GetWeight(_arg0); | |
3563 | ||
3564 | wxPyEndAllowThreads(__tstate); | |
3565 | if (PyErr_Occurred()) return NULL; | |
3566 | } _resultobj = Py_BuildValue("i",_result); | |
3567 | return _resultobj; | |
3568 | } | |
3569 | ||
3570 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3571 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3572 | PyObject * _resultobj; | |
3573 | bool _result; | |
3574 | wxFont * _arg0; | |
3575 | PyObject * _argo0 = 0; | |
3576 | char *_kwnames[] = { "self", NULL }; | |
3577 | ||
3578 | self = self; | |
3579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
3580 | return NULL; | |
3581 | if (_argo0) { | |
3582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
3585 | return NULL; | |
3586 | } | |
3587 | } | |
3588 | { | |
3589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3590 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
3591 | ||
3592 | wxPyEndAllowThreads(__tstate); | |
3593 | if (PyErr_Occurred()) return NULL; | |
3594 | } _resultobj = Py_BuildValue("i",_result); | |
3595 | return _resultobj; | |
3596 | } | |
3597 | ||
3598 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3599 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3600 | PyObject * _resultobj; | |
3601 | wxString * _result; | |
3602 | wxFont * _arg0; | |
3603 | PyObject * _argo0 = 0; | |
3604 | char *_kwnames[] = { "self", NULL }; | |
3605 | ||
3606 | self = self; | |
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
3608 | return NULL; | |
3609 | if (_argo0) { | |
3610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
3613 | return NULL; | |
3614 | } | |
3615 | } | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
3619 | ||
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) return NULL; | |
3622 | }{ | |
3623 | #if wxUSE_UNICODE | |
3624 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3625 | #else | |
3626 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3627 | #endif | |
3628 | } | |
3629 | { | |
3630 | delete _result; | |
3631 | } | |
3632 | return _resultobj; | |
3633 | } | |
3634 | ||
3635 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3636 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3637 | PyObject * _resultobj; | |
3638 | wxFontEncoding _result; | |
3639 | wxFont * _arg0; | |
3640 | PyObject * _argo0 = 0; | |
3641 | char *_kwnames[] = { "self", NULL }; | |
3642 | ||
3643 | self = self; | |
3644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
3645 | return NULL; | |
3646 | if (_argo0) { | |
3647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
3650 | return NULL; | |
3651 | } | |
3652 | } | |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) return NULL; | |
3659 | } _resultobj = Py_BuildValue("i",_result); | |
3660 | return _resultobj; | |
3661 | } | |
3662 | ||
3663 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) | |
3664 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3665 | PyObject * _resultobj; | |
3666 | bool _result; | |
3667 | wxFont * _arg0; | |
3668 | PyObject * _argo0 = 0; | |
3669 | char *_kwnames[] = { "self", NULL }; | |
3670 | ||
3671 | self = self; | |
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
3673 | return NULL; | |
3674 | if (_argo0) { | |
3675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
3678 | return NULL; | |
3679 | } | |
3680 | } | |
3681 | { | |
3682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3683 | _result = (bool )wxFont_IsFixedWidth(_arg0); | |
3684 | ||
3685 | wxPyEndAllowThreads(__tstate); | |
3686 | if (PyErr_Occurred()) return NULL; | |
3687 | } _resultobj = Py_BuildValue("i",_result); | |
3688 | return _resultobj; | |
3689 | } | |
3690 | ||
3691 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) | |
3692 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3693 | PyObject * _resultobj; | |
3694 | wxNativeFontInfo * _result; | |
3695 | wxFont * _arg0; | |
3696 | PyObject * _argo0 = 0; | |
3697 | char *_kwnames[] = { "self", NULL }; | |
3698 | char _ptemp[128]; | |
3699 | ||
3700 | self = self; | |
3701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) | |
3702 | return NULL; | |
3703 | if (_argo0) { | |
3704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); | |
3707 | return NULL; | |
3708 | } | |
3709 | } | |
3710 | { | |
3711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3712 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); | |
3713 | ||
3714 | wxPyEndAllowThreads(__tstate); | |
3715 | if (PyErr_Occurred()) return NULL; | |
3716 | } if (_result) { | |
3717 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3718 | _resultobj = Py_BuildValue("s",_ptemp); | |
3719 | } else { | |
3720 | Py_INCREF(Py_None); | |
3721 | _resultobj = Py_None; | |
3722 | } | |
3723 | return _resultobj; | |
3724 | } | |
3725 | ||
3726 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) | |
3727 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3728 | PyObject * _resultobj; | |
3729 | wxString * _result; | |
3730 | wxFont * _arg0; | |
3731 | PyObject * _argo0 = 0; | |
3732 | char *_kwnames[] = { "self", NULL }; | |
3733 | ||
3734 | self = self; | |
3735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
3736 | return NULL; | |
3737 | if (_argo0) { | |
3738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
3741 | return NULL; | |
3742 | } | |
3743 | } | |
3744 | { | |
3745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3746 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); | |
3747 | ||
3748 | wxPyEndAllowThreads(__tstate); | |
3749 | if (PyErr_Occurred()) return NULL; | |
3750 | }{ | |
3751 | #if wxUSE_UNICODE | |
3752 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3753 | #else | |
3754 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3755 | #endif | |
3756 | } | |
3757 | { | |
3758 | delete _result; | |
3759 | } | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
3763 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
3764 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3765 | PyObject * _resultobj; | |
3766 | wxString * _result; | |
3767 | wxFont * _arg0; | |
3768 | PyObject * _argo0 = 0; | |
3769 | char *_kwnames[] = { "self", NULL }; | |
3770 | ||
3771 | self = self; | |
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
3773 | return NULL; | |
3774 | if (_argo0) { | |
3775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
3778 | return NULL; | |
3779 | } | |
3780 | } | |
3781 | { | |
3782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3783 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); | |
3784 | ||
3785 | wxPyEndAllowThreads(__tstate); | |
3786 | if (PyErr_Occurred()) return NULL; | |
3787 | }{ | |
3788 | #if wxUSE_UNICODE | |
3789 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3790 | #else | |
3791 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3792 | #endif | |
3793 | } | |
3794 | { | |
3795 | delete _result; | |
3796 | } | |
3797 | return _resultobj; | |
3798 | } | |
3799 | ||
3800 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
3801 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3802 | PyObject * _resultobj; | |
3803 | wxFont * _arg0; | |
3804 | int _arg1; | |
3805 | PyObject * _argo0 = 0; | |
3806 | char *_kwnames[] = { "self","pointSize", NULL }; | |
3807 | ||
3808 | self = self; | |
3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
3810 | return NULL; | |
3811 | if (_argo0) { | |
3812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
3815 | return NULL; | |
3816 | } | |
3817 | } | |
3818 | { | |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3820 | wxFont_SetPointSize(_arg0,_arg1); | |
3821 | ||
3822 | wxPyEndAllowThreads(__tstate); | |
3823 | if (PyErr_Occurred()) return NULL; | |
3824 | } Py_INCREF(Py_None); | |
3825 | _resultobj = Py_None; | |
3826 | return _resultobj; | |
3827 | } | |
3828 | ||
3829 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
3830 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3831 | PyObject * _resultobj; | |
3832 | wxFont * _arg0; | |
3833 | int _arg1; | |
3834 | PyObject * _argo0 = 0; | |
3835 | char *_kwnames[] = { "self","family", NULL }; | |
3836 | ||
3837 | self = self; | |
3838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) | |
3839 | return NULL; | |
3840 | if (_argo0) { | |
3841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); | |
3844 | return NULL; | |
3845 | } | |
3846 | } | |
3847 | { | |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | wxFont_SetFamily(_arg0,_arg1); | |
3850 | ||
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) return NULL; | |
3853 | } Py_INCREF(Py_None); | |
3854 | _resultobj = Py_None; | |
3855 | return _resultobj; | |
3856 | } | |
3857 | ||
3858 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
3859 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3860 | PyObject * _resultobj; | |
3861 | wxFont * _arg0; | |
3862 | int _arg1; | |
3863 | PyObject * _argo0 = 0; | |
3864 | char *_kwnames[] = { "self","style", NULL }; | |
3865 | ||
3866 | self = self; | |
3867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) | |
3868 | return NULL; | |
3869 | if (_argo0) { | |
3870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); | |
3873 | return NULL; | |
3874 | } | |
3875 | } | |
3876 | { | |
3877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3878 | wxFont_SetStyle(_arg0,_arg1); | |
3879 | ||
3880 | wxPyEndAllowThreads(__tstate); | |
3881 | if (PyErr_Occurred()) return NULL; | |
3882 | } Py_INCREF(Py_None); | |
3883 | _resultobj = Py_None; | |
3884 | return _resultobj; | |
3885 | } | |
3886 | ||
3887 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
3888 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3889 | PyObject * _resultobj; | |
3890 | wxFont * _arg0; | |
3891 | int _arg1; | |
3892 | PyObject * _argo0 = 0; | |
3893 | char *_kwnames[] = { "self","weight", NULL }; | |
3894 | ||
3895 | self = self; | |
3896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) | |
3897 | return NULL; | |
3898 | if (_argo0) { | |
3899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); | |
3902 | return NULL; | |
3903 | } | |
3904 | } | |
3905 | { | |
3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3907 | wxFont_SetWeight(_arg0,_arg1); | |
3908 | ||
3909 | wxPyEndAllowThreads(__tstate); | |
3910 | if (PyErr_Occurred()) return NULL; | |
3911 | } Py_INCREF(Py_None); | |
3912 | _resultobj = Py_None; | |
3913 | return _resultobj; | |
3914 | } | |
3915 | ||
3916 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
3917 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3918 | PyObject * _resultobj; | |
3919 | wxFont * _arg0; | |
3920 | wxString * _arg1; | |
3921 | PyObject * _argo0 = 0; | |
3922 | PyObject * _obj1 = 0; | |
3923 | char *_kwnames[] = { "self","faceName", NULL }; | |
3924 | ||
3925 | self = self; | |
3926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
3927 | return NULL; | |
3928 | if (_argo0) { | |
3929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
3932 | return NULL; | |
3933 | } | |
3934 | } | |
3935 | { | |
3936 | _arg1 = wxString_in_helper(_obj1); | |
3937 | if (_arg1 == NULL) | |
3938 | return NULL; | |
3939 | } | |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | wxFont_SetFaceName(_arg0,*_arg1); | |
3943 | ||
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) return NULL; | |
3946 | } Py_INCREF(Py_None); | |
3947 | _resultobj = Py_None; | |
3948 | { | |
3949 | if (_obj1) | |
3950 | delete _arg1; | |
3951 | } | |
3952 | return _resultobj; | |
3953 | } | |
3954 | ||
3955 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
3956 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3957 | PyObject * _resultobj; | |
3958 | wxFont * _arg0; | |
3959 | bool _arg1; | |
3960 | PyObject * _argo0 = 0; | |
3961 | int tempbool1; | |
3962 | char *_kwnames[] = { "self","underlined", NULL }; | |
3963 | ||
3964 | self = self; | |
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
3966 | return NULL; | |
3967 | if (_argo0) { | |
3968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); | |
3971 | return NULL; | |
3972 | } | |
3973 | } | |
3974 | _arg1 = (bool ) tempbool1; | |
3975 | { | |
3976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3977 | wxFont_SetUnderlined(_arg0,_arg1); | |
3978 | ||
3979 | wxPyEndAllowThreads(__tstate); | |
3980 | if (PyErr_Occurred()) return NULL; | |
3981 | } Py_INCREF(Py_None); | |
3982 | _resultobj = Py_None; | |
3983 | return _resultobj; | |
3984 | } | |
3985 | ||
3986 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
3987 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3988 | PyObject * _resultobj; | |
3989 | wxFont * _arg0; | |
3990 | wxFontEncoding _arg1; | |
3991 | PyObject * _argo0 = 0; | |
3992 | char *_kwnames[] = { "self","encoding", NULL }; | |
3993 | ||
3994 | self = self; | |
3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3996 | return NULL; | |
3997 | if (_argo0) { | |
3998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
4001 | return NULL; | |
4002 | } | |
4003 | } | |
4004 | { | |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | wxFont_SetEncoding(_arg0,_arg1); | |
4007 | ||
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) return NULL; | |
4010 | } Py_INCREF(Py_None); | |
4011 | _resultobj = Py_None; | |
4012 | return _resultobj; | |
4013 | } | |
4014 | ||
4015 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) | |
4016 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4017 | PyObject * _resultobj; | |
4018 | wxFont * _arg0; | |
4019 | wxNativeFontInfo * _arg1; | |
4020 | PyObject * _argo0 = 0; | |
4021 | PyObject * _argo1 = 0; | |
4022 | char *_kwnames[] = { "self","info", NULL }; | |
4023 | ||
4024 | self = self; | |
4025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) | |
4026 | return NULL; | |
4027 | if (_argo0) { | |
4028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); | |
4031 | return NULL; | |
4032 | } | |
4033 | } | |
4034 | if (_argo1) { | |
4035 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4036 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
4038 | return NULL; | |
4039 | } | |
4040 | } | |
4041 | { | |
4042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4043 | wxFont_SetNativeFontInfo(_arg0,*_arg1); | |
4044 | ||
4045 | wxPyEndAllowThreads(__tstate); | |
4046 | if (PyErr_Occurred()) return NULL; | |
4047 | } Py_INCREF(Py_None); | |
4048 | _resultobj = Py_None; | |
4049 | return _resultobj; | |
4050 | } | |
4051 | ||
4052 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) | |
4053 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4054 | PyObject * _resultobj; | |
4055 | wxFont * _arg0; | |
4056 | wxString * _arg1; | |
4057 | PyObject * _argo0 = 0; | |
4058 | PyObject * _obj1 = 0; | |
4059 | char *_kwnames[] = { "self","info", NULL }; | |
4060 | ||
4061 | self = self; | |
4062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
4063 | return NULL; | |
4064 | if (_argo0) { | |
4065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4068 | return NULL; | |
4069 | } | |
4070 | } | |
4071 | { | |
4072 | _arg1 = wxString_in_helper(_obj1); | |
4073 | if (_arg1 == NULL) | |
4074 | return NULL; | |
4075 | } | |
4076 | { | |
4077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4078 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); | |
4079 | ||
4080 | wxPyEndAllowThreads(__tstate); | |
4081 | if (PyErr_Occurred()) return NULL; | |
4082 | } Py_INCREF(Py_None); | |
4083 | _resultobj = Py_None; | |
4084 | { | |
4085 | if (_obj1) | |
4086 | delete _arg1; | |
4087 | } | |
4088 | return _resultobj; | |
4089 | } | |
4090 | ||
4091 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
4092 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4093 | PyObject * _resultobj; | |
4094 | wxString * _result; | |
4095 | wxFont * _arg0; | |
4096 | PyObject * _argo0 = 0; | |
4097 | char *_kwnames[] = { "self", NULL }; | |
4098 | ||
4099 | self = self; | |
4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
4101 | return NULL; | |
4102 | if (_argo0) { | |
4103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
4106 | return NULL; | |
4107 | } | |
4108 | } | |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
4112 | ||
4113 | wxPyEndAllowThreads(__tstate); | |
4114 | if (PyErr_Occurred()) return NULL; | |
4115 | }{ | |
4116 | #if wxUSE_UNICODE | |
4117 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4118 | #else | |
4119 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4120 | #endif | |
4121 | } | |
4122 | { | |
4123 | delete _result; | |
4124 | } | |
4125 | return _resultobj; | |
4126 | } | |
4127 | ||
4128 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
4129 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4130 | PyObject * _resultobj; | |
4131 | wxString * _result; | |
4132 | wxFont * _arg0; | |
4133 | PyObject * _argo0 = 0; | |
4134 | char *_kwnames[] = { "self", NULL }; | |
4135 | ||
4136 | self = self; | |
4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
4138 | return NULL; | |
4139 | if (_argo0) { | |
4140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
4143 | return NULL; | |
4144 | } | |
4145 | } | |
4146 | { | |
4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4148 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
4149 | ||
4150 | wxPyEndAllowThreads(__tstate); | |
4151 | if (PyErr_Occurred()) return NULL; | |
4152 | }{ | |
4153 | #if wxUSE_UNICODE | |
4154 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4155 | #else | |
4156 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4157 | #endif | |
4158 | } | |
4159 | { | |
4160 | delete _result; | |
4161 | } | |
4162 | return _resultobj; | |
4163 | } | |
4164 | ||
4165 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
4166 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4167 | PyObject * _resultobj; | |
4168 | wxString * _result; | |
4169 | wxFont * _arg0; | |
4170 | PyObject * _argo0 = 0; | |
4171 | char *_kwnames[] = { "self", NULL }; | |
4172 | ||
4173 | self = self; | |
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
4175 | return NULL; | |
4176 | if (_argo0) { | |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
4180 | return NULL; | |
4181 | } | |
4182 | } | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4185 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
4186 | ||
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) return NULL; | |
4189 | }{ | |
4190 | #if wxUSE_UNICODE | |
4191 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4192 | #else | |
4193 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4194 | #endif | |
4195 | } | |
4196 | { | |
4197 | delete _result; | |
4198 | } | |
4199 | return _resultobj; | |
4200 | } | |
4201 | ||
4202 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4203 | PyObject * _resultobj; | |
4204 | wxFontEncoding _result; | |
4205 | char *_kwnames[] = { NULL }; | |
4206 | ||
4207 | self = self; | |
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
4209 | return NULL; | |
4210 | { | |
4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4212 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); | |
4213 | ||
4214 | wxPyEndAllowThreads(__tstate); | |
4215 | if (PyErr_Occurred()) return NULL; | |
4216 | } _resultobj = Py_BuildValue("i",_result); | |
4217 | return _resultobj; | |
4218 | } | |
4219 | ||
4220 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4221 | PyObject * _resultobj; | |
4222 | wxFontEncoding _arg0; | |
4223 | char *_kwnames[] = { "encoding", NULL }; | |
4224 | ||
4225 | self = self; | |
4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
4227 | return NULL; | |
4228 | { | |
4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4230 | wxFont::SetDefaultEncoding(_arg0); | |
4231 | ||
4232 | wxPyEndAllowThreads(__tstate); | |
4233 | if (PyErr_Occurred()) return NULL; | |
4234 | } Py_INCREF(Py_None); | |
4235 | _resultobj = Py_None; | |
4236 | return _resultobj; | |
4237 | } | |
4238 | ||
4239 | static void *SwigwxFontListTowxObject(void *ptr) { | |
4240 | wxFontList *src; | |
4241 | wxObject *dest; | |
4242 | src = (wxFontList *) ptr; | |
4243 | dest = (wxObject *) src; | |
4244 | return (void *) dest; | |
4245 | } | |
4246 | ||
4247 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) | |
4248 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4249 | PyObject * _resultobj; | |
4250 | wxFontList * _arg0; | |
4251 | wxFont * _arg1; | |
4252 | PyObject * _argo0 = 0; | |
4253 | PyObject * _argo1 = 0; | |
4254 | char *_kwnames[] = { "self","font", NULL }; | |
4255 | ||
4256 | self = self; | |
4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
4258 | return NULL; | |
4259 | if (_argo0) { | |
4260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
4263 | return NULL; | |
4264 | } | |
4265 | } | |
4266 | if (_argo1) { | |
4267 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4268 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
4270 | return NULL; | |
4271 | } | |
4272 | } | |
4273 | { | |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4275 | wxFontList_AddFont(_arg0,_arg1); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) return NULL; | |
4279 | } Py_INCREF(Py_None); | |
4280 | _resultobj = Py_None; | |
4281 | return _resultobj; | |
4282 | } | |
4283 | ||
4284 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4285 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4286 | PyObject * _resultobj; | |
4287 | wxFont * _result; | |
4288 | wxFontList * _arg0; | |
4289 | int _arg1; | |
4290 | int _arg2; | |
4291 | int _arg3; | |
4292 | int _arg4; | |
4293 | bool _arg5 = (bool ) FALSE; | |
4294 | char * _arg6 = (char *) NULL; | |
4295 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4296 | PyObject * _argo0 = 0; | |
4297 | int tempbool5 = (int) FALSE; | |
4298 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
4299 | char _ptemp[128]; | |
4300 | ||
4301 | self = self; | |
4302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
4303 | return NULL; | |
4304 | if (_argo0) { | |
4305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
4308 | return NULL; | |
4309 | } | |
4310 | } | |
4311 | _arg5 = (bool ) tempbool5; | |
4312 | { | |
4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4314 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
4315 | ||
4316 | wxPyEndAllowThreads(__tstate); | |
4317 | if (PyErr_Occurred()) return NULL; | |
4318 | } if (_result) { | |
4319 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4320 | _resultobj = Py_BuildValue("s",_ptemp); | |
4321 | } else { | |
4322 | Py_INCREF(Py_None); | |
4323 | _resultobj = Py_None; | |
4324 | } | |
4325 | return _resultobj; | |
4326 | } | |
4327 | ||
4328 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4329 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4330 | PyObject * _resultobj; | |
4331 | wxFontList * _arg0; | |
4332 | wxFont * _arg1; | |
4333 | PyObject * _argo0 = 0; | |
4334 | PyObject * _argo1 = 0; | |
4335 | char *_kwnames[] = { "self","font", NULL }; | |
4336 | ||
4337 | self = self; | |
4338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4339 | return NULL; | |
4340 | if (_argo0) { | |
4341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4344 | return NULL; | |
4345 | } | |
4346 | } | |
4347 | if (_argo1) { | |
4348 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4349 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4351 | return NULL; | |
4352 | } | |
4353 | } | |
4354 | { | |
4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4356 | wxFontList_RemoveFont(_arg0,_arg1); | |
4357 | ||
4358 | wxPyEndAllowThreads(__tstate); | |
4359 | if (PyErr_Occurred()) return NULL; | |
4360 | } Py_INCREF(Py_None); | |
4361 | _resultobj = Py_None; | |
4362 | return _resultobj; | |
4363 | } | |
4364 | ||
4365 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) | |
4366 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4367 | PyObject * _resultobj; | |
4368 | int _result; | |
4369 | wxFontList * _arg0; | |
4370 | PyObject * _argo0 = 0; | |
4371 | char *_kwnames[] = { "self", NULL }; | |
4372 | ||
4373 | self = self; | |
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
4375 | return NULL; | |
4376 | if (_argo0) { | |
4377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
4380 | return NULL; | |
4381 | } | |
4382 | } | |
4383 | { | |
4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4385 | _result = (int )wxFontList_GetCount(_arg0); | |
4386 | ||
4387 | wxPyEndAllowThreads(__tstate); | |
4388 | if (PyErr_Occurred()) return NULL; | |
4389 | } _resultobj = Py_BuildValue("i",_result); | |
4390 | return _resultobj; | |
4391 | } | |
4392 | ||
4393 | static void *SwigwxColourTowxObject(void *ptr) { | |
4394 | wxColour *src; | |
4395 | wxObject *dest; | |
4396 | src = (wxColour *) ptr; | |
4397 | dest = (wxObject *) src; | |
4398 | return (void *) dest; | |
4399 | } | |
4400 | ||
4401 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) | |
4402 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4403 | PyObject * _resultobj; | |
4404 | wxColour * _result; | |
4405 | unsigned char _arg0 = (unsigned char ) 0; | |
4406 | unsigned char _arg1 = (unsigned char ) 0; | |
4407 | unsigned char _arg2 = (unsigned char ) 0; | |
4408 | char *_kwnames[] = { "red","green","blue", NULL }; | |
4409 | char _ptemp[128]; | |
4410 | ||
4411 | self = self; | |
4412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) | |
4413 | return NULL; | |
4414 | { | |
4415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4416 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
4417 | ||
4418 | wxPyEndAllowThreads(__tstate); | |
4419 | if (PyErr_Occurred()) return NULL; | |
4420 | } if (_result) { | |
4421 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4422 | _resultobj = Py_BuildValue("s",_ptemp); | |
4423 | } else { | |
4424 | Py_INCREF(Py_None); | |
4425 | _resultobj = Py_None; | |
4426 | } | |
4427 | return _resultobj; | |
4428 | } | |
4429 | ||
4430 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
4431 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4432 | PyObject * _resultobj; | |
4433 | wxColour * _arg0; | |
4434 | wxColour temp; | |
4435 | PyObject * _obj0 = 0; | |
4436 | char *_kwnames[] = { "self", NULL }; | |
4437 | ||
4438 | self = self; | |
4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) | |
4440 | return NULL; | |
4441 | { | |
4442 | _arg0 = &temp; | |
4443 | if (! wxColour_helper(_obj0, &_arg0)) | |
4444 | return NULL; | |
4445 | } | |
4446 | { | |
4447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4448 | delete_wxColour(_arg0); | |
4449 | ||
4450 | wxPyEndAllowThreads(__tstate); | |
4451 | if (PyErr_Occurred()) return NULL; | |
4452 | } Py_INCREF(Py_None); | |
4453 | _resultobj = Py_None; | |
4454 | return _resultobj; | |
4455 | } | |
4456 | ||
4457 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
4458 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4459 | PyObject * _resultobj; | |
4460 | unsigned char _result; | |
4461 | wxColour * _arg0; | |
4462 | wxColour temp; | |
4463 | PyObject * _obj0 = 0; | |
4464 | char *_kwnames[] = { "self", NULL }; | |
4465 | ||
4466 | self = self; | |
4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) | |
4468 | return NULL; | |
4469 | { | |
4470 | _arg0 = &temp; | |
4471 | if (! wxColour_helper(_obj0, &_arg0)) | |
4472 | return NULL; | |
4473 | } | |
4474 | { | |
4475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4476 | _result = (unsigned char )wxColour_Red(_arg0); | |
4477 | ||
4478 | wxPyEndAllowThreads(__tstate); | |
4479 | if (PyErr_Occurred()) return NULL; | |
4480 | } _resultobj = Py_BuildValue("b",_result); | |
4481 | return _resultobj; | |
4482 | } | |
4483 | ||
4484 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
4485 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4486 | PyObject * _resultobj; | |
4487 | unsigned char _result; | |
4488 | wxColour * _arg0; | |
4489 | wxColour temp; | |
4490 | PyObject * _obj0 = 0; | |
4491 | char *_kwnames[] = { "self", NULL }; | |
4492 | ||
4493 | self = self; | |
4494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) | |
4495 | return NULL; | |
4496 | { | |
4497 | _arg0 = &temp; | |
4498 | if (! wxColour_helper(_obj0, &_arg0)) | |
4499 | return NULL; | |
4500 | } | |
4501 | { | |
4502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4503 | _result = (unsigned char )wxColour_Green(_arg0); | |
4504 | ||
4505 | wxPyEndAllowThreads(__tstate); | |
4506 | if (PyErr_Occurred()) return NULL; | |
4507 | } _resultobj = Py_BuildValue("b",_result); | |
4508 | return _resultobj; | |
4509 | } | |
4510 | ||
4511 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
4512 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4513 | PyObject * _resultobj; | |
4514 | unsigned char _result; | |
4515 | wxColour * _arg0; | |
4516 | wxColour temp; | |
4517 | PyObject * _obj0 = 0; | |
4518 | char *_kwnames[] = { "self", NULL }; | |
4519 | ||
4520 | self = self; | |
4521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) | |
4522 | return NULL; | |
4523 | { | |
4524 | _arg0 = &temp; | |
4525 | if (! wxColour_helper(_obj0, &_arg0)) | |
4526 | return NULL; | |
4527 | } | |
4528 | { | |
4529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4530 | _result = (unsigned char )wxColour_Blue(_arg0); | |
4531 | ||
4532 | wxPyEndAllowThreads(__tstate); | |
4533 | if (PyErr_Occurred()) return NULL; | |
4534 | } _resultobj = Py_BuildValue("b",_result); | |
4535 | return _resultobj; | |
4536 | } | |
4537 | ||
4538 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
4539 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4540 | PyObject * _resultobj; | |
4541 | bool _result; | |
4542 | wxColour * _arg0; | |
4543 | wxColour temp; | |
4544 | PyObject * _obj0 = 0; | |
4545 | char *_kwnames[] = { "self", NULL }; | |
4546 | ||
4547 | self = self; | |
4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) | |
4549 | return NULL; | |
4550 | { | |
4551 | _arg0 = &temp; | |
4552 | if (! wxColour_helper(_obj0, &_arg0)) | |
4553 | return NULL; | |
4554 | } | |
4555 | { | |
4556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4557 | _result = (bool )wxColour_Ok(_arg0); | |
4558 | ||
4559 | wxPyEndAllowThreads(__tstate); | |
4560 | if (PyErr_Occurred()) return NULL; | |
4561 | } _resultobj = Py_BuildValue("i",_result); | |
4562 | return _resultobj; | |
4563 | } | |
4564 | ||
4565 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
4566 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4567 | PyObject * _resultobj; | |
4568 | wxColour * _arg0; | |
4569 | unsigned char _arg1; | |
4570 | unsigned char _arg2; | |
4571 | unsigned char _arg3; | |
4572 | wxColour temp; | |
4573 | PyObject * _obj0 = 0; | |
4574 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
4575 | ||
4576 | self = self; | |
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
4578 | return NULL; | |
4579 | { | |
4580 | _arg0 = &temp; | |
4581 | if (! wxColour_helper(_obj0, &_arg0)) | |
4582 | return NULL; | |
4583 | } | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
4587 | ||
4588 | wxPyEndAllowThreads(__tstate); | |
4589 | if (PyErr_Occurred()) return NULL; | |
4590 | } Py_INCREF(Py_None); | |
4591 | _resultobj = Py_None; | |
4592 | return _resultobj; | |
4593 | } | |
4594 | ||
4595 | static PyObject * wxColour_Get(wxColour *self) { | |
4596 | PyObject* rv = PyTuple_New(3); | |
4597 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4598 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4599 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4600 | return rv; | |
4601 | } | |
4602 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4603 | PyObject * _resultobj; | |
4604 | PyObject * _result; | |
4605 | wxColour * _arg0; | |
4606 | wxColour temp; | |
4607 | PyObject * _obj0 = 0; | |
4608 | char *_kwnames[] = { "self", NULL }; | |
4609 | ||
4610 | self = self; | |
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) | |
4612 | return NULL; | |
4613 | { | |
4614 | _arg0 = &temp; | |
4615 | if (! wxColour_helper(_obj0, &_arg0)) | |
4616 | return NULL; | |
4617 | } | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | _result = (PyObject *)wxColour_Get(_arg0); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) return NULL; | |
4624 | }{ | |
4625 | _resultobj = _result; | |
4626 | } | |
4627 | return _resultobj; | |
4628 | } | |
4629 | ||
4630 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { | |
4631 | wxColourDatabase *src; | |
4632 | wxObject *dest; | |
4633 | src = (wxColourDatabase *) ptr; | |
4634 | dest = (wxObject *) src; | |
4635 | return (void *) dest; | |
4636 | } | |
4637 | ||
4638 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) | |
4639 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4640 | PyObject * _resultobj; | |
4641 | wxColour * _result; | |
4642 | wxColourDatabase * _arg0; | |
4643 | wxString * _arg1; | |
4644 | PyObject * _argo0 = 0; | |
4645 | PyObject * _obj1 = 0; | |
4646 | char *_kwnames[] = { "self","colour", NULL }; | |
4647 | char _ptemp[128]; | |
4648 | ||
4649 | self = self; | |
4650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
4651 | return NULL; | |
4652 | if (_argo0) { | |
4653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
4656 | return NULL; | |
4657 | } | |
4658 | } | |
4659 | { | |
4660 | _arg1 = wxString_in_helper(_obj1); | |
4661 | if (_arg1 == NULL) | |
4662 | return NULL; | |
4663 | } | |
4664 | { | |
4665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4666 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
4667 | ||
4668 | wxPyEndAllowThreads(__tstate); | |
4669 | if (PyErr_Occurred()) return NULL; | |
4670 | } if (_result) { | |
4671 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4672 | _resultobj = Py_BuildValue("s",_ptemp); | |
4673 | } else { | |
4674 | Py_INCREF(Py_None); | |
4675 | _resultobj = Py_None; | |
4676 | } | |
4677 | { | |
4678 | if (_obj1) | |
4679 | delete _arg1; | |
4680 | } | |
4681 | return _resultobj; | |
4682 | } | |
4683 | ||
4684 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
4685 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4686 | PyObject * _resultobj; | |
4687 | wxString * _result; | |
4688 | wxColourDatabase * _arg0; | |
4689 | wxColour * _arg1; | |
4690 | PyObject * _argo0 = 0; | |
4691 | wxColour temp; | |
4692 | PyObject * _obj1 = 0; | |
4693 | char *_kwnames[] = { "self","colour", NULL }; | |
4694 | ||
4695 | self = self; | |
4696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
4697 | return NULL; | |
4698 | if (_argo0) { | |
4699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
4702 | return NULL; | |
4703 | } | |
4704 | } | |
4705 | { | |
4706 | _arg1 = &temp; | |
4707 | if (! wxColour_helper(_obj1, &_arg1)) | |
4708 | return NULL; | |
4709 | } | |
4710 | { | |
4711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4712 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
4713 | ||
4714 | wxPyEndAllowThreads(__tstate); | |
4715 | if (PyErr_Occurred()) return NULL; | |
4716 | }{ | |
4717 | #if wxUSE_UNICODE | |
4718 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4719 | #else | |
4720 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4721 | #endif | |
4722 | } | |
4723 | { | |
4724 | delete _result; | |
4725 | } | |
4726 | return _resultobj; | |
4727 | } | |
4728 | ||
4729 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
4730 | // first see if the name is already there | |
4731 | wxString cName = name; | |
4732 | cName.MakeUpper(); | |
4733 | wxString cName2 = cName; | |
4734 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) | |
4735 | cName2.clear(); | |
4736 | ||
4737 | wxNode *node = self->First(); | |
4738 | while ( node ) { | |
4739 | const wxChar *key = node->GetKeyString(); | |
4740 | if ( cName == key || cName2 == key ) { | |
4741 | wxColour* c = (wxColour *)node->Data(); | |
4742 | c->Set(red, green, blue); | |
4743 | return; | |
4744 | } | |
4745 | node = node->Next(); | |
4746 | } | |
4747 | ||
4748 | // otherwise append the new colour | |
4749 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
4750 | } | |
4751 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject * _resultobj; | |
4753 | wxColourDatabase * _arg0; | |
4754 | wxString * _arg1; | |
4755 | int _arg2; | |
4756 | int _arg3; | |
4757 | int _arg4; | |
4758 | PyObject * _argo0 = 0; | |
4759 | PyObject * _obj1 = 0; | |
4760 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
4761 | ||
4762 | self = self; | |
4763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
4764 | return NULL; | |
4765 | if (_argo0) { | |
4766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
4769 | return NULL; | |
4770 | } | |
4771 | } | |
4772 | { | |
4773 | _arg1 = wxString_in_helper(_obj1); | |
4774 | if (_arg1 == NULL) | |
4775 | return NULL; | |
4776 | } | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
4780 | ||
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) return NULL; | |
4783 | } Py_INCREF(Py_None); | |
4784 | _resultobj = Py_None; | |
4785 | { | |
4786 | if (_obj1) | |
4787 | delete _arg1; | |
4788 | } | |
4789 | return _resultobj; | |
4790 | } | |
4791 | ||
4792 | static void *SwigwxPenTowxGDIObject(void *ptr) { | |
4793 | wxPen *src; | |
4794 | wxGDIObject *dest; | |
4795 | src = (wxPen *) ptr; | |
4796 | dest = (wxGDIObject *) src; | |
4797 | return (void *) dest; | |
4798 | } | |
4799 | ||
4800 | static void *SwigwxPenTowxObject(void *ptr) { | |
4801 | wxPen *src; | |
4802 | wxObject *dest; | |
4803 | src = (wxPen *) ptr; | |
4804 | dest = (wxObject *) src; | |
4805 | return (void *) dest; | |
4806 | } | |
4807 | ||
4808 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
4809 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4810 | PyObject * _resultobj; | |
4811 | wxPen * _result; | |
4812 | wxColour * _arg0; | |
4813 | int _arg1 = (int ) 1; | |
4814 | int _arg2 = (int ) wxSOLID; | |
4815 | wxColour temp; | |
4816 | PyObject * _obj0 = 0; | |
4817 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4818 | char _ptemp[128]; | |
4819 | ||
4820 | self = self; | |
4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4822 | return NULL; | |
4823 | { | |
4824 | _arg0 = &temp; | |
4825 | if (! wxColour_helper(_obj0, &_arg0)) | |
4826 | return NULL; | |
4827 | } | |
4828 | { | |
4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4830 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); | |
4831 | ||
4832 | wxPyEndAllowThreads(__tstate); | |
4833 | if (PyErr_Occurred()) return NULL; | |
4834 | } if (_result) { | |
4835 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4836 | _resultobj = Py_BuildValue("s",_ptemp); | |
4837 | } else { | |
4838 | Py_INCREF(Py_None); | |
4839 | _resultobj = Py_None; | |
4840 | } | |
4841 | return _resultobj; | |
4842 | } | |
4843 | ||
4844 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
4845 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4846 | PyObject * _resultobj; | |
4847 | wxPen * _arg0; | |
4848 | PyObject * _argo0 = 0; | |
4849 | char *_kwnames[] = { "self", NULL }; | |
4850 | ||
4851 | self = self; | |
4852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
4853 | return NULL; | |
4854 | if (_argo0) { | |
4855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
4858 | return NULL; | |
4859 | } | |
4860 | } | |
4861 | { | |
4862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4863 | delete_wxPen(_arg0); | |
4864 | ||
4865 | wxPyEndAllowThreads(__tstate); | |
4866 | if (PyErr_Occurred()) return NULL; | |
4867 | } Py_INCREF(Py_None); | |
4868 | _resultobj = Py_None; | |
4869 | return _resultobj; | |
4870 | } | |
4871 | ||
4872 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
4873 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4874 | PyObject * _resultobj; | |
4875 | int _result; | |
4876 | wxPen * _arg0; | |
4877 | PyObject * _argo0 = 0; | |
4878 | char *_kwnames[] = { "self", NULL }; | |
4879 | ||
4880 | self = self; | |
4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
4882 | return NULL; | |
4883 | if (_argo0) { | |
4884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
4887 | return NULL; | |
4888 | } | |
4889 | } | |
4890 | { | |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | _result = (int )wxPen_GetCap(_arg0); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) return NULL; | |
4896 | } _resultobj = Py_BuildValue("i",_result); | |
4897 | return _resultobj; | |
4898 | } | |
4899 | ||
4900 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
4901 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4902 | PyObject * _resultobj; | |
4903 | wxColour * _result; | |
4904 | wxPen * _arg0; | |
4905 | PyObject * _argo0 = 0; | |
4906 | char *_kwnames[] = { "self", NULL }; | |
4907 | char _ptemp[128]; | |
4908 | ||
4909 | self = self; | |
4910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
4911 | return NULL; | |
4912 | if (_argo0) { | |
4913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
4916 | return NULL; | |
4917 | } | |
4918 | } | |
4919 | { | |
4920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4921 | _result = new wxColour (wxPen_GetColour(_arg0)); | |
4922 | ||
4923 | wxPyEndAllowThreads(__tstate); | |
4924 | if (PyErr_Occurred()) return NULL; | |
4925 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4926 | _resultobj = Py_BuildValue("s",_ptemp); | |
4927 | return _resultobj; | |
4928 | } | |
4929 | ||
4930 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
4931 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject * _resultobj; | |
4933 | int _result; | |
4934 | wxPen * _arg0; | |
4935 | PyObject * _argo0 = 0; | |
4936 | char *_kwnames[] = { "self", NULL }; | |
4937 | ||
4938 | self = self; | |
4939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) | |
4940 | return NULL; | |
4941 | if (_argo0) { | |
4942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
4945 | return NULL; | |
4946 | } | |
4947 | } | |
4948 | { | |
4949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4950 | _result = (int )wxPen_GetJoin(_arg0); | |
4951 | ||
4952 | wxPyEndAllowThreads(__tstate); | |
4953 | if (PyErr_Occurred()) return NULL; | |
4954 | } _resultobj = Py_BuildValue("i",_result); | |
4955 | return _resultobj; | |
4956 | } | |
4957 | ||
4958 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
4959 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4960 | PyObject * _resultobj; | |
4961 | int _result; | |
4962 | wxPen * _arg0; | |
4963 | PyObject * _argo0 = 0; | |
4964 | char *_kwnames[] = { "self", NULL }; | |
4965 | ||
4966 | self = self; | |
4967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) | |
4968 | return NULL; | |
4969 | if (_argo0) { | |
4970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
4973 | return NULL; | |
4974 | } | |
4975 | } | |
4976 | { | |
4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4978 | _result = (int )wxPen_GetStyle(_arg0); | |
4979 | ||
4980 | wxPyEndAllowThreads(__tstate); | |
4981 | if (PyErr_Occurred()) return NULL; | |
4982 | } _resultobj = Py_BuildValue("i",_result); | |
4983 | return _resultobj; | |
4984 | } | |
4985 | ||
4986 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
4987 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4988 | PyObject * _resultobj; | |
4989 | int _result; | |
4990 | wxPen * _arg0; | |
4991 | PyObject * _argo0 = 0; | |
4992 | char *_kwnames[] = { "self", NULL }; | |
4993 | ||
4994 | self = self; | |
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) | |
4996 | return NULL; | |
4997 | if (_argo0) { | |
4998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
5001 | return NULL; | |
5002 | } | |
5003 | } | |
5004 | { | |
5005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5006 | _result = (int )wxPen_GetWidth(_arg0); | |
5007 | ||
5008 | wxPyEndAllowThreads(__tstate); | |
5009 | if (PyErr_Occurred()) return NULL; | |
5010 | } _resultobj = Py_BuildValue("i",_result); | |
5011 | return _resultobj; | |
5012 | } | |
5013 | ||
5014 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
5015 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject * _resultobj; | |
5017 | bool _result; | |
5018 | wxPen * _arg0; | |
5019 | PyObject * _argo0 = 0; | |
5020 | char *_kwnames[] = { "self", NULL }; | |
5021 | ||
5022 | self = self; | |
5023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) | |
5024 | return NULL; | |
5025 | if (_argo0) { | |
5026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
5029 | return NULL; | |
5030 | } | |
5031 | } | |
5032 | { | |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5034 | _result = (bool )wxPen_Ok(_arg0); | |
5035 | ||
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) return NULL; | |
5038 | } _resultobj = Py_BuildValue("i",_result); | |
5039 | return _resultobj; | |
5040 | } | |
5041 | ||
5042 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
5043 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject * _resultobj; | |
5045 | wxPen * _arg0; | |
5046 | int _arg1; | |
5047 | PyObject * _argo0 = 0; | |
5048 | char *_kwnames[] = { "self","cap_style", NULL }; | |
5049 | ||
5050 | self = self; | |
5051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) | |
5052 | return NULL; | |
5053 | if (_argo0) { | |
5054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
5057 | return NULL; | |
5058 | } | |
5059 | } | |
5060 | { | |
5061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5062 | wxPen_SetCap(_arg0,_arg1); | |
5063 | ||
5064 | wxPyEndAllowThreads(__tstate); | |
5065 | if (PyErr_Occurred()) return NULL; | |
5066 | } Py_INCREF(Py_None); | |
5067 | _resultobj = Py_None; | |
5068 | return _resultobj; | |
5069 | } | |
5070 | ||
5071 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
5072 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5073 | PyObject * _resultobj; | |
5074 | wxPen * _arg0; | |
5075 | wxColour * _arg1; | |
5076 | PyObject * _argo0 = 0; | |
5077 | wxColour temp; | |
5078 | PyObject * _obj1 = 0; | |
5079 | char *_kwnames[] = { "self","colour", NULL }; | |
5080 | ||
5081 | self = self; | |
5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) | |
5083 | return NULL; | |
5084 | if (_argo0) { | |
5085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
5088 | return NULL; | |
5089 | } | |
5090 | } | |
5091 | { | |
5092 | _arg1 = &temp; | |
5093 | if (! wxColour_helper(_obj1, &_arg1)) | |
5094 | return NULL; | |
5095 | } | |
5096 | { | |
5097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5098 | wxPen_SetColour(_arg0,*_arg1); | |
5099 | ||
5100 | wxPyEndAllowThreads(__tstate); | |
5101 | if (PyErr_Occurred()) return NULL; | |
5102 | } Py_INCREF(Py_None); | |
5103 | _resultobj = Py_None; | |
5104 | return _resultobj; | |
5105 | } | |
5106 | ||
5107 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
5108 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5109 | PyObject * _resultobj; | |
5110 | wxPen * _arg0; | |
5111 | int _arg1; | |
5112 | PyObject * _argo0 = 0; | |
5113 | char *_kwnames[] = { "self","join_style", NULL }; | |
5114 | ||
5115 | self = self; | |
5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) | |
5117 | return NULL; | |
5118 | if (_argo0) { | |
5119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
5122 | return NULL; | |
5123 | } | |
5124 | } | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | wxPen_SetJoin(_arg0,_arg1); | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) return NULL; | |
5131 | } Py_INCREF(Py_None); | |
5132 | _resultobj = Py_None; | |
5133 | return _resultobj; | |
5134 | } | |
5135 | ||
5136 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
5137 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5138 | PyObject * _resultobj; | |
5139 | wxPen * _arg0; | |
5140 | int _arg1; | |
5141 | PyObject * _argo0 = 0; | |
5142 | char *_kwnames[] = { "self","style", NULL }; | |
5143 | ||
5144 | self = self; | |
5145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) | |
5146 | return NULL; | |
5147 | if (_argo0) { | |
5148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
5151 | return NULL; | |
5152 | } | |
5153 | } | |
5154 | { | |
5155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5156 | wxPen_SetStyle(_arg0,_arg1); | |
5157 | ||
5158 | wxPyEndAllowThreads(__tstate); | |
5159 | if (PyErr_Occurred()) return NULL; | |
5160 | } Py_INCREF(Py_None); | |
5161 | _resultobj = Py_None; | |
5162 | return _resultobj; | |
5163 | } | |
5164 | ||
5165 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
5166 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5167 | PyObject * _resultobj; | |
5168 | wxPen * _arg0; | |
5169 | int _arg1; | |
5170 | PyObject * _argo0 = 0; | |
5171 | char *_kwnames[] = { "self","width", NULL }; | |
5172 | ||
5173 | self = self; | |
5174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) | |
5175 | return NULL; | |
5176 | if (_argo0) { | |
5177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
5180 | return NULL; | |
5181 | } | |
5182 | } | |
5183 | { | |
5184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5185 | wxPen_SetWidth(_arg0,_arg1); | |
5186 | ||
5187 | wxPyEndAllowThreads(__tstate); | |
5188 | if (PyErr_Occurred()) return NULL; | |
5189 | } Py_INCREF(Py_None); | |
5190 | _resultobj = Py_None; | |
5191 | return _resultobj; | |
5192 | } | |
5193 | ||
5194 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
5195 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5196 | PyObject * _resultobj; | |
5197 | wxPen * _arg0; | |
5198 | int _arg1; | |
5199 | wxDash * _arg2; | |
5200 | PyObject * _argo0 = 0; | |
5201 | PyObject * _obj2 = 0; | |
5202 | char *_kwnames[] = { "self","choices", NULL }; | |
5203 | ||
5204 | self = self; | |
5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5206 | return NULL; | |
5207 | if (_argo0) { | |
5208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
5211 | return NULL; | |
5212 | } | |
5213 | } | |
5214 | if (_obj2) | |
5215 | { | |
5216 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5217 | if (_arg2 == NULL) { | |
5218 | return NULL; | |
5219 | } | |
5220 | } | |
5221 | { | |
5222 | if (_obj2) { | |
5223 | _arg1 = PyList_Size(_obj2); | |
5224 | } | |
5225 | else { | |
5226 | _arg1 = 0; | |
5227 | } | |
5228 | } | |
5229 | { | |
5230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5231 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
5232 | ||
5233 | wxPyEndAllowThreads(__tstate); | |
5234 | if (PyErr_Occurred()) return NULL; | |
5235 | } Py_INCREF(Py_None); | |
5236 | _resultobj = Py_None; | |
5237 | { | |
5238 | delete [] _arg2; | |
5239 | } | |
5240 | return _resultobj; | |
5241 | } | |
5242 | ||
5243 | static void *SwigwxPyPenTowxPen(void *ptr) { | |
5244 | wxPyPen *src; | |
5245 | wxPen *dest; | |
5246 | src = (wxPyPen *) ptr; | |
5247 | dest = (wxPen *) src; | |
5248 | return (void *) dest; | |
5249 | } | |
5250 | ||
5251 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
5252 | wxPyPen *src; | |
5253 | wxGDIObject *dest; | |
5254 | src = (wxPyPen *) ptr; | |
5255 | dest = (wxGDIObject *) src; | |
5256 | return (void *) dest; | |
5257 | } | |
5258 | ||
5259 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
5260 | wxPyPen *src; | |
5261 | wxObject *dest; | |
5262 | src = (wxPyPen *) ptr; | |
5263 | dest = (wxObject *) src; | |
5264 | return (void *) dest; | |
5265 | } | |
5266 | ||
5267 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
5268 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5269 | PyObject * _resultobj; | |
5270 | wxPyPen * _result; | |
5271 | wxColour * _arg0; | |
5272 | int _arg1 = (int ) 1; | |
5273 | int _arg2 = (int ) wxSOLID; | |
5274 | wxColour temp; | |
5275 | PyObject * _obj0 = 0; | |
5276 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5277 | char _ptemp[128]; | |
5278 | ||
5279 | self = self; | |
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5281 | return NULL; | |
5282 | { | |
5283 | _arg0 = &temp; | |
5284 | if (! wxColour_helper(_obj0, &_arg0)) | |
5285 | return NULL; | |
5286 | } | |
5287 | { | |
5288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5289 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); | |
5290 | ||
5291 | wxPyEndAllowThreads(__tstate); | |
5292 | if (PyErr_Occurred()) return NULL; | |
5293 | } if (_result) { | |
5294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
5295 | _resultobj = Py_BuildValue("s",_ptemp); | |
5296 | } else { | |
5297 | Py_INCREF(Py_None); | |
5298 | _resultobj = Py_None; | |
5299 | } | |
5300 | return _resultobj; | |
5301 | } | |
5302 | ||
5303 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
5304 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject * _resultobj; | |
5306 | wxPyPen * _arg0; | |
5307 | PyObject * _argo0 = 0; | |
5308 | char *_kwnames[] = { "self", NULL }; | |
5309 | ||
5310 | self = self; | |
5311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
5312 | return NULL; | |
5313 | if (_argo0) { | |
5314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
5317 | return NULL; | |
5318 | } | |
5319 | } | |
5320 | { | |
5321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5322 | delete_wxPyPen(_arg0); | |
5323 | ||
5324 | wxPyEndAllowThreads(__tstate); | |
5325 | if (PyErr_Occurred()) return NULL; | |
5326 | } Py_INCREF(Py_None); | |
5327 | _resultobj = Py_None; | |
5328 | return _resultobj; | |
5329 | } | |
5330 | ||
5331 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
5332 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5333 | PyObject * _resultobj; | |
5334 | wxPyPen * _arg0; | |
5335 | int _arg1; | |
5336 | wxDash * _arg2; | |
5337 | PyObject * _argo0 = 0; | |
5338 | PyObject * _obj2 = 0; | |
5339 | char *_kwnames[] = { "self","choices", NULL }; | |
5340 | ||
5341 | self = self; | |
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5343 | return NULL; | |
5344 | if (_argo0) { | |
5345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
5348 | return NULL; | |
5349 | } | |
5350 | } | |
5351 | if (_obj2) | |
5352 | { | |
5353 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5354 | if (_arg2 == NULL) { | |
5355 | return NULL; | |
5356 | } | |
5357 | } | |
5358 | { | |
5359 | if (_obj2) { | |
5360 | _arg1 = PyList_Size(_obj2); | |
5361 | } | |
5362 | else { | |
5363 | _arg1 = 0; | |
5364 | } | |
5365 | } | |
5366 | { | |
5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5368 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); | |
5369 | ||
5370 | wxPyEndAllowThreads(__tstate); | |
5371 | if (PyErr_Occurred()) return NULL; | |
5372 | } Py_INCREF(Py_None); | |
5373 | _resultobj = Py_None; | |
5374 | { | |
5375 | delete [] _arg2; | |
5376 | } | |
5377 | return _resultobj; | |
5378 | } | |
5379 | ||
5380 | static void *SwigwxPenListTowxObject(void *ptr) { | |
5381 | wxPenList *src; | |
5382 | wxObject *dest; | |
5383 | src = (wxPenList *) ptr; | |
5384 | dest = (wxObject *) src; | |
5385 | return (void *) dest; | |
5386 | } | |
5387 | ||
5388 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) | |
5389 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5390 | PyObject * _resultobj; | |
5391 | wxPenList * _arg0; | |
5392 | wxPen * _arg1; | |
5393 | PyObject * _argo0 = 0; | |
5394 | PyObject * _argo1 = 0; | |
5395 | char *_kwnames[] = { "self","pen", NULL }; | |
5396 | ||
5397 | self = self; | |
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5399 | return NULL; | |
5400 | if (_argo0) { | |
5401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5404 | return NULL; | |
5405 | } | |
5406 | } | |
5407 | if (_argo1) { | |
5408 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5409 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5411 | return NULL; | |
5412 | } | |
5413 | } | |
5414 | { | |
5415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5416 | wxPenList_AddPen(_arg0,_arg1); | |
5417 | ||
5418 | wxPyEndAllowThreads(__tstate); | |
5419 | if (PyErr_Occurred()) return NULL; | |
5420 | } Py_INCREF(Py_None); | |
5421 | _resultobj = Py_None; | |
5422 | return _resultobj; | |
5423 | } | |
5424 | ||
5425 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5426 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject * _resultobj; | |
5428 | wxPen * _result; | |
5429 | wxPenList * _arg0; | |
5430 | wxColour * _arg1; | |
5431 | int _arg2; | |
5432 | int _arg3; | |
5433 | PyObject * _argo0 = 0; | |
5434 | wxColour temp; | |
5435 | PyObject * _obj1 = 0; | |
5436 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5437 | char _ptemp[128]; | |
5438 | ||
5439 | self = self; | |
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5441 | return NULL; | |
5442 | if (_argo0) { | |
5443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5446 | return NULL; | |
5447 | } | |
5448 | } | |
5449 | { | |
5450 | _arg1 = &temp; | |
5451 | if (! wxColour_helper(_obj1, &_arg1)) | |
5452 | return NULL; | |
5453 | } | |
5454 | { | |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) return NULL; | |
5460 | } if (_result) { | |
5461 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5462 | _resultobj = Py_BuildValue("s",_ptemp); | |
5463 | } else { | |
5464 | Py_INCREF(Py_None); | |
5465 | _resultobj = Py_None; | |
5466 | } | |
5467 | return _resultobj; | |
5468 | } | |
5469 | ||
5470 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5471 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5472 | PyObject * _resultobj; | |
5473 | wxPenList * _arg0; | |
5474 | wxPen * _arg1; | |
5475 | PyObject * _argo0 = 0; | |
5476 | PyObject * _argo1 = 0; | |
5477 | char *_kwnames[] = { "self","pen", NULL }; | |
5478 | ||
5479 | self = self; | |
5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5481 | return NULL; | |
5482 | if (_argo0) { | |
5483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5486 | return NULL; | |
5487 | } | |
5488 | } | |
5489 | if (_argo1) { | |
5490 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5491 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5493 | return NULL; | |
5494 | } | |
5495 | } | |
5496 | { | |
5497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5498 | wxPenList_RemovePen(_arg0,_arg1); | |
5499 | ||
5500 | wxPyEndAllowThreads(__tstate); | |
5501 | if (PyErr_Occurred()) return NULL; | |
5502 | } Py_INCREF(Py_None); | |
5503 | _resultobj = Py_None; | |
5504 | return _resultobj; | |
5505 | } | |
5506 | ||
5507 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) | |
5508 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5509 | PyObject * _resultobj; | |
5510 | int _result; | |
5511 | wxPenList * _arg0; | |
5512 | PyObject * _argo0 = 0; | |
5513 | char *_kwnames[] = { "self", NULL }; | |
5514 | ||
5515 | self = self; | |
5516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
5517 | return NULL; | |
5518 | if (_argo0) { | |
5519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
5522 | return NULL; | |
5523 | } | |
5524 | } | |
5525 | { | |
5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5527 | _result = (int )wxPenList_GetCount(_arg0); | |
5528 | ||
5529 | wxPyEndAllowThreads(__tstate); | |
5530 | if (PyErr_Occurred()) return NULL; | |
5531 | } _resultobj = Py_BuildValue("i",_result); | |
5532 | return _resultobj; | |
5533 | } | |
5534 | ||
5535 | static void *SwigwxBrushTowxGDIObject(void *ptr) { | |
5536 | wxBrush *src; | |
5537 | wxGDIObject *dest; | |
5538 | src = (wxBrush *) ptr; | |
5539 | dest = (wxGDIObject *) src; | |
5540 | return (void *) dest; | |
5541 | } | |
5542 | ||
5543 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5544 | wxBrush *src; | |
5545 | wxObject *dest; | |
5546 | src = (wxBrush *) ptr; | |
5547 | dest = (wxObject *) src; | |
5548 | return (void *) dest; | |
5549 | } | |
5550 | ||
5551 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
5552 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5553 | PyObject * _resultobj; | |
5554 | wxBrush * _result; | |
5555 | wxColour * _arg0; | |
5556 | int _arg1 = (int ) wxSOLID; | |
5557 | wxColour temp; | |
5558 | PyObject * _obj0 = 0; | |
5559 | char *_kwnames[] = { "colour","style", NULL }; | |
5560 | char _ptemp[128]; | |
5561 | ||
5562 | self = self; | |
5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) | |
5564 | return NULL; | |
5565 | { | |
5566 | _arg0 = &temp; | |
5567 | if (! wxColour_helper(_obj0, &_arg0)) | |
5568 | return NULL; | |
5569 | } | |
5570 | { | |
5571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5572 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); | |
5573 | ||
5574 | wxPyEndAllowThreads(__tstate); | |
5575 | if (PyErr_Occurred()) return NULL; | |
5576 | } if (_result) { | |
5577 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5578 | _resultobj = Py_BuildValue("s",_ptemp); | |
5579 | } else { | |
5580 | Py_INCREF(Py_None); | |
5581 | _resultobj = Py_None; | |
5582 | } | |
5583 | return _resultobj; | |
5584 | } | |
5585 | ||
5586 | #define delete_wxBrush(_swigobj) (delete _swigobj) | |
5587 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5588 | PyObject * _resultobj; | |
5589 | wxBrush * _arg0; | |
5590 | PyObject * _argo0 = 0; | |
5591 | char *_kwnames[] = { "self", NULL }; | |
5592 | ||
5593 | self = self; | |
5594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5595 | return NULL; | |
5596 | if (_argo0) { | |
5597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5600 | return NULL; | |
5601 | } | |
5602 | } | |
5603 | { | |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | delete_wxBrush(_arg0); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) return NULL; | |
5609 | } Py_INCREF(Py_None); | |
5610 | _resultobj = Py_None; | |
5611 | return _resultobj; | |
5612 | } | |
5613 | ||
5614 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
5615 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject * _resultobj; | |
5617 | wxColour * _result; | |
5618 | wxBrush * _arg0; | |
5619 | PyObject * _argo0 = 0; | |
5620 | char *_kwnames[] = { "self", NULL }; | |
5621 | char _ptemp[128]; | |
5622 | ||
5623 | self = self; | |
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) | |
5625 | return NULL; | |
5626 | if (_argo0) { | |
5627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
5630 | return NULL; | |
5631 | } | |
5632 | } | |
5633 | { | |
5634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5635 | _result = new wxColour (wxBrush_GetColour(_arg0)); | |
5636 | ||
5637 | wxPyEndAllowThreads(__tstate); | |
5638 | if (PyErr_Occurred()) return NULL; | |
5639 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5640 | _resultobj = Py_BuildValue("s",_ptemp); | |
5641 | return _resultobj; | |
5642 | } | |
5643 | ||
5644 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
5645 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5646 | PyObject * _resultobj; | |
5647 | wxBitmap * _result; | |
5648 | wxBrush * _arg0; | |
5649 | PyObject * _argo0 = 0; | |
5650 | char *_kwnames[] = { "self", NULL }; | |
5651 | char _ptemp[128]; | |
5652 | ||
5653 | self = self; | |
5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) | |
5655 | return NULL; | |
5656 | if (_argo0) { | |
5657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
5660 | return NULL; | |
5661 | } | |
5662 | } | |
5663 | { | |
5664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5665 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
5666 | ||
5667 | wxPyEndAllowThreads(__tstate); | |
5668 | if (PyErr_Occurred()) return NULL; | |
5669 | } if (_result) { | |
5670 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5671 | _resultobj = Py_BuildValue("s",_ptemp); | |
5672 | } else { | |
5673 | Py_INCREF(Py_None); | |
5674 | _resultobj = Py_None; | |
5675 | } | |
5676 | return _resultobj; | |
5677 | } | |
5678 | ||
5679 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
5680 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5681 | PyObject * _resultobj; | |
5682 | int _result; | |
5683 | wxBrush * _arg0; | |
5684 | PyObject * _argo0 = 0; | |
5685 | char *_kwnames[] = { "self", NULL }; | |
5686 | ||
5687 | self = self; | |
5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) | |
5689 | return NULL; | |
5690 | if (_argo0) { | |
5691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
5694 | return NULL; | |
5695 | } | |
5696 | } | |
5697 | { | |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5699 | _result = (int )wxBrush_GetStyle(_arg0); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) return NULL; | |
5703 | } _resultobj = Py_BuildValue("i",_result); | |
5704 | return _resultobj; | |
5705 | } | |
5706 | ||
5707 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
5708 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject * _resultobj; | |
5710 | bool _result; | |
5711 | wxBrush * _arg0; | |
5712 | PyObject * _argo0 = 0; | |
5713 | char *_kwnames[] = { "self", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5727 | _result = (bool )wxBrush_Ok(_arg0); | |
5728 | ||
5729 | wxPyEndAllowThreads(__tstate); | |
5730 | if (PyErr_Occurred()) return NULL; | |
5731 | } _resultobj = Py_BuildValue("i",_result); | |
5732 | return _resultobj; | |
5733 | } | |
5734 | ||
5735 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
5736 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject * _resultobj; | |
5738 | wxBrush * _arg0; | |
5739 | wxColour * _arg1; | |
5740 | PyObject * _argo0 = 0; | |
5741 | wxColour temp; | |
5742 | PyObject * _obj1 = 0; | |
5743 | char *_kwnames[] = { "self","colour", NULL }; | |
5744 | ||
5745 | self = self; | |
5746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) | |
5747 | return NULL; | |
5748 | if (_argo0) { | |
5749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
5752 | return NULL; | |
5753 | } | |
5754 | } | |
5755 | { | |
5756 | _arg1 = &temp; | |
5757 | if (! wxColour_helper(_obj1, &_arg1)) | |
5758 | return NULL; | |
5759 | } | |
5760 | { | |
5761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5762 | wxBrush_SetColour(_arg0,*_arg1); | |
5763 | ||
5764 | wxPyEndAllowThreads(__tstate); | |
5765 | if (PyErr_Occurred()) return NULL; | |
5766 | } Py_INCREF(Py_None); | |
5767 | _resultobj = Py_None; | |
5768 | return _resultobj; | |
5769 | } | |
5770 | ||
5771 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
5772 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject * _resultobj; | |
5774 | wxBrush * _arg0; | |
5775 | wxBitmap * _arg1; | |
5776 | PyObject * _argo0 = 0; | |
5777 | PyObject * _argo1 = 0; | |
5778 | char *_kwnames[] = { "self","bitmap", NULL }; | |
5779 | ||
5780 | self = self; | |
5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) | |
5782 | return NULL; | |
5783 | if (_argo0) { | |
5784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
5787 | return NULL; | |
5788 | } | |
5789 | } | |
5790 | if (_argo1) { | |
5791 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5792 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
5793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
5794 | return NULL; | |
5795 | } | |
5796 | } | |
5797 | { | |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | wxBrush_SetStipple(_arg0,*_arg1); | |
5800 | ||
5801 | wxPyEndAllowThreads(__tstate); | |
5802 | if (PyErr_Occurred()) return NULL; | |
5803 | } Py_INCREF(Py_None); | |
5804 | _resultobj = Py_None; | |
5805 | return _resultobj; | |
5806 | } | |
5807 | ||
5808 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
5809 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5810 | PyObject * _resultobj; | |
5811 | wxBrush * _arg0; | |
5812 | int _arg1; | |
5813 | PyObject * _argo0 = 0; | |
5814 | char *_kwnames[] = { "self","style", NULL }; | |
5815 | ||
5816 | self = self; | |
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) | |
5818 | return NULL; | |
5819 | if (_argo0) { | |
5820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
5823 | return NULL; | |
5824 | } | |
5825 | } | |
5826 | { | |
5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5828 | wxBrush_SetStyle(_arg0,_arg1); | |
5829 | ||
5830 | wxPyEndAllowThreads(__tstate); | |
5831 | if (PyErr_Occurred()) return NULL; | |
5832 | } Py_INCREF(Py_None); | |
5833 | _resultobj = Py_None; | |
5834 | return _resultobj; | |
5835 | } | |
5836 | ||
5837 | static void *SwigwxBrushListTowxObject(void *ptr) { | |
5838 | wxBrushList *src; | |
5839 | wxObject *dest; | |
5840 | src = (wxBrushList *) ptr; | |
5841 | dest = (wxObject *) src; | |
5842 | return (void *) dest; | |
5843 | } | |
5844 | ||
5845 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) | |
5846 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5847 | PyObject * _resultobj; | |
5848 | wxBrushList * _arg0; | |
5849 | wxBrush * _arg1; | |
5850 | PyObject * _argo0 = 0; | |
5851 | PyObject * _argo1 = 0; | |
5852 | char *_kwnames[] = { "self","brush", NULL }; | |
5853 | ||
5854 | self = self; | |
5855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
5856 | return NULL; | |
5857 | if (_argo0) { | |
5858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
5861 | return NULL; | |
5862 | } | |
5863 | } | |
5864 | if (_argo1) { | |
5865 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5866 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
5868 | return NULL; | |
5869 | } | |
5870 | } | |
5871 | { | |
5872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5873 | wxBrushList_AddBrush(_arg0,_arg1); | |
5874 | ||
5875 | wxPyEndAllowThreads(__tstate); | |
5876 | if (PyErr_Occurred()) return NULL; | |
5877 | } Py_INCREF(Py_None); | |
5878 | _resultobj = Py_None; | |
5879 | return _resultobj; | |
5880 | } | |
5881 | ||
5882 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
5883 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5884 | PyObject * _resultobj; | |
5885 | wxBrush * _result; | |
5886 | wxBrushList * _arg0; | |
5887 | wxColour * _arg1; | |
5888 | int _arg2; | |
5889 | PyObject * _argo0 = 0; | |
5890 | wxColour temp; | |
5891 | PyObject * _obj1 = 0; | |
5892 | char *_kwnames[] = { "self","colour","style", NULL }; | |
5893 | char _ptemp[128]; | |
5894 | ||
5895 | self = self; | |
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5897 | return NULL; | |
5898 | if (_argo0) { | |
5899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
5902 | return NULL; | |
5903 | } | |
5904 | } | |
5905 | { | |
5906 | _arg1 = &temp; | |
5907 | if (! wxColour_helper(_obj1, &_arg1)) | |
5908 | return NULL; | |
5909 | } | |
5910 | { | |
5911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5912 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
5913 | ||
5914 | wxPyEndAllowThreads(__tstate); | |
5915 | if (PyErr_Occurred()) return NULL; | |
5916 | } if (_result) { | |
5917 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5918 | _resultobj = Py_BuildValue("s",_ptemp); | |
5919 | } else { | |
5920 | Py_INCREF(Py_None); | |
5921 | _resultobj = Py_None; | |
5922 | } | |
5923 | return _resultobj; | |
5924 | } | |
5925 | ||
5926 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
5927 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5928 | PyObject * _resultobj; | |
5929 | wxBrushList * _arg0; | |
5930 | wxBrush * _arg1; | |
5931 | PyObject * _argo0 = 0; | |
5932 | PyObject * _argo1 = 0; | |
5933 | char *_kwnames[] = { "self","brush", NULL }; | |
5934 | ||
5935 | self = self; | |
5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
5937 | return NULL; | |
5938 | if (_argo0) { | |
5939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
5942 | return NULL; | |
5943 | } | |
5944 | } | |
5945 | if (_argo1) { | |
5946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
5949 | return NULL; | |
5950 | } | |
5951 | } | |
5952 | { | |
5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5954 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
5955 | ||
5956 | wxPyEndAllowThreads(__tstate); | |
5957 | if (PyErr_Occurred()) return NULL; | |
5958 | } Py_INCREF(Py_None); | |
5959 | _resultobj = Py_None; | |
5960 | return _resultobj; | |
5961 | } | |
5962 | ||
5963 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) | |
5964 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject * _resultobj; | |
5966 | int _result; | |
5967 | wxBrushList * _arg0; | |
5968 | PyObject * _argo0 = 0; | |
5969 | char *_kwnames[] = { "self", NULL }; | |
5970 | ||
5971 | self = self; | |
5972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
5973 | return NULL; | |
5974 | if (_argo0) { | |
5975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
5978 | return NULL; | |
5979 | } | |
5980 | } | |
5981 | { | |
5982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5983 | _result = (int )wxBrushList_GetCount(_arg0); | |
5984 | ||
5985 | wxPyEndAllowThreads(__tstate); | |
5986 | if (PyErr_Occurred()) return NULL; | |
5987 | } _resultobj = Py_BuildValue("i",_result); | |
5988 | return _resultobj; | |
5989 | } | |
5990 | ||
5991 | static void *SwigwxDCTowxObject(void *ptr) { | |
5992 | wxDC *src; | |
5993 | wxObject *dest; | |
5994 | src = (wxDC *) ptr; | |
5995 | dest = (wxObject *) src; | |
5996 | return (void *) dest; | |
5997 | } | |
5998 | ||
5999 | #define delete_wxDC(_swigobj) (delete _swigobj) | |
6000 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6001 | PyObject * _resultobj; | |
6002 | wxDC * _arg0; | |
6003 | PyObject * _argo0 = 0; | |
6004 | char *_kwnames[] = { "self", NULL }; | |
6005 | ||
6006 | self = self; | |
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) | |
6008 | return NULL; | |
6009 | if (_argo0) { | |
6010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
6013 | return NULL; | |
6014 | } | |
6015 | } | |
6016 | { | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | delete_wxDC(_arg0); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) return NULL; | |
6022 | } Py_INCREF(Py_None); | |
6023 | _resultobj = Py_None; | |
6024 | return _resultobj; | |
6025 | } | |
6026 | ||
6027 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
6028 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6029 | PyObject * _resultobj; | |
6030 | wxDC * _arg0; | |
6031 | PyObject * _argo0 = 0; | |
6032 | char *_kwnames[] = { "self", NULL }; | |
6033 | ||
6034 | self = self; | |
6035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) | |
6036 | return NULL; | |
6037 | if (_argo0) { | |
6038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
6041 | return NULL; | |
6042 | } | |
6043 | } | |
6044 | { | |
6045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6046 | wxDC_BeginDrawing(_arg0); | |
6047 | ||
6048 | wxPyEndAllowThreads(__tstate); | |
6049 | if (PyErr_Occurred()) return NULL; | |
6050 | } Py_INCREF(Py_None); | |
6051 | _resultobj = Py_None; | |
6052 | return _resultobj; | |
6053 | } | |
6054 | ||
6055 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
6056 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6057 | PyObject * _resultobj; | |
6058 | bool _result; | |
6059 | wxDC * _arg0; | |
6060 | long _arg1; | |
6061 | long _arg2; | |
6062 | long _arg3; | |
6063 | long _arg4; | |
6064 | wxDC * _arg5; | |
6065 | long _arg6; | |
6066 | long _arg7; | |
6067 | int _arg8 = (int ) wxCOPY; | |
6068 | int _arg9 = (int ) FALSE; | |
6069 | PyObject * _argo0 = 0; | |
6070 | PyObject * _argo5 = 0; | |
6071 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; | |
6072 | ||
6073 | self = self; | |
6074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
6075 | return NULL; | |
6076 | if (_argo0) { | |
6077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
6080 | return NULL; | |
6081 | } | |
6082 | } | |
6083 | if (_argo5) { | |
6084 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6085 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
6086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
6087 | return NULL; | |
6088 | } | |
6089 | } | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
6093 | ||
6094 | wxPyEndAllowThreads(__tstate); | |
6095 | if (PyErr_Occurred()) return NULL; | |
6096 | } _resultobj = Py_BuildValue("i",_result); | |
6097 | return _resultobj; | |
6098 | } | |
6099 | ||
6100 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
6101 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6102 | PyObject * _resultobj; | |
6103 | wxDC * _arg0; | |
6104 | PyObject * _argo0 = 0; | |
6105 | char *_kwnames[] = { "self", NULL }; | |
6106 | ||
6107 | self = self; | |
6108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) | |
6109 | return NULL; | |
6110 | if (_argo0) { | |
6111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
6114 | return NULL; | |
6115 | } | |
6116 | } | |
6117 | { | |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6119 | wxDC_Clear(_arg0); | |
6120 | ||
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) return NULL; | |
6123 | } Py_INCREF(Py_None); | |
6124 | _resultobj = Py_None; | |
6125 | return _resultobj; | |
6126 | } | |
6127 | ||
6128 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
6129 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject * _resultobj; | |
6131 | wxDC * _arg0; | |
6132 | long _arg1; | |
6133 | long _arg2; | |
6134 | PyObject * _argo0 = 0; | |
6135 | char *_kwnames[] = { "self","x","y", NULL }; | |
6136 | ||
6137 | self = self; | |
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6139 | return NULL; | |
6140 | if (_argo0) { | |
6141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
6144 | return NULL; | |
6145 | } | |
6146 | } | |
6147 | { | |
6148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6149 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
6150 | ||
6151 | wxPyEndAllowThreads(__tstate); | |
6152 | if (PyErr_Occurred()) return NULL; | |
6153 | } Py_INCREF(Py_None); | |
6154 | _resultobj = Py_None; | |
6155 | return _resultobj; | |
6156 | } | |
6157 | ||
6158 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
6159 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6160 | PyObject * _resultobj; | |
6161 | wxDC * _arg0; | |
6162 | PyObject * _argo0 = 0; | |
6163 | char *_kwnames[] = { "self", NULL }; | |
6164 | ||
6165 | self = self; | |
6166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) | |
6167 | return NULL; | |
6168 | if (_argo0) { | |
6169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
6172 | return NULL; | |
6173 | } | |
6174 | } | |
6175 | { | |
6176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6177 | wxDC_DestroyClippingRegion(_arg0); | |
6178 | ||
6179 | wxPyEndAllowThreads(__tstate); | |
6180 | if (PyErr_Occurred()) return NULL; | |
6181 | } Py_INCREF(Py_None); | |
6182 | _resultobj = Py_None; | |
6183 | return _resultobj; | |
6184 | } | |
6185 | ||
6186 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
6187 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6188 | PyObject * _resultobj; | |
6189 | long _result; | |
6190 | wxDC * _arg0; | |
6191 | long _arg1; | |
6192 | PyObject * _argo0 = 0; | |
6193 | char *_kwnames[] = { "self","x", NULL }; | |
6194 | ||
6195 | self = self; | |
6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) | |
6197 | return NULL; | |
6198 | if (_argo0) { | |
6199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
6202 | return NULL; | |
6203 | } | |
6204 | } | |
6205 | { | |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6207 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) return NULL; | |
6211 | } _resultobj = Py_BuildValue("l",_result); | |
6212 | return _resultobj; | |
6213 | } | |
6214 | ||
6215 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
6216 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6217 | PyObject * _resultobj; | |
6218 | long _result; | |
6219 | wxDC * _arg0; | |
6220 | long _arg1; | |
6221 | PyObject * _argo0 = 0; | |
6222 | char *_kwnames[] = { "self","x", NULL }; | |
6223 | ||
6224 | self = self; | |
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) | |
6226 | return NULL; | |
6227 | if (_argo0) { | |
6228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
6231 | return NULL; | |
6232 | } | |
6233 | } | |
6234 | { | |
6235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6236 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
6237 | ||
6238 | wxPyEndAllowThreads(__tstate); | |
6239 | if (PyErr_Occurred()) return NULL; | |
6240 | } _resultobj = Py_BuildValue("l",_result); | |
6241 | return _resultobj; | |
6242 | } | |
6243 | ||
6244 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
6245 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6246 | PyObject * _resultobj; | |
6247 | long _result; | |
6248 | wxDC * _arg0; | |
6249 | long _arg1; | |
6250 | PyObject * _argo0 = 0; | |
6251 | char *_kwnames[] = { "self","y", NULL }; | |
6252 | ||
6253 | self = self; | |
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) | |
6255 | return NULL; | |
6256 | if (_argo0) { | |
6257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
6260 | return NULL; | |
6261 | } | |
6262 | } | |
6263 | { | |
6264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6265 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
6266 | ||
6267 | wxPyEndAllowThreads(__tstate); | |
6268 | if (PyErr_Occurred()) return NULL; | |
6269 | } _resultobj = Py_BuildValue("l",_result); | |
6270 | return _resultobj; | |
6271 | } | |
6272 | ||
6273 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
6274 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6275 | PyObject * _resultobj; | |
6276 | long _result; | |
6277 | wxDC * _arg0; | |
6278 | long _arg1; | |
6279 | PyObject * _argo0 = 0; | |
6280 | char *_kwnames[] = { "self","y", NULL }; | |
6281 | ||
6282 | self = self; | |
6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) | |
6284 | return NULL; | |
6285 | if (_argo0) { | |
6286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
6289 | return NULL; | |
6290 | } | |
6291 | } | |
6292 | { | |
6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6294 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
6295 | ||
6296 | wxPyEndAllowThreads(__tstate); | |
6297 | if (PyErr_Occurred()) return NULL; | |
6298 | } _resultobj = Py_BuildValue("l",_result); | |
6299 | return _resultobj; | |
6300 | } | |
6301 | ||
6302 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6303 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject * _resultobj; | |
6305 | wxDC * _arg0; | |
6306 | long _arg1; | |
6307 | long _arg2; | |
6308 | long _arg3; | |
6309 | long _arg4; | |
6310 | long _arg5; | |
6311 | long _arg6; | |
6312 | PyObject * _argo0 = 0; | |
6313 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; | |
6314 | ||
6315 | self = self; | |
6316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
6317 | return NULL; | |
6318 | if (_argo0) { | |
6319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
6322 | return NULL; | |
6323 | } | |
6324 | } | |
6325 | { | |
6326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6327 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6328 | ||
6329 | wxPyEndAllowThreads(__tstate); | |
6330 | if (PyErr_Occurred()) return NULL; | |
6331 | } Py_INCREF(Py_None); | |
6332 | _resultobj = Py_None; | |
6333 | return _resultobj; | |
6334 | } | |
6335 | ||
6336 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) | |
6337 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6338 | PyObject * _resultobj; | |
6339 | wxDC * _arg0; | |
6340 | long _arg1; | |
6341 | long _arg2; | |
6342 | long _arg3; | |
6343 | PyObject * _argo0 = 0; | |
6344 | char *_kwnames[] = { "self","x","y","radius", NULL }; | |
6345 | ||
6346 | self = self; | |
6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
6348 | return NULL; | |
6349 | if (_argo0) { | |
6350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); | |
6353 | return NULL; | |
6354 | } | |
6355 | } | |
6356 | { | |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6358 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
6359 | ||
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) return NULL; | |
6362 | } Py_INCREF(Py_None); | |
6363 | _resultobj = Py_None; | |
6364 | return _resultobj; | |
6365 | } | |
6366 | ||
6367 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6368 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject * _resultobj; | |
6370 | wxDC * _arg0; | |
6371 | long _arg1; | |
6372 | long _arg2; | |
6373 | long _arg3; | |
6374 | long _arg4; | |
6375 | PyObject * _argo0 = 0; | |
6376 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
6377 | ||
6378 | self = self; | |
6379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6380 | return NULL; | |
6381 | if (_argo0) { | |
6382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
6385 | return NULL; | |
6386 | } | |
6387 | } | |
6388 | { | |
6389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6390 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6391 | ||
6392 | wxPyEndAllowThreads(__tstate); | |
6393 | if (PyErr_Occurred()) return NULL; | |
6394 | } Py_INCREF(Py_None); | |
6395 | _resultobj = Py_None; | |
6396 | return _resultobj; | |
6397 | } | |
6398 | ||
6399 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6400 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6401 | PyObject * _resultobj; | |
6402 | wxDC * _arg0; | |
6403 | long _arg1; | |
6404 | long _arg2; | |
6405 | long _arg3; | |
6406 | long _arg4; | |
6407 | long _arg5; | |
6408 | long _arg6; | |
6409 | PyObject * _argo0 = 0; | |
6410 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; | |
6411 | ||
6412 | self = self; | |
6413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
6414 | return NULL; | |
6415 | if (_argo0) { | |
6416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
6419 | return NULL; | |
6420 | } | |
6421 | } | |
6422 | { | |
6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6424 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6425 | ||
6426 | wxPyEndAllowThreads(__tstate); | |
6427 | if (PyErr_Occurred()) return NULL; | |
6428 | } Py_INCREF(Py_None); | |
6429 | _resultobj = Py_None; | |
6430 | return _resultobj; | |
6431 | } | |
6432 | ||
6433 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
6434 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6435 | PyObject * _resultobj; | |
6436 | wxDC * _arg0; | |
6437 | wxIcon * _arg1; | |
6438 | long _arg2; | |
6439 | long _arg3; | |
6440 | PyObject * _argo0 = 0; | |
6441 | PyObject * _argo1 = 0; | |
6442 | char *_kwnames[] = { "self","icon","x","y", NULL }; | |
6443 | ||
6444 | self = self; | |
6445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
6446 | return NULL; | |
6447 | if (_argo0) { | |
6448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
6451 | return NULL; | |
6452 | } | |
6453 | } | |
6454 | if (_argo1) { | |
6455 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6456 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
6457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
6458 | return NULL; | |
6459 | } | |
6460 | } | |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
6464 | ||
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) return NULL; | |
6467 | } Py_INCREF(Py_None); | |
6468 | _resultobj = Py_None; | |
6469 | return _resultobj; | |
6470 | } | |
6471 | ||
6472 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6473 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6474 | PyObject * _resultobj; | |
6475 | wxDC * _arg0; | |
6476 | wxString * _arg1; | |
6477 | wxRect * _arg2; | |
6478 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6479 | int _arg4 = (int ) -1; | |
6480 | PyObject * _argo0 = 0; | |
6481 | PyObject * _obj1 = 0; | |
6482 | wxRect temp; | |
6483 | PyObject * _obj2 = 0; | |
6484 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
6485 | ||
6486 | self = self; | |
6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
6488 | return NULL; | |
6489 | if (_argo0) { | |
6490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
6493 | return NULL; | |
6494 | } | |
6495 | } | |
6496 | { | |
6497 | _arg1 = wxString_in_helper(_obj1); | |
6498 | if (_arg1 == NULL) | |
6499 | return NULL; | |
6500 | } | |
6501 | { | |
6502 | _arg2 = &temp; | |
6503 | if (! wxRect_helper(_obj2, &_arg2)) | |
6504 | return NULL; | |
6505 | } | |
6506 | { | |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
6509 | ||
6510 | wxPyEndAllowThreads(__tstate); | |
6511 | if (PyErr_Occurred()) return NULL; | |
6512 | } Py_INCREF(Py_None); | |
6513 | _resultobj = Py_None; | |
6514 | { | |
6515 | if (_obj1) | |
6516 | delete _arg1; | |
6517 | } | |
6518 | return _resultobj; | |
6519 | } | |
6520 | ||
6521 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
6522 | wxRect rv; | |
6523 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
6524 | return rv; | |
6525 | } | |
6526 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6527 | PyObject * _resultobj; | |
6528 | wxRect * _result; | |
6529 | wxDC * _arg0; | |
6530 | wxString * _arg1; | |
6531 | wxBitmap * _arg2; | |
6532 | wxRect * _arg3; | |
6533 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6534 | int _arg5 = (int ) -1; | |
6535 | PyObject * _argo0 = 0; | |
6536 | PyObject * _obj1 = 0; | |
6537 | PyObject * _argo2 = 0; | |
6538 | wxRect temp; | |
6539 | PyObject * _obj3 = 0; | |
6540 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
6541 | char _ptemp[128]; | |
6542 | ||
6543 | self = self; | |
6544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
6545 | return NULL; | |
6546 | if (_argo0) { | |
6547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
6550 | return NULL; | |
6551 | } | |
6552 | } | |
6553 | { | |
6554 | _arg1 = wxString_in_helper(_obj1); | |
6555 | if (_arg1 == NULL) | |
6556 | return NULL; | |
6557 | } | |
6558 | if (_argo2) { | |
6559 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6560 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
6561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
6562 | return NULL; | |
6563 | } | |
6564 | } | |
6565 | { | |
6566 | _arg3 = &temp; | |
6567 | if (! wxRect_helper(_obj3, &_arg3)) | |
6568 | return NULL; | |
6569 | } | |
6570 | { | |
6571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6572 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); | |
6573 | ||
6574 | wxPyEndAllowThreads(__tstate); | |
6575 | if (PyErr_Occurred()) return NULL; | |
6576 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
6577 | _resultobj = Py_BuildValue("s",_ptemp); | |
6578 | { | |
6579 | if (_obj1) | |
6580 | delete _arg1; | |
6581 | } | |
6582 | return _resultobj; | |
6583 | } | |
6584 | ||
6585 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6586 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6587 | PyObject * _resultobj; | |
6588 | wxDC * _arg0; | |
6589 | long _arg1; | |
6590 | long _arg2; | |
6591 | long _arg3; | |
6592 | long _arg4; | |
6593 | PyObject * _argo0 = 0; | |
6594 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
6595 | ||
6596 | self = self; | |
6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6598 | return NULL; | |
6599 | if (_argo0) { | |
6600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
6603 | return NULL; | |
6604 | } | |
6605 | } | |
6606 | { | |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) return NULL; | |
6612 | } Py_INCREF(Py_None); | |
6613 | _resultobj = Py_None; | |
6614 | return _resultobj; | |
6615 | } | |
6616 | ||
6617 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6618 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6619 | PyObject * _resultobj; | |
6620 | wxDC * _arg0; | |
6621 | int _arg1; | |
6622 | wxPoint * _arg2; | |
6623 | long _arg3 = (long ) 0; | |
6624 | long _arg4 = (long ) 0; | |
6625 | PyObject * _argo0 = 0; | |
6626 | int NPOINTS; | |
6627 | PyObject * _obj2 = 0; | |
6628 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; | |
6629 | ||
6630 | self = self; | |
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) | |
6632 | return NULL; | |
6633 | if (_argo0) { | |
6634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
6637 | return NULL; | |
6638 | } | |
6639 | } | |
6640 | if (_obj2) | |
6641 | { | |
6642 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6643 | if (_arg2 == NULL) { | |
6644 | return NULL; | |
6645 | } | |
6646 | } | |
6647 | { | |
6648 | _arg1 = NPOINTS; | |
6649 | } | |
6650 | { | |
6651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6652 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6653 | ||
6654 | wxPyEndAllowThreads(__tstate); | |
6655 | if (PyErr_Occurred()) return NULL; | |
6656 | } Py_INCREF(Py_None); | |
6657 | _resultobj = Py_None; | |
6658 | { | |
6659 | delete [] _arg2; | |
6660 | } | |
6661 | return _resultobj; | |
6662 | } | |
6663 | ||
6664 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6665 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject * _resultobj; | |
6667 | wxDC * _arg0; | |
6668 | int _arg1; | |
6669 | wxPoint * _arg2; | |
6670 | long _arg3 = (long ) 0; | |
6671 | long _arg4 = (long ) 0; | |
6672 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6673 | PyObject * _argo0 = 0; | |
6674 | int NPOINTS; | |
6675 | PyObject * _obj2 = 0; | |
6676 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; | |
6677 | ||
6678 | self = self; | |
6679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
6680 | return NULL; | |
6681 | if (_argo0) { | |
6682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
6685 | return NULL; | |
6686 | } | |
6687 | } | |
6688 | if (_obj2) | |
6689 | { | |
6690 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6691 | if (_arg2 == NULL) { | |
6692 | return NULL; | |
6693 | } | |
6694 | } | |
6695 | { | |
6696 | _arg1 = NPOINTS; | |
6697 | } | |
6698 | { | |
6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6700 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6701 | ||
6702 | wxPyEndAllowThreads(__tstate); | |
6703 | if (PyErr_Occurred()) return NULL; | |
6704 | } Py_INCREF(Py_None); | |
6705 | _resultobj = Py_None; | |
6706 | { | |
6707 | delete [] _arg2; | |
6708 | } | |
6709 | return _resultobj; | |
6710 | } | |
6711 | ||
6712 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
6713 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject * _resultobj; | |
6715 | wxDC * _arg0; | |
6716 | long _arg1; | |
6717 | long _arg2; | |
6718 | PyObject * _argo0 = 0; | |
6719 | char *_kwnames[] = { "self","x","y", NULL }; | |
6720 | ||
6721 | self = self; | |
6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6723 | return NULL; | |
6724 | if (_argo0) { | |
6725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
6728 | return NULL; | |
6729 | } | |
6730 | } | |
6731 | { | |
6732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6733 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
6734 | ||
6735 | wxPyEndAllowThreads(__tstate); | |
6736 | if (PyErr_Occurred()) return NULL; | |
6737 | } Py_INCREF(Py_None); | |
6738 | _resultobj = Py_None; | |
6739 | return _resultobj; | |
6740 | } | |
6741 | ||
6742 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6743 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject * _resultobj; | |
6745 | wxDC * _arg0; | |
6746 | long _arg1; | |
6747 | long _arg2; | |
6748 | long _arg3; | |
6749 | long _arg4; | |
6750 | PyObject * _argo0 = 0; | |
6751 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
6752 | ||
6753 | self = self; | |
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6755 | return NULL; | |
6756 | if (_argo0) { | |
6757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
6760 | return NULL; | |
6761 | } | |
6762 | } | |
6763 | { | |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) return NULL; | |
6769 | } Py_INCREF(Py_None); | |
6770 | _resultobj = Py_None; | |
6771 | return _resultobj; | |
6772 | } | |
6773 | ||
6774 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6775 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject * _resultobj; | |
6777 | wxDC * _arg0; | |
6778 | wxString * _arg1; | |
6779 | wxCoord _arg2; | |
6780 | wxCoord _arg3; | |
6781 | double _arg4; | |
6782 | PyObject * _argo0 = 0; | |
6783 | PyObject * _obj1 = 0; | |
6784 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6785 | ||
6786 | self = self; | |
6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6788 | return NULL; | |
6789 | if (_argo0) { | |
6790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6793 | return NULL; | |
6794 | } | |
6795 | } | |
6796 | { | |
6797 | _arg1 = wxString_in_helper(_obj1); | |
6798 | if (_arg1 == NULL) | |
6799 | return NULL; | |
6800 | } | |
6801 | { | |
6802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6803 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
6804 | ||
6805 | wxPyEndAllowThreads(__tstate); | |
6806 | if (PyErr_Occurred()) return NULL; | |
6807 | } Py_INCREF(Py_None); | |
6808 | _resultobj = Py_None; | |
6809 | { | |
6810 | if (_obj1) | |
6811 | delete _arg1; | |
6812 | } | |
6813 | return _resultobj; | |
6814 | } | |
6815 | ||
6816 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6817 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6818 | PyObject * _resultobj; | |
6819 | wxDC * _arg0; | |
6820 | long _arg1; | |
6821 | long _arg2; | |
6822 | long _arg3; | |
6823 | long _arg4; | |
6824 | long _arg5 = (long ) 20; | |
6825 | PyObject * _argo0 = 0; | |
6826 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; | |
6827 | ||
6828 | self = self; | |
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
6830 | return NULL; | |
6831 | if (_argo0) { | |
6832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
6835 | return NULL; | |
6836 | } | |
6837 | } | |
6838 | { | |
6839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6840 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6841 | ||
6842 | wxPyEndAllowThreads(__tstate); | |
6843 | if (PyErr_Occurred()) return NULL; | |
6844 | } Py_INCREF(Py_None); | |
6845 | _resultobj = Py_None; | |
6846 | return _resultobj; | |
6847 | } | |
6848 | ||
6849 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
6850 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6851 | PyObject * _resultobj; | |
6852 | wxDC * _arg0; | |
6853 | int _arg1; | |
6854 | wxPoint * _arg2; | |
6855 | PyObject * _argo0 = 0; | |
6856 | int NPOINTS; | |
6857 | PyObject * _obj2 = 0; | |
6858 | char *_kwnames[] = { "self","points", NULL }; | |
6859 | ||
6860 | self = self; | |
6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) | |
6862 | return NULL; | |
6863 | if (_argo0) { | |
6864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
6867 | return NULL; | |
6868 | } | |
6869 | } | |
6870 | if (_obj2) | |
6871 | { | |
6872 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6873 | if (_arg2 == NULL) { | |
6874 | return NULL; | |
6875 | } | |
6876 | } | |
6877 | { | |
6878 | _arg1 = NPOINTS; | |
6879 | } | |
6880 | { | |
6881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6882 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
6883 | ||
6884 | wxPyEndAllowThreads(__tstate); | |
6885 | if (PyErr_Occurred()) return NULL; | |
6886 | } Py_INCREF(Py_None); | |
6887 | _resultobj = Py_None; | |
6888 | { | |
6889 | delete [] _arg2; | |
6890 | } | |
6891 | return _resultobj; | |
6892 | } | |
6893 | ||
6894 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
6895 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6896 | PyObject * _resultobj; | |
6897 | wxDC * _arg0; | |
6898 | wxString * _arg1; | |
6899 | long _arg2; | |
6900 | long _arg3; | |
6901 | PyObject * _argo0 = 0; | |
6902 | PyObject * _obj1 = 0; | |
6903 | char *_kwnames[] = { "self","text","x","y", NULL }; | |
6904 | ||
6905 | self = self; | |
6906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
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_DrawText. Expected _wxDC_p."); | |
6912 | return NULL; | |
6913 | } | |
6914 | } | |
6915 | { | |
6916 | _arg1 = wxString_in_helper(_obj1); | |
6917 | if (_arg1 == NULL) | |
6918 | return NULL; | |
6919 | } | |
6920 | { | |
6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6922 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
6923 | ||
6924 | wxPyEndAllowThreads(__tstate); | |
6925 | if (PyErr_Occurred()) return NULL; | |
6926 | } Py_INCREF(Py_None); | |
6927 | _resultobj = Py_None; | |
6928 | { | |
6929 | if (_obj1) | |
6930 | delete _arg1; | |
6931 | } | |
6932 | return _resultobj; | |
6933 | } | |
6934 | ||
6935 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
6936 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6937 | PyObject * _resultobj; | |
6938 | wxDC * _arg0; | |
6939 | PyObject * _argo0 = 0; | |
6940 | char *_kwnames[] = { "self", NULL }; | |
6941 | ||
6942 | self = self; | |
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) | |
6944 | return NULL; | |
6945 | if (_argo0) { | |
6946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
6949 | return NULL; | |
6950 | } | |
6951 | } | |
6952 | { | |
6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6954 | wxDC_EndDoc(_arg0); | |
6955 | ||
6956 | wxPyEndAllowThreads(__tstate); | |
6957 | if (PyErr_Occurred()) return NULL; | |
6958 | } Py_INCREF(Py_None); | |
6959 | _resultobj = Py_None; | |
6960 | return _resultobj; | |
6961 | } | |
6962 | ||
6963 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
6964 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject * _resultobj; | |
6966 | wxDC * _arg0; | |
6967 | PyObject * _argo0 = 0; | |
6968 | char *_kwnames[] = { "self", NULL }; | |
6969 | ||
6970 | self = self; | |
6971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) | |
6972 | return NULL; | |
6973 | if (_argo0) { | |
6974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
6977 | return NULL; | |
6978 | } | |
6979 | } | |
6980 | { | |
6981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6982 | wxDC_EndDrawing(_arg0); | |
6983 | ||
6984 | wxPyEndAllowThreads(__tstate); | |
6985 | if (PyErr_Occurred()) return NULL; | |
6986 | } Py_INCREF(Py_None); | |
6987 | _resultobj = Py_None; | |
6988 | return _resultobj; | |
6989 | } | |
6990 | ||
6991 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
6992 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6993 | PyObject * _resultobj; | |
6994 | wxDC * _arg0; | |
6995 | PyObject * _argo0 = 0; | |
6996 | char *_kwnames[] = { "self", NULL }; | |
6997 | ||
6998 | self = self; | |
6999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) | |
7000 | return NULL; | |
7001 | if (_argo0) { | |
7002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
7005 | return NULL; | |
7006 | } | |
7007 | } | |
7008 | { | |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | wxDC_EndPage(_arg0); | |
7011 | ||
7012 | wxPyEndAllowThreads(__tstate); | |
7013 | if (PyErr_Occurred()) return NULL; | |
7014 | } Py_INCREF(Py_None); | |
7015 | _resultobj = Py_None; | |
7016 | return _resultobj; | |
7017 | } | |
7018 | ||
7019 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7020 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject * _resultobj; | |
7022 | wxDC * _arg0; | |
7023 | long _arg1; | |
7024 | long _arg2; | |
7025 | wxColour * _arg3; | |
7026 | int _arg4 = (int ) wxFLOOD_SURFACE; | |
7027 | PyObject * _argo0 = 0; | |
7028 | wxColour temp; | |
7029 | PyObject * _obj3 = 0; | |
7030 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; | |
7031 | ||
7032 | self = self; | |
7033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
7034 | return NULL; | |
7035 | if (_argo0) { | |
7036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
7039 | return NULL; | |
7040 | } | |
7041 | } | |
7042 | { | |
7043 | _arg3 = &temp; | |
7044 | if (! wxColour_helper(_obj3, &_arg3)) | |
7045 | return NULL; | |
7046 | } | |
7047 | { | |
7048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7049 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
7050 | ||
7051 | wxPyEndAllowThreads(__tstate); | |
7052 | if (PyErr_Occurred()) return NULL; | |
7053 | } Py_INCREF(Py_None); | |
7054 | _resultobj = Py_None; | |
7055 | return _resultobj; | |
7056 | } | |
7057 | ||
7058 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
7059 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7060 | PyObject * _resultobj; | |
7061 | wxBrush * _result; | |
7062 | wxDC * _arg0; | |
7063 | PyObject * _argo0 = 0; | |
7064 | char *_kwnames[] = { "self", NULL }; | |
7065 | char _ptemp[128]; | |
7066 | ||
7067 | self = self; | |
7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) | |
7069 | return NULL; | |
7070 | if (_argo0) { | |
7071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
7074 | return NULL; | |
7075 | } | |
7076 | } | |
7077 | { | |
7078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7079 | _result = new wxBrush (wxDC_GetBackground(_arg0)); | |
7080 | ||
7081 | wxPyEndAllowThreads(__tstate); | |
7082 | if (PyErr_Occurred()) return NULL; | |
7083 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); | |
7084 | _resultobj = Py_BuildValue("s",_ptemp); | |
7085 | return _resultobj; | |
7086 | } | |
7087 | ||
7088 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
7089 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject * _resultobj; | |
7091 | wxBrush * _result; | |
7092 | wxDC * _arg0; | |
7093 | PyObject * _argo0 = 0; | |
7094 | char *_kwnames[] = { "self", NULL }; | |
7095 | char _ptemp[128]; | |
7096 | ||
7097 | self = self; | |
7098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) | |
7099 | return NULL; | |
7100 | if (_argo0) { | |
7101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
7104 | return NULL; | |
7105 | } | |
7106 | } | |
7107 | { | |
7108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7109 | _result = new wxBrush (wxDC_GetBrush(_arg0)); | |
7110 | ||
7111 | wxPyEndAllowThreads(__tstate); | |
7112 | if (PyErr_Occurred()) return NULL; | |
7113 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); | |
7114 | _resultobj = Py_BuildValue("s",_ptemp); | |
7115 | return _resultobj; | |
7116 | } | |
7117 | ||
7118 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
7119 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7120 | PyObject * _resultobj; | |
7121 | long _result; | |
7122 | wxDC * _arg0; | |
7123 | PyObject * _argo0 = 0; | |
7124 | char *_kwnames[] = { "self", NULL }; | |
7125 | ||
7126 | self = self; | |
7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) | |
7128 | return NULL; | |
7129 | if (_argo0) { | |
7130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
7133 | return NULL; | |
7134 | } | |
7135 | } | |
7136 | { | |
7137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7138 | _result = (long )wxDC_GetCharHeight(_arg0); | |
7139 | ||
7140 | wxPyEndAllowThreads(__tstate); | |
7141 | if (PyErr_Occurred()) return NULL; | |
7142 | } _resultobj = Py_BuildValue("l",_result); | |
7143 | return _resultobj; | |
7144 | } | |
7145 | ||
7146 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
7147 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7148 | PyObject * _resultobj; | |
7149 | long _result; | |
7150 | wxDC * _arg0; | |
7151 | PyObject * _argo0 = 0; | |
7152 | char *_kwnames[] = { "self", NULL }; | |
7153 | ||
7154 | self = self; | |
7155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) | |
7156 | return NULL; | |
7157 | if (_argo0) { | |
7158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
7161 | return NULL; | |
7162 | } | |
7163 | } | |
7164 | { | |
7165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7166 | _result = (long )wxDC_GetCharWidth(_arg0); | |
7167 | ||
7168 | wxPyEndAllowThreads(__tstate); | |
7169 | if (PyErr_Occurred()) return NULL; | |
7170 | } _resultobj = Py_BuildValue("l",_result); | |
7171 | return _resultobj; | |
7172 | } | |
7173 | ||
7174 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7175 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7176 | PyObject * _resultobj; | |
7177 | wxDC * _arg0; | |
7178 | long * _arg1; | |
7179 | long temp; | |
7180 | long * _arg2; | |
7181 | long temp0; | |
7182 | long * _arg3; | |
7183 | long temp1; | |
7184 | long * _arg4; | |
7185 | long temp2; | |
7186 | PyObject * _argo0 = 0; | |
7187 | char *_kwnames[] = { "self", NULL }; | |
7188 | ||
7189 | self = self; | |
7190 | { | |
7191 | _arg1 = &temp; | |
7192 | } | |
7193 | { | |
7194 | _arg2 = &temp0; | |
7195 | } | |
7196 | { | |
7197 | _arg3 = &temp1; | |
7198 | } | |
7199 | { | |
7200 | _arg4 = &temp2; | |
7201 | } | |
7202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) | |
7203 | return NULL; | |
7204 | if (_argo0) { | |
7205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
7208 | return NULL; | |
7209 | } | |
7210 | } | |
7211 | { | |
7212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7213 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7214 | ||
7215 | wxPyEndAllowThreads(__tstate); | |
7216 | if (PyErr_Occurred()) return NULL; | |
7217 | } Py_INCREF(Py_None); | |
7218 | _resultobj = Py_None; | |
7219 | { | |
7220 | PyObject *o; | |
7221 | o = PyInt_FromLong((long) (*_arg1)); | |
7222 | _resultobj = t_output_helper(_resultobj, o); | |
7223 | } | |
7224 | { | |
7225 | PyObject *o; | |
7226 | o = PyInt_FromLong((long) (*_arg2)); | |
7227 | _resultobj = t_output_helper(_resultobj, o); | |
7228 | } | |
7229 | { | |
7230 | PyObject *o; | |
7231 | o = PyInt_FromLong((long) (*_arg3)); | |
7232 | _resultobj = t_output_helper(_resultobj, o); | |
7233 | } | |
7234 | { | |
7235 | PyObject *o; | |
7236 | o = PyInt_FromLong((long) (*_arg4)); | |
7237 | _resultobj = t_output_helper(_resultobj, o); | |
7238 | } | |
7239 | return _resultobj; | |
7240 | } | |
7241 | ||
7242 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
7243 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject * _resultobj; | |
7245 | wxFont * _result; | |
7246 | wxDC * _arg0; | |
7247 | PyObject * _argo0 = 0; | |
7248 | char *_kwnames[] = { "self", NULL }; | |
7249 | char _ptemp[128]; | |
7250 | ||
7251 | self = self; | |
7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) | |
7253 | return NULL; | |
7254 | if (_argo0) { | |
7255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
7258 | return NULL; | |
7259 | } | |
7260 | } | |
7261 | { | |
7262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7263 | _result = new wxFont (wxDC_GetFont(_arg0)); | |
7264 | ||
7265 | wxPyEndAllowThreads(__tstate); | |
7266 | if (PyErr_Occurred()) return NULL; | |
7267 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
7268 | _resultobj = Py_BuildValue("s",_ptemp); | |
7269 | return _resultobj; | |
7270 | } | |
7271 | ||
7272 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
7273 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7274 | PyObject * _resultobj; | |
7275 | int _result; | |
7276 | wxDC * _arg0; | |
7277 | PyObject * _argo0 = 0; | |
7278 | char *_kwnames[] = { "self", NULL }; | |
7279 | ||
7280 | self = self; | |
7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) | |
7282 | return NULL; | |
7283 | if (_argo0) { | |
7284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
7287 | return NULL; | |
7288 | } | |
7289 | } | |
7290 | { | |
7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7292 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
7293 | ||
7294 | wxPyEndAllowThreads(__tstate); | |
7295 | if (PyErr_Occurred()) return NULL; | |
7296 | } _resultobj = Py_BuildValue("i",_result); | |
7297 | return _resultobj; | |
7298 | } | |
7299 | ||
7300 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) | |
7301 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7302 | PyObject * _resultobj; | |
7303 | wxDC * _arg0; | |
7304 | double * _arg1; | |
7305 | double temp; | |
7306 | double * _arg2; | |
7307 | double temp0; | |
7308 | PyObject * _argo0 = 0; | |
7309 | char *_kwnames[] = { "self", NULL }; | |
7310 | ||
7311 | self = self; | |
7312 | { | |
7313 | _arg1 = &temp; | |
7314 | } | |
7315 | { | |
7316 | _arg2 = &temp0; | |
7317 | } | |
7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
7319 | return NULL; | |
7320 | if (_argo0) { | |
7321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
7324 | return NULL; | |
7325 | } | |
7326 | } | |
7327 | { | |
7328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7329 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
7330 | ||
7331 | wxPyEndAllowThreads(__tstate); | |
7332 | if (PyErr_Occurred()) return NULL; | |
7333 | } Py_INCREF(Py_None); | |
7334 | _resultobj = Py_None; | |
7335 | { | |
7336 | PyObject *o; | |
7337 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7338 | _resultobj = t_output_helper(_resultobj, o); | |
7339 | } | |
7340 | { | |
7341 | PyObject *o; | |
7342 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7343 | _resultobj = t_output_helper(_resultobj, o); | |
7344 | } | |
7345 | return _resultobj; | |
7346 | } | |
7347 | ||
7348 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
7349 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7350 | PyObject * _resultobj; | |
7351 | int _result; | |
7352 | wxDC * _arg0; | |
7353 | PyObject * _argo0 = 0; | |
7354 | char *_kwnames[] = { "self", NULL }; | |
7355 | ||
7356 | self = self; | |
7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) | |
7358 | return NULL; | |
7359 | if (_argo0) { | |
7360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
7363 | return NULL; | |
7364 | } | |
7365 | } | |
7366 | { | |
7367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7368 | _result = (int )wxDC_GetMapMode(_arg0); | |
7369 | ||
7370 | wxPyEndAllowThreads(__tstate); | |
7371 | if (PyErr_Occurred()) return NULL; | |
7372 | } _resultobj = Py_BuildValue("i",_result); | |
7373 | return _resultobj; | |
7374 | } | |
7375 | ||
7376 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
7377 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7378 | PyObject * _resultobj; | |
7379 | bool _result; | |
7380 | wxDC * _arg0; | |
7381 | PyObject * _argo0 = 0; | |
7382 | char *_kwnames[] = { "self", NULL }; | |
7383 | ||
7384 | self = self; | |
7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) | |
7386 | return NULL; | |
7387 | if (_argo0) { | |
7388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
7391 | return NULL; | |
7392 | } | |
7393 | } | |
7394 | { | |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | _result = (bool )wxDC_GetOptimization(_arg0); | |
7397 | ||
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) return NULL; | |
7400 | } _resultobj = Py_BuildValue("i",_result); | |
7401 | return _resultobj; | |
7402 | } | |
7403 | ||
7404 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
7405 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7406 | PyObject * _resultobj; | |
7407 | wxPen * _result; | |
7408 | wxDC * _arg0; | |
7409 | PyObject * _argo0 = 0; | |
7410 | char *_kwnames[] = { "self", NULL }; | |
7411 | char _ptemp[128]; | |
7412 | ||
7413 | self = self; | |
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) | |
7415 | return NULL; | |
7416 | if (_argo0) { | |
7417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
7420 | return NULL; | |
7421 | } | |
7422 | } | |
7423 | { | |
7424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7425 | _result = new wxPen (wxDC_GetPen(_arg0)); | |
7426 | ||
7427 | wxPyEndAllowThreads(__tstate); | |
7428 | if (PyErr_Occurred()) return NULL; | |
7429 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); | |
7430 | _resultobj = Py_BuildValue("s",_ptemp); | |
7431 | return _resultobj; | |
7432 | } | |
7433 | ||
7434 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
7435 | wxColour* wc = new wxColour(); | |
7436 | self->GetPixel(x, y, wc); | |
7437 | return wc; | |
7438 | } | |
7439 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7440 | PyObject * _resultobj; | |
7441 | wxColour * _result; | |
7442 | wxDC * _arg0; | |
7443 | long _arg1; | |
7444 | long _arg2; | |
7445 | PyObject * _argo0 = 0; | |
7446 | char *_kwnames[] = { "self","x","y", NULL }; | |
7447 | char _ptemp[128]; | |
7448 | ||
7449 | self = self; | |
7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7451 | return NULL; | |
7452 | if (_argo0) { | |
7453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
7456 | return NULL; | |
7457 | } | |
7458 | } | |
7459 | { | |
7460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7461 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
7462 | ||
7463 | wxPyEndAllowThreads(__tstate); | |
7464 | if (PyErr_Occurred()) return NULL; | |
7465 | } if (_result) { | |
7466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7467 | _resultobj = Py_BuildValue("s",_ptemp); | |
7468 | } else { | |
7469 | Py_INCREF(Py_None); | |
7470 | _resultobj = Py_None; | |
7471 | } | |
7472 | return _resultobj; | |
7473 | } | |
7474 | ||
7475 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
7476 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7477 | PyObject * _resultobj; | |
7478 | wxDC * _arg0; | |
7479 | int * _arg1; | |
7480 | int temp; | |
7481 | int * _arg2; | |
7482 | int temp0; | |
7483 | PyObject * _argo0 = 0; | |
7484 | char *_kwnames[] = { "self", NULL }; | |
7485 | ||
7486 | self = self; | |
7487 | { | |
7488 | _arg1 = &temp; | |
7489 | } | |
7490 | { | |
7491 | _arg2 = &temp0; | |
7492 | } | |
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) | |
7494 | return NULL; | |
7495 | if (_argo0) { | |
7496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); | |
7499 | return NULL; | |
7500 | } | |
7501 | } | |
7502 | { | |
7503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7504 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); | |
7505 | ||
7506 | wxPyEndAllowThreads(__tstate); | |
7507 | if (PyErr_Occurred()) return NULL; | |
7508 | } Py_INCREF(Py_None); | |
7509 | _resultobj = Py_None; | |
7510 | { | |
7511 | PyObject *o; | |
7512 | o = PyInt_FromLong((long) (*_arg1)); | |
7513 | _resultobj = t_output_helper(_resultobj, o); | |
7514 | } | |
7515 | { | |
7516 | PyObject *o; | |
7517 | o = PyInt_FromLong((long) (*_arg2)); | |
7518 | _resultobj = t_output_helper(_resultobj, o); | |
7519 | } | |
7520 | return _resultobj; | |
7521 | } | |
7522 | ||
7523 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) | |
7524 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7525 | PyObject * _resultobj; | |
7526 | wxSize * _result; | |
7527 | wxDC * _arg0; | |
7528 | PyObject * _argo0 = 0; | |
7529 | char *_kwnames[] = { "self", NULL }; | |
7530 | char _ptemp[128]; | |
7531 | ||
7532 | self = self; | |
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) | |
7534 | return NULL; | |
7535 | if (_argo0) { | |
7536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); | |
7539 | return NULL; | |
7540 | } | |
7541 | } | |
7542 | { | |
7543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7544 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
7545 | ||
7546 | wxPyEndAllowThreads(__tstate); | |
7547 | if (PyErr_Occurred()) return NULL; | |
7548 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7549 | _resultobj = Py_BuildValue("s",_ptemp); | |
7550 | return _resultobj; | |
7551 | } | |
7552 | ||
7553 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) | |
7554 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7555 | PyObject * _resultobj; | |
7556 | wxSize * _result; | |
7557 | wxDC * _arg0; | |
7558 | PyObject * _argo0 = 0; | |
7559 | char *_kwnames[] = { "self", NULL }; | |
7560 | char _ptemp[128]; | |
7561 | ||
7562 | self = self; | |
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7564 | return NULL; | |
7565 | if (_argo0) { | |
7566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7569 | return NULL; | |
7570 | } | |
7571 | } | |
7572 | { | |
7573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7574 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
7575 | ||
7576 | wxPyEndAllowThreads(__tstate); | |
7577 | if (PyErr_Occurred()) return NULL; | |
7578 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7579 | _resultobj = Py_BuildValue("s",_ptemp); | |
7580 | return _resultobj; | |
7581 | } | |
7582 | ||
7583 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
7584 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject * _resultobj; | |
7586 | wxColour * _result; | |
7587 | wxDC * _arg0; | |
7588 | PyObject * _argo0 = 0; | |
7589 | char *_kwnames[] = { "self", NULL }; | |
7590 | char _ptemp[128]; | |
7591 | ||
7592 | self = self; | |
7593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) | |
7594 | return NULL; | |
7595 | if (_argo0) { | |
7596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
7599 | return NULL; | |
7600 | } | |
7601 | } | |
7602 | { | |
7603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7604 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); | |
7605 | ||
7606 | wxPyEndAllowThreads(__tstate); | |
7607 | if (PyErr_Occurred()) return NULL; | |
7608 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7609 | _resultobj = Py_BuildValue("s",_ptemp); | |
7610 | return _resultobj; | |
7611 | } | |
7612 | ||
7613 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
7614 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7615 | PyObject * _resultobj; | |
7616 | wxDC * _arg0; | |
7617 | wxString * _arg1; | |
7618 | long * _arg2; | |
7619 | long temp; | |
7620 | long * _arg3; | |
7621 | long temp0; | |
7622 | PyObject * _argo0 = 0; | |
7623 | PyObject * _obj1 = 0; | |
7624 | char *_kwnames[] = { "self","string", NULL }; | |
7625 | ||
7626 | self = self; | |
7627 | { | |
7628 | _arg2 = &temp; | |
7629 | } | |
7630 | { | |
7631 | _arg3 = &temp0; | |
7632 | } | |
7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
7634 | return NULL; | |
7635 | if (_argo0) { | |
7636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); | |
7639 | return NULL; | |
7640 | } | |
7641 | } | |
7642 | { | |
7643 | _arg1 = wxString_in_helper(_obj1); | |
7644 | if (_arg1 == NULL) | |
7645 | return NULL; | |
7646 | } | |
7647 | { | |
7648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7649 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
7650 | ||
7651 | wxPyEndAllowThreads(__tstate); | |
7652 | if (PyErr_Occurred()) return NULL; | |
7653 | } Py_INCREF(Py_None); | |
7654 | _resultobj = Py_None; | |
7655 | { | |
7656 | PyObject *o; | |
7657 | o = PyInt_FromLong((long) (*_arg2)); | |
7658 | _resultobj = t_output_helper(_resultobj, o); | |
7659 | } | |
7660 | { | |
7661 | PyObject *o; | |
7662 | o = PyInt_FromLong((long) (*_arg3)); | |
7663 | _resultobj = t_output_helper(_resultobj, o); | |
7664 | } | |
7665 | { | |
7666 | if (_obj1) | |
7667 | delete _arg1; | |
7668 | } | |
7669 | return _resultobj; | |
7670 | } | |
7671 | ||
7672 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7673 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7674 | PyObject * _resultobj; | |
7675 | wxDC * _arg0; | |
7676 | wxString * _arg1; | |
7677 | long * _arg2; | |
7678 | long temp; | |
7679 | long * _arg3; | |
7680 | long temp0; | |
7681 | long * _arg4; | |
7682 | long temp1; | |
7683 | long * _arg5; | |
7684 | long temp2; | |
7685 | wxFont * _arg6 = (wxFont *) NULL; | |
7686 | PyObject * _argo0 = 0; | |
7687 | PyObject * _obj1 = 0; | |
7688 | PyObject * _argo6 = 0; | |
7689 | char *_kwnames[] = { "self","string","font", NULL }; | |
7690 | ||
7691 | self = self; | |
7692 | { | |
7693 | _arg2 = &temp; | |
7694 | } | |
7695 | { | |
7696 | _arg3 = &temp0; | |
7697 | } | |
7698 | { | |
7699 | _arg4 = &temp1; | |
7700 | } | |
7701 | { | |
7702 | _arg5 = &temp2; | |
7703 | } | |
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
7705 | return NULL; | |
7706 | if (_argo0) { | |
7707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); | |
7710 | return NULL; | |
7711 | } | |
7712 | } | |
7713 | { | |
7714 | _arg1 = wxString_in_helper(_obj1); | |
7715 | if (_arg1 == NULL) | |
7716 | return NULL; | |
7717 | } | |
7718 | if (_argo6) { | |
7719 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7720 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
7721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); | |
7722 | return NULL; | |
7723 | } | |
7724 | } | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7728 | ||
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) return NULL; | |
7731 | } Py_INCREF(Py_None); | |
7732 | _resultobj = Py_None; | |
7733 | { | |
7734 | PyObject *o; | |
7735 | o = PyInt_FromLong((long) (*_arg2)); | |
7736 | _resultobj = t_output_helper(_resultobj, o); | |
7737 | } | |
7738 | { | |
7739 | PyObject *o; | |
7740 | o = PyInt_FromLong((long) (*_arg3)); | |
7741 | _resultobj = t_output_helper(_resultobj, o); | |
7742 | } | |
7743 | { | |
7744 | PyObject *o; | |
7745 | o = PyInt_FromLong((long) (*_arg4)); | |
7746 | _resultobj = t_output_helper(_resultobj, o); | |
7747 | } | |
7748 | { | |
7749 | PyObject *o; | |
7750 | o = PyInt_FromLong((long) (*_arg5)); | |
7751 | _resultobj = t_output_helper(_resultobj, o); | |
7752 | } | |
7753 | { | |
7754 | if (_obj1) | |
7755 | delete _arg1; | |
7756 | } | |
7757 | return _resultobj; | |
7758 | } | |
7759 | ||
7760 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
7761 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7762 | PyObject * _resultobj; | |
7763 | wxColour * _result; | |
7764 | wxDC * _arg0; | |
7765 | PyObject * _argo0 = 0; | |
7766 | char *_kwnames[] = { "self", NULL }; | |
7767 | char _ptemp[128]; | |
7768 | ||
7769 | self = self; | |
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
7771 | return NULL; | |
7772 | if (_argo0) { | |
7773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
7776 | return NULL; | |
7777 | } | |
7778 | } | |
7779 | { | |
7780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7781 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); | |
7782 | ||
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) return NULL; | |
7785 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7786 | _resultobj = Py_BuildValue("s",_ptemp); | |
7787 | return _resultobj; | |
7788 | } | |
7789 | ||
7790 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
7791 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7792 | PyObject * _resultobj; | |
7793 | wxDC * _arg0; | |
7794 | double * _arg1; | |
7795 | double temp; | |
7796 | double * _arg2; | |
7797 | double temp0; | |
7798 | PyObject * _argo0 = 0; | |
7799 | char *_kwnames[] = { "self", NULL }; | |
7800 | ||
7801 | self = self; | |
7802 | { | |
7803 | _arg1 = &temp; | |
7804 | } | |
7805 | { | |
7806 | _arg2 = &temp0; | |
7807 | } | |
7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
7809 | return NULL; | |
7810 | if (_argo0) { | |
7811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
7814 | return NULL; | |
7815 | } | |
7816 | } | |
7817 | { | |
7818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7819 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
7820 | ||
7821 | wxPyEndAllowThreads(__tstate); | |
7822 | if (PyErr_Occurred()) return NULL; | |
7823 | } Py_INCREF(Py_None); | |
7824 | _resultobj = Py_None; | |
7825 | { | |
7826 | PyObject *o; | |
7827 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7828 | _resultobj = t_output_helper(_resultobj, o); | |
7829 | } | |
7830 | { | |
7831 | PyObject *o; | |
7832 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7833 | _resultobj = t_output_helper(_resultobj, o); | |
7834 | } | |
7835 | return _resultobj; | |
7836 | } | |
7837 | ||
7838 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
7839 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7840 | PyObject * _resultobj; | |
7841 | long _result; | |
7842 | wxDC * _arg0; | |
7843 | long _arg1; | |
7844 | PyObject * _argo0 = 0; | |
7845 | char *_kwnames[] = { "self","x", NULL }; | |
7846 | ||
7847 | self = self; | |
7848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) | |
7849 | return NULL; | |
7850 | if (_argo0) { | |
7851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
7854 | return NULL; | |
7855 | } | |
7856 | } | |
7857 | { | |
7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7859 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
7860 | ||
7861 | wxPyEndAllowThreads(__tstate); | |
7862 | if (PyErr_Occurred()) return NULL; | |
7863 | } _resultobj = Py_BuildValue("l",_result); | |
7864 | return _resultobj; | |
7865 | } | |
7866 | ||
7867 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
7868 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7869 | PyObject * _resultobj; | |
7870 | long _result; | |
7871 | wxDC * _arg0; | |
7872 | long _arg1; | |
7873 | PyObject * _argo0 = 0; | |
7874 | char *_kwnames[] = { "self","x", NULL }; | |
7875 | ||
7876 | self = self; | |
7877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) | |
7878 | return NULL; | |
7879 | if (_argo0) { | |
7880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
7883 | return NULL; | |
7884 | } | |
7885 | } | |
7886 | { | |
7887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7888 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
7889 | ||
7890 | wxPyEndAllowThreads(__tstate); | |
7891 | if (PyErr_Occurred()) return NULL; | |
7892 | } _resultobj = Py_BuildValue("l",_result); | |
7893 | return _resultobj; | |
7894 | } | |
7895 | ||
7896 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
7897 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject * _resultobj; | |
7899 | long _result; | |
7900 | wxDC * _arg0; | |
7901 | long _arg1; | |
7902 | PyObject * _argo0 = 0; | |
7903 | char *_kwnames[] = { "self","y", NULL }; | |
7904 | ||
7905 | self = self; | |
7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) | |
7907 | return NULL; | |
7908 | if (_argo0) { | |
7909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); | |
7912 | return NULL; | |
7913 | } | |
7914 | } | |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) return NULL; | |
7921 | } _resultobj = Py_BuildValue("l",_result); | |
7922 | return _resultobj; | |
7923 | } | |
7924 | ||
7925 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
7926 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7927 | PyObject * _resultobj; | |
7928 | long _result; | |
7929 | wxDC * _arg0; | |
7930 | long _arg1; | |
7931 | PyObject * _argo0 = 0; | |
7932 | char *_kwnames[] = { "self","y", NULL }; | |
7933 | ||
7934 | self = self; | |
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) | |
7936 | return NULL; | |
7937 | if (_argo0) { | |
7938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
7941 | return NULL; | |
7942 | } | |
7943 | } | |
7944 | { | |
7945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7946 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
7947 | ||
7948 | wxPyEndAllowThreads(__tstate); | |
7949 | if (PyErr_Occurred()) return NULL; | |
7950 | } _resultobj = Py_BuildValue("l",_result); | |
7951 | return _resultobj; | |
7952 | } | |
7953 | ||
7954 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
7955 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7956 | PyObject * _resultobj; | |
7957 | long _result; | |
7958 | wxDC * _arg0; | |
7959 | PyObject * _argo0 = 0; | |
7960 | char *_kwnames[] = { "self", NULL }; | |
7961 | ||
7962 | self = self; | |
7963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) | |
7964 | return NULL; | |
7965 | if (_argo0) { | |
7966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
7969 | return NULL; | |
7970 | } | |
7971 | } | |
7972 | { | |
7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7974 | _result = (long )wxDC_MaxX(_arg0); | |
7975 | ||
7976 | wxPyEndAllowThreads(__tstate); | |
7977 | if (PyErr_Occurred()) return NULL; | |
7978 | } _resultobj = Py_BuildValue("l",_result); | |
7979 | return _resultobj; | |
7980 | } | |
7981 | ||
7982 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
7983 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7984 | PyObject * _resultobj; | |
7985 | long _result; | |
7986 | wxDC * _arg0; | |
7987 | PyObject * _argo0 = 0; | |
7988 | char *_kwnames[] = { "self", NULL }; | |
7989 | ||
7990 | self = self; | |
7991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) | |
7992 | return NULL; | |
7993 | if (_argo0) { | |
7994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
7997 | return NULL; | |
7998 | } | |
7999 | } | |
8000 | { | |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | _result = (long )wxDC_MaxY(_arg0); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) return NULL; | |
8006 | } _resultobj = Py_BuildValue("l",_result); | |
8007 | return _resultobj; | |
8008 | } | |
8009 | ||
8010 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
8011 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8012 | PyObject * _resultobj; | |
8013 | long _result; | |
8014 | wxDC * _arg0; | |
8015 | PyObject * _argo0 = 0; | |
8016 | char *_kwnames[] = { "self", NULL }; | |
8017 | ||
8018 | self = self; | |
8019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) | |
8020 | return NULL; | |
8021 | if (_argo0) { | |
8022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
8025 | return NULL; | |
8026 | } | |
8027 | } | |
8028 | { | |
8029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8030 | _result = (long )wxDC_MinX(_arg0); | |
8031 | ||
8032 | wxPyEndAllowThreads(__tstate); | |
8033 | if (PyErr_Occurred()) return NULL; | |
8034 | } _resultobj = Py_BuildValue("l",_result); | |
8035 | return _resultobj; | |
8036 | } | |
8037 | ||
8038 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
8039 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8040 | PyObject * _resultobj; | |
8041 | long _result; | |
8042 | wxDC * _arg0; | |
8043 | PyObject * _argo0 = 0; | |
8044 | char *_kwnames[] = { "self", NULL }; | |
8045 | ||
8046 | self = self; | |
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) | |
8048 | return NULL; | |
8049 | if (_argo0) { | |
8050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
8053 | return NULL; | |
8054 | } | |
8055 | } | |
8056 | { | |
8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8058 | _result = (long )wxDC_MinY(_arg0); | |
8059 | ||
8060 | wxPyEndAllowThreads(__tstate); | |
8061 | if (PyErr_Occurred()) return NULL; | |
8062 | } _resultobj = Py_BuildValue("l",_result); | |
8063 | return _resultobj; | |
8064 | } | |
8065 | ||
8066 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
8067 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject * _resultobj; | |
8069 | bool _result; | |
8070 | wxDC * _arg0; | |
8071 | PyObject * _argo0 = 0; | |
8072 | char *_kwnames[] = { "self", NULL }; | |
8073 | ||
8074 | self = self; | |
8075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) | |
8076 | return NULL; | |
8077 | if (_argo0) { | |
8078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
8081 | return NULL; | |
8082 | } | |
8083 | } | |
8084 | { | |
8085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8086 | _result = (bool )wxDC_Ok(_arg0); | |
8087 | ||
8088 | wxPyEndAllowThreads(__tstate); | |
8089 | if (PyErr_Occurred()) return NULL; | |
8090 | } _resultobj = Py_BuildValue("i",_result); | |
8091 | return _resultobj; | |
8092 | } | |
8093 | ||
8094 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
8095 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8096 | PyObject * _resultobj; | |
8097 | wxDC * _arg0; | |
8098 | long _arg1; | |
8099 | long _arg2; | |
8100 | PyObject * _argo0 = 0; | |
8101 | char *_kwnames[] = { "self","x","y", NULL }; | |
8102 | ||
8103 | self = self; | |
8104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8105 | return NULL; | |
8106 | if (_argo0) { | |
8107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
8110 | return NULL; | |
8111 | } | |
8112 | } | |
8113 | { | |
8114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8115 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
8116 | ||
8117 | wxPyEndAllowThreads(__tstate); | |
8118 | if (PyErr_Occurred()) return NULL; | |
8119 | } Py_INCREF(Py_None); | |
8120 | _resultobj = Py_None; | |
8121 | return _resultobj; | |
8122 | } | |
8123 | ||
8124 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
8125 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8126 | PyObject * _resultobj; | |
8127 | wxDC * _arg0; | |
8128 | wxBrush * _arg1; | |
8129 | PyObject * _argo0 = 0; | |
8130 | PyObject * _argo1 = 0; | |
8131 | char *_kwnames[] = { "self","brush", NULL }; | |
8132 | ||
8133 | self = self; | |
8134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) | |
8135 | return NULL; | |
8136 | if (_argo0) { | |
8137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
8140 | return NULL; | |
8141 | } | |
8142 | } | |
8143 | if (_argo1) { | |
8144 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8145 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
8147 | return NULL; | |
8148 | } | |
8149 | } | |
8150 | { | |
8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8152 | wxDC_SetBackground(_arg0,*_arg1); | |
8153 | ||
8154 | wxPyEndAllowThreads(__tstate); | |
8155 | if (PyErr_Occurred()) return NULL; | |
8156 | } Py_INCREF(Py_None); | |
8157 | _resultobj = Py_None; | |
8158 | return _resultobj; | |
8159 | } | |
8160 | ||
8161 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
8162 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8163 | PyObject * _resultobj; | |
8164 | wxDC * _arg0; | |
8165 | int _arg1; | |
8166 | PyObject * _argo0 = 0; | |
8167 | char *_kwnames[] = { "self","mode", NULL }; | |
8168 | ||
8169 | self = self; | |
8170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) | |
8171 | return NULL; | |
8172 | if (_argo0) { | |
8173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
8176 | return NULL; | |
8177 | } | |
8178 | } | |
8179 | { | |
8180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8181 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
8182 | ||
8183 | wxPyEndAllowThreads(__tstate); | |
8184 | if (PyErr_Occurred()) return NULL; | |
8185 | } Py_INCREF(Py_None); | |
8186 | _resultobj = Py_None; | |
8187 | return _resultobj; | |
8188 | } | |
8189 | ||
8190 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8191 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject * _resultobj; | |
8193 | wxDC * _arg0; | |
8194 | long _arg1; | |
8195 | long _arg2; | |
8196 | long _arg3; | |
8197 | long _arg4; | |
8198 | PyObject * _argo0 = 0; | |
8199 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
8200 | ||
8201 | self = self; | |
8202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
8203 | return NULL; | |
8204 | if (_argo0) { | |
8205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
8208 | return NULL; | |
8209 | } | |
8210 | } | |
8211 | { | |
8212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8213 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8214 | ||
8215 | wxPyEndAllowThreads(__tstate); | |
8216 | if (PyErr_Occurred()) return NULL; | |
8217 | } Py_INCREF(Py_None); | |
8218 | _resultobj = Py_None; | |
8219 | return _resultobj; | |
8220 | } | |
8221 | ||
8222 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) | |
8223 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8224 | PyObject * _resultobj; | |
8225 | wxDC * _arg0; | |
8226 | wxRegion * _arg1; | |
8227 | PyObject * _argo0 = 0; | |
8228 | PyObject * _argo1 = 0; | |
8229 | char *_kwnames[] = { "self","region", NULL }; | |
8230 | ||
8231 | self = self; | |
8232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
8233 | return NULL; | |
8234 | if (_argo0) { | |
8235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
8238 | return NULL; | |
8239 | } | |
8240 | } | |
8241 | if (_argo1) { | |
8242 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8243 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
8244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
8245 | return NULL; | |
8246 | } | |
8247 | } | |
8248 | { | |
8249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8250 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); | |
8251 | ||
8252 | wxPyEndAllowThreads(__tstate); | |
8253 | if (PyErr_Occurred()) return NULL; | |
8254 | } Py_INCREF(Py_None); | |
8255 | _resultobj = Py_None; | |
8256 | return _resultobj; | |
8257 | } | |
8258 | ||
8259 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
8260 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8261 | PyObject * _resultobj; | |
8262 | wxDC * _arg0; | |
8263 | wxPalette * _arg1; | |
8264 | PyObject * _argo0 = 0; | |
8265 | PyObject * _argo1 = 0; | |
8266 | char *_kwnames[] = { "self","colourMap", NULL }; | |
8267 | ||
8268 | self = self; | |
8269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) | |
8270 | return NULL; | |
8271 | if (_argo0) { | |
8272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
8275 | return NULL; | |
8276 | } | |
8277 | } | |
8278 | if (_argo1) { | |
8279 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8280 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
8282 | return NULL; | |
8283 | } | |
8284 | } | |
8285 | { | |
8286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8287 | wxDC_SetPalette(_arg0,*_arg1); | |
8288 | ||
8289 | wxPyEndAllowThreads(__tstate); | |
8290 | if (PyErr_Occurred()) return NULL; | |
8291 | } Py_INCREF(Py_None); | |
8292 | _resultobj = Py_None; | |
8293 | return _resultobj; | |
8294 | } | |
8295 | ||
8296 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
8297 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8298 | PyObject * _resultobj; | |
8299 | wxDC * _arg0; | |
8300 | wxBrush * _arg1; | |
8301 | PyObject * _argo0 = 0; | |
8302 | PyObject * _argo1 = 0; | |
8303 | char *_kwnames[] = { "self","brush", NULL }; | |
8304 | ||
8305 | self = self; | |
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) | |
8307 | return NULL; | |
8308 | if (_argo0) { | |
8309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
8312 | return NULL; | |
8313 | } | |
8314 | } | |
8315 | if (_argo1) { | |
8316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
8319 | return NULL; | |
8320 | } | |
8321 | } | |
8322 | { | |
8323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8324 | wxDC_SetBrush(_arg0,*_arg1); | |
8325 | ||
8326 | wxPyEndAllowThreads(__tstate); | |
8327 | if (PyErr_Occurred()) return NULL; | |
8328 | } Py_INCREF(Py_None); | |
8329 | _resultobj = Py_None; | |
8330 | return _resultobj; | |
8331 | } | |
8332 | ||
8333 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
8334 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8335 | PyObject * _resultobj; | |
8336 | wxDC * _arg0; | |
8337 | wxFont * _arg1; | |
8338 | PyObject * _argo0 = 0; | |
8339 | PyObject * _argo1 = 0; | |
8340 | char *_kwnames[] = { "self","font", NULL }; | |
8341 | ||
8342 | self = self; | |
8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) | |
8344 | return NULL; | |
8345 | if (_argo0) { | |
8346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
8349 | return NULL; | |
8350 | } | |
8351 | } | |
8352 | if (_argo1) { | |
8353 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8354 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
8356 | return NULL; | |
8357 | } | |
8358 | } | |
8359 | { | |
8360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8361 | wxDC_SetFont(_arg0,*_arg1); | |
8362 | ||
8363 | wxPyEndAllowThreads(__tstate); | |
8364 | if (PyErr_Occurred()) return NULL; | |
8365 | } Py_INCREF(Py_None); | |
8366 | _resultobj = Py_None; | |
8367 | return _resultobj; | |
8368 | } | |
8369 | ||
8370 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
8371 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8372 | PyObject * _resultobj; | |
8373 | wxDC * _arg0; | |
8374 | int _arg1; | |
8375 | PyObject * _argo0 = 0; | |
8376 | char *_kwnames[] = { "self","function", NULL }; | |
8377 | ||
8378 | self = self; | |
8379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) | |
8380 | return NULL; | |
8381 | if (_argo0) { | |
8382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
8385 | return NULL; | |
8386 | } | |
8387 | } | |
8388 | { | |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8390 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
8391 | ||
8392 | wxPyEndAllowThreads(__tstate); | |
8393 | if (PyErr_Occurred()) return NULL; | |
8394 | } Py_INCREF(Py_None); | |
8395 | _resultobj = Py_None; | |
8396 | return _resultobj; | |
8397 | } | |
8398 | ||
8399 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) | |
8400 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8401 | PyObject * _resultobj; | |
8402 | wxDC * _arg0; | |
8403 | double _arg1; | |
8404 | double _arg2; | |
8405 | PyObject * _argo0 = 0; | |
8406 | char *_kwnames[] = { "self","x","y", NULL }; | |
8407 | ||
8408 | self = self; | |
8409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8410 | return NULL; | |
8411 | if (_argo0) { | |
8412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
8415 | return NULL; | |
8416 | } | |
8417 | } | |
8418 | { | |
8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8420 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
8421 | ||
8422 | wxPyEndAllowThreads(__tstate); | |
8423 | if (PyErr_Occurred()) return NULL; | |
8424 | } Py_INCREF(Py_None); | |
8425 | _resultobj = Py_None; | |
8426 | return _resultobj; | |
8427 | } | |
8428 | ||
8429 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
8430 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8431 | PyObject * _resultobj; | |
8432 | wxDC * _arg0; | |
8433 | int _arg1; | |
8434 | PyObject * _argo0 = 0; | |
8435 | char *_kwnames[] = { "self","mode", NULL }; | |
8436 | ||
8437 | self = self; | |
8438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) | |
8439 | return NULL; | |
8440 | if (_argo0) { | |
8441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); | |
8444 | return NULL; | |
8445 | } | |
8446 | } | |
8447 | { | |
8448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8449 | wxDC_SetMapMode(_arg0,_arg1); | |
8450 | ||
8451 | wxPyEndAllowThreads(__tstate); | |
8452 | if (PyErr_Occurred()) return NULL; | |
8453 | } Py_INCREF(Py_None); | |
8454 | _resultobj = Py_None; | |
8455 | return _resultobj; | |
8456 | } | |
8457 | ||
8458 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
8459 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8460 | PyObject * _resultobj; | |
8461 | wxDC * _arg0; | |
8462 | bool _arg1; | |
8463 | PyObject * _argo0 = 0; | |
8464 | int tempbool1; | |
8465 | char *_kwnames[] = { "self","optimize", NULL }; | |
8466 | ||
8467 | self = self; | |
8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) | |
8469 | return NULL; | |
8470 | if (_argo0) { | |
8471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
8474 | return NULL; | |
8475 | } | |
8476 | } | |
8477 | _arg1 = (bool ) tempbool1; | |
8478 | { | |
8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8480 | wxDC_SetOptimization(_arg0,_arg1); | |
8481 | ||
8482 | wxPyEndAllowThreads(__tstate); | |
8483 | if (PyErr_Occurred()) return NULL; | |
8484 | } Py_INCREF(Py_None); | |
8485 | _resultobj = Py_None; | |
8486 | return _resultobj; | |
8487 | } | |
8488 | ||
8489 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
8490 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8491 | PyObject * _resultobj; | |
8492 | wxDC * _arg0; | |
8493 | wxPen * _arg1; | |
8494 | PyObject * _argo0 = 0; | |
8495 | PyObject * _argo1 = 0; | |
8496 | char *_kwnames[] = { "self","pen", NULL }; | |
8497 | ||
8498 | self = self; | |
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) | |
8500 | return NULL; | |
8501 | if (_argo0) { | |
8502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
8505 | return NULL; | |
8506 | } | |
8507 | } | |
8508 | if (_argo1) { | |
8509 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8510 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
8512 | return NULL; | |
8513 | } | |
8514 | } | |
8515 | { | |
8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8517 | wxDC_SetPen(_arg0,*_arg1); | |
8518 | ||
8519 | wxPyEndAllowThreads(__tstate); | |
8520 | if (PyErr_Occurred()) return NULL; | |
8521 | } Py_INCREF(Py_None); | |
8522 | _resultobj = Py_None; | |
8523 | return _resultobj; | |
8524 | } | |
8525 | ||
8526 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
8527 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject * _resultobj; | |
8529 | wxDC * _arg0; | |
8530 | wxColour * _arg1; | |
8531 | PyObject * _argo0 = 0; | |
8532 | wxColour temp; | |
8533 | PyObject * _obj1 = 0; | |
8534 | char *_kwnames[] = { "self","colour", NULL }; | |
8535 | ||
8536 | self = self; | |
8537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) | |
8538 | return NULL; | |
8539 | if (_argo0) { | |
8540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
8543 | return NULL; | |
8544 | } | |
8545 | } | |
8546 | { | |
8547 | _arg1 = &temp; | |
8548 | if (! wxColour_helper(_obj1, &_arg1)) | |
8549 | return NULL; | |
8550 | } | |
8551 | { | |
8552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8553 | wxDC_SetTextBackground(_arg0,*_arg1); | |
8554 | ||
8555 | wxPyEndAllowThreads(__tstate); | |
8556 | if (PyErr_Occurred()) return NULL; | |
8557 | } Py_INCREF(Py_None); | |
8558 | _resultobj = Py_None; | |
8559 | return _resultobj; | |
8560 | } | |
8561 | ||
8562 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
8563 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8564 | PyObject * _resultobj; | |
8565 | wxDC * _arg0; | |
8566 | wxColour * _arg1; | |
8567 | PyObject * _argo0 = 0; | |
8568 | wxColour temp; | |
8569 | PyObject * _obj1 = 0; | |
8570 | char *_kwnames[] = { "self","colour", NULL }; | |
8571 | ||
8572 | self = self; | |
8573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) | |
8574 | return NULL; | |
8575 | if (_argo0) { | |
8576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
8579 | return NULL; | |
8580 | } | |
8581 | } | |
8582 | { | |
8583 | _arg1 = &temp; | |
8584 | if (! wxColour_helper(_obj1, &_arg1)) | |
8585 | return NULL; | |
8586 | } | |
8587 | { | |
8588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8589 | wxDC_SetTextForeground(_arg0,*_arg1); | |
8590 | ||
8591 | wxPyEndAllowThreads(__tstate); | |
8592 | if (PyErr_Occurred()) return NULL; | |
8593 | } Py_INCREF(Py_None); | |
8594 | _resultobj = Py_None; | |
8595 | return _resultobj; | |
8596 | } | |
8597 | ||
8598 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
8599 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8600 | PyObject * _resultobj; | |
8601 | wxDC * _arg0; | |
8602 | double _arg1; | |
8603 | double _arg2; | |
8604 | PyObject * _argo0 = 0; | |
8605 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; | |
8606 | ||
8607 | self = self; | |
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8609 | return NULL; | |
8610 | if (_argo0) { | |
8611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); | |
8614 | return NULL; | |
8615 | } | |
8616 | } | |
8617 | { | |
8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8619 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
8620 | ||
8621 | wxPyEndAllowThreads(__tstate); | |
8622 | if (PyErr_Occurred()) return NULL; | |
8623 | } Py_INCREF(Py_None); | |
8624 | _resultobj = Py_None; | |
8625 | return _resultobj; | |
8626 | } | |
8627 | ||
8628 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
8629 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8630 | PyObject * _resultobj; | |
8631 | bool _result; | |
8632 | wxDC * _arg0; | |
8633 | wxString * _arg1; | |
8634 | PyObject * _argo0 = 0; | |
8635 | PyObject * _obj1 = 0; | |
8636 | char *_kwnames[] = { "self","message", NULL }; | |
8637 | ||
8638 | self = self; | |
8639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) | |
8640 | return NULL; | |
8641 | if (_argo0) { | |
8642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
8645 | return NULL; | |
8646 | } | |
8647 | } | |
8648 | { | |
8649 | _arg1 = wxString_in_helper(_obj1); | |
8650 | if (_arg1 == NULL) | |
8651 | return NULL; | |
8652 | } | |
8653 | { | |
8654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8655 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
8656 | ||
8657 | wxPyEndAllowThreads(__tstate); | |
8658 | if (PyErr_Occurred()) return NULL; | |
8659 | } _resultobj = Py_BuildValue("i",_result); | |
8660 | { | |
8661 | if (_obj1) | |
8662 | delete _arg1; | |
8663 | } | |
8664 | return _resultobj; | |
8665 | } | |
8666 | ||
8667 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
8668 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8669 | PyObject * _resultobj; | |
8670 | wxDC * _arg0; | |
8671 | PyObject * _argo0 = 0; | |
8672 | char *_kwnames[] = { "self", NULL }; | |
8673 | ||
8674 | self = self; | |
8675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) | |
8676 | return NULL; | |
8677 | if (_argo0) { | |
8678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); | |
8681 | return NULL; | |
8682 | } | |
8683 | } | |
8684 | { | |
8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8686 | wxDC_StartPage(_arg0); | |
8687 | ||
8688 | wxPyEndAllowThreads(__tstate); | |
8689 | if (PyErr_Occurred()) return NULL; | |
8690 | } Py_INCREF(Py_None); | |
8691 | _resultobj = Py_None; | |
8692 | return _resultobj; | |
8693 | } | |
8694 | ||
8695 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8696 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8697 | PyObject * _resultobj; | |
8698 | wxDC * _arg0; | |
8699 | wxBitmap * _arg1; | |
8700 | long _arg2; | |
8701 | long _arg3; | |
8702 | int _arg4 = (int ) FALSE; | |
8703 | PyObject * _argo0 = 0; | |
8704 | PyObject * _argo1 = 0; | |
8705 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; | |
8706 | ||
8707 | self = self; | |
8708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) | |
8709 | return NULL; | |
8710 | if (_argo0) { | |
8711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
8714 | return NULL; | |
8715 | } | |
8716 | } | |
8717 | if (_argo1) { | |
8718 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8719 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
8721 | return NULL; | |
8722 | } | |
8723 | } | |
8724 | { | |
8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8726 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
8727 | ||
8728 | wxPyEndAllowThreads(__tstate); | |
8729 | if (PyErr_Occurred()) return NULL; | |
8730 | } Py_INCREF(Py_None); | |
8731 | _resultobj = Py_None; | |
8732 | return _resultobj; | |
8733 | } | |
8734 | ||
8735 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) | |
8736 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8737 | PyObject * _resultobj; | |
8738 | bool _result; | |
8739 | wxDC * _arg0; | |
8740 | PyObject * _argo0 = 0; | |
8741 | char *_kwnames[] = { "self", NULL }; | |
8742 | ||
8743 | self = self; | |
8744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
8745 | return NULL; | |
8746 | if (_argo0) { | |
8747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
8750 | return NULL; | |
8751 | } | |
8752 | } | |
8753 | { | |
8754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8755 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
8756 | ||
8757 | wxPyEndAllowThreads(__tstate); | |
8758 | if (PyErr_Occurred()) return NULL; | |
8759 | } _resultobj = Py_BuildValue("i",_result); | |
8760 | return _resultobj; | |
8761 | } | |
8762 | ||
8763 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
8764 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8765 | PyObject * _resultobj; | |
8766 | bool _result; | |
8767 | wxDC * _arg0; | |
8768 | PyObject * _argo0 = 0; | |
8769 | char *_kwnames[] = { "self", NULL }; | |
8770 | ||
8771 | self = self; | |
8772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
8773 | return NULL; | |
8774 | if (_argo0) { | |
8775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
8778 | return NULL; | |
8779 | } | |
8780 | } | |
8781 | { | |
8782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8783 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
8784 | ||
8785 | wxPyEndAllowThreads(__tstate); | |
8786 | if (PyErr_Occurred()) return NULL; | |
8787 | } _resultobj = Py_BuildValue("i",_result); | |
8788 | return _resultobj; | |
8789 | } | |
8790 | ||
8791 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
8792 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject * _resultobj; | |
8794 | int _result; | |
8795 | wxDC * _arg0; | |
8796 | PyObject * _argo0 = 0; | |
8797 | char *_kwnames[] = { "self", NULL }; | |
8798 | ||
8799 | self = self; | |
8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
8801 | return NULL; | |
8802 | if (_argo0) { | |
8803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
8806 | return NULL; | |
8807 | } | |
8808 | } | |
8809 | { | |
8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8811 | _result = (int )wxDC_GetDepth(_arg0); | |
8812 | ||
8813 | wxPyEndAllowThreads(__tstate); | |
8814 | if (PyErr_Occurred()) return NULL; | |
8815 | } _resultobj = Py_BuildValue("i",_result); | |
8816 | return _resultobj; | |
8817 | } | |
8818 | ||
8819 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
8820 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8821 | PyObject * _resultobj; | |
8822 | wxSize * _result; | |
8823 | wxDC * _arg0; | |
8824 | PyObject * _argo0 = 0; | |
8825 | char *_kwnames[] = { "self", NULL }; | |
8826 | char _ptemp[128]; | |
8827 | ||
8828 | self = self; | |
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
8830 | return NULL; | |
8831 | if (_argo0) { | |
8832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
8835 | return NULL; | |
8836 | } | |
8837 | } | |
8838 | { | |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
8841 | ||
8842 | wxPyEndAllowThreads(__tstate); | |
8843 | if (PyErr_Occurred()) return NULL; | |
8844 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
8845 | _resultobj = Py_BuildValue("s",_ptemp); | |
8846 | return _resultobj; | |
8847 | } | |
8848 | ||
8849 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8850 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8851 | PyObject * _resultobj; | |
8852 | wxDC * _arg0; | |
8853 | int * _arg1; | |
8854 | int temp; | |
8855 | int * _arg2; | |
8856 | int temp0; | |
8857 | PyObject * _argo0 = 0; | |
8858 | char *_kwnames[] = { "self", NULL }; | |
8859 | ||
8860 | self = self; | |
8861 | { | |
8862 | _arg1 = &temp; | |
8863 | } | |
8864 | { | |
8865 | _arg2 = &temp0; | |
8866 | } | |
8867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8868 | return NULL; | |
8869 | if (_argo0) { | |
8870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8873 | return NULL; | |
8874 | } | |
8875 | } | |
8876 | { | |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
8879 | ||
8880 | wxPyEndAllowThreads(__tstate); | |
8881 | if (PyErr_Occurred()) return NULL; | |
8882 | } Py_INCREF(Py_None); | |
8883 | _resultobj = Py_None; | |
8884 | { | |
8885 | PyObject *o; | |
8886 | o = PyInt_FromLong((long) (*_arg1)); | |
8887 | _resultobj = t_output_helper(_resultobj, o); | |
8888 | } | |
8889 | { | |
8890 | PyObject *o; | |
8891 | o = PyInt_FromLong((long) (*_arg2)); | |
8892 | _resultobj = t_output_helper(_resultobj, o); | |
8893 | } | |
8894 | return _resultobj; | |
8895 | } | |
8896 | ||
8897 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
8898 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject * _resultobj; | |
8900 | wxDC * _arg0; | |
8901 | int _arg1; | |
8902 | int _arg2; | |
8903 | PyObject * _argo0 = 0; | |
8904 | char *_kwnames[] = { "self","x","y", NULL }; | |
8905 | ||
8906 | self = self; | |
8907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8908 | return NULL; | |
8909 | if (_argo0) { | |
8910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
8913 | return NULL; | |
8914 | } | |
8915 | } | |
8916 | { | |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8918 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
8919 | ||
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) return NULL; | |
8922 | } Py_INCREF(Py_None); | |
8923 | _resultobj = Py_None; | |
8924 | return _resultobj; | |
8925 | } | |
8926 | ||
8927 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
8928 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8929 | PyObject * _resultobj; | |
8930 | wxDC * _arg0; | |
8931 | int * _arg1; | |
8932 | int temp; | |
8933 | int * _arg2; | |
8934 | int temp0; | |
8935 | PyObject * _argo0 = 0; | |
8936 | char *_kwnames[] = { "self", NULL }; | |
8937 | ||
8938 | self = self; | |
8939 | { | |
8940 | _arg1 = &temp; | |
8941 | } | |
8942 | { | |
8943 | _arg2 = &temp0; | |
8944 | } | |
8945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
8946 | return NULL; | |
8947 | if (_argo0) { | |
8948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
8951 | return NULL; | |
8952 | } | |
8953 | } | |
8954 | { | |
8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8956 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
8957 | ||
8958 | wxPyEndAllowThreads(__tstate); | |
8959 | if (PyErr_Occurred()) return NULL; | |
8960 | } Py_INCREF(Py_None); | |
8961 | _resultobj = Py_None; | |
8962 | { | |
8963 | PyObject *o; | |
8964 | o = PyInt_FromLong((long) (*_arg1)); | |
8965 | _resultobj = t_output_helper(_resultobj, o); | |
8966 | } | |
8967 | { | |
8968 | PyObject *o; | |
8969 | o = PyInt_FromLong((long) (*_arg2)); | |
8970 | _resultobj = t_output_helper(_resultobj, o); | |
8971 | } | |
8972 | return _resultobj; | |
8973 | } | |
8974 | ||
8975 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
8976 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8977 | PyObject * _resultobj; | |
8978 | wxDC * _arg0; | |
8979 | bool _arg1; | |
8980 | bool _arg2; | |
8981 | PyObject * _argo0 = 0; | |
8982 | int tempbool1; | |
8983 | int tempbool2; | |
8984 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
8985 | ||
8986 | self = self; | |
8987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8988 | return NULL; | |
8989 | if (_argo0) { | |
8990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
8993 | return NULL; | |
8994 | } | |
8995 | } | |
8996 | _arg1 = (bool ) tempbool1; | |
8997 | _arg2 = (bool ) tempbool2; | |
8998 | { | |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) return NULL; | |
9004 | } Py_INCREF(Py_None); | |
9005 | _resultobj = Py_None; | |
9006 | return _resultobj; | |
9007 | } | |
9008 | ||
9009 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) | |
9010 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9011 | PyObject * _resultobj; | |
9012 | wxDC * _arg0; | |
9013 | int _arg1; | |
9014 | int _arg2; | |
9015 | PyObject * _argo0 = 0; | |
9016 | char *_kwnames[] = { "self","x","y", NULL }; | |
9017 | ||
9018 | self = self; | |
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9020 | return NULL; | |
9021 | if (_argo0) { | |
9022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9025 | return NULL; | |
9026 | } | |
9027 | } | |
9028 | { | |
9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9030 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
9031 | ||
9032 | wxPyEndAllowThreads(__tstate); | |
9033 | if (PyErr_Occurred()) return NULL; | |
9034 | } Py_INCREF(Py_None); | |
9035 | _resultobj = Py_None; | |
9036 | return _resultobj; | |
9037 | } | |
9038 | ||
9039 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
9040 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9041 | PyObject * _resultobj; | |
9042 | wxDC * _arg0; | |
9043 | PyObject * _argo0 = 0; | |
9044 | char *_kwnames[] = { "self", NULL }; | |
9045 | ||
9046 | self = self; | |
9047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
9048 | return NULL; | |
9049 | if (_argo0) { | |
9050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
9053 | return NULL; | |
9054 | } | |
9055 | } | |
9056 | { | |
9057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9058 | wxDC_ResetBoundingBox(_arg0); | |
9059 | ||
9060 | wxPyEndAllowThreads(__tstate); | |
9061 | if (PyErr_Occurred()) return NULL; | |
9062 | } Py_INCREF(Py_None); | |
9063 | _resultobj = Py_None; | |
9064 | return _resultobj; | |
9065 | } | |
9066 | ||
9067 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9068 | PyObject * _resultobj; | |
9069 | wxDC * _arg0; | |
9070 | int * _arg1; | |
9071 | int temp; | |
9072 | int * _arg2; | |
9073 | int temp0; | |
9074 | int * _arg3; | |
9075 | int temp1; | |
9076 | int * _arg4; | |
9077 | int temp2; | |
9078 | PyObject * _argo0 = 0; | |
9079 | char *_kwnames[] = { "self", NULL }; | |
9080 | ||
9081 | self = self; | |
9082 | { | |
9083 | _arg1 = &temp; | |
9084 | } | |
9085 | { | |
9086 | _arg2 = &temp0; | |
9087 | } | |
9088 | { | |
9089 | _arg3 = &temp1; | |
9090 | } | |
9091 | { | |
9092 | _arg4 = &temp2; | |
9093 | } | |
9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
9095 | return NULL; | |
9096 | if (_argo0) { | |
9097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
9100 | return NULL; | |
9101 | } | |
9102 | } | |
9103 | { | |
9104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9105 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9106 | ||
9107 | wxPyEndAllowThreads(__tstate); | |
9108 | if (PyErr_Occurred()) return NULL; | |
9109 | } Py_INCREF(Py_None); | |
9110 | _resultobj = Py_None; | |
9111 | { | |
9112 | PyObject *o; | |
9113 | o = PyInt_FromLong((long) (*_arg1)); | |
9114 | _resultobj = t_output_helper(_resultobj, o); | |
9115 | } | |
9116 | { | |
9117 | PyObject *o; | |
9118 | o = PyInt_FromLong((long) (*_arg2)); | |
9119 | _resultobj = t_output_helper(_resultobj, o); | |
9120 | } | |
9121 | { | |
9122 | PyObject *o; | |
9123 | o = PyInt_FromLong((long) (*_arg3)); | |
9124 | _resultobj = t_output_helper(_resultobj, o); | |
9125 | } | |
9126 | { | |
9127 | PyObject *o; | |
9128 | o = PyInt_FromLong((long) (*_arg4)); | |
9129 | _resultobj = t_output_helper(_resultobj, o); | |
9130 | } | |
9131 | return _resultobj; | |
9132 | } | |
9133 | ||
9134 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
9135 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
9136 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9137 | int numObjs = 0; | |
9138 | int numPens = 0; | |
9139 | wxPen* pen; | |
9140 | PyObject* obj; | |
9141 | int x1, y1; | |
9142 | int i = 0; | |
9143 | ||
9144 | if (!PySequence_Check(pyPoints)) { | |
9145 | goto err0; | |
9146 | } | |
9147 | if (!PySequence_Check(pyPens)) { | |
9148 | goto err1; | |
9149 | } | |
9150 | numObjs = PySequence_Length(pyPoints); | |
9151 | numPens = PySequence_Length(pyPens); | |
9152 | ||
9153 | for (i = 0; i < numObjs; i++) { | |
9154 | // Use a new pen? | |
9155 | if (i < numPens) { | |
9156 | if (isFastPens) { | |
9157 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9158 | } | |
9159 | else { | |
9160 | obj = PySequence_GetItem(pyPens, i); | |
9161 | } | |
9162 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9163 | if (!isFastPens) | |
9164 | Py_DECREF(obj); | |
9165 | goto err1; | |
9166 | } | |
9167 | ||
9168 | self->SetPen(*pen); | |
9169 | if (!isFastPens) | |
9170 | Py_DECREF(obj); | |
9171 | } | |
9172 | ||
9173 | // Get the point coordinants | |
9174 | if (isFastSeq) { | |
9175 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
9176 | } | |
9177 | else { | |
9178 | obj = PySequence_GetItem(pyPoints, i); | |
9179 | } | |
9180 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
9181 | if (!isFastPens) | |
9182 | Py_DECREF(obj); | |
9183 | goto err0; | |
9184 | } | |
9185 | ||
9186 | // Now draw the point | |
9187 | self->DrawPoint(x1, y1); | |
9188 | ||
9189 | if (!isFastSeq) | |
9190 | Py_DECREF(obj); | |
9191 | } | |
9192 | ||
9193 | Py_INCREF(Py_None); | |
9194 | return Py_None; | |
9195 | ||
9196 | err1: | |
9197 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9198 | return NULL; | |
9199 | err0: | |
9200 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
9201 | return NULL; | |
9202 | } | |
9203 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9204 | PyObject * _resultobj; | |
9205 | PyObject * _result; | |
9206 | wxDC * _arg0; | |
9207 | PyObject * _arg1; | |
9208 | PyObject * _arg2; | |
9209 | PyObject * _argo0 = 0; | |
9210 | PyObject * _obj1 = 0; | |
9211 | PyObject * _obj2 = 0; | |
9212 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
9213 | ||
9214 | self = self; | |
9215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9216 | return NULL; | |
9217 | if (_argo0) { | |
9218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
9221 | return NULL; | |
9222 | } | |
9223 | } | |
9224 | { | |
9225 | _arg1 = _obj1; | |
9226 | } | |
9227 | { | |
9228 | _arg2 = _obj2; | |
9229 | } | |
9230 | { | |
9231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9232 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); | |
9233 | ||
9234 | wxPyEndAllowThreads(__tstate); | |
9235 | if (PyErr_Occurred()) return NULL; | |
9236 | }{ | |
9237 | _resultobj = _result; | |
9238 | } | |
9239 | return _resultobj; | |
9240 | } | |
9241 | ||
9242 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
9243 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
9244 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9245 | int numObjs = 0; | |
9246 | int numPens = 0; | |
9247 | wxPen* pen; | |
9248 | PyObject* obj; | |
9249 | int x1, y1, x2, y2; | |
9250 | int i = 0; | |
9251 | ||
9252 | if (!PySequence_Check(pyLines)) { | |
9253 | goto err0; | |
9254 | } | |
9255 | if (!PySequence_Check(pyPens)) { | |
9256 | goto err1; | |
9257 | } | |
9258 | numObjs = PySequence_Length(pyLines); | |
9259 | numPens = PySequence_Length(pyPens); | |
9260 | ||
9261 | for (i = 0; i < numObjs; i++) { | |
9262 | // Use a new pen? | |
9263 | if (i < numPens) { | |
9264 | if (isFastPens) { | |
9265 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9266 | } | |
9267 | else { | |
9268 | obj = PySequence_GetItem(pyPens, i); | |
9269 | } | |
9270 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9271 | if (!isFastPens) | |
9272 | Py_DECREF(obj); | |
9273 | goto err1; | |
9274 | } | |
9275 | ||
9276 | self->SetPen(*pen); | |
9277 | if (!isFastPens) | |
9278 | Py_DECREF(obj); | |
9279 | } | |
9280 | ||
9281 | // Get the line coordinants | |
9282 | if (isFastSeq) { | |
9283 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
9284 | } | |
9285 | else { | |
9286 | obj = PySequence_GetItem(pyLines, i); | |
9287 | } | |
9288 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
9289 | if (!isFastPens) | |
9290 | Py_DECREF(obj); | |
9291 | goto err0; | |
9292 | } | |
9293 | ||
9294 | // Now draw the line | |
9295 | self->DrawLine(x1, y1, x2, y2); | |
9296 | ||
9297 | if (!isFastSeq) | |
9298 | Py_DECREF(obj); | |
9299 | } | |
9300 | ||
9301 | Py_INCREF(Py_None); | |
9302 | return Py_None; | |
9303 | ||
9304 | err1: | |
9305 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9306 | return NULL; | |
9307 | err0: | |
9308 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
9309 | return NULL; | |
9310 | } | |
9311 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9312 | PyObject * _resultobj; | |
9313 | PyObject * _result; | |
9314 | wxDC * _arg0; | |
9315 | PyObject * _arg1; | |
9316 | PyObject * _arg2; | |
9317 | PyObject * _argo0 = 0; | |
9318 | PyObject * _obj1 = 0; | |
9319 | PyObject * _obj2 = 0; | |
9320 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
9321 | ||
9322 | self = self; | |
9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9324 | return NULL; | |
9325 | if (_argo0) { | |
9326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
9329 | return NULL; | |
9330 | } | |
9331 | } | |
9332 | { | |
9333 | _arg1 = _obj1; | |
9334 | } | |
9335 | { | |
9336 | _arg2 = _obj2; | |
9337 | } | |
9338 | { | |
9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9340 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); | |
9341 | ||
9342 | wxPyEndAllowThreads(__tstate); | |
9343 | if (PyErr_Occurred()) return NULL; | |
9344 | }{ | |
9345 | _resultobj = _result; | |
9346 | } | |
9347 | return _resultobj; | |
9348 | } | |
9349 | ||
9350 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
9351 | wxMemoryDC *src; | |
9352 | wxDC *dest; | |
9353 | src = (wxMemoryDC *) ptr; | |
9354 | dest = (wxDC *) src; | |
9355 | return (void *) dest; | |
9356 | } | |
9357 | ||
9358 | static void *SwigwxMemoryDCTowxObject(void *ptr) { | |
9359 | wxMemoryDC *src; | |
9360 | wxObject *dest; | |
9361 | src = (wxMemoryDC *) ptr; | |
9362 | dest = (wxObject *) src; | |
9363 | return (void *) dest; | |
9364 | } | |
9365 | ||
9366 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
9367 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9368 | PyObject * _resultobj; | |
9369 | wxMemoryDC * _result; | |
9370 | char *_kwnames[] = { NULL }; | |
9371 | char _ptemp[128]; | |
9372 | ||
9373 | self = self; | |
9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) | |
9375 | return NULL; | |
9376 | { | |
9377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9378 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
9379 | ||
9380 | wxPyEndAllowThreads(__tstate); | |
9381 | if (PyErr_Occurred()) return NULL; | |
9382 | } if (_result) { | |
9383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
9384 | _resultobj = Py_BuildValue("s",_ptemp); | |
9385 | } else { | |
9386 | Py_INCREF(Py_None); | |
9387 | _resultobj = Py_None; | |
9388 | } | |
9389 | return _resultobj; | |
9390 | } | |
9391 | ||
9392 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
9393 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9394 | PyObject * _resultobj; | |
9395 | wxMemoryDC * _arg0; | |
9396 | wxBitmap * _arg1; | |
9397 | PyObject * _argo0 = 0; | |
9398 | PyObject * _argo1 = 0; | |
9399 | char *_kwnames[] = { "self","bitmap", NULL }; | |
9400 | ||
9401 | self = self; | |
9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) | |
9403 | return NULL; | |
9404 | if (_argo0) { | |
9405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
9407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
9408 | return NULL; | |
9409 | } | |
9410 | } | |
9411 | if (_argo1) { | |
9412 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9413 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
9415 | return NULL; | |
9416 | } | |
9417 | } | |
9418 | { | |
9419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9420 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
9421 | ||
9422 | wxPyEndAllowThreads(__tstate); | |
9423 | if (PyErr_Occurred()) return NULL; | |
9424 | } Py_INCREF(Py_None); | |
9425 | _resultobj = Py_None; | |
9426 | return _resultobj; | |
9427 | } | |
9428 | ||
9429 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
9430 | wxScreenDC *src; | |
9431 | wxDC *dest; | |
9432 | src = (wxScreenDC *) ptr; | |
9433 | dest = (wxDC *) src; | |
9434 | return (void *) dest; | |
9435 | } | |
9436 | ||
9437 | static void *SwigwxScreenDCTowxObject(void *ptr) { | |
9438 | wxScreenDC *src; | |
9439 | wxObject *dest; | |
9440 | src = (wxScreenDC *) ptr; | |
9441 | dest = (wxObject *) src; | |
9442 | return (void *) dest; | |
9443 | } | |
9444 | ||
9445 | #define new_wxScreenDC() (new wxScreenDC()) | |
9446 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9447 | PyObject * _resultobj; | |
9448 | wxScreenDC * _result; | |
9449 | char *_kwnames[] = { NULL }; | |
9450 | char _ptemp[128]; | |
9451 | ||
9452 | self = self; | |
9453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) | |
9454 | return NULL; | |
9455 | { | |
9456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9457 | _result = (wxScreenDC *)new_wxScreenDC(); | |
9458 | ||
9459 | wxPyEndAllowThreads(__tstate); | |
9460 | if (PyErr_Occurred()) return NULL; | |
9461 | } if (_result) { | |
9462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9463 | _resultobj = Py_BuildValue("s",_ptemp); | |
9464 | } else { | |
9465 | Py_INCREF(Py_None); | |
9466 | _resultobj = Py_None; | |
9467 | } | |
9468 | return _resultobj; | |
9469 | } | |
9470 | ||
9471 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9472 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9473 | PyObject * _resultobj; | |
9474 | bool _result; | |
9475 | wxScreenDC * _arg0; | |
9476 | wxWindow * _arg1; | |
9477 | PyObject * _argo0 = 0; | |
9478 | PyObject * _argo1 = 0; | |
9479 | char *_kwnames[] = { "self","window", NULL }; | |
9480 | ||
9481 | self = self; | |
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) | |
9483 | return NULL; | |
9484 | if (_argo0) { | |
9485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); | |
9488 | return NULL; | |
9489 | } | |
9490 | } | |
9491 | if (_argo1) { | |
9492 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9493 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); | |
9495 | return NULL; | |
9496 | } | |
9497 | } | |
9498 | { | |
9499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9500 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); | |
9501 | ||
9502 | wxPyEndAllowThreads(__tstate); | |
9503 | if (PyErr_Occurred()) return NULL; | |
9504 | } _resultobj = Py_BuildValue("i",_result); | |
9505 | return _resultobj; | |
9506 | } | |
9507 | ||
9508 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9509 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9510 | PyObject * _resultobj; | |
9511 | bool _result; | |
9512 | wxScreenDC * _arg0; | |
9513 | wxRect * _arg1 = (wxRect *) NULL; | |
9514 | PyObject * _argo0 = 0; | |
9515 | wxRect temp; | |
9516 | PyObject * _obj1 = 0; | |
9517 | char *_kwnames[] = { "self","rect", NULL }; | |
9518 | ||
9519 | self = self; | |
9520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) | |
9521 | return NULL; | |
9522 | if (_argo0) { | |
9523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
9526 | return NULL; | |
9527 | } | |
9528 | } | |
9529 | if (_obj1) | |
9530 | { | |
9531 | _arg1 = &temp; | |
9532 | if (! wxRect_helper(_obj1, &_arg1)) | |
9533 | return NULL; | |
9534 | } | |
9535 | { | |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); | |
9538 | ||
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) return NULL; | |
9541 | } _resultobj = Py_BuildValue("i",_result); | |
9542 | return _resultobj; | |
9543 | } | |
9544 | ||
9545 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
9546 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject * _resultobj; | |
9548 | bool _result; | |
9549 | wxScreenDC * _arg0; | |
9550 | PyObject * _argo0 = 0; | |
9551 | char *_kwnames[] = { "self", NULL }; | |
9552 | ||
9553 | self = self; | |
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) | |
9555 | return NULL; | |
9556 | if (_argo0) { | |
9557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
9560 | return NULL; | |
9561 | } | |
9562 | } | |
9563 | { | |
9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9565 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
9566 | ||
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) return NULL; | |
9569 | } _resultobj = Py_BuildValue("i",_result); | |
9570 | return _resultobj; | |
9571 | } | |
9572 | ||
9573 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9574 | wxClientDC *src; | |
9575 | wxDC *dest; | |
9576 | src = (wxClientDC *) ptr; | |
9577 | dest = (wxDC *) src; | |
9578 | return (void *) dest; | |
9579 | } | |
9580 | ||
9581 | static void *SwigwxClientDCTowxObject(void *ptr) { | |
9582 | wxClientDC *src; | |
9583 | wxObject *dest; | |
9584 | src = (wxClientDC *) ptr; | |
9585 | dest = (wxObject *) src; | |
9586 | return (void *) dest; | |
9587 | } | |
9588 | ||
9589 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
9590 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9591 | PyObject * _resultobj; | |
9592 | wxClientDC * _result; | |
9593 | wxWindow * _arg0; | |
9594 | PyObject * _argo0 = 0; | |
9595 | char *_kwnames[] = { "win", NULL }; | |
9596 | char _ptemp[128]; | |
9597 | ||
9598 | self = self; | |
9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) | |
9600 | return NULL; | |
9601 | if (_argo0) { | |
9602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
9605 | return NULL; | |
9606 | } | |
9607 | } | |
9608 | { | |
9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9610 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
9611 | ||
9612 | wxPyEndAllowThreads(__tstate); | |
9613 | if (PyErr_Occurred()) return NULL; | |
9614 | } if (_result) { | |
9615 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9616 | _resultobj = Py_BuildValue("s",_ptemp); | |
9617 | } else { | |
9618 | Py_INCREF(Py_None); | |
9619 | _resultobj = Py_None; | |
9620 | } | |
9621 | return _resultobj; | |
9622 | } | |
9623 | ||
9624 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
9625 | wxPaintDC *src; | |
9626 | wxDC *dest; | |
9627 | src = (wxPaintDC *) ptr; | |
9628 | dest = (wxDC *) src; | |
9629 | return (void *) dest; | |
9630 | } | |
9631 | ||
9632 | static void *SwigwxPaintDCTowxObject(void *ptr) { | |
9633 | wxPaintDC *src; | |
9634 | wxObject *dest; | |
9635 | src = (wxPaintDC *) ptr; | |
9636 | dest = (wxObject *) src; | |
9637 | return (void *) dest; | |
9638 | } | |
9639 | ||
9640 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
9641 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9642 | PyObject * _resultobj; | |
9643 | wxPaintDC * _result; | |
9644 | wxWindow * _arg0; | |
9645 | PyObject * _argo0 = 0; | |
9646 | char *_kwnames[] = { "win", NULL }; | |
9647 | char _ptemp[128]; | |
9648 | ||
9649 | self = self; | |
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) | |
9651 | return NULL; | |
9652 | if (_argo0) { | |
9653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
9656 | return NULL; | |
9657 | } | |
9658 | } | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9661 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
9662 | ||
9663 | wxPyEndAllowThreads(__tstate); | |
9664 | if (PyErr_Occurred()) return NULL; | |
9665 | } if (_result) { | |
9666 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
9667 | _resultobj = Py_BuildValue("s",_ptemp); | |
9668 | } else { | |
9669 | Py_INCREF(Py_None); | |
9670 | _resultobj = Py_None; | |
9671 | } | |
9672 | return _resultobj; | |
9673 | } | |
9674 | ||
9675 | static void *SwigwxWindowDCTowxDC(void *ptr) { | |
9676 | wxWindowDC *src; | |
9677 | wxDC *dest; | |
9678 | src = (wxWindowDC *) ptr; | |
9679 | dest = (wxDC *) src; | |
9680 | return (void *) dest; | |
9681 | } | |
9682 | ||
9683 | static void *SwigwxWindowDCTowxObject(void *ptr) { | |
9684 | wxWindowDC *src; | |
9685 | wxObject *dest; | |
9686 | src = (wxWindowDC *) ptr; | |
9687 | dest = (wxObject *) src; | |
9688 | return (void *) dest; | |
9689 | } | |
9690 | ||
9691 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
9692 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9693 | PyObject * _resultobj; | |
9694 | wxWindowDC * _result; | |
9695 | wxWindow * _arg0; | |
9696 | PyObject * _argo0 = 0; | |
9697 | char *_kwnames[] = { "win", NULL }; | |
9698 | char _ptemp[128]; | |
9699 | ||
9700 | self = self; | |
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) | |
9702 | return NULL; | |
9703 | if (_argo0) { | |
9704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
9707 | return NULL; | |
9708 | } | |
9709 | } | |
9710 | { | |
9711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9712 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
9713 | ||
9714 | wxPyEndAllowThreads(__tstate); | |
9715 | if (PyErr_Occurred()) return NULL; | |
9716 | } if (_result) { | |
9717 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
9718 | _resultobj = Py_BuildValue("s",_ptemp); | |
9719 | } else { | |
9720 | Py_INCREF(Py_None); | |
9721 | _resultobj = Py_None; | |
9722 | } | |
9723 | return _resultobj; | |
9724 | } | |
9725 | ||
9726 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { | |
9727 | wxPalette *src; | |
9728 | wxGDIObject *dest; | |
9729 | src = (wxPalette *) ptr; | |
9730 | dest = (wxGDIObject *) src; | |
9731 | return (void *) dest; | |
9732 | } | |
9733 | ||
9734 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9735 | wxPalette *src; | |
9736 | wxObject *dest; | |
9737 | src = (wxPalette *) ptr; | |
9738 | dest = (wxObject *) src; | |
9739 | return (void *) dest; | |
9740 | } | |
9741 | ||
9742 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9743 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9744 | PyObject * _resultobj; | |
9745 | wxPalette * _result; | |
9746 | int _arg0; | |
9747 | byte * _arg1; | |
9748 | byte * _arg2; | |
9749 | byte * _arg3; | |
9750 | PyObject * _obj1 = 0; | |
9751 | PyObject * _obj2 = 0; | |
9752 | PyObject * _obj3 = 0; | |
9753 | char *_kwnames[] = { "choices","choices","choices", NULL }; | |
9754 | char _ptemp[128]; | |
9755 | ||
9756 | self = self; | |
9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) | |
9758 | return NULL; | |
9759 | { | |
9760 | _arg1 = byte_LIST_helper(_obj1); | |
9761 | if (_arg1 == NULL) { | |
9762 | return NULL; | |
9763 | } | |
9764 | } | |
9765 | { | |
9766 | _arg2 = byte_LIST_helper(_obj2); | |
9767 | if (_arg2 == NULL) { | |
9768 | return NULL; | |
9769 | } | |
9770 | } | |
9771 | if (_obj3) | |
9772 | { | |
9773 | _arg3 = byte_LIST_helper(_obj3); | |
9774 | if (_arg3 == NULL) { | |
9775 | return NULL; | |
9776 | } | |
9777 | } | |
9778 | { | |
9779 | if (_obj1) { | |
9780 | _arg0 = PyList_Size(_obj1); | |
9781 | } | |
9782 | else { | |
9783 | _arg0 = 0; | |
9784 | } | |
9785 | } | |
9786 | { | |
9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9788 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
9789 | ||
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) return NULL; | |
9792 | } if (_result) { | |
9793 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9794 | _resultobj = Py_BuildValue("s",_ptemp); | |
9795 | } else { | |
9796 | Py_INCREF(Py_None); | |
9797 | _resultobj = Py_None; | |
9798 | } | |
9799 | { | |
9800 | delete [] _arg1; | |
9801 | } | |
9802 | { | |
9803 | delete [] _arg2; | |
9804 | } | |
9805 | { | |
9806 | delete [] _arg3; | |
9807 | } | |
9808 | return _resultobj; | |
9809 | } | |
9810 | ||
9811 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
9812 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9813 | PyObject * _resultobj; | |
9814 | wxPalette * _arg0; | |
9815 | PyObject * _argo0 = 0; | |
9816 | char *_kwnames[] = { "self", NULL }; | |
9817 | ||
9818 | self = self; | |
9819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) | |
9820 | return NULL; | |
9821 | if (_argo0) { | |
9822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
9825 | return NULL; | |
9826 | } | |
9827 | } | |
9828 | { | |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9830 | delete_wxPalette(_arg0); | |
9831 | ||
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) return NULL; | |
9834 | } Py_INCREF(Py_None); | |
9835 | _resultobj = Py_None; | |
9836 | return _resultobj; | |
9837 | } | |
9838 | ||
9839 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
9840 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9841 | PyObject * _resultobj; | |
9842 | int _result; | |
9843 | wxPalette * _arg0; | |
9844 | byte _arg1; | |
9845 | byte _arg2; | |
9846 | byte _arg3; | |
9847 | PyObject * _argo0 = 0; | |
9848 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
9849 | ||
9850 | self = self; | |
9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
9852 | return NULL; | |
9853 | if (_argo0) { | |
9854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
9857 | return NULL; | |
9858 | } | |
9859 | } | |
9860 | { | |
9861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9862 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
9863 | ||
9864 | wxPyEndAllowThreads(__tstate); | |
9865 | if (PyErr_Occurred()) return NULL; | |
9866 | } _resultobj = Py_BuildValue("i",_result); | |
9867 | return _resultobj; | |
9868 | } | |
9869 | ||
9870 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9871 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9872 | PyObject * _resultobj; | |
9873 | bool _result; | |
9874 | wxPalette * _arg0; | |
9875 | int _arg1; | |
9876 | byte * _arg2; | |
9877 | int temp; | |
9878 | byte * _arg3; | |
9879 | int temp0; | |
9880 | byte * _arg4; | |
9881 | int temp1; | |
9882 | PyObject * _argo0 = 0; | |
9883 | char *_kwnames[] = { "self","pixel", NULL }; | |
9884 | ||
9885 | self = self; | |
9886 | { | |
9887 | _arg2 = (byte*)&temp; | |
9888 | } | |
9889 | { | |
9890 | _arg3 = (byte*)&temp0; | |
9891 | } | |
9892 | { | |
9893 | _arg4 = (byte*)&temp1; | |
9894 | } | |
9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
9896 | return NULL; | |
9897 | if (_argo0) { | |
9898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
9901 | return NULL; | |
9902 | } | |
9903 | } | |
9904 | { | |
9905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9906 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9907 | ||
9908 | wxPyEndAllowThreads(__tstate); | |
9909 | if (PyErr_Occurred()) return NULL; | |
9910 | } _resultobj = Py_BuildValue("i",_result); | |
9911 | { | |
9912 | PyObject *o; | |
9913 | o = PyInt_FromLong((long) (*_arg2)); | |
9914 | _resultobj = t_output_helper(_resultobj, o); | |
9915 | } | |
9916 | { | |
9917 | PyObject *o; | |
9918 | o = PyInt_FromLong((long) (*_arg3)); | |
9919 | _resultobj = t_output_helper(_resultobj, o); | |
9920 | } | |
9921 | { | |
9922 | PyObject *o; | |
9923 | o = PyInt_FromLong((long) (*_arg4)); | |
9924 | _resultobj = t_output_helper(_resultobj, o); | |
9925 | } | |
9926 | return _resultobj; | |
9927 | } | |
9928 | ||
9929 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
9930 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9931 | PyObject * _resultobj; | |
9932 | bool _result; | |
9933 | wxPalette * _arg0; | |
9934 | PyObject * _argo0 = 0; | |
9935 | char *_kwnames[] = { "self", NULL }; | |
9936 | ||
9937 | self = self; | |
9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) | |
9939 | return NULL; | |
9940 | if (_argo0) { | |
9941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
9944 | return NULL; | |
9945 | } | |
9946 | } | |
9947 | { | |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | _result = (bool )wxPalette_Ok(_arg0); | |
9950 | ||
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) return NULL; | |
9953 | } _resultobj = Py_BuildValue("i",_result); | |
9954 | return _resultobj; | |
9955 | } | |
9956 | ||
9957 | static void *SwigwxImageListTowxObject(void *ptr) { | |
9958 | wxImageList *src; | |
9959 | wxObject *dest; | |
9960 | src = (wxImageList *) ptr; | |
9961 | dest = (wxObject *) src; | |
9962 | return (void *) dest; | |
9963 | } | |
9964 | ||
9965 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9966 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9967 | PyObject * _resultobj; | |
9968 | wxImageList * _result; | |
9969 | int _arg0; | |
9970 | int _arg1; | |
9971 | int _arg2 = (int ) TRUE; | |
9972 | int _arg3 = (int ) 1; | |
9973 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; | |
9974 | char _ptemp[128]; | |
9975 | ||
9976 | self = self; | |
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9978 | return NULL; | |
9979 | { | |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
9982 | ||
9983 | wxPyEndAllowThreads(__tstate); | |
9984 | if (PyErr_Occurred()) return NULL; | |
9985 | } if (_result) { | |
9986 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
9987 | _resultobj = Py_BuildValue("s",_ptemp); | |
9988 | } else { | |
9989 | Py_INCREF(Py_None); | |
9990 | _resultobj = Py_None; | |
9991 | } | |
9992 | return _resultobj; | |
9993 | } | |
9994 | ||
9995 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
9996 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9997 | PyObject * _resultobj; | |
9998 | wxImageList * _arg0; | |
9999 | PyObject * _argo0 = 0; | |
10000 | char *_kwnames[] = { "self", NULL }; | |
10001 | ||
10002 | self = self; | |
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) | |
10004 | return NULL; | |
10005 | if (_argo0) { | |
10006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); | |
10009 | return NULL; | |
10010 | } | |
10011 | } | |
10012 | { | |
10013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10014 | delete_wxImageList(_arg0); | |
10015 | ||
10016 | wxPyEndAllowThreads(__tstate); | |
10017 | if (PyErr_Occurred()) return NULL; | |
10018 | } Py_INCREF(Py_None); | |
10019 | _resultobj = Py_None; | |
10020 | return _resultobj; | |
10021 | } | |
10022 | ||
10023 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10024 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10025 | PyObject * _resultobj; | |
10026 | int _result; | |
10027 | wxImageList * _arg0; | |
10028 | wxBitmap * _arg1; | |
10029 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10030 | PyObject * _argo0 = 0; | |
10031 | PyObject * _argo1 = 0; | |
10032 | PyObject * _argo2 = 0; | |
10033 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
10034 | ||
10035 | self = self; | |
10036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10037 | return NULL; | |
10038 | if (_argo0) { | |
10039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); | |
10042 | return NULL; | |
10043 | } | |
10044 | } | |
10045 | if (_argo1) { | |
10046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | if (_argo2) { | |
10053 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10054 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
10056 | return NULL; | |
10057 | } | |
10058 | } | |
10059 | { | |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10061 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
10062 | ||
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) return NULL; | |
10065 | } _resultobj = Py_BuildValue("i",_result); | |
10066 | return _resultobj; | |
10067 | } | |
10068 | ||
10069 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10070 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10071 | PyObject * _resultobj; | |
10072 | int _result; | |
10073 | wxImageList * _arg0; | |
10074 | wxBitmap * _arg1; | |
10075 | wxColour * _arg2; | |
10076 | PyObject * _argo0 = 0; | |
10077 | PyObject * _argo1 = 0; | |
10078 | wxColour temp; | |
10079 | PyObject * _obj2 = 0; | |
10080 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
10081 | ||
10082 | self = self; | |
10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
10084 | return NULL; | |
10085 | if (_argo0) { | |
10086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
10089 | return NULL; | |
10090 | } | |
10091 | } | |
10092 | if (_argo1) { | |
10093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
10096 | return NULL; | |
10097 | } | |
10098 | } | |
10099 | { | |
10100 | _arg2 = &temp; | |
10101 | if (! wxColour_helper(_obj2, &_arg2)) | |
10102 | return NULL; | |
10103 | } | |
10104 | { | |
10105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10106 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
10107 | ||
10108 | wxPyEndAllowThreads(__tstate); | |
10109 | if (PyErr_Occurred()) return NULL; | |
10110 | } _resultobj = Py_BuildValue("i",_result); | |
10111 | return _resultobj; | |
10112 | } | |
10113 | ||
10114 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
10115 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10116 | PyObject * _resultobj; | |
10117 | int _result; | |
10118 | wxImageList * _arg0; | |
10119 | wxIcon * _arg1; | |
10120 | PyObject * _argo0 = 0; | |
10121 | PyObject * _argo1 = 0; | |
10122 | char *_kwnames[] = { "self","icon", NULL }; | |
10123 | ||
10124 | self = self; | |
10125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
10126 | return NULL; | |
10127 | if (_argo0) { | |
10128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
10131 | return NULL; | |
10132 | } | |
10133 | } | |
10134 | if (_argo1) { | |
10135 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10136 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
10137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
10138 | return NULL; | |
10139 | } | |
10140 | } | |
10141 | { | |
10142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10143 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
10144 | ||
10145 | wxPyEndAllowThreads(__tstate); | |
10146 | if (PyErr_Occurred()) return NULL; | |
10147 | } _resultobj = Py_BuildValue("i",_result); | |
10148 | return _resultobj; | |
10149 | } | |
10150 | ||
10151 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
10152 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10153 | PyObject * _resultobj; | |
10154 | bool _result; | |
10155 | wxImageList * _arg0; | |
10156 | int _arg1; | |
10157 | wxBitmap * _arg2; | |
10158 | PyObject * _argo0 = 0; | |
10159 | PyObject * _argo2 = 0; | |
10160 | char *_kwnames[] = { "self","index","bitmap", NULL }; | |
10161 | ||
10162 | self = self; | |
10163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) | |
10164 | return NULL; | |
10165 | if (_argo0) { | |
10166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); | |
10169 | return NULL; | |
10170 | } | |
10171 | } | |
10172 | if (_argo2) { | |
10173 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10174 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); | |
10176 | return NULL; | |
10177 | } | |
10178 | } | |
10179 | { | |
10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10181 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); | |
10182 | ||
10183 | wxPyEndAllowThreads(__tstate); | |
10184 | if (PyErr_Occurred()) return NULL; | |
10185 | } _resultobj = Py_BuildValue("i",_result); | |
10186 | return _resultobj; | |
10187 | } | |
10188 | ||
10189 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
10190 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10191 | PyObject * _resultobj; | |
10192 | bool _result; | |
10193 | wxImageList * _arg0; | |
10194 | int _arg1; | |
10195 | wxDC * _arg2; | |
10196 | int _arg3; | |
10197 | int _arg4; | |
10198 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); | |
10199 | bool _arg6 = (bool ) FALSE; | |
10200 | PyObject * _argo0 = 0; | |
10201 | PyObject * _argo2 = 0; | |
10202 | int tempbool6 = (int) FALSE; | |
10203 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; | |
10204 | ||
10205 | self = self; | |
10206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
10207 | return NULL; | |
10208 | if (_argo0) { | |
10209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); | |
10212 | return NULL; | |
10213 | } | |
10214 | } | |
10215 | if (_argo2) { | |
10216 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10217 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
10218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); | |
10219 | return NULL; | |
10220 | } | |
10221 | } | |
10222 | _arg6 = (bool ) tempbool6; | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) return NULL; | |
10229 | } _resultobj = Py_BuildValue("i",_result); | |
10230 | return _resultobj; | |
10231 | } | |
10232 | ||
10233 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
10234 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10235 | PyObject * _resultobj; | |
10236 | int _result; | |
10237 | wxImageList * _arg0; | |
10238 | PyObject * _argo0 = 0; | |
10239 | char *_kwnames[] = { "self", NULL }; | |
10240 | ||
10241 | self = self; | |
10242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) | |
10243 | return NULL; | |
10244 | if (_argo0) { | |
10245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); | |
10248 | return NULL; | |
10249 | } | |
10250 | } | |
10251 | { | |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | _result = (int )wxImageList_GetImageCount(_arg0); | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) return NULL; | |
10257 | } _resultobj = Py_BuildValue("i",_result); | |
10258 | return _resultobj; | |
10259 | } | |
10260 | ||
10261 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
10262 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10263 | PyObject * _resultobj; | |
10264 | bool _result; | |
10265 | wxImageList * _arg0; | |
10266 | int _arg1; | |
10267 | PyObject * _argo0 = 0; | |
10268 | char *_kwnames[] = { "self","index", NULL }; | |
10269 | ||
10270 | self = self; | |
10271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) | |
10272 | return NULL; | |
10273 | if (_argo0) { | |
10274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); | |
10277 | return NULL; | |
10278 | } | |
10279 | } | |
10280 | { | |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
10283 | ||
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) return NULL; | |
10286 | } _resultobj = Py_BuildValue("i",_result); | |
10287 | return _resultobj; | |
10288 | } | |
10289 | ||
10290 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
10291 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10292 | PyObject * _resultobj; | |
10293 | bool _result; | |
10294 | wxImageList * _arg0; | |
10295 | PyObject * _argo0 = 0; | |
10296 | char *_kwnames[] = { "self", NULL }; | |
10297 | ||
10298 | self = self; | |
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) | |
10300 | return NULL; | |
10301 | if (_argo0) { | |
10302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); | |
10305 | return NULL; | |
10306 | } | |
10307 | } | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) return NULL; | |
10314 | } _resultobj = Py_BuildValue("i",_result); | |
10315 | return _resultobj; | |
10316 | } | |
10317 | ||
10318 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) | |
10319 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10320 | PyObject * _resultobj; | |
10321 | wxImageList * _arg0; | |
10322 | int _arg1; | |
10323 | int * _arg2; | |
10324 | int temp; | |
10325 | int * _arg3; | |
10326 | int temp0; | |
10327 | PyObject * _argo0 = 0; | |
10328 | char *_kwnames[] = { "self","index", NULL }; | |
10329 | ||
10330 | self = self; | |
10331 | { | |
10332 | _arg2 = &temp; | |
10333 | } | |
10334 | { | |
10335 | _arg3 = &temp0; | |
10336 | } | |
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
10338 | return NULL; | |
10339 | if (_argo0) { | |
10340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
10343 | return NULL; | |
10344 | } | |
10345 | } | |
10346 | { | |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) return NULL; | |
10352 | } Py_INCREF(Py_None); | |
10353 | _resultobj = Py_None; | |
10354 | { | |
10355 | PyObject *o; | |
10356 | o = PyInt_FromLong((long) (*_arg2)); | |
10357 | _resultobj = t_output_helper(_resultobj, o); | |
10358 | } | |
10359 | { | |
10360 | PyObject *o; | |
10361 | o = PyInt_FromLong((long) (*_arg3)); | |
10362 | _resultobj = t_output_helper(_resultobj, o); | |
10363 | } | |
10364 | return _resultobj; | |
10365 | } | |
10366 | ||
10367 | static void *SwigwxRegionTowxGDIObject(void *ptr) { | |
10368 | wxRegion *src; | |
10369 | wxGDIObject *dest; | |
10370 | src = (wxRegion *) ptr; | |
10371 | dest = (wxGDIObject *) src; | |
10372 | return (void *) dest; | |
10373 | } | |
10374 | ||
10375 | static void *SwigwxRegionTowxObject(void *ptr) { | |
10376 | wxRegion *src; | |
10377 | wxObject *dest; | |
10378 | src = (wxRegion *) ptr; | |
10379 | dest = (wxObject *) src; | |
10380 | return (void *) dest; | |
10381 | } | |
10382 | ||
10383 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10384 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10385 | PyObject * _resultobj; | |
10386 | wxRegion * _result; | |
10387 | long _arg0 = (long ) 0; | |
10388 | long _arg1 = (long ) 0; | |
10389 | long _arg2 = (long ) 0; | |
10390 | long _arg3 = (long ) 0; | |
10391 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
10392 | char _ptemp[128]; | |
10393 | ||
10394 | self = self; | |
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10396 | return NULL; | |
10397 | { | |
10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10399 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
10400 | ||
10401 | wxPyEndAllowThreads(__tstate); | |
10402 | if (PyErr_Occurred()) return NULL; | |
10403 | } if (_result) { | |
10404 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10405 | _resultobj = Py_BuildValue("s",_ptemp); | |
10406 | } else { | |
10407 | Py_INCREF(Py_None); | |
10408 | _resultobj = Py_None; | |
10409 | } | |
10410 | return _resultobj; | |
10411 | } | |
10412 | ||
10413 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
10414 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10415 | PyObject * _resultobj; | |
10416 | wxRegion * _arg0; | |
10417 | PyObject * _argo0 = 0; | |
10418 | char *_kwnames[] = { "self", NULL }; | |
10419 | ||
10420 | self = self; | |
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10422 | return NULL; | |
10423 | if (_argo0) { | |
10424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10427 | return NULL; | |
10428 | } | |
10429 | } | |
10430 | { | |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | delete_wxRegion(_arg0); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) return NULL; | |
10436 | } Py_INCREF(Py_None); | |
10437 | _resultobj = Py_None; | |
10438 | return _resultobj; | |
10439 | } | |
10440 | ||
10441 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10442 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10443 | PyObject * _resultobj; | |
10444 | wxRegion * _arg0; | |
10445 | PyObject * _argo0 = 0; | |
10446 | char *_kwnames[] = { "self", NULL }; | |
10447 | ||
10448 | self = self; | |
10449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10450 | return NULL; | |
10451 | if (_argo0) { | |
10452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10455 | return NULL; | |
10456 | } | |
10457 | } | |
10458 | { | |
10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10460 | wxRegion_Clear(_arg0); | |
10461 | ||
10462 | wxPyEndAllowThreads(__tstate); | |
10463 | if (PyErr_Occurred()) return NULL; | |
10464 | } Py_INCREF(Py_None); | |
10465 | _resultobj = Py_None; | |
10466 | return _resultobj; | |
10467 | } | |
10468 | ||
10469 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) | |
10470 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10471 | PyObject * _resultobj; | |
10472 | bool _result; | |
10473 | wxRegion * _arg0; | |
10474 | wxCoord _arg1; | |
10475 | wxCoord _arg2; | |
10476 | PyObject * _argo0 = 0; | |
10477 | char *_kwnames[] = { "self","x","y", NULL }; | |
10478 | ||
10479 | self = self; | |
10480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10481 | return NULL; | |
10482 | if (_argo0) { | |
10483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
10486 | return NULL; | |
10487 | } | |
10488 | } | |
10489 | { | |
10490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10491 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); | |
10492 | ||
10493 | wxPyEndAllowThreads(__tstate); | |
10494 | if (PyErr_Occurred()) return NULL; | |
10495 | } _resultobj = Py_BuildValue("i",_result); | |
10496 | return _resultobj; | |
10497 | } | |
10498 | ||
10499 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
10500 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10501 | PyObject * _resultobj; | |
10502 | wxRegionContain _result; | |
10503 | wxRegion * _arg0; | |
10504 | long _arg1; | |
10505 | long _arg2; | |
10506 | PyObject * _argo0 = 0; | |
10507 | char *_kwnames[] = { "self","x","y", NULL }; | |
10508 | ||
10509 | self = self; | |
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10511 | return NULL; | |
10512 | if (_argo0) { | |
10513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10516 | return NULL; | |
10517 | } | |
10518 | } | |
10519 | { | |
10520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10521 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
10522 | ||
10523 | wxPyEndAllowThreads(__tstate); | |
10524 | if (PyErr_Occurred()) return NULL; | |
10525 | } _resultobj = Py_BuildValue("i",_result); | |
10526 | return _resultobj; | |
10527 | } | |
10528 | ||
10529 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10530 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10531 | PyObject * _resultobj; | |
10532 | wxRegionContain _result; | |
10533 | wxRegion * _arg0; | |
10534 | wxPoint * _arg1; | |
10535 | PyObject * _argo0 = 0; | |
10536 | wxPoint temp; | |
10537 | PyObject * _obj1 = 0; | |
10538 | char *_kwnames[] = { "self","pt", NULL }; | |
10539 | ||
10540 | self = self; | |
10541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10542 | return NULL; | |
10543 | if (_argo0) { | |
10544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10547 | return NULL; | |
10548 | } | |
10549 | } | |
10550 | { | |
10551 | _arg1 = &temp; | |
10552 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10553 | return NULL; | |
10554 | } | |
10555 | { | |
10556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10557 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
10558 | ||
10559 | wxPyEndAllowThreads(__tstate); | |
10560 | if (PyErr_Occurred()) return NULL; | |
10561 | } _resultobj = Py_BuildValue("i",_result); | |
10562 | return _resultobj; | |
10563 | } | |
10564 | ||
10565 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10566 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10567 | PyObject * _resultobj; | |
10568 | wxRegionContain _result; | |
10569 | wxRegion * _arg0; | |
10570 | wxRect * _arg1; | |
10571 | PyObject * _argo0 = 0; | |
10572 | wxRect temp; | |
10573 | PyObject * _obj1 = 0; | |
10574 | char *_kwnames[] = { "self","rect", NULL }; | |
10575 | ||
10576 | self = self; | |
10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
10578 | return NULL; | |
10579 | if (_argo0) { | |
10580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
10583 | return NULL; | |
10584 | } | |
10585 | } | |
10586 | { | |
10587 | _arg1 = &temp; | |
10588 | if (! wxRect_helper(_obj1, &_arg1)) | |
10589 | return NULL; | |
10590 | } | |
10591 | { | |
10592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10593 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
10594 | ||
10595 | wxPyEndAllowThreads(__tstate); | |
10596 | if (PyErr_Occurred()) return NULL; | |
10597 | } _resultobj = Py_BuildValue("i",_result); | |
10598 | return _resultobj; | |
10599 | } | |
10600 | ||
10601 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10602 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject * _resultobj; | |
10604 | wxRegionContain _result; | |
10605 | wxRegion * _arg0; | |
10606 | long _arg1; | |
10607 | long _arg2; | |
10608 | long _arg3; | |
10609 | long _arg4; | |
10610 | PyObject * _argo0 = 0; | |
10611 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
10612 | ||
10613 | self = self; | |
10614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10615 | return NULL; | |
10616 | if (_argo0) { | |
10617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
10620 | return NULL; | |
10621 | } | |
10622 | } | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10625 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10626 | ||
10627 | wxPyEndAllowThreads(__tstate); | |
10628 | if (PyErr_Occurred()) return NULL; | |
10629 | } _resultobj = Py_BuildValue("i",_result); | |
10630 | return _resultobj; | |
10631 | } | |
10632 | ||
10633 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
10634 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10635 | PyObject * _resultobj; | |
10636 | wxRect * _result; | |
10637 | wxRegion * _arg0; | |
10638 | PyObject * _argo0 = 0; | |
10639 | char *_kwnames[] = { "self", NULL }; | |
10640 | char _ptemp[128]; | |
10641 | ||
10642 | self = self; | |
10643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
10644 | return NULL; | |
10645 | if (_argo0) { | |
10646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
10649 | return NULL; | |
10650 | } | |
10651 | } | |
10652 | { | |
10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10654 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
10655 | ||
10656 | wxPyEndAllowThreads(__tstate); | |
10657 | if (PyErr_Occurred()) return NULL; | |
10658 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
10659 | _resultobj = Py_BuildValue("s",_ptemp); | |
10660 | return _resultobj; | |
10661 | } | |
10662 | ||
10663 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10664 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10665 | PyObject * _resultobj; | |
10666 | bool _result; | |
10667 | wxRegion * _arg0; | |
10668 | long _arg1; | |
10669 | long _arg2; | |
10670 | long _arg3; | |
10671 | long _arg4; | |
10672 | PyObject * _argo0 = 0; | |
10673 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10674 | ||
10675 | self = self; | |
10676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10677 | return NULL; | |
10678 | if (_argo0) { | |
10679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
10682 | return NULL; | |
10683 | } | |
10684 | } | |
10685 | { | |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10688 | ||
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) return NULL; | |
10691 | } _resultobj = Py_BuildValue("i",_result); | |
10692 | return _resultobj; | |
10693 | } | |
10694 | ||
10695 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10696 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10697 | PyObject * _resultobj; | |
10698 | bool _result; | |
10699 | wxRegion * _arg0; | |
10700 | wxRect * _arg1; | |
10701 | PyObject * _argo0 = 0; | |
10702 | wxRect temp; | |
10703 | PyObject * _obj1 = 0; | |
10704 | char *_kwnames[] = { "self","rect", NULL }; | |
10705 | ||
10706 | self = self; | |
10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
10708 | return NULL; | |
10709 | if (_argo0) { | |
10710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
10713 | return NULL; | |
10714 | } | |
10715 | } | |
10716 | { | |
10717 | _arg1 = &temp; | |
10718 | if (! wxRect_helper(_obj1, &_arg1)) | |
10719 | return NULL; | |
10720 | } | |
10721 | { | |
10722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10723 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
10724 | ||
10725 | wxPyEndAllowThreads(__tstate); | |
10726 | if (PyErr_Occurred()) return NULL; | |
10727 | } _resultobj = Py_BuildValue("i",_result); | |
10728 | return _resultobj; | |
10729 | } | |
10730 | ||
10731 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10732 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10733 | PyObject * _resultobj; | |
10734 | bool _result; | |
10735 | wxRegion * _arg0; | |
10736 | wxRegion * _arg1; | |
10737 | PyObject * _argo0 = 0; | |
10738 | PyObject * _argo1 = 0; | |
10739 | char *_kwnames[] = { "self","region", NULL }; | |
10740 | ||
10741 | self = self; | |
10742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
10743 | return NULL; | |
10744 | if (_argo0) { | |
10745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10748 | return NULL; | |
10749 | } | |
10750 | } | |
10751 | if (_argo1) { | |
10752 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10753 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10755 | return NULL; | |
10756 | } | |
10757 | } | |
10758 | { | |
10759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10760 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
10761 | ||
10762 | wxPyEndAllowThreads(__tstate); | |
10763 | if (PyErr_Occurred()) return NULL; | |
10764 | } _resultobj = Py_BuildValue("i",_result); | |
10765 | return _resultobj; | |
10766 | } | |
10767 | ||
10768 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
10769 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10770 | PyObject * _resultobj; | |
10771 | bool _result; | |
10772 | wxRegion * _arg0; | |
10773 | PyObject * _argo0 = 0; | |
10774 | char *_kwnames[] = { "self", NULL }; | |
10775 | ||
10776 | self = self; | |
10777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
10778 | return NULL; | |
10779 | if (_argo0) { | |
10780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
10783 | return NULL; | |
10784 | } | |
10785 | } | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) return NULL; | |
10792 | } _resultobj = Py_BuildValue("i",_result); | |
10793 | return _resultobj; | |
10794 | } | |
10795 | ||
10796 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10797 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10798 | PyObject * _resultobj; | |
10799 | bool _result; | |
10800 | wxRegion * _arg0; | |
10801 | long _arg1; | |
10802 | long _arg2; | |
10803 | long _arg3; | |
10804 | long _arg4; | |
10805 | PyObject * _argo0 = 0; | |
10806 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10807 | ||
10808 | self = self; | |
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10810 | return NULL; | |
10811 | if (_argo0) { | |
10812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
10815 | return NULL; | |
10816 | } | |
10817 | } | |
10818 | { | |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10821 | ||
10822 | wxPyEndAllowThreads(__tstate); | |
10823 | if (PyErr_Occurred()) return NULL; | |
10824 | } _resultobj = Py_BuildValue("i",_result); | |
10825 | return _resultobj; | |
10826 | } | |
10827 | ||
10828 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10829 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10830 | PyObject * _resultobj; | |
10831 | bool _result; | |
10832 | wxRegion * _arg0; | |
10833 | wxRect * _arg1; | |
10834 | PyObject * _argo0 = 0; | |
10835 | wxRect temp; | |
10836 | PyObject * _obj1 = 0; | |
10837 | char *_kwnames[] = { "self","rect", NULL }; | |
10838 | ||
10839 | self = self; | |
10840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
10841 | return NULL; | |
10842 | if (_argo0) { | |
10843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
10846 | return NULL; | |
10847 | } | |
10848 | } | |
10849 | { | |
10850 | _arg1 = &temp; | |
10851 | if (! wxRect_helper(_obj1, &_arg1)) | |
10852 | return NULL; | |
10853 | } | |
10854 | { | |
10855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10856 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
10857 | ||
10858 | wxPyEndAllowThreads(__tstate); | |
10859 | if (PyErr_Occurred()) return NULL; | |
10860 | } _resultobj = Py_BuildValue("i",_result); | |
10861 | return _resultobj; | |
10862 | } | |
10863 | ||
10864 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10865 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10866 | PyObject * _resultobj; | |
10867 | bool _result; | |
10868 | wxRegion * _arg0; | |
10869 | wxRegion * _arg1; | |
10870 | PyObject * _argo0 = 0; | |
10871 | PyObject * _argo1 = 0; | |
10872 | char *_kwnames[] = { "self","region", NULL }; | |
10873 | ||
10874 | self = self; | |
10875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
10876 | return NULL; | |
10877 | if (_argo0) { | |
10878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10881 | return NULL; | |
10882 | } | |
10883 | } | |
10884 | if (_argo1) { | |
10885 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10886 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10888 | return NULL; | |
10889 | } | |
10890 | } | |
10891 | { | |
10892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10893 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
10894 | ||
10895 | wxPyEndAllowThreads(__tstate); | |
10896 | if (PyErr_Occurred()) return NULL; | |
10897 | } _resultobj = Py_BuildValue("i",_result); | |
10898 | return _resultobj; | |
10899 | } | |
10900 | ||
10901 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10902 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10903 | PyObject * _resultobj; | |
10904 | bool _result; | |
10905 | wxRegion * _arg0; | |
10906 | long _arg1; | |
10907 | long _arg2; | |
10908 | long _arg3; | |
10909 | long _arg4; | |
10910 | PyObject * _argo0 = 0; | |
10911 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10912 | ||
10913 | self = self; | |
10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10915 | return NULL; | |
10916 | if (_argo0) { | |
10917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
10920 | return NULL; | |
10921 | } | |
10922 | } | |
10923 | { | |
10924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10925 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10926 | ||
10927 | wxPyEndAllowThreads(__tstate); | |
10928 | if (PyErr_Occurred()) return NULL; | |
10929 | } _resultobj = Py_BuildValue("i",_result); | |
10930 | return _resultobj; | |
10931 | } | |
10932 | ||
10933 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10934 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10935 | PyObject * _resultobj; | |
10936 | bool _result; | |
10937 | wxRegion * _arg0; | |
10938 | wxRect * _arg1; | |
10939 | PyObject * _argo0 = 0; | |
10940 | wxRect temp; | |
10941 | PyObject * _obj1 = 0; | |
10942 | char *_kwnames[] = { "self","rect", NULL }; | |
10943 | ||
10944 | self = self; | |
10945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
10946 | return NULL; | |
10947 | if (_argo0) { | |
10948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
10951 | return NULL; | |
10952 | } | |
10953 | } | |
10954 | { | |
10955 | _arg1 = &temp; | |
10956 | if (! wxRect_helper(_obj1, &_arg1)) | |
10957 | return NULL; | |
10958 | } | |
10959 | { | |
10960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10961 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
10962 | ||
10963 | wxPyEndAllowThreads(__tstate); | |
10964 | if (PyErr_Occurred()) return NULL; | |
10965 | } _resultobj = Py_BuildValue("i",_result); | |
10966 | return _resultobj; | |
10967 | } | |
10968 | ||
10969 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10970 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject * _resultobj; | |
10972 | bool _result; | |
10973 | wxRegion * _arg0; | |
10974 | wxRegion * _arg1; | |
10975 | PyObject * _argo0 = 0; | |
10976 | PyObject * _argo1 = 0; | |
10977 | char *_kwnames[] = { "self","region", NULL }; | |
10978 | ||
10979 | self = self; | |
10980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
10981 | return NULL; | |
10982 | if (_argo0) { | |
10983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10986 | return NULL; | |
10987 | } | |
10988 | } | |
10989 | if (_argo1) { | |
10990 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10991 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10993 | return NULL; | |
10994 | } | |
10995 | } | |
10996 | { | |
10997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10998 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
10999 | ||
11000 | wxPyEndAllowThreads(__tstate); | |
11001 | if (PyErr_Occurred()) return NULL; | |
11002 | } _resultobj = Py_BuildValue("i",_result); | |
11003 | return _resultobj; | |
11004 | } | |
11005 | ||
11006 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11007 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11008 | PyObject * _resultobj; | |
11009 | bool _result; | |
11010 | wxRegion * _arg0; | |
11011 | long _arg1; | |
11012 | long _arg2; | |
11013 | long _arg3; | |
11014 | long _arg4; | |
11015 | PyObject * _argo0 = 0; | |
11016 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11017 | ||
11018 | self = self; | |
11019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11020 | return NULL; | |
11021 | if (_argo0) { | |
11022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
11025 | return NULL; | |
11026 | } | |
11027 | } | |
11028 | { | |
11029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11030 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
11031 | ||
11032 | wxPyEndAllowThreads(__tstate); | |
11033 | if (PyErr_Occurred()) return NULL; | |
11034 | } _resultobj = Py_BuildValue("i",_result); | |
11035 | return _resultobj; | |
11036 | } | |
11037 | ||
11038 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11039 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11040 | PyObject * _resultobj; | |
11041 | bool _result; | |
11042 | wxRegion * _arg0; | |
11043 | wxRect * _arg1; | |
11044 | PyObject * _argo0 = 0; | |
11045 | wxRect temp; | |
11046 | PyObject * _obj1 = 0; | |
11047 | char *_kwnames[] = { "self","rect", NULL }; | |
11048 | ||
11049 | self = self; | |
11050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
11051 | return NULL; | |
11052 | if (_argo0) { | |
11053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
11056 | return NULL; | |
11057 | } | |
11058 | } | |
11059 | { | |
11060 | _arg1 = &temp; | |
11061 | if (! wxRect_helper(_obj1, &_arg1)) | |
11062 | return NULL; | |
11063 | } | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
11067 | ||
11068 | wxPyEndAllowThreads(__tstate); | |
11069 | if (PyErr_Occurred()) return NULL; | |
11070 | } _resultobj = Py_BuildValue("i",_result); | |
11071 | return _resultobj; | |
11072 | } | |
11073 | ||
11074 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11075 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11076 | PyObject * _resultobj; | |
11077 | bool _result; | |
11078 | wxRegion * _arg0; | |
11079 | wxRegion * _arg1; | |
11080 | PyObject * _argo0 = 0; | |
11081 | PyObject * _argo1 = 0; | |
11082 | char *_kwnames[] = { "self","region", NULL }; | |
11083 | ||
11084 | self = self; | |
11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11086 | return NULL; | |
11087 | if (_argo0) { | |
11088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11091 | return NULL; | |
11092 | } | |
11093 | } | |
11094 | if (_argo1) { | |
11095 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11096 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11098 | return NULL; | |
11099 | } | |
11100 | } | |
11101 | { | |
11102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11103 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
11104 | ||
11105 | wxPyEndAllowThreads(__tstate); | |
11106 | if (PyErr_Occurred()) return NULL; | |
11107 | } _resultobj = Py_BuildValue("i",_result); | |
11108 | return _resultobj; | |
11109 | } | |
11110 | ||
11111 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11112 | wxRegionIterator *src; | |
11113 | wxObject *dest; | |
11114 | src = (wxRegionIterator *) ptr; | |
11115 | dest = (wxObject *) src; | |
11116 | return (void *) dest; | |
11117 | } | |
11118 | ||
11119 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11120 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11121 | PyObject * _resultobj; | |
11122 | wxRegionIterator * _result; | |
11123 | wxRegion * _arg0; | |
11124 | PyObject * _argo0 = 0; | |
11125 | char *_kwnames[] = { "region", NULL }; | |
11126 | char _ptemp[128]; | |
11127 | ||
11128 | self = self; | |
11129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11130 | return NULL; | |
11131 | if (_argo0) { | |
11132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
11135 | return NULL; | |
11136 | } | |
11137 | } | |
11138 | { | |
11139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11140 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
11141 | ||
11142 | wxPyEndAllowThreads(__tstate); | |
11143 | if (PyErr_Occurred()) return NULL; | |
11144 | } if (_result) { | |
11145 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11146 | _resultobj = Py_BuildValue("s",_ptemp); | |
11147 | } else { | |
11148 | Py_INCREF(Py_None); | |
11149 | _resultobj = Py_None; | |
11150 | } | |
11151 | return _resultobj; | |
11152 | } | |
11153 | ||
11154 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11155 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11156 | PyObject * _resultobj; | |
11157 | wxRegionIterator * _arg0; | |
11158 | PyObject * _argo0 = 0; | |
11159 | char *_kwnames[] = { "self", NULL }; | |
11160 | ||
11161 | self = self; | |
11162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11163 | return NULL; | |
11164 | if (_argo0) { | |
11165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11168 | return NULL; | |
11169 | } | |
11170 | } | |
11171 | { | |
11172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11173 | delete_wxRegionIterator(_arg0); | |
11174 | ||
11175 | wxPyEndAllowThreads(__tstate); | |
11176 | if (PyErr_Occurred()) return NULL; | |
11177 | } Py_INCREF(Py_None); | |
11178 | _resultobj = Py_None; | |
11179 | return _resultobj; | |
11180 | } | |
11181 | ||
11182 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11183 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11184 | PyObject * _resultobj; | |
11185 | long _result; | |
11186 | wxRegionIterator * _arg0; | |
11187 | PyObject * _argo0 = 0; | |
11188 | char *_kwnames[] = { "self", NULL }; | |
11189 | ||
11190 | self = self; | |
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11192 | return NULL; | |
11193 | if (_argo0) { | |
11194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11197 | return NULL; | |
11198 | } | |
11199 | } | |
11200 | { | |
11201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11202 | _result = (long )wxRegionIterator_GetX(_arg0); | |
11203 | ||
11204 | wxPyEndAllowThreads(__tstate); | |
11205 | if (PyErr_Occurred()) return NULL; | |
11206 | } _resultobj = Py_BuildValue("l",_result); | |
11207 | return _resultobj; | |
11208 | } | |
11209 | ||
11210 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11211 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11212 | PyObject * _resultobj; | |
11213 | long _result; | |
11214 | wxRegionIterator * _arg0; | |
11215 | PyObject * _argo0 = 0; | |
11216 | char *_kwnames[] = { "self", NULL }; | |
11217 | ||
11218 | self = self; | |
11219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11220 | return NULL; | |
11221 | if (_argo0) { | |
11222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11225 | return NULL; | |
11226 | } | |
11227 | } | |
11228 | { | |
11229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11230 | _result = (long )wxRegionIterator_GetY(_arg0); | |
11231 | ||
11232 | wxPyEndAllowThreads(__tstate); | |
11233 | if (PyErr_Occurred()) return NULL; | |
11234 | } _resultobj = Py_BuildValue("l",_result); | |
11235 | return _resultobj; | |
11236 | } | |
11237 | ||
11238 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11239 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11240 | PyObject * _resultobj; | |
11241 | long _result; | |
11242 | wxRegionIterator * _arg0; | |
11243 | PyObject * _argo0 = 0; | |
11244 | char *_kwnames[] = { "self", NULL }; | |
11245 | ||
11246 | self = self; | |
11247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11248 | return NULL; | |
11249 | if (_argo0) { | |
11250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
11253 | return NULL; | |
11254 | } | |
11255 | } | |
11256 | { | |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | _result = (long )wxRegionIterator_GetW(_arg0); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) return NULL; | |
11262 | } _resultobj = Py_BuildValue("l",_result); | |
11263 | return _resultobj; | |
11264 | } | |
11265 | ||
11266 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11267 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11268 | PyObject * _resultobj; | |
11269 | long _result; | |
11270 | wxRegionIterator * _arg0; | |
11271 | PyObject * _argo0 = 0; | |
11272 | char *_kwnames[] = { "self", NULL }; | |
11273 | ||
11274 | self = self; | |
11275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
11276 | return NULL; | |
11277 | if (_argo0) { | |
11278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
11281 | return NULL; | |
11282 | } | |
11283 | } | |
11284 | { | |
11285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11286 | _result = (long )wxRegionIterator_GetWidth(_arg0); | |
11287 | ||
11288 | wxPyEndAllowThreads(__tstate); | |
11289 | if (PyErr_Occurred()) return NULL; | |
11290 | } _resultobj = Py_BuildValue("l",_result); | |
11291 | return _resultobj; | |
11292 | } | |
11293 | ||
11294 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
11295 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11296 | PyObject * _resultobj; | |
11297 | long _result; | |
11298 | wxRegionIterator * _arg0; | |
11299 | PyObject * _argo0 = 0; | |
11300 | char *_kwnames[] = { "self", NULL }; | |
11301 | ||
11302 | self = self; | |
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
11304 | return NULL; | |
11305 | if (_argo0) { | |
11306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
11309 | return NULL; | |
11310 | } | |
11311 | } | |
11312 | { | |
11313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11314 | _result = (long )wxRegionIterator_GetH(_arg0); | |
11315 | ||
11316 | wxPyEndAllowThreads(__tstate); | |
11317 | if (PyErr_Occurred()) return NULL; | |
11318 | } _resultobj = Py_BuildValue("l",_result); | |
11319 | return _resultobj; | |
11320 | } | |
11321 | ||
11322 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11323 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11324 | PyObject * _resultobj; | |
11325 | long _result; | |
11326 | wxRegionIterator * _arg0; | |
11327 | PyObject * _argo0 = 0; | |
11328 | char *_kwnames[] = { "self", NULL }; | |
11329 | ||
11330 | self = self; | |
11331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
11332 | return NULL; | |
11333 | if (_argo0) { | |
11334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
11337 | return NULL; | |
11338 | } | |
11339 | } | |
11340 | { | |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | _result = (long )wxRegionIterator_GetHeight(_arg0); | |
11343 | ||
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) return NULL; | |
11346 | } _resultobj = Py_BuildValue("l",_result); | |
11347 | return _resultobj; | |
11348 | } | |
11349 | ||
11350 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
11351 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11352 | PyObject * _resultobj; | |
11353 | wxRect * _result; | |
11354 | wxRegionIterator * _arg0; | |
11355 | PyObject * _argo0 = 0; | |
11356 | char *_kwnames[] = { "self", NULL }; | |
11357 | char _ptemp[128]; | |
11358 | ||
11359 | self = self; | |
11360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
11361 | return NULL; | |
11362 | if (_argo0) { | |
11363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
11366 | return NULL; | |
11367 | } | |
11368 | } | |
11369 | { | |
11370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11371 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
11372 | ||
11373 | wxPyEndAllowThreads(__tstate); | |
11374 | if (PyErr_Occurred()) return NULL; | |
11375 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
11376 | _resultobj = Py_BuildValue("s",_ptemp); | |
11377 | return _resultobj; | |
11378 | } | |
11379 | ||
11380 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
11381 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11382 | PyObject * _resultobj; | |
11383 | bool _result; | |
11384 | wxRegionIterator * _arg0; | |
11385 | PyObject * _argo0 = 0; | |
11386 | char *_kwnames[] = { "self", NULL }; | |
11387 | ||
11388 | self = self; | |
11389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
11390 | return NULL; | |
11391 | if (_argo0) { | |
11392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
11395 | return NULL; | |
11396 | } | |
11397 | } | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) return NULL; | |
11404 | } _resultobj = Py_BuildValue("i",_result); | |
11405 | return _resultobj; | |
11406 | } | |
11407 | ||
11408 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
11409 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11410 | PyObject * _resultobj; | |
11411 | wxRegionIterator * _arg0; | |
11412 | PyObject * _argo0 = 0; | |
11413 | char *_kwnames[] = { "self", NULL }; | |
11414 | ||
11415 | self = self; | |
11416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
11417 | return NULL; | |
11418 | if (_argo0) { | |
11419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
11422 | return NULL; | |
11423 | } | |
11424 | } | |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | wxRegionIterator_Reset(_arg0); | |
11428 | ||
11429 | wxPyEndAllowThreads(__tstate); | |
11430 | if (PyErr_Occurred()) return NULL; | |
11431 | } Py_INCREF(Py_None); | |
11432 | _resultobj = Py_None; | |
11433 | return _resultobj; | |
11434 | } | |
11435 | ||
11436 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11437 | (*self) ++; | |
11438 | } | |
11439 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11440 | PyObject * _resultobj; | |
11441 | wxRegionIterator * _arg0; | |
11442 | PyObject * _argo0 = 0; | |
11443 | char *_kwnames[] = { "self", NULL }; | |
11444 | ||
11445 | self = self; | |
11446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11447 | return NULL; | |
11448 | if (_argo0) { | |
11449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11452 | return NULL; | |
11453 | } | |
11454 | } | |
11455 | { | |
11456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11457 | wxRegionIterator_Next(_arg0); | |
11458 | ||
11459 | wxPyEndAllowThreads(__tstate); | |
11460 | if (PyErr_Occurred()) return NULL; | |
11461 | } Py_INCREF(Py_None); | |
11462 | _resultobj = Py_None; | |
11463 | return _resultobj; | |
11464 | } | |
11465 | ||
11466 | static PyMethodDef gdicMethods[] = { | |
11467 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11470 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11471 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11472 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11473 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11474 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11475 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11476 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11479 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11480 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11481 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11482 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11483 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11486 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11487 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11488 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11489 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11490 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11491 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11492 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11493 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11499 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11500 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11501 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11502 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
11503 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11504 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11505 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
11506 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11507 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11508 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
11509 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
11510 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11511 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11512 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11513 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11514 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11515 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11516 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11517 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, | |
11518 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11519 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11520 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11521 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11522 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
11524 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
11525 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
11526 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
11527 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
11528 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
11532 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11533 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11534 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11535 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11536 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11537 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11538 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11539 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11540 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11541 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11542 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11543 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11544 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11545 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11553 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
11554 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11555 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11558 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11559 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11560 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11562 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11563 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11564 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11565 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11566 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
11567 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11568 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11569 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11573 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11574 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11575 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11576 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
11577 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11578 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11579 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11580 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11581 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11582 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11584 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11585 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11586 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11587 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
11588 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
11589 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11590 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
11591 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
11592 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
11593 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
11594 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
11595 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
11596 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
11597 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
11598 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
11599 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
11600 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
11601 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
11602 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
11603 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
11604 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
11605 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
11606 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
11607 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
11608 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
11609 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
11610 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
11611 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11612 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
11613 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11614 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
11615 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11616 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
11617 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11618 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
11619 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
11620 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
11621 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11622 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11623 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11624 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11625 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11626 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11627 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11628 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
11629 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
11630 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11631 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
11632 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
11633 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
11634 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
11635 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11636 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11637 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
11638 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11639 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11640 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11641 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11642 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
11643 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11644 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11645 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11646 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11647 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11648 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
11649 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
11650 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
11651 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
11652 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
11653 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
11654 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
11655 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
11656 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11657 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
11658 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
11659 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
11660 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11661 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11662 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11663 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
11664 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
11665 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
11666 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11667 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11668 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
11669 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
11670 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
11671 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
11672 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
11673 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11674 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
11675 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
11676 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
11677 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11678 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
11679 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
11680 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
11682 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
11683 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
11684 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11685 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
11686 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
11687 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
11688 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11689 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
11690 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
11691 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11692 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
11693 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
11694 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
11695 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
11696 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
11697 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
11698 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
11699 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
11700 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
11701 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
11702 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11703 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11704 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11705 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11706 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11707 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
11708 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
11709 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
11710 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
11711 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
11712 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
11713 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
11714 | { "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS }, | |
11715 | { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS }, | |
11716 | { "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
11717 | { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS }, | |
11718 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11719 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
11720 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11721 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11722 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11723 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11724 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11726 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11727 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11728 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11729 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
11730 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
11731 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11732 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11735 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11736 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11737 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11738 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11739 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11740 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11741 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11742 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11743 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
11744 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11745 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11746 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11747 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11749 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
11750 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11751 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11752 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11753 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11754 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
11755 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
11756 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
11757 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11758 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
11759 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
11760 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
11761 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11763 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
11764 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11765 | { NULL, NULL } | |
11766 | }; | |
11767 | #ifdef __cplusplus | |
11768 | } | |
11769 | #endif | |
11770 | /* | |
11771 | * This table is used by the pointer type-checker | |
11772 | */ | |
11773 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11774 | { "_signed_long","_long",0}, | |
11775 | { "_wxPrintQuality","_wxCoord",0}, | |
11776 | { "_wxPrintQuality","_int",0}, | |
11777 | { "_wxPrintQuality","_signed_int",0}, | |
11778 | { "_wxPrintQuality","_unsigned_int",0}, | |
11779 | { "_wxPrintQuality","_wxWindowID",0}, | |
11780 | { "_wxPrintQuality","_uint",0}, | |
11781 | { "_wxPrintQuality","_EBool",0}, | |
11782 | { "_wxPrintQuality","_size_t",0}, | |
11783 | { "_wxPrintQuality","_time_t",0}, | |
11784 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, | |
11785 | { "_byte","_unsigned_char",0}, | |
11786 | { "_long","_unsigned_long",0}, | |
11787 | { "_long","_signed_long",0}, | |
11788 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
11789 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
11790 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
11791 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, | |
11792 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
11793 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
11794 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
11795 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
11796 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
11797 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
11798 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
11799 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
11800 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
11801 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
11802 | { "_size_t","_wxCoord",0}, | |
11803 | { "_size_t","_wxPrintQuality",0}, | |
11804 | { "_size_t","_time_t",0}, | |
11805 | { "_size_t","_unsigned_int",0}, | |
11806 | { "_size_t","_int",0}, | |
11807 | { "_size_t","_wxWindowID",0}, | |
11808 | { "_size_t","_uint",0}, | |
11809 | { "_uint","_wxCoord",0}, | |
11810 | { "_uint","_wxPrintQuality",0}, | |
11811 | { "_uint","_time_t",0}, | |
11812 | { "_uint","_size_t",0}, | |
11813 | { "_uint","_unsigned_int",0}, | |
11814 | { "_uint","_int",0}, | |
11815 | { "_uint","_wxWindowID",0}, | |
11816 | { "_wxChar","_char",0}, | |
11817 | { "_char","_wxChar",0}, | |
11818 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11819 | { "_EBool","_wxCoord",0}, | |
11820 | { "_EBool","_wxPrintQuality",0}, | |
11821 | { "_EBool","_signed_int",0}, | |
11822 | { "_EBool","_int",0}, | |
11823 | { "_EBool","_wxWindowID",0}, | |
11824 | { "_unsigned_long","_long",0}, | |
11825 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11826 | { "_signed_int","_wxCoord",0}, | |
11827 | { "_signed_int","_wxPrintQuality",0}, | |
11828 | { "_signed_int","_EBool",0}, | |
11829 | { "_signed_int","_wxWindowID",0}, | |
11830 | { "_signed_int","_int",0}, | |
11831 | { "_WXTYPE","_short",0}, | |
11832 | { "_WXTYPE","_signed_short",0}, | |
11833 | { "_WXTYPE","_unsigned_short",0}, | |
11834 | { "_unsigned_short","_WXTYPE",0}, | |
11835 | { "_unsigned_short","_short",0}, | |
11836 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
11837 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
11838 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
11839 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
11840 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, | |
11841 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
11842 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
11843 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
11844 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
11845 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
11846 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, | |
11847 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
11848 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
11849 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, | |
11850 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
11851 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
11852 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
11853 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
11854 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, | |
11855 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
11856 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
11857 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
11858 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
11859 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
11860 | { "_signed_short","_WXTYPE",0}, | |
11861 | { "_signed_short","_short",0}, | |
11862 | { "_unsigned_char","_byte",0}, | |
11863 | { "_unsigned_int","_wxCoord",0}, | |
11864 | { "_unsigned_int","_wxPrintQuality",0}, | |
11865 | { "_unsigned_int","_time_t",0}, | |
11866 | { "_unsigned_int","_size_t",0}, | |
11867 | { "_unsigned_int","_uint",0}, | |
11868 | { "_unsigned_int","_wxWindowID",0}, | |
11869 | { "_unsigned_int","_int",0}, | |
11870 | { "_short","_WXTYPE",0}, | |
11871 | { "_short","_unsigned_short",0}, | |
11872 | { "_short","_signed_short",0}, | |
11873 | { "_wxWindowID","_wxCoord",0}, | |
11874 | { "_wxWindowID","_wxPrintQuality",0}, | |
11875 | { "_wxWindowID","_time_t",0}, | |
11876 | { "_wxWindowID","_size_t",0}, | |
11877 | { "_wxWindowID","_EBool",0}, | |
11878 | { "_wxWindowID","_uint",0}, | |
11879 | { "_wxWindowID","_int",0}, | |
11880 | { "_wxWindowID","_signed_int",0}, | |
11881 | { "_wxWindowID","_unsigned_int",0}, | |
11882 | { "_int","_wxCoord",0}, | |
11883 | { "_int","_wxPrintQuality",0}, | |
11884 | { "_int","_time_t",0}, | |
11885 | { "_int","_size_t",0}, | |
11886 | { "_int","_EBool",0}, | |
11887 | { "_int","_uint",0}, | |
11888 | { "_int","_wxWindowID",0}, | |
11889 | { "_int","_unsigned_int",0}, | |
11890 | { "_int","_signed_int",0}, | |
11891 | { "_time_t","_wxCoord",0}, | |
11892 | { "_time_t","_wxPrintQuality",0}, | |
11893 | { "_time_t","_unsigned_int",0}, | |
11894 | { "_time_t","_int",0}, | |
11895 | { "_time_t","_wxWindowID",0}, | |
11896 | { "_time_t","_uint",0}, | |
11897 | { "_time_t","_size_t",0}, | |
11898 | { "_wxCoord","_int",0}, | |
11899 | { "_wxCoord","_signed_int",0}, | |
11900 | { "_wxCoord","_unsigned_int",0}, | |
11901 | { "_wxCoord","_wxWindowID",0}, | |
11902 | { "_wxCoord","_uint",0}, | |
11903 | { "_wxCoord","_EBool",0}, | |
11904 | { "_wxCoord","_size_t",0}, | |
11905 | { "_wxCoord","_time_t",0}, | |
11906 | { "_wxCoord","_wxPrintQuality",0}, | |
11907 | {0,0,0}}; | |
11908 | ||
11909 | static PyObject *SWIG_globals; | |
11910 | #ifdef __cplusplus | |
11911 | extern "C" | |
11912 | #endif | |
11913 | SWIGEXPORT(void) initgdic() { | |
11914 | PyObject *m, *d; | |
11915 | SWIG_globals = SWIG_newvarlink(); | |
11916 | m = Py_InitModule("gdic", gdicMethods); | |
11917 | d = PyModule_GetDict(m); | |
11918 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); | |
11919 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
11920 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
11921 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
11922 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
11923 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
11924 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
11925 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
11926 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); | |
11927 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); | |
11928 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
11929 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
11930 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
11931 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
11932 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
11933 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
11934 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
11935 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); | |
11936 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
11937 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
11938 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
11939 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
11940 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
11941 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
11942 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
11943 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
11944 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
11945 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
11946 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
11947 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
11948 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
11949 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
11950 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
11951 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
11952 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); | |
11953 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
11954 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
11955 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
11956 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
11957 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
11958 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
11959 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
11960 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
11961 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); | |
11962 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); | |
11963 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
11964 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
11965 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
11966 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); | |
11967 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
11968 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
11969 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); | |
11970 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
11971 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
11972 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
11973 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
11974 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
11975 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
11976 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
11977 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
11978 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
11979 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); | |
11980 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
11981 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
11982 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
11983 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
11984 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
11985 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
11986 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
11987 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
11988 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
11989 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11990 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
11991 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
11992 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
11993 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
11994 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
11995 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
11996 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
11997 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
11998 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
11999 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
12000 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
12001 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
12002 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
12003 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
12004 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
12005 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
12006 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
12007 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
12008 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
12009 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
12010 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
12011 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
12012 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
12013 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
12014 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
12015 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
12016 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
12017 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
12018 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
12019 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
12020 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
12021 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
12022 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
12023 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
12024 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
12025 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
12026 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
12027 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
12028 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
12029 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
12030 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
12031 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
12032 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); | |
12033 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
12034 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
12035 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
12036 | { | |
12037 | int i; | |
12038 | for (i = 0; _swig_mapping[i].n1; i++) | |
12039 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12040 | } | |
12041 | } |