]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/mac/gdi.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include "Python.h" | |
23 | ||
24 | #include <string.h> | |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
29 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
30 | # else | |
31 | # if defined(__BORLANDC__) | |
32 | # define SWIGEXPORT(a) a _export | |
33 | # else | |
34 | # define SWIGEXPORT(a) a | |
35 | # endif | |
36 | # endif | |
37 | #else | |
38 | # define SWIGEXPORT(a) a | |
39 | #endif | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | extern void SWIG_MakePtr(char *, void *, char *); | |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
53 | #define SWIG_init initgdic | |
54 | ||
55 | #define SWIG_name "gdic" | |
56 | ||
57 | #include "helpers.h" | |
58 | #include <wx/imaglist.h> | |
59 | #include <wx/fontmap.h> | |
60 | #include <wx/fontenc.h> | |
61 | #include <wx/fontmap.h> | |
62 | #include <wx/fontutil.h> | |
63 | #include <wx/dcbuffer.h> | |
64 | #include <wx/dcmirror.h> | |
65 | #include <wx/iconbndl.h> | |
66 | ||
67 | ||
68 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
69 | PyObject* o2; | |
70 | PyObject* o3; | |
71 | ||
72 | if (!target) { | |
73 | target = o; | |
74 | } else if (target == Py_None) { | |
75 | Py_DECREF(Py_None); | |
76 | target = o; | |
77 | } else { | |
78 | if (!PyTuple_Check(target)) { | |
79 | o2 = target; | |
80 | target = PyTuple_New(1); | |
81 | PyTuple_SetItem(target, 0, o2); | |
82 | } | |
83 | o3 = PyTuple_New(1); | |
84 | PyTuple_SetItem(o3, 0, o); | |
85 | ||
86 | o2 = target; | |
87 | target = PySequence_Concat(o2, o3); | |
88 | Py_DECREF(o2); | |
89 | Py_DECREF(o3); | |
90 | } | |
91 | return target; | |
92 | } | |
93 | ||
94 | // Put some wx default wxChar* values into wxStrings. | |
95 | static const wxString wxPyEmptyString(wxT("")); | |
96 | // Implementations of some alternate "constructors" | |
97 | ||
98 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { | |
99 | return new wxBitmap(width, height, depth); | |
100 | } | |
101 | ||
102 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
103 | char** cArray = NULL; | |
104 | int count; | |
105 | ||
106 | if (!PyList_Check(listOfStrings)) { | |
107 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
108 | return NULL; | |
109 | } | |
110 | count = PyList_Size(listOfStrings); | |
111 | cArray = new char*[count]; | |
112 | ||
113 | for(int x=0; x<count; x++) { | |
114 | // TODO: Need some validation and error checking here | |
115 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
116 | } | |
117 | return cArray; | |
118 | } | |
119 | ||
120 | ||
121 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { | |
122 | char** cArray = NULL; | |
123 | wxBitmap* bmp; | |
124 | ||
125 | cArray = ConvertListOfStrings(listOfStrings); | |
126 | if (! cArray) | |
127 | return NULL; | |
128 | bmp = new wxBitmap(cArray); | |
129 | delete [] cArray; | |
130 | return bmp; | |
131 | } | |
132 | ||
133 | ||
134 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
135 | return new wxBitmap(icon); | |
136 | } | |
137 | ||
138 | ||
139 | wxBitmap* wxBitmapFromBits(PyObject* bits, int width, int height, int depth = 1 ) { | |
140 | char* buf; | |
141 | int length; | |
142 | PyString_AsStringAndSize(bits, &buf, &length); | |
143 | return new wxBitmap(buf, width, height, depth); | |
144 | } | |
145 | ||
146 | ||
147 | // #ifdef __WXMSW__ | |
148 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
149 | // int width, int height, int depth = 1) { | |
150 | // if (! PyString_Check(data)) { | |
151 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
152 | // return NULL; | |
153 | // } | |
154 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
155 | // } | |
156 | // #endif | |
157 | ||
158 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { | |
159 | return new wxMask(bitmap, colour); | |
160 | } | |
161 | // Implementations of some alternate "constructors" | |
162 | wxIcon* wxEmptyIcon() { | |
163 | return new wxIcon(); | |
164 | } | |
165 | ||
166 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
167 | char** cArray = NULL; | |
168 | wxIcon* icon; | |
169 | ||
170 | cArray = ConvertListOfStrings(listOfStrings); | |
171 | if (! cArray) | |
172 | return NULL; | |
173 | icon = new wxIcon(cArray); | |
174 | delete [] cArray; | |
175 | return icon; | |
176 | } | |
177 | ||
178 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
179 | wxIcon* icon = new wxIcon(); | |
180 | icon->CopyFromBitmap(bmp); | |
181 | return icon; | |
182 | } | |
183 | ||
184 | wxIcon* wxIconFromLocation(const wxIconLocation& loc) { | |
185 | wxIcon* icon = new wxIcon(loc); | |
186 | return icon; | |
187 | } | |
188 | ||
189 | wxCursor* wxPyStockCursor(int id) { | |
190 | return new wxCursor(id); | |
191 | } | |
192 | ||
193 | wxCursor* wxCursorFromImage(const wxImage& image) { | |
194 | return new wxCursor(image); | |
195 | } | |
196 | ||
197 | wxCursor* wxCursorFromBits(PyObject* bits, int width, int height, | |
198 | int hotSpotX=-1, int hotSpotY=-1, | |
199 | PyObject* maskBits=0) { | |
200 | char* bitsbuf; | |
201 | char* maskbuf = NULL; | |
202 | int length; | |
203 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
204 | if (maskBits) | |
205 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
206 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
207 | } | |
208 | // Alternate 'constructor' | |
209 | wxColour* wxNamedColour(const wxString& colorName) { | |
210 | return new wxColour(colorName); | |
211 | } | |
212 | ||
213 | class wxPyPen : public wxPen { | |
214 | public: | |
215 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
216 | : wxPen(colour, width, style) | |
217 | { m_dash = NULL; } | |
218 | ~wxPyPen() { | |
219 | if (m_dash) | |
220 | delete [] m_dash; | |
221 | } | |
222 | ||
223 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
224 | if (m_dash) | |
225 | delete [] m_dash; | |
226 | m_dash = new wxDash[nb_dashes]; | |
227 | for (int i=0; i<nb_dashes; i++) { | |
228 | m_dash[i] = dash[i]; | |
229 | } | |
230 | wxPen::SetDashes(nb_dashes, m_dash); | |
231 | } | |
232 | ||
233 | private: | |
234 | wxDash* m_dash; | |
235 | }; | |
236 | ||
237 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
238 | *x1 = dc->MinX(); | |
239 | *y1 = dc->MinY(); | |
240 | *x2 = dc->MaxX(); | |
241 | *y2 = dc->MaxY(); | |
242 | } | |
243 | // Alternate 'constructor' | |
244 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
245 | return new wxMemoryDC(oldDC); | |
246 | } | |
247 | ||
248 | #if 0 | |
249 | extern wxFont * wxNORMAL_FONT; | |
250 | extern wxFont * wxSMALL_FONT; | |
251 | extern wxFont * wxITALIC_FONT; | |
252 | extern wxFont * wxSWISS_FONT; | |
253 | extern wxPen * wxRED_PEN; | |
254 | extern wxPen * wxCYAN_PEN; | |
255 | extern wxPen * wxGREEN_PEN; | |
256 | extern wxPen * wxBLACK_PEN; | |
257 | extern wxPen * wxWHITE_PEN; | |
258 | extern wxPen * wxTRANSPARENT_PEN; | |
259 | extern wxPen * wxBLACK_DASHED_PEN; | |
260 | extern wxPen * wxGREY_PEN; | |
261 | extern wxPen * wxMEDIUM_GREY_PEN; | |
262 | extern wxPen * wxLIGHT_GREY_PEN; | |
263 | extern wxBrush * wxBLUE_BRUSH; | |
264 | extern wxBrush * wxGREEN_BRUSH; | |
265 | extern wxBrush * wxWHITE_BRUSH; | |
266 | extern wxBrush * wxBLACK_BRUSH; | |
267 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
268 | extern wxBrush * wxCYAN_BRUSH; | |
269 | extern wxBrush * wxRED_BRUSH; | |
270 | extern wxBrush * wxGREY_BRUSH; | |
271 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
272 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
273 | extern wxColour * wxBLACK; | |
274 | extern wxColour * wxWHITE; | |
275 | extern wxColour * wxRED; | |
276 | extern wxColour * wxBLUE; | |
277 | extern wxColour * wxGREEN; | |
278 | extern wxColour * wxCYAN; | |
279 | extern wxColour * wxLIGHT_GREY; | |
280 | extern wxCursor * wxSTANDARD_CURSOR; | |
281 | extern wxCursor * wxHOURGLASS_CURSOR; | |
282 | extern wxCursor * wxCROSS_CURSOR; | |
283 | extern wxBitmap wxNullBitmap; | |
284 | extern wxIcon wxNullIcon; | |
285 | extern wxCursor wxNullCursor; | |
286 | extern wxPen wxNullPen; | |
287 | extern wxBrush wxNullBrush; | |
288 | extern wxPalette wxNullPalette; | |
289 | extern wxFont wxNullFont; | |
290 | extern wxColour wxNullColour; | |
291 | extern wxFontList * wxTheFontList; | |
292 | extern wxPenList * wxThePenList; | |
293 | extern wxBrushList * wxTheBrushList; | |
294 | extern wxColourDatabase * wxTheColourDatabase; | |
295 | ||
296 | #endif | |
297 | #ifdef __cplusplus | |
298 | extern "C" { | |
299 | #endif | |
300 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
301 | PyObject * _resultobj; | |
302 | wxBitmap * _result; | |
303 | int _arg0; | |
304 | int _arg1; | |
305 | int _arg2 = (int ) -1; | |
306 | char *_kwnames[] = { "width","height","depth", NULL }; | |
307 | char _ptemp[128]; | |
308 | ||
309 | self = self; | |
310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) | |
311 | return NULL; | |
312 | { | |
313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
314 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
315 | ||
316 | wxPyEndAllowThreads(__tstate); | |
317 | if (PyErr_Occurred()) return NULL; | |
318 | } if (_result) { | |
319 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
320 | _resultobj = Py_BuildValue("s",_ptemp); | |
321 | } else { | |
322 | Py_INCREF(Py_None); | |
323 | _resultobj = Py_None; | |
324 | } | |
325 | return _resultobj; | |
326 | } | |
327 | ||
328 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
329 | PyObject * _resultobj; | |
330 | wxBitmap * _result; | |
331 | PyObject * _arg0; | |
332 | PyObject * _obj0 = 0; | |
333 | char *_kwnames[] = { "listOfStrings", NULL }; | |
334 | char _ptemp[128]; | |
335 | ||
336 | self = self; | |
337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
338 | return NULL; | |
339 | { | |
340 | _arg0 = _obj0; | |
341 | } | |
342 | { | |
343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
344 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
345 | ||
346 | wxPyEndAllowThreads(__tstate); | |
347 | if (PyErr_Occurred()) return NULL; | |
348 | } if (_result) { | |
349 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
350 | _resultobj = Py_BuildValue("s",_ptemp); | |
351 | } else { | |
352 | Py_INCREF(Py_None); | |
353 | _resultobj = Py_None; | |
354 | } | |
355 | return _resultobj; | |
356 | } | |
357 | ||
358 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
359 | PyObject * _resultobj; | |
360 | wxBitmap * _result; | |
361 | wxIcon * _arg0; | |
362 | PyObject * _argo0 = 0; | |
363 | char *_kwnames[] = { "icon", NULL }; | |
364 | char _ptemp[128]; | |
365 | ||
366 | self = self; | |
367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
368 | return NULL; | |
369 | if (_argo0) { | |
370 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
372 | return NULL; | |
373 | } | |
374 | } | |
375 | { | |
376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
377 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
378 | ||
379 | wxPyEndAllowThreads(__tstate); | |
380 | if (PyErr_Occurred()) return NULL; | |
381 | } if (_result) { | |
382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
383 | _resultobj = Py_BuildValue("s",_ptemp); | |
384 | } else { | |
385 | Py_INCREF(Py_None); | |
386 | _resultobj = Py_None; | |
387 | } | |
388 | return _resultobj; | |
389 | } | |
390 | ||
391 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
392 | PyObject * _resultobj; | |
393 | wxBitmap * _result; | |
394 | PyObject * _arg0; | |
395 | int _arg1; | |
396 | int _arg2; | |
397 | int _arg3 = (int ) 1; | |
398 | PyObject * _obj0 = 0; | |
399 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
400 | char _ptemp[128]; | |
401 | ||
402 | self = self; | |
403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxBitmapFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
404 | return NULL; | |
405 | { | |
406 | _arg0 = _obj0; | |
407 | } | |
408 | { | |
409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
410 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); | |
411 | ||
412 | wxPyEndAllowThreads(__tstate); | |
413 | if (PyErr_Occurred()) return NULL; | |
414 | } if (_result) { | |
415 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
416 | _resultobj = Py_BuildValue("s",_ptemp); | |
417 | } else { | |
418 | Py_INCREF(Py_None); | |
419 | _resultobj = Py_None; | |
420 | } | |
421 | return _resultobj; | |
422 | } | |
423 | ||
424 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
425 | PyObject * _resultobj; | |
426 | wxMask * _result; | |
427 | wxBitmap * _arg0; | |
428 | wxColour * _arg1; | |
429 | PyObject * _argo0 = 0; | |
430 | wxColour temp; | |
431 | PyObject * _obj1 = 0; | |
432 | char *_kwnames[] = { "bitmap","colour", NULL }; | |
433 | char _ptemp[128]; | |
434 | ||
435 | self = self; | |
436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) | |
437 | return NULL; | |
438 | if (_argo0) { | |
439 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
441 | return NULL; | |
442 | } | |
443 | } | |
444 | { | |
445 | _arg1 = &temp; | |
446 | if (! wxColour_helper(_obj1, &_arg1)) | |
447 | return NULL; | |
448 | } | |
449 | { | |
450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
451 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
452 | ||
453 | wxPyEndAllowThreads(__tstate); | |
454 | if (PyErr_Occurred()) return NULL; | |
455 | } if (_result) { | |
456 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
457 | _resultobj = Py_BuildValue("s",_ptemp); | |
458 | } else { | |
459 | Py_INCREF(Py_None); | |
460 | _resultobj = Py_None; | |
461 | } | |
462 | return _resultobj; | |
463 | } | |
464 | ||
465 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
466 | PyObject * _resultobj; | |
467 | wxIcon * _result; | |
468 | char *_kwnames[] = { NULL }; | |
469 | char _ptemp[128]; | |
470 | ||
471 | self = self; | |
472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
473 | return NULL; | |
474 | { | |
475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
476 | _result = (wxIcon *)wxEmptyIcon(); | |
477 | ||
478 | wxPyEndAllowThreads(__tstate); | |
479 | if (PyErr_Occurred()) return NULL; | |
480 | } if (_result) { | |
481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
482 | _resultobj = Py_BuildValue("s",_ptemp); | |
483 | } else { | |
484 | Py_INCREF(Py_None); | |
485 | _resultobj = Py_None; | |
486 | } | |
487 | return _resultobj; | |
488 | } | |
489 | ||
490 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
491 | PyObject * _resultobj; | |
492 | wxIcon * _result; | |
493 | PyObject * _arg0; | |
494 | PyObject * _obj0 = 0; | |
495 | char *_kwnames[] = { "listOfStrings", NULL }; | |
496 | char _ptemp[128]; | |
497 | ||
498 | self = self; | |
499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
500 | return NULL; | |
501 | { | |
502 | _arg0 = _obj0; | |
503 | } | |
504 | { | |
505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
506 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
507 | ||
508 | wxPyEndAllowThreads(__tstate); | |
509 | if (PyErr_Occurred()) return NULL; | |
510 | } if (_result) { | |
511 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
512 | _resultobj = Py_BuildValue("s",_ptemp); | |
513 | } else { | |
514 | Py_INCREF(Py_None); | |
515 | _resultobj = Py_None; | |
516 | } | |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | wxIcon * _result; | |
523 | wxBitmap * _arg0; | |
524 | PyObject * _argo0 = 0; | |
525 | char *_kwnames[] = { "bmp", NULL }; | |
526 | char _ptemp[128]; | |
527 | ||
528 | self = self; | |
529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
530 | return NULL; | |
531 | if (_argo0) { | |
532 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
534 | return NULL; | |
535 | } | |
536 | } | |
537 | { | |
538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
539 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); | |
540 | ||
541 | wxPyEndAllowThreads(__tstate); | |
542 | if (PyErr_Occurred()) return NULL; | |
543 | } if (_result) { | |
544 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
545 | _resultobj = Py_BuildValue("s",_ptemp); | |
546 | } else { | |
547 | Py_INCREF(Py_None); | |
548 | _resultobj = Py_None; | |
549 | } | |
550 | return _resultobj; | |
551 | } | |
552 | ||
553 | static PyObject *_wrap_wxIconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
554 | PyObject * _resultobj; | |
555 | wxIcon * _result; | |
556 | wxIconLocation * _arg0; | |
557 | PyObject * _argo0 = 0; | |
558 | char *_kwnames[] = { "loc", NULL }; | |
559 | char _ptemp[128]; | |
560 | ||
561 | self = self; | |
562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromLocation",_kwnames,&_argo0)) | |
563 | return NULL; | |
564 | if (_argo0) { | |
565 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) { | |
566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromLocation. Expected _wxIconLocation_p."); | |
567 | return NULL; | |
568 | } | |
569 | } | |
570 | { | |
571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
572 | _result = (wxIcon *)wxIconFromLocation(*_arg0); | |
573 | ||
574 | wxPyEndAllowThreads(__tstate); | |
575 | if (PyErr_Occurred()) return NULL; | |
576 | } if (_result) { | |
577 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
578 | _resultobj = Py_BuildValue("s",_ptemp); | |
579 | } else { | |
580 | Py_INCREF(Py_None); | |
581 | _resultobj = Py_None; | |
582 | } | |
583 | return _resultobj; | |
584 | } | |
585 | ||
586 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
587 | PyObject * _resultobj; | |
588 | wxCursor * _result; | |
589 | int _arg0; | |
590 | char *_kwnames[] = { "id", NULL }; | |
591 | char _ptemp[128]; | |
592 | ||
593 | self = self; | |
594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) | |
595 | return NULL; | |
596 | { | |
597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
598 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
599 | ||
600 | wxPyEndAllowThreads(__tstate); | |
601 | if (PyErr_Occurred()) return NULL; | |
602 | } if (_result) { | |
603 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
604 | _resultobj = Py_BuildValue("s",_ptemp); | |
605 | } else { | |
606 | Py_INCREF(Py_None); | |
607 | _resultobj = Py_None; | |
608 | } | |
609 | return _resultobj; | |
610 | } | |
611 | ||
612 | static PyObject *_wrap_wxCursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
613 | PyObject * _resultobj; | |
614 | wxCursor * _result; | |
615 | wxImage * _arg0; | |
616 | PyObject * _argo0 = 0; | |
617 | char *_kwnames[] = { "image", NULL }; | |
618 | char _ptemp[128]; | |
619 | ||
620 | self = self; | |
621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursorFromImage",_kwnames,&_argo0)) | |
622 | return NULL; | |
623 | if (_argo0) { | |
624 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p."); | |
626 | return NULL; | |
627 | } | |
628 | } | |
629 | { | |
630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
631 | _result = (wxCursor *)wxCursorFromImage(*_arg0); | |
632 | ||
633 | wxPyEndAllowThreads(__tstate); | |
634 | if (PyErr_Occurred()) return NULL; | |
635 | } if (_result) { | |
636 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
637 | _resultobj = Py_BuildValue("s",_ptemp); | |
638 | } else { | |
639 | Py_INCREF(Py_None); | |
640 | _resultobj = Py_None; | |
641 | } | |
642 | return _resultobj; | |
643 | } | |
644 | ||
645 | static PyObject *_wrap_wxCursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
646 | PyObject * _resultobj; | |
647 | wxCursor * _result; | |
648 | PyObject * _arg0; | |
649 | int _arg1; | |
650 | int _arg2; | |
651 | int _arg3 = (int ) -1; | |
652 | int _arg4 = (int ) -1; | |
653 | PyObject * _arg5 = (PyObject *) 0; | |
654 | PyObject * _obj0 = 0; | |
655 | PyObject * _obj5 = 0; | |
656 | char *_kwnames[] = { "bits","width","height","hotSpotX","hotSpotY","maskBits", NULL }; | |
657 | char _ptemp[128]; | |
658 | ||
659 | self = self; | |
660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiO:wxCursorFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5)) | |
661 | return NULL; | |
662 | { | |
663 | _arg0 = _obj0; | |
664 | } | |
665 | if (_obj5) | |
666 | { | |
667 | _arg5 = _obj5; | |
668 | } | |
669 | { | |
670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
671 | _result = (wxCursor *)wxCursorFromBits(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
672 | ||
673 | wxPyEndAllowThreads(__tstate); | |
674 | if (PyErr_Occurred()) return NULL; | |
675 | } if (_result) { | |
676 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
677 | _resultobj = Py_BuildValue("s",_ptemp); | |
678 | } else { | |
679 | Py_INCREF(Py_None); | |
680 | _resultobj = Py_None; | |
681 | } | |
682 | return _resultobj; | |
683 | } | |
684 | ||
685 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
686 | PyObject * _resultobj; | |
687 | wxColour * _result; | |
688 | wxString * _arg0; | |
689 | PyObject * _obj0 = 0; | |
690 | char *_kwnames[] = { "colorName", NULL }; | |
691 | char _ptemp[128]; | |
692 | ||
693 | self = self; | |
694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) | |
695 | return NULL; | |
696 | { | |
697 | _arg0 = wxString_in_helper(_obj0); | |
698 | if (_arg0 == NULL) | |
699 | return NULL; | |
700 | } | |
701 | { | |
702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
703 | _result = (wxColour *)wxNamedColour(*_arg0); | |
704 | ||
705 | wxPyEndAllowThreads(__tstate); | |
706 | if (PyErr_Occurred()) return NULL; | |
707 | } if (_result) { | |
708 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
709 | _resultobj = Py_BuildValue("s",_ptemp); | |
710 | } else { | |
711 | Py_INCREF(Py_None); | |
712 | _resultobj = Py_None; | |
713 | } | |
714 | { | |
715 | if (_obj0) | |
716 | delete _arg0; | |
717 | } | |
718 | return _resultobj; | |
719 | } | |
720 | ||
721 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
722 | PyObject * _resultobj; | |
723 | wxMemoryDC * _result; | |
724 | wxDC * _arg0; | |
725 | PyObject * _argo0 = 0; | |
726 | char *_kwnames[] = { "oldDC", NULL }; | |
727 | char _ptemp[128]; | |
728 | ||
729 | self = self; | |
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) | |
731 | return NULL; | |
732 | if (_argo0) { | |
733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
736 | return NULL; | |
737 | } | |
738 | } | |
739 | { | |
740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
741 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
742 | ||
743 | wxPyEndAllowThreads(__tstate); | |
744 | if (PyErr_Occurred()) return NULL; | |
745 | } if (_result) { | |
746 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
747 | _resultobj = Py_BuildValue("s",_ptemp); | |
748 | } else { | |
749 | Py_INCREF(Py_None); | |
750 | _resultobj = Py_None; | |
751 | } | |
752 | return _resultobj; | |
753 | } | |
754 | ||
755 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
756 | ||
757 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
758 | return 1; | |
759 | } | |
760 | ||
761 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
762 | PyObject * pyobj; | |
763 | char ptemp[128]; | |
764 | ||
765 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
766 | pyobj = PyString_FromString(ptemp); | |
767 | return pyobj; | |
768 | } | |
769 | ||
770 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
771 | ||
772 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
773 | return 1; | |
774 | } | |
775 | ||
776 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
777 | PyObject * pyobj; | |
778 | char ptemp[128]; | |
779 | ||
780 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
781 | pyobj = PyString_FromString(ptemp); | |
782 | return pyobj; | |
783 | } | |
784 | ||
785 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
786 | ||
787 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
788 | return 1; | |
789 | } | |
790 | ||
791 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
792 | PyObject * pyobj; | |
793 | char ptemp[128]; | |
794 | ||
795 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
796 | pyobj = PyString_FromString(ptemp); | |
797 | return pyobj; | |
798 | } | |
799 | ||
800 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
801 | ||
802 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
803 | return 1; | |
804 | } | |
805 | ||
806 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
807 | PyObject * pyobj; | |
808 | char ptemp[128]; | |
809 | ||
810 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
811 | pyobj = PyString_FromString(ptemp); | |
812 | return pyobj; | |
813 | } | |
814 | ||
815 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
816 | ||
817 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
818 | return 1; | |
819 | } | |
820 | ||
821 | static PyObject *_wrap_wxRED_PEN_get() { | |
822 | PyObject * pyobj; | |
823 | char ptemp[128]; | |
824 | ||
825 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
826 | pyobj = PyString_FromString(ptemp); | |
827 | return pyobj; | |
828 | } | |
829 | ||
830 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
831 | ||
832 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
833 | return 1; | |
834 | } | |
835 | ||
836 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
837 | PyObject * pyobj; | |
838 | char ptemp[128]; | |
839 | ||
840 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
841 | pyobj = PyString_FromString(ptemp); | |
842 | return pyobj; | |
843 | } | |
844 | ||
845 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
846 | ||
847 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
848 | return 1; | |
849 | } | |
850 | ||
851 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
852 | PyObject * pyobj; | |
853 | char ptemp[128]; | |
854 | ||
855 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
856 | pyobj = PyString_FromString(ptemp); | |
857 | return pyobj; | |
858 | } | |
859 | ||
860 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
861 | ||
862 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
863 | return 1; | |
864 | } | |
865 | ||
866 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
867 | PyObject * pyobj; | |
868 | char ptemp[128]; | |
869 | ||
870 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
871 | pyobj = PyString_FromString(ptemp); | |
872 | return pyobj; | |
873 | } | |
874 | ||
875 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
876 | ||
877 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
878 | return 1; | |
879 | } | |
880 | ||
881 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
882 | PyObject * pyobj; | |
883 | char ptemp[128]; | |
884 | ||
885 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
886 | pyobj = PyString_FromString(ptemp); | |
887 | return pyobj; | |
888 | } | |
889 | ||
890 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
891 | ||
892 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
893 | return 1; | |
894 | } | |
895 | ||
896 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
897 | PyObject * pyobj; | |
898 | char ptemp[128]; | |
899 | ||
900 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
901 | pyobj = PyString_FromString(ptemp); | |
902 | return pyobj; | |
903 | } | |
904 | ||
905 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
906 | ||
907 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
908 | return 1; | |
909 | } | |
910 | ||
911 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
912 | PyObject * pyobj; | |
913 | char ptemp[128]; | |
914 | ||
915 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
916 | pyobj = PyString_FromString(ptemp); | |
917 | return pyobj; | |
918 | } | |
919 | ||
920 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
921 | ||
922 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
923 | return 1; | |
924 | } | |
925 | ||
926 | static PyObject *_wrap_wxGREY_PEN_get() { | |
927 | PyObject * pyobj; | |
928 | char ptemp[128]; | |
929 | ||
930 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
931 | pyobj = PyString_FromString(ptemp); | |
932 | return pyobj; | |
933 | } | |
934 | ||
935 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
936 | ||
937 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
938 | return 1; | |
939 | } | |
940 | ||
941 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
942 | PyObject * pyobj; | |
943 | char ptemp[128]; | |
944 | ||
945 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
946 | pyobj = PyString_FromString(ptemp); | |
947 | return pyobj; | |
948 | } | |
949 | ||
950 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
951 | ||
952 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
953 | return 1; | |
954 | } | |
955 | ||
956 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
957 | PyObject * pyobj; | |
958 | char ptemp[128]; | |
959 | ||
960 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
961 | pyobj = PyString_FromString(ptemp); | |
962 | return pyobj; | |
963 | } | |
964 | ||
965 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
966 | ||
967 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
968 | return 1; | |
969 | } | |
970 | ||
971 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
972 | PyObject * pyobj; | |
973 | char ptemp[128]; | |
974 | ||
975 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
976 | pyobj = PyString_FromString(ptemp); | |
977 | return pyobj; | |
978 | } | |
979 | ||
980 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
981 | ||
982 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
983 | return 1; | |
984 | } | |
985 | ||
986 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
987 | PyObject * pyobj; | |
988 | char ptemp[128]; | |
989 | ||
990 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
991 | pyobj = PyString_FromString(ptemp); | |
992 | return pyobj; | |
993 | } | |
994 | ||
995 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
996 | ||
997 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
998 | return 1; | |
999 | } | |
1000 | ||
1001 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
1002 | PyObject * pyobj; | |
1003 | char ptemp[128]; | |
1004 | ||
1005 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
1006 | pyobj = PyString_FromString(ptemp); | |
1007 | return pyobj; | |
1008 | } | |
1009 | ||
1010 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
1011 | ||
1012 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
1013 | return 1; | |
1014 | } | |
1015 | ||
1016 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
1017 | PyObject * pyobj; | |
1018 | char ptemp[128]; | |
1019 | ||
1020 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
1021 | pyobj = PyString_FromString(ptemp); | |
1022 | return pyobj; | |
1023 | } | |
1024 | ||
1025 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
1026 | ||
1027 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
1028 | return 1; | |
1029 | } | |
1030 | ||
1031 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
1032 | PyObject * pyobj; | |
1033 | char ptemp[128]; | |
1034 | ||
1035 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
1036 | pyobj = PyString_FromString(ptemp); | |
1037 | return pyobj; | |
1038 | } | |
1039 | ||
1040 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
1041 | ||
1042 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
1043 | return 1; | |
1044 | } | |
1045 | ||
1046 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
1047 | PyObject * pyobj; | |
1048 | char ptemp[128]; | |
1049 | ||
1050 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
1051 | pyobj = PyString_FromString(ptemp); | |
1052 | return pyobj; | |
1053 | } | |
1054 | ||
1055 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
1056 | ||
1057 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
1058 | return 1; | |
1059 | } | |
1060 | ||
1061 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
1062 | PyObject * pyobj; | |
1063 | char ptemp[128]; | |
1064 | ||
1065 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
1066 | pyobj = PyString_FromString(ptemp); | |
1067 | return pyobj; | |
1068 | } | |
1069 | ||
1070 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
1071 | ||
1072 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
1073 | return 1; | |
1074 | } | |
1075 | ||
1076 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
1077 | PyObject * pyobj; | |
1078 | char ptemp[128]; | |
1079 | ||
1080 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
1081 | pyobj = PyString_FromString(ptemp); | |
1082 | return pyobj; | |
1083 | } | |
1084 | ||
1085 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
1086 | ||
1087 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
1088 | return 1; | |
1089 | } | |
1090 | ||
1091 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
1092 | PyObject * pyobj; | |
1093 | char ptemp[128]; | |
1094 | ||
1095 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
1096 | pyobj = PyString_FromString(ptemp); | |
1097 | return pyobj; | |
1098 | } | |
1099 | ||
1100 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
1101 | ||
1102 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
1103 | return 1; | |
1104 | } | |
1105 | ||
1106 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
1107 | PyObject * pyobj; | |
1108 | char ptemp[128]; | |
1109 | ||
1110 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
1111 | pyobj = PyString_FromString(ptemp); | |
1112 | return pyobj; | |
1113 | } | |
1114 | ||
1115 | static int _wrap_wxBLACK_set(PyObject *val) { | |
1116 | ||
1117 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
1118 | return 1; | |
1119 | } | |
1120 | ||
1121 | static PyObject *_wrap_wxBLACK_get() { | |
1122 | PyObject * pyobj; | |
1123 | char ptemp[128]; | |
1124 | ||
1125 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
1126 | pyobj = PyString_FromString(ptemp); | |
1127 | return pyobj; | |
1128 | } | |
1129 | ||
1130 | static int _wrap_wxWHITE_set(PyObject *val) { | |
1131 | ||
1132 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
1133 | return 1; | |
1134 | } | |
1135 | ||
1136 | static PyObject *_wrap_wxWHITE_get() { | |
1137 | PyObject * pyobj; | |
1138 | char ptemp[128]; | |
1139 | ||
1140 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1141 | pyobj = PyString_FromString(ptemp); | |
1142 | return pyobj; | |
1143 | } | |
1144 | ||
1145 | static int _wrap_wxRED_set(PyObject *val) { | |
1146 | ||
1147 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1148 | return 1; | |
1149 | } | |
1150 | ||
1151 | static PyObject *_wrap_wxRED_get() { | |
1152 | PyObject * pyobj; | |
1153 | char ptemp[128]; | |
1154 | ||
1155 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1156 | pyobj = PyString_FromString(ptemp); | |
1157 | return pyobj; | |
1158 | } | |
1159 | ||
1160 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1161 | ||
1162 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1163 | return 1; | |
1164 | } | |
1165 | ||
1166 | static PyObject *_wrap_wxBLUE_get() { | |
1167 | PyObject * pyobj; | |
1168 | char ptemp[128]; | |
1169 | ||
1170 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1171 | pyobj = PyString_FromString(ptemp); | |
1172 | return pyobj; | |
1173 | } | |
1174 | ||
1175 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1176 | ||
1177 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1178 | return 1; | |
1179 | } | |
1180 | ||
1181 | static PyObject *_wrap_wxGREEN_get() { | |
1182 | PyObject * pyobj; | |
1183 | char ptemp[128]; | |
1184 | ||
1185 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1186 | pyobj = PyString_FromString(ptemp); | |
1187 | return pyobj; | |
1188 | } | |
1189 | ||
1190 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1191 | ||
1192 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1193 | return 1; | |
1194 | } | |
1195 | ||
1196 | static PyObject *_wrap_wxCYAN_get() { | |
1197 | PyObject * pyobj; | |
1198 | char ptemp[128]; | |
1199 | ||
1200 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1201 | pyobj = PyString_FromString(ptemp); | |
1202 | return pyobj; | |
1203 | } | |
1204 | ||
1205 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1206 | ||
1207 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1208 | return 1; | |
1209 | } | |
1210 | ||
1211 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1212 | PyObject * pyobj; | |
1213 | char ptemp[128]; | |
1214 | ||
1215 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1216 | pyobj = PyString_FromString(ptemp); | |
1217 | return pyobj; | |
1218 | } | |
1219 | ||
1220 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1221 | ||
1222 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1223 | return 1; | |
1224 | } | |
1225 | ||
1226 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1227 | PyObject * pyobj; | |
1228 | char ptemp[128]; | |
1229 | ||
1230 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1231 | pyobj = PyString_FromString(ptemp); | |
1232 | return pyobj; | |
1233 | } | |
1234 | ||
1235 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1236 | ||
1237 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1238 | return 1; | |
1239 | } | |
1240 | ||
1241 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1242 | PyObject * pyobj; | |
1243 | char ptemp[128]; | |
1244 | ||
1245 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1246 | pyobj = PyString_FromString(ptemp); | |
1247 | return pyobj; | |
1248 | } | |
1249 | ||
1250 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1251 | ||
1252 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1253 | return 1; | |
1254 | } | |
1255 | ||
1256 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1257 | PyObject * pyobj; | |
1258 | char ptemp[128]; | |
1259 | ||
1260 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1261 | pyobj = PyString_FromString(ptemp); | |
1262 | return pyobj; | |
1263 | } | |
1264 | ||
1265 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1266 | ||
1267 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1268 | return 1; | |
1269 | } | |
1270 | ||
1271 | static PyObject *_wrap_wxNullBitmap_get() { | |
1272 | PyObject * pyobj; | |
1273 | char ptemp[128]; | |
1274 | ||
1275 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1276 | pyobj = PyString_FromString(ptemp); | |
1277 | return pyobj; | |
1278 | } | |
1279 | ||
1280 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1281 | ||
1282 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1283 | return 1; | |
1284 | } | |
1285 | ||
1286 | static PyObject *_wrap_wxNullIcon_get() { | |
1287 | PyObject * pyobj; | |
1288 | char ptemp[128]; | |
1289 | ||
1290 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1291 | pyobj = PyString_FromString(ptemp); | |
1292 | return pyobj; | |
1293 | } | |
1294 | ||
1295 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1296 | ||
1297 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1298 | return 1; | |
1299 | } | |
1300 | ||
1301 | static PyObject *_wrap_wxNullCursor_get() { | |
1302 | PyObject * pyobj; | |
1303 | char ptemp[128]; | |
1304 | ||
1305 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1306 | pyobj = PyString_FromString(ptemp); | |
1307 | return pyobj; | |
1308 | } | |
1309 | ||
1310 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1311 | ||
1312 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1313 | return 1; | |
1314 | } | |
1315 | ||
1316 | static PyObject *_wrap_wxNullPen_get() { | |
1317 | PyObject * pyobj; | |
1318 | char ptemp[128]; | |
1319 | ||
1320 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1321 | pyobj = PyString_FromString(ptemp); | |
1322 | return pyobj; | |
1323 | } | |
1324 | ||
1325 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1326 | ||
1327 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1328 | return 1; | |
1329 | } | |
1330 | ||
1331 | static PyObject *_wrap_wxNullBrush_get() { | |
1332 | PyObject * pyobj; | |
1333 | char ptemp[128]; | |
1334 | ||
1335 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1336 | pyobj = PyString_FromString(ptemp); | |
1337 | return pyobj; | |
1338 | } | |
1339 | ||
1340 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1341 | ||
1342 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1343 | return 1; | |
1344 | } | |
1345 | ||
1346 | static PyObject *_wrap_wxNullPalette_get() { | |
1347 | PyObject * pyobj; | |
1348 | char ptemp[128]; | |
1349 | ||
1350 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1351 | pyobj = PyString_FromString(ptemp); | |
1352 | return pyobj; | |
1353 | } | |
1354 | ||
1355 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1356 | ||
1357 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1358 | return 1; | |
1359 | } | |
1360 | ||
1361 | static PyObject *_wrap_wxNullFont_get() { | |
1362 | PyObject * pyobj; | |
1363 | char ptemp[128]; | |
1364 | ||
1365 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1366 | pyobj = PyString_FromString(ptemp); | |
1367 | return pyobj; | |
1368 | } | |
1369 | ||
1370 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1371 | ||
1372 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1373 | return 1; | |
1374 | } | |
1375 | ||
1376 | static PyObject *_wrap_wxNullColour_get() { | |
1377 | PyObject * pyobj; | |
1378 | char ptemp[128]; | |
1379 | ||
1380 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1381 | pyobj = PyString_FromString(ptemp); | |
1382 | return pyobj; | |
1383 | } | |
1384 | ||
1385 | static int _wrap_wxTheFontList_set(PyObject *val) { | |
1386 | ||
1387 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1388 | return 1; | |
1389 | } | |
1390 | ||
1391 | static PyObject *_wrap_wxTheFontList_get() { | |
1392 | PyObject * pyobj; | |
1393 | char ptemp[128]; | |
1394 | ||
1395 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1396 | pyobj = PyString_FromString(ptemp); | |
1397 | return pyobj; | |
1398 | } | |
1399 | ||
1400 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1401 | ||
1402 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1403 | return 1; | |
1404 | } | |
1405 | ||
1406 | static PyObject *_wrap_wxThePenList_get() { | |
1407 | PyObject * pyobj; | |
1408 | char ptemp[128]; | |
1409 | ||
1410 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1411 | pyobj = PyString_FromString(ptemp); | |
1412 | return pyobj; | |
1413 | } | |
1414 | ||
1415 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1416 | ||
1417 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1418 | return 1; | |
1419 | } | |
1420 | ||
1421 | static PyObject *_wrap_wxTheBrushList_get() { | |
1422 | PyObject * pyobj; | |
1423 | char ptemp[128]; | |
1424 | ||
1425 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); | |
1426 | pyobj = PyString_FromString(ptemp); | |
1427 | return pyobj; | |
1428 | } | |
1429 | ||
1430 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1431 | ||
1432 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1433 | return 1; | |
1434 | } | |
1435 | ||
1436 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1437 | PyObject * pyobj; | |
1438 | char ptemp[128]; | |
1439 | ||
1440 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1441 | pyobj = PyString_FromString(ptemp); | |
1442 | return pyobj; | |
1443 | } | |
1444 | ||
1445 | static void *SwigwxGDIObjectTowxObject(void *ptr) { | |
1446 | wxGDIObject *src; | |
1447 | wxObject *dest; | |
1448 | src = (wxGDIObject *) ptr; | |
1449 | dest = (wxObject *) src; | |
1450 | return (void *) dest; | |
1451 | } | |
1452 | ||
1453 | #define new_wxGDIObject() (new wxGDIObject()) | |
1454 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1455 | PyObject * _resultobj; | |
1456 | wxGDIObject * _result; | |
1457 | char *_kwnames[] = { NULL }; | |
1458 | char _ptemp[128]; | |
1459 | ||
1460 | self = self; | |
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1462 | return NULL; | |
1463 | { | |
1464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1465 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1466 | ||
1467 | wxPyEndAllowThreads(__tstate); | |
1468 | if (PyErr_Occurred()) return NULL; | |
1469 | } if (_result) { | |
1470 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1471 | _resultobj = Py_BuildValue("s",_ptemp); | |
1472 | } else { | |
1473 | Py_INCREF(Py_None); | |
1474 | _resultobj = Py_None; | |
1475 | } | |
1476 | return _resultobj; | |
1477 | } | |
1478 | ||
1479 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1480 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1481 | PyObject * _resultobj; | |
1482 | wxGDIObject * _arg0; | |
1483 | PyObject * _argo0 = 0; | |
1484 | char *_kwnames[] = { "self", NULL }; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | { | |
1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1498 | delete_wxGDIObject(_arg0); | |
1499 | ||
1500 | wxPyEndAllowThreads(__tstate); | |
1501 | if (PyErr_Occurred()) return NULL; | |
1502 | } Py_INCREF(Py_None); | |
1503 | _resultobj = Py_None; | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1508 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | bool _result; | |
1511 | wxGDIObject * _arg0; | |
1512 | PyObject * _argo0 = 0; | |
1513 | char *_kwnames[] = { "self", NULL }; | |
1514 | ||
1515 | self = self; | |
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1517 | return NULL; | |
1518 | if (_argo0) { | |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1522 | return NULL; | |
1523 | } | |
1524 | } | |
1525 | { | |
1526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1527 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1528 | ||
1529 | wxPyEndAllowThreads(__tstate); | |
1530 | if (PyErr_Occurred()) return NULL; | |
1531 | } _resultobj = Py_BuildValue("i",_result); | |
1532 | return _resultobj; | |
1533 | } | |
1534 | ||
1535 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1536 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1537 | PyObject * _resultobj; | |
1538 | wxGDIObject * _arg0; | |
1539 | bool _arg1; | |
1540 | PyObject * _argo0 = 0; | |
1541 | int tempbool1; | |
1542 | char *_kwnames[] = { "self","visible", NULL }; | |
1543 | ||
1544 | self = self; | |
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1546 | return NULL; | |
1547 | if (_argo0) { | |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
1554 | _arg1 = (bool ) tempbool1; | |
1555 | { | |
1556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1557 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1558 | ||
1559 | wxPyEndAllowThreads(__tstate); | |
1560 | if (PyErr_Occurred()) return NULL; | |
1561 | } Py_INCREF(Py_None); | |
1562 | _resultobj = Py_None; | |
1563 | return _resultobj; | |
1564 | } | |
1565 | ||
1566 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1567 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject * _resultobj; | |
1569 | bool _result; | |
1570 | wxGDIObject * _arg0; | |
1571 | PyObject * _argo0 = 0; | |
1572 | char *_kwnames[] = { "self", NULL }; | |
1573 | ||
1574 | self = self; | |
1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1576 | return NULL; | |
1577 | if (_argo0) { | |
1578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1581 | return NULL; | |
1582 | } | |
1583 | } | |
1584 | { | |
1585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1586 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1587 | ||
1588 | wxPyEndAllowThreads(__tstate); | |
1589 | if (PyErr_Occurred()) return NULL; | |
1590 | } _resultobj = Py_BuildValue("i",_result); | |
1591 | return _resultobj; | |
1592 | } | |
1593 | ||
1594 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1595 | wxBitmap *src; | |
1596 | wxGDIObject *dest; | |
1597 | src = (wxBitmap *) ptr; | |
1598 | dest = (wxGDIObject *) src; | |
1599 | return (void *) dest; | |
1600 | } | |
1601 | ||
1602 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1603 | wxBitmap *src; | |
1604 | wxObject *dest; | |
1605 | src = (wxBitmap *) ptr; | |
1606 | dest = (wxObject *) src; | |
1607 | return (void *) dest; | |
1608 | } | |
1609 | ||
1610 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
1611 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject * _resultobj; | |
1613 | wxBitmap * _result; | |
1614 | wxString * _arg0; | |
1615 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; | |
1616 | PyObject * _obj0 = 0; | |
1617 | char *_kwnames[] = { "name","type", NULL }; | |
1618 | char _ptemp[128]; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) | |
1622 | return NULL; | |
1623 | { | |
1624 | _arg0 = wxString_in_helper(_obj0); | |
1625 | if (_arg0 == NULL) | |
1626 | return NULL; | |
1627 | } | |
1628 | { | |
1629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1630 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
1631 | ||
1632 | wxPyEndAllowThreads(__tstate); | |
1633 | if (PyErr_Occurred()) return NULL; | |
1634 | } if (_result) { | |
1635 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1636 | _resultobj = Py_BuildValue("s",_ptemp); | |
1637 | } else { | |
1638 | Py_INCREF(Py_None); | |
1639 | _resultobj = Py_None; | |
1640 | } | |
1641 | { | |
1642 | if (_obj0) | |
1643 | delete _arg0; | |
1644 | } | |
1645 | return _resultobj; | |
1646 | } | |
1647 | ||
1648 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
1649 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject * _resultobj; | |
1651 | wxBitmap * _arg0; | |
1652 | PyObject * _argo0 = 0; | |
1653 | char *_kwnames[] = { "self", NULL }; | |
1654 | ||
1655 | self = self; | |
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) | |
1657 | return NULL; | |
1658 | if (_argo0) { | |
1659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
1662 | return NULL; | |
1663 | } | |
1664 | } | |
1665 | { | |
1666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1667 | delete_wxBitmap(_arg0); | |
1668 | ||
1669 | wxPyEndAllowThreads(__tstate); | |
1670 | if (PyErr_Occurred()) return NULL; | |
1671 | } Py_INCREF(Py_None); | |
1672 | _resultobj = Py_None; | |
1673 | return _resultobj; | |
1674 | } | |
1675 | ||
1676 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1677 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1678 | PyObject * _resultobj; | |
1679 | wxPalette * _result; | |
1680 | wxBitmap * _arg0; | |
1681 | PyObject * _argo0 = 0; | |
1682 | char *_kwnames[] = { "self", NULL }; | |
1683 | char _ptemp[128]; | |
1684 | ||
1685 | self = self; | |
1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) | |
1687 | return NULL; | |
1688 | if (_argo0) { | |
1689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1692 | return NULL; | |
1693 | } | |
1694 | } | |
1695 | { | |
1696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1697 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1698 | ||
1699 | wxPyEndAllowThreads(__tstate); | |
1700 | if (PyErr_Occurred()) return NULL; | |
1701 | } if (_result) { | |
1702 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1703 | _resultobj = Py_BuildValue("s",_ptemp); | |
1704 | } else { | |
1705 | Py_INCREF(Py_None); | |
1706 | _resultobj = Py_None; | |
1707 | } | |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1712 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | wxMask * _result; | |
1715 | wxBitmap * _arg0; | |
1716 | PyObject * _argo0 = 0; | |
1717 | char *_kwnames[] = { "self", NULL }; | |
1718 | char _ptemp[128]; | |
1719 | ||
1720 | self = self; | |
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) | |
1722 | return NULL; | |
1723 | if (_argo0) { | |
1724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1727 | return NULL; | |
1728 | } | |
1729 | } | |
1730 | { | |
1731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1732 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1733 | ||
1734 | wxPyEndAllowThreads(__tstate); | |
1735 | if (PyErr_Occurred()) return NULL; | |
1736 | } if (_result) { | |
1737 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1738 | _resultobj = Py_BuildValue("s",_ptemp); | |
1739 | } else { | |
1740 | Py_INCREF(Py_None); | |
1741 | _resultobj = Py_None; | |
1742 | } | |
1743 | return _resultobj; | |
1744 | } | |
1745 | ||
1746 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1747 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1748 | PyObject * _resultobj; | |
1749 | bool _result; | |
1750 | wxBitmap * _arg0; | |
1751 | wxString * _arg1; | |
1752 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; | |
1753 | PyObject * _argo0 = 0; | |
1754 | PyObject * _obj1 = 0; | |
1755 | char *_kwnames[] = { "self","name","type", NULL }; | |
1756 | ||
1757 | self = self; | |
1758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1759 | return NULL; | |
1760 | if (_argo0) { | |
1761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1764 | return NULL; | |
1765 | } | |
1766 | } | |
1767 | { | |
1768 | _arg1 = wxString_in_helper(_obj1); | |
1769 | if (_arg1 == NULL) | |
1770 | return NULL; | |
1771 | } | |
1772 | { | |
1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1774 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); | |
1775 | ||
1776 | wxPyEndAllowThreads(__tstate); | |
1777 | if (PyErr_Occurred()) return NULL; | |
1778 | } _resultobj = Py_BuildValue("i",_result); | |
1779 | { | |
1780 | if (_obj1) | |
1781 | delete _arg1; | |
1782 | } | |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
1786 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) | |
1787 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1788 | PyObject * _resultobj; | |
1789 | bool _result; | |
1790 | wxBitmap * _arg0; | |
1791 | wxString * _arg1; | |
1792 | wxBitmapType _arg2; | |
1793 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1794 | PyObject * _argo0 = 0; | |
1795 | PyObject * _obj1 = 0; | |
1796 | PyObject * _argo3 = 0; | |
1797 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
1798 | ||
1799 | self = self; | |
1800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) | |
1801 | return NULL; | |
1802 | if (_argo0) { | |
1803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1806 | return NULL; | |
1807 | } | |
1808 | } | |
1809 | { | |
1810 | _arg1 = wxString_in_helper(_obj1); | |
1811 | if (_arg1 == NULL) | |
1812 | return NULL; | |
1813 | } | |
1814 | if (_argo3) { | |
1815 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1816 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1818 | return NULL; | |
1819 | } | |
1820 | } | |
1821 | { | |
1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1823 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); | |
1824 | ||
1825 | wxPyEndAllowThreads(__tstate); | |
1826 | if (PyErr_Occurred()) return NULL; | |
1827 | } _resultobj = Py_BuildValue("i",_result); | |
1828 | { | |
1829 | if (_obj1) | |
1830 | delete _arg1; | |
1831 | } | |
1832 | return _resultobj; | |
1833 | } | |
1834 | ||
1835 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1836 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1837 | PyObject * _resultobj; | |
1838 | wxBitmap * _arg0; | |
1839 | wxMask * _arg1; | |
1840 | PyObject * _argo0 = 0; | |
1841 | PyObject * _argo1 = 0; | |
1842 | char *_kwnames[] = { "self","mask", NULL }; | |
1843 | ||
1844 | self = self; | |
1845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1846 | return NULL; | |
1847 | if (_argo0) { | |
1848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1851 | return NULL; | |
1852 | } | |
1853 | } | |
1854 | if (_argo1) { | |
1855 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1856 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1858 | return NULL; | |
1859 | } | |
1860 | } | |
1861 | { | |
1862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1863 | wxBitmap_SetMask(_arg0,_arg1); | |
1864 | ||
1865 | wxPyEndAllowThreads(__tstate); | |
1866 | if (PyErr_Occurred()) return NULL; | |
1867 | } Py_INCREF(Py_None); | |
1868 | _resultobj = Py_None; | |
1869 | return _resultobj; | |
1870 | } | |
1871 | ||
1872 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1873 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1874 | PyObject * _resultobj; | |
1875 | bool _result; | |
1876 | wxBitmap * _arg0; | |
1877 | PyObject * _argo0 = 0; | |
1878 | char *_kwnames[] = { "self", NULL }; | |
1879 | ||
1880 | self = self; | |
1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1882 | return NULL; | |
1883 | if (_argo0) { | |
1884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
1890 | { | |
1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1892 | _result = (bool )wxBitmap_Ok(_arg0); | |
1893 | ||
1894 | wxPyEndAllowThreads(__tstate); | |
1895 | if (PyErr_Occurred()) return NULL; | |
1896 | } _resultobj = Py_BuildValue("i",_result); | |
1897 | return _resultobj; | |
1898 | } | |
1899 | ||
1900 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1901 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject * _resultobj; | |
1903 | int _result; | |
1904 | wxBitmap * _arg0; | |
1905 | PyObject * _argo0 = 0; | |
1906 | char *_kwnames[] = { "self", NULL }; | |
1907 | ||
1908 | self = self; | |
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1910 | return NULL; | |
1911 | if (_argo0) { | |
1912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1915 | return NULL; | |
1916 | } | |
1917 | } | |
1918 | { | |
1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1920 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1921 | ||
1922 | wxPyEndAllowThreads(__tstate); | |
1923 | if (PyErr_Occurred()) return NULL; | |
1924 | } _resultobj = Py_BuildValue("i",_result); | |
1925 | return _resultobj; | |
1926 | } | |
1927 | ||
1928 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1929 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject * _resultobj; | |
1931 | int _result; | |
1932 | wxBitmap * _arg0; | |
1933 | PyObject * _argo0 = 0; | |
1934 | char *_kwnames[] = { "self", NULL }; | |
1935 | ||
1936 | self = self; | |
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1938 | return NULL; | |
1939 | if (_argo0) { | |
1940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1943 | return NULL; | |
1944 | } | |
1945 | } | |
1946 | { | |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1948 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
1951 | if (PyErr_Occurred()) return NULL; | |
1952 | } _resultobj = Py_BuildValue("i",_result); | |
1953 | return _resultobj; | |
1954 | } | |
1955 | ||
1956 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1957 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1958 | PyObject * _resultobj; | |
1959 | int _result; | |
1960 | wxBitmap * _arg0; | |
1961 | PyObject * _argo0 = 0; | |
1962 | char *_kwnames[] = { "self", NULL }; | |
1963 | ||
1964 | self = self; | |
1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) | |
1966 | return NULL; | |
1967 | if (_argo0) { | |
1968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1971 | return NULL; | |
1972 | } | |
1973 | } | |
1974 | { | |
1975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1976 | _result = (int )wxBitmap_GetDepth(_arg0); | |
1977 | ||
1978 | wxPyEndAllowThreads(__tstate); | |
1979 | if (PyErr_Occurred()) return NULL; | |
1980 | } _resultobj = Py_BuildValue("i",_result); | |
1981 | return _resultobj; | |
1982 | } | |
1983 | ||
1984 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1985 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1986 | PyObject * _resultobj; | |
1987 | wxBitmap * _arg0; | |
1988 | int _arg1; | |
1989 | PyObject * _argo0 = 0; | |
1990 | char *_kwnames[] = { "self","w", NULL }; | |
1991 | ||
1992 | self = self; | |
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1994 | return NULL; | |
1995 | if (_argo0) { | |
1996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1999 | return NULL; | |
2000 | } | |
2001 | } | |
2002 | { | |
2003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2004 | wxBitmap_SetWidth(_arg0,_arg1); | |
2005 | ||
2006 | wxPyEndAllowThreads(__tstate); | |
2007 | if (PyErr_Occurred()) return NULL; | |
2008 | } Py_INCREF(Py_None); | |
2009 | _resultobj = Py_None; | |
2010 | return _resultobj; | |
2011 | } | |
2012 | ||
2013 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2014 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2015 | PyObject * _resultobj; | |
2016 | wxBitmap * _arg0; | |
2017 | int _arg1; | |
2018 | PyObject * _argo0 = 0; | |
2019 | char *_kwnames[] = { "self","h", NULL }; | |
2020 | ||
2021 | self = self; | |
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2023 | return NULL; | |
2024 | if (_argo0) { | |
2025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
2028 | return NULL; | |
2029 | } | |
2030 | } | |
2031 | { | |
2032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2033 | wxBitmap_SetHeight(_arg0,_arg1); | |
2034 | ||
2035 | wxPyEndAllowThreads(__tstate); | |
2036 | if (PyErr_Occurred()) return NULL; | |
2037 | } Py_INCREF(Py_None); | |
2038 | _resultobj = Py_None; | |
2039 | return _resultobj; | |
2040 | } | |
2041 | ||
2042 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2043 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2044 | PyObject * _resultobj; | |
2045 | wxBitmap * _arg0; | |
2046 | int _arg1; | |
2047 | PyObject * _argo0 = 0; | |
2048 | char *_kwnames[] = { "self","d", NULL }; | |
2049 | ||
2050 | self = self; | |
2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2052 | return NULL; | |
2053 | if (_argo0) { | |
2054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
2057 | return NULL; | |
2058 | } | |
2059 | } | |
2060 | { | |
2061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2062 | wxBitmap_SetDepth(_arg0,_arg1); | |
2063 | ||
2064 | wxPyEndAllowThreads(__tstate); | |
2065 | if (PyErr_Occurred()) return NULL; | |
2066 | } Py_INCREF(Py_None); | |
2067 | _resultobj = Py_None; | |
2068 | return _resultobj; | |
2069 | } | |
2070 | ||
2071 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) | |
2072 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2073 | PyObject * _resultobj; | |
2074 | wxBitmap * _result; | |
2075 | wxBitmap * _arg0; | |
2076 | wxRect * _arg1; | |
2077 | PyObject * _argo0 = 0; | |
2078 | wxRect temp; | |
2079 | PyObject * _obj1 = 0; | |
2080 | char *_kwnames[] = { "self","rect", NULL }; | |
2081 | char _ptemp[128]; | |
2082 | ||
2083 | self = self; | |
2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2085 | return NULL; | |
2086 | if (_argo0) { | |
2087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2090 | return NULL; | |
2091 | } | |
2092 | } | |
2093 | { | |
2094 | _arg1 = &temp; | |
2095 | if (! wxRect_helper(_obj1, &_arg1)) | |
2096 | return NULL; | |
2097 | } | |
2098 | { | |
2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2100 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
2101 | ||
2102 | wxPyEndAllowThreads(__tstate); | |
2103 | if (PyErr_Occurred()) return NULL; | |
2104 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
2105 | _resultobj = Py_BuildValue("s",_ptemp); | |
2106 | return _resultobj; | |
2107 | } | |
2108 | ||
2109 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2110 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2111 | PyObject * _resultobj; | |
2112 | bool _result; | |
2113 | wxBitmap * _arg0; | |
2114 | wxIcon * _arg1; | |
2115 | PyObject * _argo0 = 0; | |
2116 | PyObject * _argo1 = 0; | |
2117 | char *_kwnames[] = { "self","icon", NULL }; | |
2118 | ||
2119 | self = self; | |
2120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2121 | return NULL; | |
2122 | if (_argo0) { | |
2123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2126 | return NULL; | |
2127 | } | |
2128 | } | |
2129 | if (_argo1) { | |
2130 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2132 | return NULL; | |
2133 | } | |
2134 | } | |
2135 | { | |
2136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2137 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); | |
2138 | ||
2139 | wxPyEndAllowThreads(__tstate); | |
2140 | if (PyErr_Occurred()) return NULL; | |
2141 | } _resultobj = Py_BuildValue("i",_result); | |
2142 | return _resultobj; | |
2143 | } | |
2144 | ||
2145 | static void *SwigwxMaskTowxObject(void *ptr) { | |
2146 | wxMask *src; | |
2147 | wxObject *dest; | |
2148 | src = (wxMask *) ptr; | |
2149 | dest = (wxObject *) src; | |
2150 | return (void *) dest; | |
2151 | } | |
2152 | ||
2153 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
2154 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2155 | PyObject * _resultobj; | |
2156 | wxMask * _result; | |
2157 | wxBitmap * _arg0; | |
2158 | PyObject * _argo0 = 0; | |
2159 | char *_kwnames[] = { "bitmap", NULL }; | |
2160 | char _ptemp[128]; | |
2161 | ||
2162 | self = self; | |
2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2164 | return NULL; | |
2165 | if (_argo0) { | |
2166 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2168 | return NULL; | |
2169 | } | |
2170 | } | |
2171 | { | |
2172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2173 | _result = (wxMask *)new_wxMask(*_arg0); | |
2174 | ||
2175 | wxPyEndAllowThreads(__tstate); | |
2176 | if (PyErr_Occurred()) return NULL; | |
2177 | } if (_result) { | |
2178 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2179 | _resultobj = Py_BuildValue("s",_ptemp); | |
2180 | } else { | |
2181 | Py_INCREF(Py_None); | |
2182 | _resultobj = Py_None; | |
2183 | } | |
2184 | return _resultobj; | |
2185 | } | |
2186 | ||
2187 | static void wxMask_Destroy(wxMask *self) { delete self; } | |
2188 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2189 | PyObject * _resultobj; | |
2190 | wxMask * _arg0; | |
2191 | PyObject * _argo0 = 0; | |
2192 | char *_kwnames[] = { "self", NULL }; | |
2193 | ||
2194 | self = self; | |
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2196 | return NULL; | |
2197 | if (_argo0) { | |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2201 | return NULL; | |
2202 | } | |
2203 | } | |
2204 | { | |
2205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2206 | wxMask_Destroy(_arg0); | |
2207 | ||
2208 | wxPyEndAllowThreads(__tstate); | |
2209 | if (PyErr_Occurred()) return NULL; | |
2210 | } Py_INCREF(Py_None); | |
2211 | _resultobj = Py_None; | |
2212 | return _resultobj; | |
2213 | } | |
2214 | ||
2215 | static void *SwigwxIconTowxGDIObject(void *ptr) { | |
2216 | wxIcon *src; | |
2217 | wxGDIObject *dest; | |
2218 | src = (wxIcon *) ptr; | |
2219 | dest = (wxGDIObject *) src; | |
2220 | return (void *) dest; | |
2221 | } | |
2222 | ||
2223 | static void *SwigwxIconTowxObject(void *ptr) { | |
2224 | wxIcon *src; | |
2225 | wxObject *dest; | |
2226 | src = (wxIcon *) ptr; | |
2227 | dest = (wxObject *) src; | |
2228 | return (void *) dest; | |
2229 | } | |
2230 | ||
2231 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2232 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2233 | PyObject * _resultobj; | |
2234 | wxIcon * _result; | |
2235 | wxString * _arg0; | |
2236 | long _arg1; | |
2237 | int _arg2 = (int ) -1; | |
2238 | int _arg3 = (int ) -1; | |
2239 | PyObject * _obj0 = 0; | |
2240 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; | |
2241 | char _ptemp[128]; | |
2242 | ||
2243 | self = self; | |
2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2245 | return NULL; | |
2246 | { | |
2247 | _arg0 = wxString_in_helper(_obj0); | |
2248 | if (_arg0 == NULL) | |
2249 | return NULL; | |
2250 | } | |
2251 | { | |
2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2253 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); | |
2254 | ||
2255 | wxPyEndAllowThreads(__tstate); | |
2256 | if (PyErr_Occurred()) return NULL; | |
2257 | } if (_result) { | |
2258 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2259 | _resultobj = Py_BuildValue("s",_ptemp); | |
2260 | } else { | |
2261 | Py_INCREF(Py_None); | |
2262 | _resultobj = Py_None; | |
2263 | } | |
2264 | { | |
2265 | if (_obj0) | |
2266 | delete _arg0; | |
2267 | } | |
2268 | return _resultobj; | |
2269 | } | |
2270 | ||
2271 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
2272 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2273 | PyObject * _resultobj; | |
2274 | wxIcon * _arg0; | |
2275 | PyObject * _argo0 = 0; | |
2276 | char *_kwnames[] = { "self", NULL }; | |
2277 | ||
2278 | self = self; | |
2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) | |
2280 | return NULL; | |
2281 | if (_argo0) { | |
2282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
2285 | return NULL; | |
2286 | } | |
2287 | } | |
2288 | { | |
2289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2290 | delete_wxIcon(_arg0); | |
2291 | ||
2292 | wxPyEndAllowThreads(__tstate); | |
2293 | if (PyErr_Occurred()) return NULL; | |
2294 | } Py_INCREF(Py_None); | |
2295 | _resultobj = Py_None; | |
2296 | return _resultobj; | |
2297 | } | |
2298 | ||
2299 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2300 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject * _resultobj; | |
2302 | bool _result; | |
2303 | wxIcon * _arg0; | |
2304 | PyObject * _argo0 = 0; | |
2305 | char *_kwnames[] = { "self", NULL }; | |
2306 | ||
2307 | self = self; | |
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2309 | return NULL; | |
2310 | if (_argo0) { | |
2311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2314 | return NULL; | |
2315 | } | |
2316 | } | |
2317 | { | |
2318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2319 | _result = (bool )wxIcon_Ok(_arg0); | |
2320 | ||
2321 | wxPyEndAllowThreads(__tstate); | |
2322 | if (PyErr_Occurred()) return NULL; | |
2323 | } _resultobj = Py_BuildValue("i",_result); | |
2324 | return _resultobj; | |
2325 | } | |
2326 | ||
2327 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2328 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2329 | PyObject * _resultobj; | |
2330 | int _result; | |
2331 | wxIcon * _arg0; | |
2332 | PyObject * _argo0 = 0; | |
2333 | char *_kwnames[] = { "self", NULL }; | |
2334 | ||
2335 | self = self; | |
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2337 | return NULL; | |
2338 | if (_argo0) { | |
2339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2342 | return NULL; | |
2343 | } | |
2344 | } | |
2345 | { | |
2346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2347 | _result = (int )wxIcon_GetWidth(_arg0); | |
2348 | ||
2349 | wxPyEndAllowThreads(__tstate); | |
2350 | if (PyErr_Occurred()) return NULL; | |
2351 | } _resultobj = Py_BuildValue("i",_result); | |
2352 | return _resultobj; | |
2353 | } | |
2354 | ||
2355 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2356 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2357 | PyObject * _resultobj; | |
2358 | int _result; | |
2359 | wxIcon * _arg0; | |
2360 | PyObject * _argo0 = 0; | |
2361 | char *_kwnames[] = { "self", NULL }; | |
2362 | ||
2363 | self = self; | |
2364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2365 | return NULL; | |
2366 | if (_argo0) { | |
2367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2370 | return NULL; | |
2371 | } | |
2372 | } | |
2373 | { | |
2374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2375 | _result = (int )wxIcon_GetHeight(_arg0); | |
2376 | ||
2377 | wxPyEndAllowThreads(__tstate); | |
2378 | if (PyErr_Occurred()) return NULL; | |
2379 | } _resultobj = Py_BuildValue("i",_result); | |
2380 | return _resultobj; | |
2381 | } | |
2382 | ||
2383 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2384 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject * _resultobj; | |
2386 | int _result; | |
2387 | wxIcon * _arg0; | |
2388 | PyObject * _argo0 = 0; | |
2389 | char *_kwnames[] = { "self", NULL }; | |
2390 | ||
2391 | self = self; | |
2392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2393 | return NULL; | |
2394 | if (_argo0) { | |
2395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2398 | return NULL; | |
2399 | } | |
2400 | } | |
2401 | { | |
2402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2403 | _result = (int )wxIcon_GetDepth(_arg0); | |
2404 | ||
2405 | wxPyEndAllowThreads(__tstate); | |
2406 | if (PyErr_Occurred()) return NULL; | |
2407 | } _resultobj = Py_BuildValue("i",_result); | |
2408 | return _resultobj; | |
2409 | } | |
2410 | ||
2411 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2412 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2413 | PyObject * _resultobj; | |
2414 | wxIcon * _arg0; | |
2415 | int _arg1; | |
2416 | PyObject * _argo0 = 0; | |
2417 | char *_kwnames[] = { "self","w", NULL }; | |
2418 | ||
2419 | self = self; | |
2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2421 | return NULL; | |
2422 | if (_argo0) { | |
2423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2426 | return NULL; | |
2427 | } | |
2428 | } | |
2429 | { | |
2430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2431 | wxIcon_SetWidth(_arg0,_arg1); | |
2432 | ||
2433 | wxPyEndAllowThreads(__tstate); | |
2434 | if (PyErr_Occurred()) return NULL; | |
2435 | } Py_INCREF(Py_None); | |
2436 | _resultobj = Py_None; | |
2437 | return _resultobj; | |
2438 | } | |
2439 | ||
2440 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2441 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2442 | PyObject * _resultobj; | |
2443 | wxIcon * _arg0; | |
2444 | int _arg1; | |
2445 | PyObject * _argo0 = 0; | |
2446 | char *_kwnames[] = { "self","h", NULL }; | |
2447 | ||
2448 | self = self; | |
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2450 | return NULL; | |
2451 | if (_argo0) { | |
2452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2455 | return NULL; | |
2456 | } | |
2457 | } | |
2458 | { | |
2459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2460 | wxIcon_SetHeight(_arg0,_arg1); | |
2461 | ||
2462 | wxPyEndAllowThreads(__tstate); | |
2463 | if (PyErr_Occurred()) return NULL; | |
2464 | } Py_INCREF(Py_None); | |
2465 | _resultobj = Py_None; | |
2466 | return _resultobj; | |
2467 | } | |
2468 | ||
2469 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2470 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2471 | PyObject * _resultobj; | |
2472 | wxIcon * _arg0; | |
2473 | int _arg1; | |
2474 | PyObject * _argo0 = 0; | |
2475 | char *_kwnames[] = { "self","d", NULL }; | |
2476 | ||
2477 | self = self; | |
2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2479 | return NULL; | |
2480 | if (_argo0) { | |
2481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2484 | return NULL; | |
2485 | } | |
2486 | } | |
2487 | { | |
2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2489 | wxIcon_SetDepth(_arg0,_arg1); | |
2490 | ||
2491 | wxPyEndAllowThreads(__tstate); | |
2492 | if (PyErr_Occurred()) return NULL; | |
2493 | } Py_INCREF(Py_None); | |
2494 | _resultobj = Py_None; | |
2495 | return _resultobj; | |
2496 | } | |
2497 | ||
2498 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) | |
2499 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2500 | PyObject * _resultobj; | |
2501 | wxIcon * _arg0; | |
2502 | wxBitmap * _arg1; | |
2503 | PyObject * _argo0 = 0; | |
2504 | PyObject * _argo1 = 0; | |
2505 | char *_kwnames[] = { "self","bmp", NULL }; | |
2506 | ||
2507 | self = self; | |
2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2509 | return NULL; | |
2510 | if (_argo0) { | |
2511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2514 | return NULL; | |
2515 | } | |
2516 | } | |
2517 | if (_argo1) { | |
2518 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2520 | return NULL; | |
2521 | } | |
2522 | } | |
2523 | { | |
2524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2525 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2526 | ||
2527 | wxPyEndAllowThreads(__tstate); | |
2528 | if (PyErr_Occurred()) return NULL; | |
2529 | } Py_INCREF(Py_None); | |
2530 | _resultobj = Py_None; | |
2531 | return _resultobj; | |
2532 | } | |
2533 | ||
2534 | static wxIconLocation *new_wxIconLocation(const wxString *filename,int num) { | |
2535 | #ifdef __WXMSW__ | |
2536 | return new wxIconLocation(*filename, num); | |
2537 | #else | |
2538 | return new wxIconLocation(*filename); | |
2539 | #endif | |
2540 | } | |
2541 | ||
2542 | static PyObject *_wrap_new_wxIconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2543 | PyObject * _resultobj; | |
2544 | wxIconLocation * _result; | |
2545 | wxString * _arg0 = (wxString *) &wxPyEmptyString; | |
2546 | int _arg1 = (int ) 0; | |
2547 | PyObject * _obj0 = 0; | |
2548 | char *_kwnames[] = { "filename","num", NULL }; | |
2549 | char _ptemp[128]; | |
2550 | ||
2551 | self = self; | |
2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxIconLocation",_kwnames,&_obj0,&_arg1)) | |
2553 | return NULL; | |
2554 | if (_obj0) | |
2555 | { | |
2556 | _arg0 = wxString_in_helper(_obj0); | |
2557 | if (_arg0 == NULL) | |
2558 | return NULL; | |
2559 | } | |
2560 | { | |
2561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2562 | _result = (wxIconLocation *)new_wxIconLocation(_arg0,_arg1); | |
2563 | ||
2564 | wxPyEndAllowThreads(__tstate); | |
2565 | if (PyErr_Occurred()) return NULL; | |
2566 | } if (_result) { | |
2567 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconLocation_p"); | |
2568 | _resultobj = Py_BuildValue("s",_ptemp); | |
2569 | } else { | |
2570 | Py_INCREF(Py_None); | |
2571 | _resultobj = Py_None; | |
2572 | } | |
2573 | { | |
2574 | if (_obj0) | |
2575 | delete _arg0; | |
2576 | } | |
2577 | return _resultobj; | |
2578 | } | |
2579 | ||
2580 | #define delete_wxIconLocation(_swigobj) (delete _swigobj) | |
2581 | static PyObject *_wrap_delete_wxIconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2582 | PyObject * _resultobj; | |
2583 | wxIconLocation * _arg0; | |
2584 | PyObject * _argo0 = 0; | |
2585 | char *_kwnames[] = { "self", NULL }; | |
2586 | ||
2587 | self = self; | |
2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconLocation",_kwnames,&_argo0)) | |
2589 | return NULL; | |
2590 | if (_argo0) { | |
2591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) { | |
2593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconLocation. Expected _wxIconLocation_p."); | |
2594 | return NULL; | |
2595 | } | |
2596 | } | |
2597 | { | |
2598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2599 | delete_wxIconLocation(_arg0); | |
2600 | ||
2601 | wxPyEndAllowThreads(__tstate); | |
2602 | if (PyErr_Occurred()) return NULL; | |
2603 | } Py_INCREF(Py_None); | |
2604 | _resultobj = Py_None; | |
2605 | return _resultobj; | |
2606 | } | |
2607 | ||
2608 | #define wxIconLocation_IsOk(_swigobj) (_swigobj->IsOk()) | |
2609 | static PyObject *_wrap_wxIconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2610 | PyObject * _resultobj; | |
2611 | bool _result; | |
2612 | wxIconLocation * _arg0; | |
2613 | PyObject * _argo0 = 0; | |
2614 | char *_kwnames[] = { "self", NULL }; | |
2615 | ||
2616 | self = self; | |
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_IsOk",_kwnames,&_argo0)) | |
2618 | return NULL; | |
2619 | if (_argo0) { | |
2620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) { | |
2622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_IsOk. Expected _wxIconLocation_p."); | |
2623 | return NULL; | |
2624 | } | |
2625 | } | |
2626 | { | |
2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2628 | _result = (bool )wxIconLocation_IsOk(_arg0); | |
2629 | ||
2630 | wxPyEndAllowThreads(__tstate); | |
2631 | if (PyErr_Occurred()) return NULL; | |
2632 | } _resultobj = Py_BuildValue("i",_result); | |
2633 | return _resultobj; | |
2634 | } | |
2635 | ||
2636 | #define wxIconLocation_SetFileName(_swigobj,_swigarg0) (_swigobj->SetFileName(_swigarg0)) | |
2637 | static PyObject *_wrap_wxIconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2638 | PyObject * _resultobj; | |
2639 | wxIconLocation * _arg0; | |
2640 | wxString * _arg1; | |
2641 | PyObject * _argo0 = 0; | |
2642 | PyObject * _obj1 = 0; | |
2643 | char *_kwnames[] = { "self","filename", NULL }; | |
2644 | ||
2645 | self = self; | |
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconLocation_SetFileName",_kwnames,&_argo0,&_obj1)) | |
2647 | return NULL; | |
2648 | if (_argo0) { | |
2649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) { | |
2651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_SetFileName. Expected _wxIconLocation_p."); | |
2652 | return NULL; | |
2653 | } | |
2654 | } | |
2655 | { | |
2656 | _arg1 = wxString_in_helper(_obj1); | |
2657 | if (_arg1 == NULL) | |
2658 | return NULL; | |
2659 | } | |
2660 | { | |
2661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2662 | wxIconLocation_SetFileName(_arg0,*_arg1); | |
2663 | ||
2664 | wxPyEndAllowThreads(__tstate); | |
2665 | if (PyErr_Occurred()) return NULL; | |
2666 | } Py_INCREF(Py_None); | |
2667 | _resultobj = Py_None; | |
2668 | { | |
2669 | if (_obj1) | |
2670 | delete _arg1; | |
2671 | } | |
2672 | return _resultobj; | |
2673 | } | |
2674 | ||
2675 | #define wxIconLocation_GetFileName(_swigobj) (_swigobj->GetFileName()) | |
2676 | static PyObject *_wrap_wxIconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject * _resultobj; | |
2678 | wxString * _result; | |
2679 | wxIconLocation * _arg0; | |
2680 | PyObject * _argo0 = 0; | |
2681 | char *_kwnames[] = { "self", NULL }; | |
2682 | ||
2683 | self = self; | |
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_GetFileName",_kwnames,&_argo0)) | |
2685 | return NULL; | |
2686 | if (_argo0) { | |
2687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) { | |
2689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_GetFileName. Expected _wxIconLocation_p."); | |
2690 | return NULL; | |
2691 | } | |
2692 | } | |
2693 | { | |
2694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2695 | const wxString & _result_ref = wxIconLocation_GetFileName(_arg0); | |
2696 | _result = (wxString *) &_result_ref; | |
2697 | ||
2698 | wxPyEndAllowThreads(__tstate); | |
2699 | if (PyErr_Occurred()) return NULL; | |
2700 | }{ | |
2701 | #if wxUSE_UNICODE | |
2702 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
2703 | #else | |
2704 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2705 | #endif | |
2706 | } | |
2707 | return _resultobj; | |
2708 | } | |
2709 | ||
2710 | static void wxIconLocation_SetIndex(wxIconLocation *self,int num) { | |
2711 | #ifdef __WXMSW__ | |
2712 | self->SetIndex(num); | |
2713 | #else | |
2714 | // do nothing | |
2715 | #endif | |
2716 | } | |
2717 | static PyObject *_wrap_wxIconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2718 | PyObject * _resultobj; | |
2719 | wxIconLocation * _arg0; | |
2720 | int _arg1; | |
2721 | PyObject * _argo0 = 0; | |
2722 | char *_kwnames[] = { "self","num", NULL }; | |
2723 | ||
2724 | self = self; | |
2725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIconLocation_SetIndex",_kwnames,&_argo0,&_arg1)) | |
2726 | return NULL; | |
2727 | if (_argo0) { | |
2728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) { | |
2730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_SetIndex. Expected _wxIconLocation_p."); | |
2731 | return NULL; | |
2732 | } | |
2733 | } | |
2734 | { | |
2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2736 | wxIconLocation_SetIndex(_arg0,_arg1); | |
2737 | ||
2738 | wxPyEndAllowThreads(__tstate); | |
2739 | if (PyErr_Occurred()) return NULL; | |
2740 | } Py_INCREF(Py_None); | |
2741 | _resultobj = Py_None; | |
2742 | return _resultobj; | |
2743 | } | |
2744 | ||
2745 | static int wxIconLocation_GetIndex(wxIconLocation *self) { | |
2746 | #ifdef __WXMSW__ | |
2747 | return self->GetIndex(); | |
2748 | #else | |
2749 | return -1; | |
2750 | #endif | |
2751 | } | |
2752 | static PyObject *_wrap_wxIconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2753 | PyObject * _resultobj; | |
2754 | int _result; | |
2755 | wxIconLocation * _arg0; | |
2756 | PyObject * _argo0 = 0; | |
2757 | char *_kwnames[] = { "self", NULL }; | |
2758 | ||
2759 | self = self; | |
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_GetIndex",_kwnames,&_argo0)) | |
2761 | return NULL; | |
2762 | if (_argo0) { | |
2763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) { | |
2765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_GetIndex. Expected _wxIconLocation_p."); | |
2766 | return NULL; | |
2767 | } | |
2768 | } | |
2769 | { | |
2770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2771 | _result = (int )wxIconLocation_GetIndex(_arg0); | |
2772 | ||
2773 | wxPyEndAllowThreads(__tstate); | |
2774 | if (PyErr_Occurred()) return NULL; | |
2775 | } _resultobj = Py_BuildValue("i",_result); | |
2776 | return _resultobj; | |
2777 | } | |
2778 | ||
2779 | #define new_wxIconBundle() (new wxIconBundle()) | |
2780 | static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject * _resultobj; | |
2782 | wxIconBundle * _result; | |
2783 | char *_kwnames[] = { NULL }; | |
2784 | char _ptemp[128]; | |
2785 | ||
2786 | self = self; | |
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames)) | |
2788 | return NULL; | |
2789 | { | |
2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2791 | _result = (wxIconBundle *)new_wxIconBundle(); | |
2792 | ||
2793 | wxPyEndAllowThreads(__tstate); | |
2794 | if (PyErr_Occurred()) return NULL; | |
2795 | } if (_result) { | |
2796 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2797 | _resultobj = Py_BuildValue("s",_ptemp); | |
2798 | } else { | |
2799 | Py_INCREF(Py_None); | |
2800 | _resultobj = Py_None; | |
2801 | } | |
2802 | return _resultobj; | |
2803 | } | |
2804 | ||
2805 | #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1)) | |
2806 | static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2807 | PyObject * _resultobj; | |
2808 | wxIconBundle * _result; | |
2809 | wxString * _arg0; | |
2810 | long _arg1; | |
2811 | PyObject * _obj0 = 0; | |
2812 | char *_kwnames[] = { "file","type", NULL }; | |
2813 | char _ptemp[128]; | |
2814 | ||
2815 | self = self; | |
2816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1)) | |
2817 | return NULL; | |
2818 | { | |
2819 | _arg0 = wxString_in_helper(_obj0); | |
2820 | if (_arg0 == NULL) | |
2821 | return NULL; | |
2822 | } | |
2823 | { | |
2824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2825 | _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1); | |
2826 | ||
2827 | wxPyEndAllowThreads(__tstate); | |
2828 | if (PyErr_Occurred()) return NULL; | |
2829 | } if (_result) { | |
2830 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2831 | _resultobj = Py_BuildValue("s",_ptemp); | |
2832 | } else { | |
2833 | Py_INCREF(Py_None); | |
2834 | _resultobj = Py_None; | |
2835 | } | |
2836 | { | |
2837 | if (_obj0) | |
2838 | delete _arg0; | |
2839 | } | |
2840 | return _resultobj; | |
2841 | } | |
2842 | ||
2843 | #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0)) | |
2844 | static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2845 | PyObject * _resultobj; | |
2846 | wxIconBundle * _result; | |
2847 | wxIcon * _arg0; | |
2848 | PyObject * _argo0 = 0; | |
2849 | char *_kwnames[] = { "icon", NULL }; | |
2850 | char _ptemp[128]; | |
2851 | ||
2852 | self = self; | |
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0)) | |
2854 | return NULL; | |
2855 | if (_argo0) { | |
2856 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p."); | |
2858 | return NULL; | |
2859 | } | |
2860 | } | |
2861 | { | |
2862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2863 | _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0); | |
2864 | ||
2865 | wxPyEndAllowThreads(__tstate); | |
2866 | if (PyErr_Occurred()) return NULL; | |
2867 | } if (_result) { | |
2868 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2869 | _resultobj = Py_BuildValue("s",_ptemp); | |
2870 | } else { | |
2871 | Py_INCREF(Py_None); | |
2872 | _resultobj = Py_None; | |
2873 | } | |
2874 | return _resultobj; | |
2875 | } | |
2876 | ||
2877 | #define delete_wxIconBundle(_swigobj) (delete _swigobj) | |
2878 | static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2879 | PyObject * _resultobj; | |
2880 | wxIconBundle * _arg0; | |
2881 | PyObject * _argo0 = 0; | |
2882 | char *_kwnames[] = { "self", NULL }; | |
2883 | ||
2884 | self = self; | |
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0)) | |
2886 | return NULL; | |
2887 | if (_argo0) { | |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p."); | |
2891 | return NULL; | |
2892 | } | |
2893 | } | |
2894 | { | |
2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2896 | delete_wxIconBundle(_arg0); | |
2897 | ||
2898 | wxPyEndAllowThreads(__tstate); | |
2899 | if (PyErr_Occurred()) return NULL; | |
2900 | } Py_INCREF(Py_None); | |
2901 | _resultobj = Py_None; | |
2902 | return _resultobj; | |
2903 | } | |
2904 | ||
2905 | #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0)) | |
2906 | static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2907 | PyObject * _resultobj; | |
2908 | wxIconBundle * _arg0; | |
2909 | wxIcon * _arg1; | |
2910 | PyObject * _argo0 = 0; | |
2911 | PyObject * _argo1 = 0; | |
2912 | char *_kwnames[] = { "self","icon", NULL }; | |
2913 | ||
2914 | self = self; | |
2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1)) | |
2916 | return NULL; | |
2917 | if (_argo0) { | |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p."); | |
2921 | return NULL; | |
2922 | } | |
2923 | } | |
2924 | if (_argo1) { | |
2925 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p."); | |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
2930 | { | |
2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2932 | wxIconBundle_AddIcon(_arg0,*_arg1); | |
2933 | ||
2934 | wxPyEndAllowThreads(__tstate); | |
2935 | if (PyErr_Occurred()) return NULL; | |
2936 | } Py_INCREF(Py_None); | |
2937 | _resultobj = Py_None; | |
2938 | return _resultobj; | |
2939 | } | |
2940 | ||
2941 | #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1)) | |
2942 | static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2943 | PyObject * _resultobj; | |
2944 | wxIconBundle * _arg0; | |
2945 | wxString * _arg1; | |
2946 | long _arg2; | |
2947 | PyObject * _argo0 = 0; | |
2948 | PyObject * _obj1 = 0; | |
2949 | char *_kwnames[] = { "self","file","type", NULL }; | |
2950 | ||
2951 | self = self; | |
2952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2953 | return NULL; | |
2954 | if (_argo0) { | |
2955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
2957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p."); | |
2958 | return NULL; | |
2959 | } | |
2960 | } | |
2961 | { | |
2962 | _arg1 = wxString_in_helper(_obj1); | |
2963 | if (_arg1 == NULL) | |
2964 | return NULL; | |
2965 | } | |
2966 | { | |
2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2968 | wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2); | |
2969 | ||
2970 | wxPyEndAllowThreads(__tstate); | |
2971 | if (PyErr_Occurred()) return NULL; | |
2972 | } Py_INCREF(Py_None); | |
2973 | _resultobj = Py_None; | |
2974 | { | |
2975 | if (_obj1) | |
2976 | delete _arg1; | |
2977 | } | |
2978 | return _resultobj; | |
2979 | } | |
2980 | ||
2981 | #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0)) | |
2982 | static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2983 | PyObject * _resultobj; | |
2984 | wxIcon * _result; | |
2985 | wxIconBundle * _arg0; | |
2986 | wxSize * _arg1; | |
2987 | PyObject * _argo0 = 0; | |
2988 | wxSize temp; | |
2989 | PyObject * _obj1 = 0; | |
2990 | char *_kwnames[] = { "self","size", NULL }; | |
2991 | char _ptemp[128]; | |
2992 | ||
2993 | self = self; | |
2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1)) | |
2995 | return NULL; | |
2996 | if (_argo0) { | |
2997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
2999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p."); | |
3000 | return NULL; | |
3001 | } | |
3002 | } | |
3003 | { | |
3004 | _arg1 = &temp; | |
3005 | if (! wxSize_helper(_obj1, &_arg1)) | |
3006 | return NULL; | |
3007 | } | |
3008 | { | |
3009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3010 | const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1); | |
3011 | _result = (wxIcon *) &_result_ref; | |
3012 | ||
3013 | wxPyEndAllowThreads(__tstate); | |
3014 | if (PyErr_Occurred()) return NULL; | |
3015 | } if (_result) { | |
3016 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
3017 | _resultobj = Py_BuildValue("s",_ptemp); | |
3018 | } else { | |
3019 | Py_INCREF(Py_None); | |
3020 | _resultobj = Py_None; | |
3021 | } | |
3022 | return _resultobj; | |
3023 | } | |
3024 | ||
3025 | static void *SwigwxCursorTowxGDIObject(void *ptr) { | |
3026 | wxCursor *src; | |
3027 | wxGDIObject *dest; | |
3028 | src = (wxCursor *) ptr; | |
3029 | dest = (wxGDIObject *) src; | |
3030 | return (void *) dest; | |
3031 | } | |
3032 | ||
3033 | static void *SwigwxCursorTowxObject(void *ptr) { | |
3034 | wxCursor *src; | |
3035 | wxObject *dest; | |
3036 | src = (wxCursor *) ptr; | |
3037 | dest = (wxObject *) src; | |
3038 | return (void *) dest; | |
3039 | } | |
3040 | ||
3041 | static wxCursor *new_wxCursor(const wxString *cursorName,long flags,int hotSpotX,int hotSpotY) { | |
3042 | #ifdef __WXGTK__ | |
3043 | wxCHECK_MSG(FALSE, NULL, | |
3044 | wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead.")); | |
3045 | #else | |
3046 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
3047 | #endif | |
3048 | } | |
3049 | ||
3050 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3051 | PyObject * _resultobj; | |
3052 | wxCursor * _result; | |
3053 | wxString * _arg0; | |
3054 | long _arg1; | |
3055 | int _arg2 = (int ) 0; | |
3056 | int _arg3 = (int ) 0; | |
3057 | PyObject * _obj0 = 0; | |
3058 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
3059 | char _ptemp[128]; | |
3060 | ||
3061 | self = self; | |
3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
3063 | return NULL; | |
3064 | { | |
3065 | _arg0 = wxString_in_helper(_obj0); | |
3066 | if (_arg0 == NULL) | |
3067 | return NULL; | |
3068 | } | |
3069 | { | |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | _result = (wxCursor *)new_wxCursor(_arg0,_arg1,_arg2,_arg3); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) return NULL; | |
3075 | } if (_result) { | |
3076 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
3077 | _resultobj = Py_BuildValue("s",_ptemp); | |
3078 | } else { | |
3079 | Py_INCREF(Py_None); | |
3080 | _resultobj = Py_None; | |
3081 | } | |
3082 | { | |
3083 | if (_obj0) | |
3084 | delete _arg0; | |
3085 | } | |
3086 | return _resultobj; | |
3087 | } | |
3088 | ||
3089 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
3090 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3091 | PyObject * _resultobj; | |
3092 | wxCursor * _arg0; | |
3093 | PyObject * _argo0 = 0; | |
3094 | char *_kwnames[] = { "self", NULL }; | |
3095 | ||
3096 | self = self; | |
3097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
3098 | return NULL; | |
3099 | if (_argo0) { | |
3100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
3103 | return NULL; | |
3104 | } | |
3105 | } | |
3106 | { | |
3107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3108 | delete_wxCursor(_arg0); | |
3109 | ||
3110 | wxPyEndAllowThreads(__tstate); | |
3111 | if (PyErr_Occurred()) return NULL; | |
3112 | } Py_INCREF(Py_None); | |
3113 | _resultobj = Py_None; | |
3114 | return _resultobj; | |
3115 | } | |
3116 | ||
3117 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
3118 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3119 | PyObject * _resultobj; | |
3120 | bool _result; | |
3121 | wxCursor * _arg0; | |
3122 | PyObject * _argo0 = 0; | |
3123 | char *_kwnames[] = { "self", NULL }; | |
3124 | ||
3125 | self = self; | |
3126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
3127 | return NULL; | |
3128 | if (_argo0) { | |
3129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
3132 | return NULL; | |
3133 | } | |
3134 | } | |
3135 | { | |
3136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3137 | _result = (bool )wxCursor_Ok(_arg0); | |
3138 | ||
3139 | wxPyEndAllowThreads(__tstate); | |
3140 | if (PyErr_Occurred()) return NULL; | |
3141 | } _resultobj = Py_BuildValue("i",_result); | |
3142 | return _resultobj; | |
3143 | } | |
3144 | ||
3145 | static void *SwigwxColourTowxObject(void *ptr) { | |
3146 | wxColour *src; | |
3147 | wxObject *dest; | |
3148 | src = (wxColour *) ptr; | |
3149 | dest = (wxObject *) src; | |
3150 | return (void *) dest; | |
3151 | } | |
3152 | ||
3153 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) | |
3154 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3155 | PyObject * _resultobj; | |
3156 | wxColour * _result; | |
3157 | unsigned char _arg0 = (unsigned char ) 0; | |
3158 | unsigned char _arg1 = (unsigned char ) 0; | |
3159 | unsigned char _arg2 = (unsigned char ) 0; | |
3160 | char *_kwnames[] = { "red","green","blue", NULL }; | |
3161 | char _ptemp[128]; | |
3162 | ||
3163 | self = self; | |
3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) | |
3165 | return NULL; | |
3166 | { | |
3167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3168 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
3169 | ||
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) return NULL; | |
3172 | } if (_result) { | |
3173 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3174 | _resultobj = Py_BuildValue("s",_ptemp); | |
3175 | } else { | |
3176 | Py_INCREF(Py_None); | |
3177 | _resultobj = Py_None; | |
3178 | } | |
3179 | return _resultobj; | |
3180 | } | |
3181 | ||
3182 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
3183 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3184 | PyObject * _resultobj; | |
3185 | wxColour * _arg0; | |
3186 | wxColour temp; | |
3187 | PyObject * _obj0 = 0; | |
3188 | char *_kwnames[] = { "self", NULL }; | |
3189 | ||
3190 | self = self; | |
3191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) | |
3192 | return NULL; | |
3193 | { | |
3194 | _arg0 = &temp; | |
3195 | if (! wxColour_helper(_obj0, &_arg0)) | |
3196 | return NULL; | |
3197 | } | |
3198 | { | |
3199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3200 | delete_wxColour(_arg0); | |
3201 | ||
3202 | wxPyEndAllowThreads(__tstate); | |
3203 | if (PyErr_Occurred()) return NULL; | |
3204 | } Py_INCREF(Py_None); | |
3205 | _resultobj = Py_None; | |
3206 | return _resultobj; | |
3207 | } | |
3208 | ||
3209 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
3210 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3211 | PyObject * _resultobj; | |
3212 | unsigned char _result; | |
3213 | wxColour * _arg0; | |
3214 | wxColour temp; | |
3215 | PyObject * _obj0 = 0; | |
3216 | char *_kwnames[] = { "self", NULL }; | |
3217 | ||
3218 | self = self; | |
3219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) | |
3220 | return NULL; | |
3221 | { | |
3222 | _arg0 = &temp; | |
3223 | if (! wxColour_helper(_obj0, &_arg0)) | |
3224 | return NULL; | |
3225 | } | |
3226 | { | |
3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3228 | _result = (unsigned char )wxColour_Red(_arg0); | |
3229 | ||
3230 | wxPyEndAllowThreads(__tstate); | |
3231 | if (PyErr_Occurred()) return NULL; | |
3232 | } _resultobj = Py_BuildValue("b",_result); | |
3233 | return _resultobj; | |
3234 | } | |
3235 | ||
3236 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
3237 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3238 | PyObject * _resultobj; | |
3239 | unsigned char _result; | |
3240 | wxColour * _arg0; | |
3241 | wxColour temp; | |
3242 | PyObject * _obj0 = 0; | |
3243 | char *_kwnames[] = { "self", NULL }; | |
3244 | ||
3245 | self = self; | |
3246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) | |
3247 | return NULL; | |
3248 | { | |
3249 | _arg0 = &temp; | |
3250 | if (! wxColour_helper(_obj0, &_arg0)) | |
3251 | return NULL; | |
3252 | } | |
3253 | { | |
3254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3255 | _result = (unsigned char )wxColour_Green(_arg0); | |
3256 | ||
3257 | wxPyEndAllowThreads(__tstate); | |
3258 | if (PyErr_Occurred()) return NULL; | |
3259 | } _resultobj = Py_BuildValue("b",_result); | |
3260 | return _resultobj; | |
3261 | } | |
3262 | ||
3263 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
3264 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3265 | PyObject * _resultobj; | |
3266 | unsigned char _result; | |
3267 | wxColour * _arg0; | |
3268 | wxColour temp; | |
3269 | PyObject * _obj0 = 0; | |
3270 | char *_kwnames[] = { "self", NULL }; | |
3271 | ||
3272 | self = self; | |
3273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) | |
3274 | return NULL; | |
3275 | { | |
3276 | _arg0 = &temp; | |
3277 | if (! wxColour_helper(_obj0, &_arg0)) | |
3278 | return NULL; | |
3279 | } | |
3280 | { | |
3281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3282 | _result = (unsigned char )wxColour_Blue(_arg0); | |
3283 | ||
3284 | wxPyEndAllowThreads(__tstate); | |
3285 | if (PyErr_Occurred()) return NULL; | |
3286 | } _resultobj = Py_BuildValue("b",_result); | |
3287 | return _resultobj; | |
3288 | } | |
3289 | ||
3290 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
3291 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3292 | PyObject * _resultobj; | |
3293 | bool _result; | |
3294 | wxColour * _arg0; | |
3295 | wxColour temp; | |
3296 | PyObject * _obj0 = 0; | |
3297 | char *_kwnames[] = { "self", NULL }; | |
3298 | ||
3299 | self = self; | |
3300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) | |
3301 | return NULL; | |
3302 | { | |
3303 | _arg0 = &temp; | |
3304 | if (! wxColour_helper(_obj0, &_arg0)) | |
3305 | return NULL; | |
3306 | } | |
3307 | { | |
3308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3309 | _result = (bool )wxColour_Ok(_arg0); | |
3310 | ||
3311 | wxPyEndAllowThreads(__tstate); | |
3312 | if (PyErr_Occurred()) return NULL; | |
3313 | } _resultobj = Py_BuildValue("i",_result); | |
3314 | return _resultobj; | |
3315 | } | |
3316 | ||
3317 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
3318 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3319 | PyObject * _resultobj; | |
3320 | wxColour * _arg0; | |
3321 | unsigned char _arg1; | |
3322 | unsigned char _arg2; | |
3323 | unsigned char _arg3; | |
3324 | wxColour temp; | |
3325 | PyObject * _obj0 = 0; | |
3326 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
3327 | ||
3328 | self = self; | |
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
3330 | return NULL; | |
3331 | { | |
3332 | _arg0 = &temp; | |
3333 | if (! wxColour_helper(_obj0, &_arg0)) | |
3334 | return NULL; | |
3335 | } | |
3336 | { | |
3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3338 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
3339 | ||
3340 | wxPyEndAllowThreads(__tstate); | |
3341 | if (PyErr_Occurred()) return NULL; | |
3342 | } Py_INCREF(Py_None); | |
3343 | _resultobj = Py_None; | |
3344 | return _resultobj; | |
3345 | } | |
3346 | ||
3347 | static PyObject * wxColour_Get(wxColour *self) { | |
3348 | PyObject* rv = PyTuple_New(3); | |
3349 | int red = -1; | |
3350 | int green = -1; | |
3351 | int blue = -1; | |
3352 | if (self->Ok()) { | |
3353 | red = self->Red(); | |
3354 | green = self->Green(); | |
3355 | blue = self->Blue(); | |
3356 | } | |
3357 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
3358 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
3359 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
3360 | return rv; | |
3361 | } | |
3362 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3363 | PyObject * _resultobj; | |
3364 | PyObject * _result; | |
3365 | wxColour * _arg0; | |
3366 | wxColour temp; | |
3367 | PyObject * _obj0 = 0; | |
3368 | char *_kwnames[] = { "self", NULL }; | |
3369 | ||
3370 | self = self; | |
3371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) | |
3372 | return NULL; | |
3373 | { | |
3374 | _arg0 = &temp; | |
3375 | if (! wxColour_helper(_obj0, &_arg0)) | |
3376 | return NULL; | |
3377 | } | |
3378 | { | |
3379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3380 | _result = (PyObject *)wxColour_Get(_arg0); | |
3381 | ||
3382 | wxPyEndAllowThreads(__tstate); | |
3383 | if (PyErr_Occurred()) return NULL; | |
3384 | }{ | |
3385 | _resultobj = _result; | |
3386 | } | |
3387 | return _resultobj; | |
3388 | } | |
3389 | ||
3390 | static bool wxColour___eq__(wxColour *self,PyObject * obj) { | |
3391 | wxColour tmp; | |
3392 | wxColour* ptr = &tmp; | |
3393 | if (obj == Py_None) return FALSE; | |
3394 | wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear()); | |
3395 | if (! success) return FALSE; | |
3396 | return *self == *ptr; | |
3397 | } | |
3398 | static PyObject *_wrap_wxColour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3399 | PyObject * _resultobj; | |
3400 | bool _result; | |
3401 | wxColour * _arg0; | |
3402 | PyObject * _arg1; | |
3403 | wxColour temp; | |
3404 | PyObject * _obj0 = 0; | |
3405 | PyObject * _obj1 = 0; | |
3406 | char *_kwnames[] = { "self","obj", NULL }; | |
3407 | ||
3408 | self = self; | |
3409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___eq__",_kwnames,&_obj0,&_obj1)) | |
3410 | return NULL; | |
3411 | { | |
3412 | _arg0 = &temp; | |
3413 | if (! wxColour_helper(_obj0, &_arg0)) | |
3414 | return NULL; | |
3415 | } | |
3416 | { | |
3417 | _arg1 = _obj1; | |
3418 | } | |
3419 | { | |
3420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3421 | _result = (bool )wxColour___eq__(_arg0,_arg1); | |
3422 | ||
3423 | wxPyEndAllowThreads(__tstate); | |
3424 | if (PyErr_Occurred()) return NULL; | |
3425 | } _resultobj = Py_BuildValue("i",_result); | |
3426 | return _resultobj; | |
3427 | } | |
3428 | ||
3429 | static bool wxColour___ne__(wxColour *self,PyObject * obj) { | |
3430 | wxColour tmp; | |
3431 | wxColour* ptr = &tmp; | |
3432 | if (obj == Py_None) return TRUE; | |
3433 | wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear()); | |
3434 | if (! success) return TRUE; | |
3435 | return *self != *ptr; | |
3436 | } | |
3437 | static PyObject *_wrap_wxColour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3438 | PyObject * _resultobj; | |
3439 | bool _result; | |
3440 | wxColour * _arg0; | |
3441 | PyObject * _arg1; | |
3442 | wxColour temp; | |
3443 | PyObject * _obj0 = 0; | |
3444 | PyObject * _obj1 = 0; | |
3445 | char *_kwnames[] = { "self","obj", NULL }; | |
3446 | ||
3447 | self = self; | |
3448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___ne__",_kwnames,&_obj0,&_obj1)) | |
3449 | return NULL; | |
3450 | { | |
3451 | _arg0 = &temp; | |
3452 | if (! wxColour_helper(_obj0, &_arg0)) | |
3453 | return NULL; | |
3454 | } | |
3455 | { | |
3456 | _arg1 = _obj1; | |
3457 | } | |
3458 | { | |
3459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3460 | _result = (bool )wxColour___ne__(_arg0,_arg1); | |
3461 | ||
3462 | wxPyEndAllowThreads(__tstate); | |
3463 | if (PyErr_Occurred()) return NULL; | |
3464 | } _resultobj = Py_BuildValue("i",_result); | |
3465 | return _resultobj; | |
3466 | } | |
3467 | ||
3468 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { | |
3469 | wxColourDatabase *src; | |
3470 | wxObject *dest; | |
3471 | src = (wxColourDatabase *) ptr; | |
3472 | dest = (wxObject *) src; | |
3473 | return (void *) dest; | |
3474 | } | |
3475 | ||
3476 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) | |
3477 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject * _resultobj; | |
3479 | wxColour * _result; | |
3480 | wxColourDatabase * _arg0; | |
3481 | wxString * _arg1; | |
3482 | PyObject * _argo0 = 0; | |
3483 | PyObject * _obj1 = 0; | |
3484 | char *_kwnames[] = { "self","colour", NULL }; | |
3485 | char _ptemp[128]; | |
3486 | ||
3487 | self = self; | |
3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
3489 | return NULL; | |
3490 | if (_argo0) { | |
3491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
3494 | return NULL; | |
3495 | } | |
3496 | } | |
3497 | { | |
3498 | _arg1 = wxString_in_helper(_obj1); | |
3499 | if (_arg1 == NULL) | |
3500 | return NULL; | |
3501 | } | |
3502 | { | |
3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3504 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
3505 | ||
3506 | wxPyEndAllowThreads(__tstate); | |
3507 | if (PyErr_Occurred()) return NULL; | |
3508 | } if (_result) { | |
3509 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3510 | _resultobj = Py_BuildValue("s",_ptemp); | |
3511 | } else { | |
3512 | Py_INCREF(Py_None); | |
3513 | _resultobj = Py_None; | |
3514 | } | |
3515 | { | |
3516 | if (_obj1) | |
3517 | delete _arg1; | |
3518 | } | |
3519 | return _resultobj; | |
3520 | } | |
3521 | ||
3522 | #define wxColourDatabase_FindColourNoAdd(_swigobj,_swigarg0) (_swigobj->FindColourNoAdd(_swigarg0)) | |
3523 | static PyObject *_wrap_wxColourDatabase_FindColourNoAdd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3524 | PyObject * _resultobj; | |
3525 | wxColour * _result; | |
3526 | wxColourDatabase * _arg0; | |
3527 | wxString * _arg1; | |
3528 | PyObject * _argo0 = 0; | |
3529 | PyObject * _obj1 = 0; | |
3530 | char *_kwnames[] = { "self","colour", NULL }; | |
3531 | char _ptemp[128]; | |
3532 | ||
3533 | self = self; | |
3534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColourNoAdd",_kwnames,&_argo0,&_obj1)) | |
3535 | return NULL; | |
3536 | if (_argo0) { | |
3537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColourNoAdd. Expected _wxColourDatabase_p."); | |
3540 | return NULL; | |
3541 | } | |
3542 | } | |
3543 | { | |
3544 | _arg1 = wxString_in_helper(_obj1); | |
3545 | if (_arg1 == NULL) | |
3546 | return NULL; | |
3547 | } | |
3548 | { | |
3549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3550 | _result = (wxColour *)wxColourDatabase_FindColourNoAdd(_arg0,*_arg1); | |
3551 | ||
3552 | wxPyEndAllowThreads(__tstate); | |
3553 | if (PyErr_Occurred()) return NULL; | |
3554 | } if (_result) { | |
3555 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3556 | _resultobj = Py_BuildValue("s",_ptemp); | |
3557 | } else { | |
3558 | Py_INCREF(Py_None); | |
3559 | _resultobj = Py_None; | |
3560 | } | |
3561 | { | |
3562 | if (_obj1) | |
3563 | delete _arg1; | |
3564 | } | |
3565 | return _resultobj; | |
3566 | } | |
3567 | ||
3568 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
3569 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3570 | PyObject * _resultobj; | |
3571 | wxString * _result; | |
3572 | wxColourDatabase * _arg0; | |
3573 | wxColour * _arg1; | |
3574 | PyObject * _argo0 = 0; | |
3575 | wxColour temp; | |
3576 | PyObject * _obj1 = 0; | |
3577 | char *_kwnames[] = { "self","colour", NULL }; | |
3578 | ||
3579 | self = self; | |
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
3581 | return NULL; | |
3582 | if (_argo0) { | |
3583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
3586 | return NULL; | |
3587 | } | |
3588 | } | |
3589 | { | |
3590 | _arg1 = &temp; | |
3591 | if (! wxColour_helper(_obj1, &_arg1)) | |
3592 | return NULL; | |
3593 | } | |
3594 | { | |
3595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3596 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
3597 | ||
3598 | wxPyEndAllowThreads(__tstate); | |
3599 | if (PyErr_Occurred()) return NULL; | |
3600 | }{ | |
3601 | #if wxUSE_UNICODE | |
3602 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
3603 | #else | |
3604 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3605 | #endif | |
3606 | } | |
3607 | { | |
3608 | delete _result; | |
3609 | } | |
3610 | return _resultobj; | |
3611 | } | |
3612 | ||
3613 | static void wxColourDatabase_AddColour(wxColourDatabase *self,const wxString & name,wxColour * colour) { | |
3614 | // make a copy since the python one will be GC'd | |
3615 | wxColour* c = new wxColour(*colour); | |
3616 | self->AddColour(name, c); | |
3617 | } | |
3618 | static PyObject *_wrap_wxColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3619 | PyObject * _resultobj; | |
3620 | wxColourDatabase * _arg0; | |
3621 | wxString * _arg1; | |
3622 | wxColour * _arg2; | |
3623 | PyObject * _argo0 = 0; | |
3624 | PyObject * _obj1 = 0; | |
3625 | wxColour temp; | |
3626 | PyObject * _obj2 = 0; | |
3627 | char *_kwnames[] = { "self","name","colour", NULL }; | |
3628 | ||
3629 | self = self; | |
3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxColourDatabase_AddColour",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3631 | return NULL; | |
3632 | if (_argo0) { | |
3633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_AddColour. Expected _wxColourDatabase_p."); | |
3636 | return NULL; | |
3637 | } | |
3638 | } | |
3639 | { | |
3640 | _arg1 = wxString_in_helper(_obj1); | |
3641 | if (_arg1 == NULL) | |
3642 | return NULL; | |
3643 | } | |
3644 | { | |
3645 | _arg2 = &temp; | |
3646 | if (! wxColour_helper(_obj2, &_arg2)) | |
3647 | return NULL; | |
3648 | } | |
3649 | { | |
3650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3651 | wxColourDatabase_AddColour(_arg0,*_arg1,_arg2); | |
3652 | ||
3653 | wxPyEndAllowThreads(__tstate); | |
3654 | if (PyErr_Occurred()) return NULL; | |
3655 | } Py_INCREF(Py_None); | |
3656 | _resultobj = Py_None; | |
3657 | { | |
3658 | if (_obj1) | |
3659 | delete _arg1; | |
3660 | } | |
3661 | return _resultobj; | |
3662 | } | |
3663 | ||
3664 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
3665 | wxColour* c = new wxColour(red, green, blue); | |
3666 | self->AddColour(name, c); | |
3667 | } | |
3668 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3669 | PyObject * _resultobj; | |
3670 | wxColourDatabase * _arg0; | |
3671 | wxString * _arg1; | |
3672 | int _arg2; | |
3673 | int _arg3; | |
3674 | int _arg4; | |
3675 | PyObject * _argo0 = 0; | |
3676 | PyObject * _obj1 = 0; | |
3677 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
3678 | ||
3679 | self = self; | |
3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
3681 | return NULL; | |
3682 | if (_argo0) { | |
3683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
3686 | return NULL; | |
3687 | } | |
3688 | } | |
3689 | { | |
3690 | _arg1 = wxString_in_helper(_obj1); | |
3691 | if (_arg1 == NULL) | |
3692 | return NULL; | |
3693 | } | |
3694 | { | |
3695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3696 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3697 | ||
3698 | wxPyEndAllowThreads(__tstate); | |
3699 | if (PyErr_Occurred()) return NULL; | |
3700 | } Py_INCREF(Py_None); | |
3701 | _resultobj = Py_None; | |
3702 | { | |
3703 | if (_obj1) | |
3704 | delete _arg1; | |
3705 | } | |
3706 | return _resultobj; | |
3707 | } | |
3708 | ||
3709 | static void *SwigwxPenTowxGDIObject(void *ptr) { | |
3710 | wxPen *src; | |
3711 | wxGDIObject *dest; | |
3712 | src = (wxPen *) ptr; | |
3713 | dest = (wxGDIObject *) src; | |
3714 | return (void *) dest; | |
3715 | } | |
3716 | ||
3717 | static void *SwigwxPenTowxObject(void *ptr) { | |
3718 | wxPen *src; | |
3719 | wxObject *dest; | |
3720 | src = (wxPen *) ptr; | |
3721 | dest = (wxObject *) src; | |
3722 | return (void *) dest; | |
3723 | } | |
3724 | ||
3725 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
3726 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3727 | PyObject * _resultobj; | |
3728 | wxPen * _result; | |
3729 | wxColour * _arg0; | |
3730 | int _arg1 = (int ) 1; | |
3731 | int _arg2 = (int ) wxSOLID; | |
3732 | wxColour temp; | |
3733 | PyObject * _obj0 = 0; | |
3734 | char *_kwnames[] = { "colour","width","style", NULL }; | |
3735 | char _ptemp[128]; | |
3736 | ||
3737 | self = self; | |
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
3739 | return NULL; | |
3740 | { | |
3741 | _arg0 = &temp; | |
3742 | if (! wxColour_helper(_obj0, &_arg0)) | |
3743 | return NULL; | |
3744 | } | |
3745 | { | |
3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3747 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); | |
3748 | ||
3749 | wxPyEndAllowThreads(__tstate); | |
3750 | if (PyErr_Occurred()) return NULL; | |
3751 | } if (_result) { | |
3752 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3753 | _resultobj = Py_BuildValue("s",_ptemp); | |
3754 | } else { | |
3755 | Py_INCREF(Py_None); | |
3756 | _resultobj = Py_None; | |
3757 | } | |
3758 | return _resultobj; | |
3759 | } | |
3760 | ||
3761 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
3762 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3763 | PyObject * _resultobj; | |
3764 | wxPen * _arg0; | |
3765 | PyObject * _argo0 = 0; | |
3766 | char *_kwnames[] = { "self", NULL }; | |
3767 | ||
3768 | self = self; | |
3769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
3770 | return NULL; | |
3771 | if (_argo0) { | |
3772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
3775 | return NULL; | |
3776 | } | |
3777 | } | |
3778 | { | |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | delete_wxPen(_arg0); | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
3783 | if (PyErr_Occurred()) return NULL; | |
3784 | } Py_INCREF(Py_None); | |
3785 | _resultobj = Py_None; | |
3786 | return _resultobj; | |
3787 | } | |
3788 | ||
3789 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
3790 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3791 | PyObject * _resultobj; | |
3792 | int _result; | |
3793 | wxPen * _arg0; | |
3794 | PyObject * _argo0 = 0; | |
3795 | char *_kwnames[] = { "self", NULL }; | |
3796 | ||
3797 | self = self; | |
3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
3799 | return NULL; | |
3800 | if (_argo0) { | |
3801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
3804 | return NULL; | |
3805 | } | |
3806 | } | |
3807 | { | |
3808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3809 | _result = (int )wxPen_GetCap(_arg0); | |
3810 | ||
3811 | wxPyEndAllowThreads(__tstate); | |
3812 | if (PyErr_Occurred()) return NULL; | |
3813 | } _resultobj = Py_BuildValue("i",_result); | |
3814 | return _resultobj; | |
3815 | } | |
3816 | ||
3817 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
3818 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3819 | PyObject * _resultobj; | |
3820 | wxColour * _result; | |
3821 | wxPen * _arg0; | |
3822 | PyObject * _argo0 = 0; | |
3823 | char *_kwnames[] = { "self", NULL }; | |
3824 | char _ptemp[128]; | |
3825 | ||
3826 | self = self; | |
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
3828 | return NULL; | |
3829 | if (_argo0) { | |
3830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
3833 | return NULL; | |
3834 | } | |
3835 | } | |
3836 | { | |
3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3838 | _result = new wxColour (wxPen_GetColour(_arg0)); | |
3839 | ||
3840 | wxPyEndAllowThreads(__tstate); | |
3841 | if (PyErr_Occurred()) return NULL; | |
3842 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
3843 | _resultobj = Py_BuildValue("s",_ptemp); | |
3844 | return _resultobj; | |
3845 | } | |
3846 | ||
3847 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
3848 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject * _resultobj; | |
3850 | int _result; | |
3851 | wxPen * _arg0; | |
3852 | PyObject * _argo0 = 0; | |
3853 | char *_kwnames[] = { "self", NULL }; | |
3854 | ||
3855 | self = self; | |
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) | |
3857 | return NULL; | |
3858 | if (_argo0) { | |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
3865 | { | |
3866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3867 | _result = (int )wxPen_GetJoin(_arg0); | |
3868 | ||
3869 | wxPyEndAllowThreads(__tstate); | |
3870 | if (PyErr_Occurred()) return NULL; | |
3871 | } _resultobj = Py_BuildValue("i",_result); | |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
3875 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3876 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject * _resultobj; | |
3878 | int _result; | |
3879 | wxPen * _arg0; | |
3880 | PyObject * _argo0 = 0; | |
3881 | char *_kwnames[] = { "self", NULL }; | |
3882 | ||
3883 | self = self; | |
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) | |
3885 | return NULL; | |
3886 | if (_argo0) { | |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
3893 | { | |
3894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3895 | _result = (int )wxPen_GetStyle(_arg0); | |
3896 | ||
3897 | wxPyEndAllowThreads(__tstate); | |
3898 | if (PyErr_Occurred()) return NULL; | |
3899 | } _resultobj = Py_BuildValue("i",_result); | |
3900 | return _resultobj; | |
3901 | } | |
3902 | ||
3903 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
3904 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3905 | PyObject * _resultobj; | |
3906 | int _result; | |
3907 | wxPen * _arg0; | |
3908 | PyObject * _argo0 = 0; | |
3909 | char *_kwnames[] = { "self", NULL }; | |
3910 | ||
3911 | self = self; | |
3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) | |
3913 | return NULL; | |
3914 | if (_argo0) { | |
3915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
3918 | return NULL; | |
3919 | } | |
3920 | } | |
3921 | { | |
3922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3923 | _result = (int )wxPen_GetWidth(_arg0); | |
3924 | ||
3925 | wxPyEndAllowThreads(__tstate); | |
3926 | if (PyErr_Occurred()) return NULL; | |
3927 | } _resultobj = Py_BuildValue("i",_result); | |
3928 | return _resultobj; | |
3929 | } | |
3930 | ||
3931 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
3932 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3933 | PyObject * _resultobj; | |
3934 | bool _result; | |
3935 | wxPen * _arg0; | |
3936 | PyObject * _argo0 = 0; | |
3937 | char *_kwnames[] = { "self", NULL }; | |
3938 | ||
3939 | self = self; | |
3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) | |
3941 | return NULL; | |
3942 | if (_argo0) { | |
3943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
3946 | return NULL; | |
3947 | } | |
3948 | } | |
3949 | { | |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | _result = (bool )wxPen_Ok(_arg0); | |
3952 | ||
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) return NULL; | |
3955 | } _resultobj = Py_BuildValue("i",_result); | |
3956 | return _resultobj; | |
3957 | } | |
3958 | ||
3959 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
3960 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3961 | PyObject * _resultobj; | |
3962 | wxPen * _arg0; | |
3963 | int _arg1; | |
3964 | PyObject * _argo0 = 0; | |
3965 | char *_kwnames[] = { "self","cap_style", NULL }; | |
3966 | ||
3967 | self = self; | |
3968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) | |
3969 | return NULL; | |
3970 | if (_argo0) { | |
3971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
3974 | return NULL; | |
3975 | } | |
3976 | } | |
3977 | { | |
3978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3979 | wxPen_SetCap(_arg0,_arg1); | |
3980 | ||
3981 | wxPyEndAllowThreads(__tstate); | |
3982 | if (PyErr_Occurred()) return NULL; | |
3983 | } Py_INCREF(Py_None); | |
3984 | _resultobj = Py_None; | |
3985 | return _resultobj; | |
3986 | } | |
3987 | ||
3988 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
3989 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3990 | PyObject * _resultobj; | |
3991 | wxPen * _arg0; | |
3992 | wxColour * _arg1; | |
3993 | PyObject * _argo0 = 0; | |
3994 | wxColour temp; | |
3995 | PyObject * _obj1 = 0; | |
3996 | char *_kwnames[] = { "self","colour", NULL }; | |
3997 | ||
3998 | self = self; | |
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) | |
4000 | return NULL; | |
4001 | if (_argo0) { | |
4002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
4005 | return NULL; | |
4006 | } | |
4007 | } | |
4008 | { | |
4009 | _arg1 = &temp; | |
4010 | if (! wxColour_helper(_obj1, &_arg1)) | |
4011 | return NULL; | |
4012 | } | |
4013 | { | |
4014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4015 | wxPen_SetColour(_arg0,*_arg1); | |
4016 | ||
4017 | wxPyEndAllowThreads(__tstate); | |
4018 | if (PyErr_Occurred()) return NULL; | |
4019 | } Py_INCREF(Py_None); | |
4020 | _resultobj = Py_None; | |
4021 | return _resultobj; | |
4022 | } | |
4023 | ||
4024 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
4025 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4026 | PyObject * _resultobj; | |
4027 | wxPen * _arg0; | |
4028 | int _arg1; | |
4029 | PyObject * _argo0 = 0; | |
4030 | char *_kwnames[] = { "self","join_style", NULL }; | |
4031 | ||
4032 | self = self; | |
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) | |
4034 | return NULL; | |
4035 | if (_argo0) { | |
4036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
4039 | return NULL; | |
4040 | } | |
4041 | } | |
4042 | { | |
4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4044 | wxPen_SetJoin(_arg0,_arg1); | |
4045 | ||
4046 | wxPyEndAllowThreads(__tstate); | |
4047 | if (PyErr_Occurred()) return NULL; | |
4048 | } Py_INCREF(Py_None); | |
4049 | _resultobj = Py_None; | |
4050 | return _resultobj; | |
4051 | } | |
4052 | ||
4053 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4054 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4055 | PyObject * _resultobj; | |
4056 | wxPen * _arg0; | |
4057 | int _arg1; | |
4058 | PyObject * _argo0 = 0; | |
4059 | char *_kwnames[] = { "self","style", NULL }; | |
4060 | ||
4061 | self = self; | |
4062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4063 | return NULL; | |
4064 | if (_argo0) { | |
4065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
4068 | return NULL; | |
4069 | } | |
4070 | } | |
4071 | { | |
4072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4073 | wxPen_SetStyle(_arg0,_arg1); | |
4074 | ||
4075 | wxPyEndAllowThreads(__tstate); | |
4076 | if (PyErr_Occurred()) return NULL; | |
4077 | } Py_INCREF(Py_None); | |
4078 | _resultobj = Py_None; | |
4079 | return _resultobj; | |
4080 | } | |
4081 | ||
4082 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
4083 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4084 | PyObject * _resultobj; | |
4085 | wxPen * _arg0; | |
4086 | int _arg1; | |
4087 | PyObject * _argo0 = 0; | |
4088 | char *_kwnames[] = { "self","width", NULL }; | |
4089 | ||
4090 | self = self; | |
4091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) | |
4092 | return NULL; | |
4093 | if (_argo0) { | |
4094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
4097 | return NULL; | |
4098 | } | |
4099 | } | |
4100 | { | |
4101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4102 | wxPen_SetWidth(_arg0,_arg1); | |
4103 | ||
4104 | wxPyEndAllowThreads(__tstate); | |
4105 | if (PyErr_Occurred()) return NULL; | |
4106 | } Py_INCREF(Py_None); | |
4107 | _resultobj = Py_None; | |
4108 | return _resultobj; | |
4109 | } | |
4110 | ||
4111 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
4112 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4113 | PyObject * _resultobj; | |
4114 | wxPen * _arg0; | |
4115 | int _arg1; | |
4116 | wxDash * _arg2; | |
4117 | PyObject * _argo0 = 0; | |
4118 | PyObject * _obj2 = 0; | |
4119 | char *_kwnames[] = { "self","choices", NULL }; | |
4120 | ||
4121 | self = self; | |
4122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
4123 | return NULL; | |
4124 | if (_argo0) { | |
4125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
4128 | return NULL; | |
4129 | } | |
4130 | } | |
4131 | if (_obj2) | |
4132 | { | |
4133 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
4134 | if (_arg2 == NULL) { | |
4135 | return NULL; | |
4136 | } | |
4137 | } | |
4138 | { | |
4139 | if (_obj2) { | |
4140 | _arg1 = PyList_Size(_obj2); | |
4141 | } | |
4142 | else { | |
4143 | _arg1 = 0; | |
4144 | } | |
4145 | } | |
4146 | { | |
4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4148 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
4149 | ||
4150 | wxPyEndAllowThreads(__tstate); | |
4151 | if (PyErr_Occurred()) return NULL; | |
4152 | } Py_INCREF(Py_None); | |
4153 | _resultobj = Py_None; | |
4154 | { | |
4155 | delete [] _arg2; | |
4156 | } | |
4157 | return _resultobj; | |
4158 | } | |
4159 | ||
4160 | static PyObject * wxPen_GetDashes(wxPen *self) { | |
4161 | wxDash* dashes; | |
4162 | int count = self->GetDashes(&dashes); | |
4163 | wxPyBeginBlockThreads(); | |
4164 | PyObject* retval = PyList_New(0); | |
4165 | for (int x=0; x<count; x++) | |
4166 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
4167 | wxPyEndBlockThreads(); | |
4168 | return retval; | |
4169 | } | |
4170 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4171 | PyObject * _resultobj; | |
4172 | PyObject * _result; | |
4173 | wxPen * _arg0; | |
4174 | PyObject * _argo0 = 0; | |
4175 | char *_kwnames[] = { "self", NULL }; | |
4176 | ||
4177 | self = self; | |
4178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0)) | |
4179 | return NULL; | |
4180 | if (_argo0) { | |
4181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
4184 | return NULL; | |
4185 | } | |
4186 | } | |
4187 | { | |
4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4189 | _result = (PyObject *)wxPen_GetDashes(_arg0); | |
4190 | ||
4191 | wxPyEndAllowThreads(__tstate); | |
4192 | if (PyErr_Occurred()) return NULL; | |
4193 | }{ | |
4194 | _resultobj = _result; | |
4195 | } | |
4196 | return _resultobj; | |
4197 | } | |
4198 | ||
4199 | static void *SwigwxPyPenTowxPen(void *ptr) { | |
4200 | wxPyPen *src; | |
4201 | wxPen *dest; | |
4202 | src = (wxPyPen *) ptr; | |
4203 | dest = (wxPen *) src; | |
4204 | return (void *) dest; | |
4205 | } | |
4206 | ||
4207 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
4208 | wxPyPen *src; | |
4209 | wxGDIObject *dest; | |
4210 | src = (wxPyPen *) ptr; | |
4211 | dest = (wxGDIObject *) src; | |
4212 | return (void *) dest; | |
4213 | } | |
4214 | ||
4215 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
4216 | wxPyPen *src; | |
4217 | wxObject *dest; | |
4218 | src = (wxPyPen *) ptr; | |
4219 | dest = (wxObject *) src; | |
4220 | return (void *) dest; | |
4221 | } | |
4222 | ||
4223 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
4224 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4225 | PyObject * _resultobj; | |
4226 | wxPyPen * _result; | |
4227 | wxColour * _arg0; | |
4228 | int _arg1 = (int ) 1; | |
4229 | int _arg2 = (int ) wxSOLID; | |
4230 | wxColour temp; | |
4231 | PyObject * _obj0 = 0; | |
4232 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4233 | char _ptemp[128]; | |
4234 | ||
4235 | self = self; | |
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4237 | return NULL; | |
4238 | { | |
4239 | _arg0 = &temp; | |
4240 | if (! wxColour_helper(_obj0, &_arg0)) | |
4241 | return NULL; | |
4242 | } | |
4243 | { | |
4244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4245 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); | |
4246 | ||
4247 | wxPyEndAllowThreads(__tstate); | |
4248 | if (PyErr_Occurred()) return NULL; | |
4249 | } if (_result) { | |
4250 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
4251 | _resultobj = Py_BuildValue("s",_ptemp); | |
4252 | } else { | |
4253 | Py_INCREF(Py_None); | |
4254 | _resultobj = Py_None; | |
4255 | } | |
4256 | return _resultobj; | |
4257 | } | |
4258 | ||
4259 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
4260 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4261 | PyObject * _resultobj; | |
4262 | wxPyPen * _arg0; | |
4263 | PyObject * _argo0 = 0; | |
4264 | char *_kwnames[] = { "self", NULL }; | |
4265 | ||
4266 | self = self; | |
4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
4268 | return NULL; | |
4269 | if (_argo0) { | |
4270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
4272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
4273 | return NULL; | |
4274 | } | |
4275 | } | |
4276 | { | |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | delete_wxPyPen(_arg0); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) return NULL; | |
4282 | } Py_INCREF(Py_None); | |
4283 | _resultobj = Py_None; | |
4284 | return _resultobj; | |
4285 | } | |
4286 | ||
4287 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
4288 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject * _resultobj; | |
4290 | wxPyPen * _arg0; | |
4291 | int _arg1; | |
4292 | wxDash * _arg2; | |
4293 | PyObject * _argo0 = 0; | |
4294 | PyObject * _obj2 = 0; | |
4295 | char *_kwnames[] = { "self","choices", NULL }; | |
4296 | ||
4297 | self = self; | |
4298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
4299 | return NULL; | |
4300 | if (_argo0) { | |
4301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
4303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
4304 | return NULL; | |
4305 | } | |
4306 | } | |
4307 | if (_obj2) | |
4308 | { | |
4309 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
4310 | if (_arg2 == NULL) { | |
4311 | return NULL; | |
4312 | } | |
4313 | } | |
4314 | { | |
4315 | if (_obj2) { | |
4316 | _arg1 = PyList_Size(_obj2); | |
4317 | } | |
4318 | else { | |
4319 | _arg1 = 0; | |
4320 | } | |
4321 | } | |
4322 | { | |
4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4324 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); | |
4325 | ||
4326 | wxPyEndAllowThreads(__tstate); | |
4327 | if (PyErr_Occurred()) return NULL; | |
4328 | } Py_INCREF(Py_None); | |
4329 | _resultobj = Py_None; | |
4330 | { | |
4331 | delete [] _arg2; | |
4332 | } | |
4333 | return _resultobj; | |
4334 | } | |
4335 | ||
4336 | static void *SwigwxPenListTowxObject(void *ptr) { | |
4337 | wxPenList *src; | |
4338 | wxObject *dest; | |
4339 | src = (wxPenList *) ptr; | |
4340 | dest = (wxObject *) src; | |
4341 | return (void *) dest; | |
4342 | } | |
4343 | ||
4344 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) | |
4345 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4346 | PyObject * _resultobj; | |
4347 | wxPenList * _arg0; | |
4348 | wxPen * _arg1; | |
4349 | PyObject * _argo0 = 0; | |
4350 | PyObject * _argo1 = 0; | |
4351 | char *_kwnames[] = { "self","pen", NULL }; | |
4352 | ||
4353 | self = self; | |
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
4355 | return NULL; | |
4356 | if (_argo0) { | |
4357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
4360 | return NULL; | |
4361 | } | |
4362 | } | |
4363 | if (_argo1) { | |
4364 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4365 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
4367 | return NULL; | |
4368 | } | |
4369 | } | |
4370 | { | |
4371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4372 | wxPenList_AddPen(_arg0,_arg1); | |
4373 | ||
4374 | wxPyEndAllowThreads(__tstate); | |
4375 | if (PyErr_Occurred()) return NULL; | |
4376 | } Py_INCREF(Py_None); | |
4377 | _resultobj = Py_None; | |
4378 | return _resultobj; | |
4379 | } | |
4380 | ||
4381 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
4382 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4383 | PyObject * _resultobj; | |
4384 | wxPen * _result; | |
4385 | wxPenList * _arg0; | |
4386 | wxColour * _arg1; | |
4387 | int _arg2; | |
4388 | int _arg3; | |
4389 | PyObject * _argo0 = 0; | |
4390 | wxColour temp; | |
4391 | PyObject * _obj1 = 0; | |
4392 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
4393 | char _ptemp[128]; | |
4394 | ||
4395 | self = self; | |
4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
4397 | return NULL; | |
4398 | if (_argo0) { | |
4399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
4402 | return NULL; | |
4403 | } | |
4404 | } | |
4405 | { | |
4406 | _arg1 = &temp; | |
4407 | if (! wxColour_helper(_obj1, &_arg1)) | |
4408 | return NULL; | |
4409 | } | |
4410 | { | |
4411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4412 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
4413 | ||
4414 | wxPyEndAllowThreads(__tstate); | |
4415 | if (PyErr_Occurred()) return NULL; | |
4416 | } if (_result) { | |
4417 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4418 | _resultobj = Py_BuildValue("s",_ptemp); | |
4419 | } else { | |
4420 | Py_INCREF(Py_None); | |
4421 | _resultobj = Py_None; | |
4422 | } | |
4423 | return _resultobj; | |
4424 | } | |
4425 | ||
4426 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
4427 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4428 | PyObject * _resultobj; | |
4429 | wxPenList * _arg0; | |
4430 | wxPen * _arg1; | |
4431 | PyObject * _argo0 = 0; | |
4432 | PyObject * _argo1 = 0; | |
4433 | char *_kwnames[] = { "self","pen", NULL }; | |
4434 | ||
4435 | self = self; | |
4436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
4437 | return NULL; | |
4438 | if (_argo0) { | |
4439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
4442 | return NULL; | |
4443 | } | |
4444 | } | |
4445 | if (_argo1) { | |
4446 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4447 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
4449 | return NULL; | |
4450 | } | |
4451 | } | |
4452 | { | |
4453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4454 | wxPenList_RemovePen(_arg0,_arg1); | |
4455 | ||
4456 | wxPyEndAllowThreads(__tstate); | |
4457 | if (PyErr_Occurred()) return NULL; | |
4458 | } Py_INCREF(Py_None); | |
4459 | _resultobj = Py_None; | |
4460 | return _resultobj; | |
4461 | } | |
4462 | ||
4463 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) | |
4464 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4465 | PyObject * _resultobj; | |
4466 | int _result; | |
4467 | wxPenList * _arg0; | |
4468 | PyObject * _argo0 = 0; | |
4469 | char *_kwnames[] = { "self", NULL }; | |
4470 | ||
4471 | self = self; | |
4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
4473 | return NULL; | |
4474 | if (_argo0) { | |
4475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
4478 | return NULL; | |
4479 | } | |
4480 | } | |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | _result = (int )wxPenList_GetCount(_arg0); | |
4484 | ||
4485 | wxPyEndAllowThreads(__tstate); | |
4486 | if (PyErr_Occurred()) return NULL; | |
4487 | } _resultobj = Py_BuildValue("i",_result); | |
4488 | return _resultobj; | |
4489 | } | |
4490 | ||
4491 | static void *SwigwxBrushTowxGDIObject(void *ptr) { | |
4492 | wxBrush *src; | |
4493 | wxGDIObject *dest; | |
4494 | src = (wxBrush *) ptr; | |
4495 | dest = (wxGDIObject *) src; | |
4496 | return (void *) dest; | |
4497 | } | |
4498 | ||
4499 | static void *SwigwxBrushTowxObject(void *ptr) { | |
4500 | wxBrush *src; | |
4501 | wxObject *dest; | |
4502 | src = (wxBrush *) ptr; | |
4503 | dest = (wxObject *) src; | |
4504 | return (void *) dest; | |
4505 | } | |
4506 | ||
4507 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
4508 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4509 | PyObject * _resultobj; | |
4510 | wxBrush * _result; | |
4511 | wxColour * _arg0; | |
4512 | int _arg1 = (int ) wxSOLID; | |
4513 | wxColour temp; | |
4514 | PyObject * _obj0 = 0; | |
4515 | char *_kwnames[] = { "colour","style", NULL }; | |
4516 | char _ptemp[128]; | |
4517 | ||
4518 | self = self; | |
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) | |
4520 | return NULL; | |
4521 | { | |
4522 | _arg0 = &temp; | |
4523 | if (! wxColour_helper(_obj0, &_arg0)) | |
4524 | return NULL; | |
4525 | } | |
4526 | { | |
4527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4528 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); | |
4529 | ||
4530 | wxPyEndAllowThreads(__tstate); | |
4531 | if (PyErr_Occurred()) return NULL; | |
4532 | } if (_result) { | |
4533 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4534 | _resultobj = Py_BuildValue("s",_ptemp); | |
4535 | } else { | |
4536 | Py_INCREF(Py_None); | |
4537 | _resultobj = Py_None; | |
4538 | } | |
4539 | return _resultobj; | |
4540 | } | |
4541 | ||
4542 | #define delete_wxBrush(_swigobj) (delete _swigobj) | |
4543 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4544 | PyObject * _resultobj; | |
4545 | wxBrush * _arg0; | |
4546 | PyObject * _argo0 = 0; | |
4547 | char *_kwnames[] = { "self", NULL }; | |
4548 | ||
4549 | self = self; | |
4550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
4551 | return NULL; | |
4552 | if (_argo0) { | |
4553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
4556 | return NULL; | |
4557 | } | |
4558 | } | |
4559 | { | |
4560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4561 | delete_wxBrush(_arg0); | |
4562 | ||
4563 | wxPyEndAllowThreads(__tstate); | |
4564 | if (PyErr_Occurred()) return NULL; | |
4565 | } Py_INCREF(Py_None); | |
4566 | _resultobj = Py_None; | |
4567 | return _resultobj; | |
4568 | } | |
4569 | ||
4570 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
4571 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4572 | PyObject * _resultobj; | |
4573 | wxColour * _result; | |
4574 | wxBrush * _arg0; | |
4575 | PyObject * _argo0 = 0; | |
4576 | char *_kwnames[] = { "self", NULL }; | |
4577 | char _ptemp[128]; | |
4578 | ||
4579 | self = self; | |
4580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) | |
4581 | return NULL; | |
4582 | if (_argo0) { | |
4583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
4586 | return NULL; | |
4587 | } | |
4588 | } | |
4589 | { | |
4590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4591 | _result = new wxColour (wxBrush_GetColour(_arg0)); | |
4592 | ||
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) return NULL; | |
4595 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4596 | _resultobj = Py_BuildValue("s",_ptemp); | |
4597 | return _resultobj; | |
4598 | } | |
4599 | ||
4600 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
4601 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4602 | PyObject * _resultobj; | |
4603 | wxBitmap * _result; | |
4604 | wxBrush * _arg0; | |
4605 | PyObject * _argo0 = 0; | |
4606 | char *_kwnames[] = { "self", NULL }; | |
4607 | char _ptemp[128]; | |
4608 | ||
4609 | self = self; | |
4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) | |
4611 | return NULL; | |
4612 | if (_argo0) { | |
4613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
4616 | return NULL; | |
4617 | } | |
4618 | } | |
4619 | { | |
4620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4621 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
4622 | ||
4623 | wxPyEndAllowThreads(__tstate); | |
4624 | if (PyErr_Occurred()) return NULL; | |
4625 | } if (_result) { | |
4626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4627 | _resultobj = Py_BuildValue("s",_ptemp); | |
4628 | } else { | |
4629 | Py_INCREF(Py_None); | |
4630 | _resultobj = Py_None; | |
4631 | } | |
4632 | return _resultobj; | |
4633 | } | |
4634 | ||
4635 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
4636 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4637 | PyObject * _resultobj; | |
4638 | int _result; | |
4639 | wxBrush * _arg0; | |
4640 | PyObject * _argo0 = 0; | |
4641 | char *_kwnames[] = { "self", NULL }; | |
4642 | ||
4643 | self = self; | |
4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) | |
4645 | return NULL; | |
4646 | if (_argo0) { | |
4647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
4650 | return NULL; | |
4651 | } | |
4652 | } | |
4653 | { | |
4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4655 | _result = (int )wxBrush_GetStyle(_arg0); | |
4656 | ||
4657 | wxPyEndAllowThreads(__tstate); | |
4658 | if (PyErr_Occurred()) return NULL; | |
4659 | } _resultobj = Py_BuildValue("i",_result); | |
4660 | return _resultobj; | |
4661 | } | |
4662 | ||
4663 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
4664 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject * _resultobj; | |
4666 | bool _result; | |
4667 | wxBrush * _arg0; | |
4668 | PyObject * _argo0 = 0; | |
4669 | char *_kwnames[] = { "self", NULL }; | |
4670 | ||
4671 | self = self; | |
4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) | |
4673 | return NULL; | |
4674 | if (_argo0) { | |
4675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
4678 | return NULL; | |
4679 | } | |
4680 | } | |
4681 | { | |
4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4683 | _result = (bool )wxBrush_Ok(_arg0); | |
4684 | ||
4685 | wxPyEndAllowThreads(__tstate); | |
4686 | if (PyErr_Occurred()) return NULL; | |
4687 | } _resultobj = Py_BuildValue("i",_result); | |
4688 | return _resultobj; | |
4689 | } | |
4690 | ||
4691 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
4692 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4693 | PyObject * _resultobj; | |
4694 | wxBrush * _arg0; | |
4695 | wxColour * _arg1; | |
4696 | PyObject * _argo0 = 0; | |
4697 | wxColour temp; | |
4698 | PyObject * _obj1 = 0; | |
4699 | char *_kwnames[] = { "self","colour", NULL }; | |
4700 | ||
4701 | self = self; | |
4702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) | |
4703 | return NULL; | |
4704 | if (_argo0) { | |
4705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
4708 | return NULL; | |
4709 | } | |
4710 | } | |
4711 | { | |
4712 | _arg1 = &temp; | |
4713 | if (! wxColour_helper(_obj1, &_arg1)) | |
4714 | return NULL; | |
4715 | } | |
4716 | { | |
4717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4718 | wxBrush_SetColour(_arg0,*_arg1); | |
4719 | ||
4720 | wxPyEndAllowThreads(__tstate); | |
4721 | if (PyErr_Occurred()) return NULL; | |
4722 | } Py_INCREF(Py_None); | |
4723 | _resultobj = Py_None; | |
4724 | return _resultobj; | |
4725 | } | |
4726 | ||
4727 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
4728 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4729 | PyObject * _resultobj; | |
4730 | wxBrush * _arg0; | |
4731 | wxBitmap * _arg1; | |
4732 | PyObject * _argo0 = 0; | |
4733 | PyObject * _argo1 = 0; | |
4734 | char *_kwnames[] = { "self","bitmap", NULL }; | |
4735 | ||
4736 | self = self; | |
4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) | |
4738 | return NULL; | |
4739 | if (_argo0) { | |
4740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
4743 | return NULL; | |
4744 | } | |
4745 | } | |
4746 | if (_argo1) { | |
4747 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
4748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
4749 | return NULL; | |
4750 | } | |
4751 | } | |
4752 | { | |
4753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4754 | wxBrush_SetStipple(_arg0,*_arg1); | |
4755 | ||
4756 | wxPyEndAllowThreads(__tstate); | |
4757 | if (PyErr_Occurred()) return NULL; | |
4758 | } Py_INCREF(Py_None); | |
4759 | _resultobj = Py_None; | |
4760 | return _resultobj; | |
4761 | } | |
4762 | ||
4763 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4764 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4765 | PyObject * _resultobj; | |
4766 | wxBrush * _arg0; | |
4767 | int _arg1; | |
4768 | PyObject * _argo0 = 0; | |
4769 | char *_kwnames[] = { "self","style", NULL }; | |
4770 | ||
4771 | self = self; | |
4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4773 | return NULL; | |
4774 | if (_argo0) { | |
4775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
4778 | return NULL; | |
4779 | } | |
4780 | } | |
4781 | { | |
4782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4783 | wxBrush_SetStyle(_arg0,_arg1); | |
4784 | ||
4785 | wxPyEndAllowThreads(__tstate); | |
4786 | if (PyErr_Occurred()) return NULL; | |
4787 | } Py_INCREF(Py_None); | |
4788 | _resultobj = Py_None; | |
4789 | return _resultobj; | |
4790 | } | |
4791 | ||
4792 | #define wxBrush_GetMacTheme(_swigobj) (_swigobj->GetMacTheme()) | |
4793 | static PyObject *_wrap_wxBrush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4794 | PyObject * _resultobj; | |
4795 | short _result; | |
4796 | wxBrush * _arg0; | |
4797 | PyObject * _argo0 = 0; | |
4798 | char *_kwnames[] = { "self", NULL }; | |
4799 | ||
4800 | self = self; | |
4801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetMacTheme",_kwnames,&_argo0)) | |
4802 | return NULL; | |
4803 | if (_argo0) { | |
4804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetMacTheme. Expected _wxBrush_p."); | |
4807 | return NULL; | |
4808 | } | |
4809 | } | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | _result = (short )wxBrush_GetMacTheme(_arg0); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) return NULL; | |
4816 | } _resultobj = Py_BuildValue("h",_result); | |
4817 | return _resultobj; | |
4818 | } | |
4819 | ||
4820 | #define wxBrush_SetMacTheme(_swigobj,_swigarg0) (_swigobj->SetMacTheme(_swigarg0)) | |
4821 | static PyObject *_wrap_wxBrush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4822 | PyObject * _resultobj; | |
4823 | wxBrush * _arg0; | |
4824 | short _arg1; | |
4825 | PyObject * _argo0 = 0; | |
4826 | char *_kwnames[] = { "self","macThemeBrush", NULL }; | |
4827 | ||
4828 | self = self; | |
4829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxBrush_SetMacTheme",_kwnames,&_argo0,&_arg1)) | |
4830 | return NULL; | |
4831 | if (_argo0) { | |
4832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetMacTheme. Expected _wxBrush_p."); | |
4835 | return NULL; | |
4836 | } | |
4837 | } | |
4838 | { | |
4839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4840 | wxBrush_SetMacTheme(_arg0,_arg1); | |
4841 | ||
4842 | wxPyEndAllowThreads(__tstate); | |
4843 | if (PyErr_Occurred()) return NULL; | |
4844 | } Py_INCREF(Py_None); | |
4845 | _resultobj = Py_None; | |
4846 | return _resultobj; | |
4847 | } | |
4848 | ||
4849 | static void *SwigwxBrushListTowxObject(void *ptr) { | |
4850 | wxBrushList *src; | |
4851 | wxObject *dest; | |
4852 | src = (wxBrushList *) ptr; | |
4853 | dest = (wxObject *) src; | |
4854 | return (void *) dest; | |
4855 | } | |
4856 | ||
4857 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) | |
4858 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject * _resultobj; | |
4860 | wxBrushList * _arg0; | |
4861 | wxBrush * _arg1; | |
4862 | PyObject * _argo0 = 0; | |
4863 | PyObject * _argo1 = 0; | |
4864 | char *_kwnames[] = { "self","brush", NULL }; | |
4865 | ||
4866 | self = self; | |
4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
4868 | return NULL; | |
4869 | if (_argo0) { | |
4870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
4873 | return NULL; | |
4874 | } | |
4875 | } | |
4876 | if (_argo1) { | |
4877 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4878 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
4880 | return NULL; | |
4881 | } | |
4882 | } | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | wxBrushList_AddBrush(_arg0,_arg1); | |
4886 | ||
4887 | wxPyEndAllowThreads(__tstate); | |
4888 | if (PyErr_Occurred()) return NULL; | |
4889 | } Py_INCREF(Py_None); | |
4890 | _resultobj = Py_None; | |
4891 | return _resultobj; | |
4892 | } | |
4893 | ||
4894 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
4895 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject * _resultobj; | |
4897 | wxBrush * _result; | |
4898 | wxBrushList * _arg0; | |
4899 | wxColour * _arg1; | |
4900 | int _arg2; | |
4901 | PyObject * _argo0 = 0; | |
4902 | wxColour temp; | |
4903 | PyObject * _obj1 = 0; | |
4904 | char *_kwnames[] = { "self","colour","style", NULL }; | |
4905 | char _ptemp[128]; | |
4906 | ||
4907 | self = self; | |
4908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4909 | return NULL; | |
4910 | if (_argo0) { | |
4911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
4914 | return NULL; | |
4915 | } | |
4916 | } | |
4917 | { | |
4918 | _arg1 = &temp; | |
4919 | if (! wxColour_helper(_obj1, &_arg1)) | |
4920 | return NULL; | |
4921 | } | |
4922 | { | |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4924 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
4927 | if (PyErr_Occurred()) return NULL; | |
4928 | } if (_result) { | |
4929 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4930 | _resultobj = Py_BuildValue("s",_ptemp); | |
4931 | } else { | |
4932 | Py_INCREF(Py_None); | |
4933 | _resultobj = Py_None; | |
4934 | } | |
4935 | return _resultobj; | |
4936 | } | |
4937 | ||
4938 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
4939 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4940 | PyObject * _resultobj; | |
4941 | wxBrushList * _arg0; | |
4942 | wxBrush * _arg1; | |
4943 | PyObject * _argo0 = 0; | |
4944 | PyObject * _argo1 = 0; | |
4945 | char *_kwnames[] = { "self","brush", NULL }; | |
4946 | ||
4947 | self = self; | |
4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
4949 | return NULL; | |
4950 | if (_argo0) { | |
4951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
4954 | return NULL; | |
4955 | } | |
4956 | } | |
4957 | if (_argo1) { | |
4958 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4959 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
4961 | return NULL; | |
4962 | } | |
4963 | } | |
4964 | { | |
4965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4966 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
4967 | ||
4968 | wxPyEndAllowThreads(__tstate); | |
4969 | if (PyErr_Occurred()) return NULL; | |
4970 | } Py_INCREF(Py_None); | |
4971 | _resultobj = Py_None; | |
4972 | return _resultobj; | |
4973 | } | |
4974 | ||
4975 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) | |
4976 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4977 | PyObject * _resultobj; | |
4978 | int _result; | |
4979 | wxBrushList * _arg0; | |
4980 | PyObject * _argo0 = 0; | |
4981 | char *_kwnames[] = { "self", NULL }; | |
4982 | ||
4983 | self = self; | |
4984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
4985 | return NULL; | |
4986 | if (_argo0) { | |
4987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
4990 | return NULL; | |
4991 | } | |
4992 | } | |
4993 | { | |
4994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4995 | _result = (int )wxBrushList_GetCount(_arg0); | |
4996 | ||
4997 | wxPyEndAllowThreads(__tstate); | |
4998 | if (PyErr_Occurred()) return NULL; | |
4999 | } _resultobj = Py_BuildValue("i",_result); | |
5000 | return _resultobj; | |
5001 | } | |
5002 | ||
5003 | static void *SwigwxDCTowxObject(void *ptr) { | |
5004 | wxDC *src; | |
5005 | wxObject *dest; | |
5006 | src = (wxDC *) ptr; | |
5007 | dest = (wxObject *) src; | |
5008 | return (void *) dest; | |
5009 | } | |
5010 | ||
5011 | #define delete_wxDC(_swigobj) (delete _swigobj) | |
5012 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5013 | PyObject * _resultobj; | |
5014 | wxDC * _arg0; | |
5015 | PyObject * _argo0 = 0; | |
5016 | char *_kwnames[] = { "self", NULL }; | |
5017 | ||
5018 | self = self; | |
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) | |
5020 | return NULL; | |
5021 | if (_argo0) { | |
5022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
5025 | return NULL; | |
5026 | } | |
5027 | } | |
5028 | { | |
5029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5030 | delete_wxDC(_arg0); | |
5031 | ||
5032 | wxPyEndAllowThreads(__tstate); | |
5033 | if (PyErr_Occurred()) return NULL; | |
5034 | } Py_INCREF(Py_None); | |
5035 | _resultobj = Py_None; | |
5036 | return _resultobj; | |
5037 | } | |
5038 | ||
5039 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
5040 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5041 | PyObject * _resultobj; | |
5042 | wxDC * _arg0; | |
5043 | PyObject * _argo0 = 0; | |
5044 | char *_kwnames[] = { "self", NULL }; | |
5045 | ||
5046 | self = self; | |
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) | |
5048 | return NULL; | |
5049 | if (_argo0) { | |
5050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
5053 | return NULL; | |
5054 | } | |
5055 | } | |
5056 | { | |
5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5058 | wxDC_BeginDrawing(_arg0); | |
5059 | ||
5060 | wxPyEndAllowThreads(__tstate); | |
5061 | if (PyErr_Occurred()) return NULL; | |
5062 | } Py_INCREF(Py_None); | |
5063 | _resultobj = Py_None; | |
5064 | return _resultobj; | |
5065 | } | |
5066 | ||
5067 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5068 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject * _resultobj; | |
5070 | bool _result; | |
5071 | wxDC * _arg0; | |
5072 | wxCoord _arg1; | |
5073 | wxCoord _arg2; | |
5074 | wxCoord _arg3; | |
5075 | wxCoord _arg4; | |
5076 | wxDC * _arg5; | |
5077 | wxCoord _arg6; | |
5078 | wxCoord _arg7; | |
5079 | int _arg8 = (int ) wxCOPY; | |
5080 | int _arg9 = (int ) FALSE; | |
5081 | PyObject * _argo0 = 0; | |
5082 | PyObject * _argo5 = 0; | |
5083 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; | |
5084 | ||
5085 | self = self; | |
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiiOii|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
5087 | return NULL; | |
5088 | if (_argo0) { | |
5089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
5092 | return NULL; | |
5093 | } | |
5094 | } | |
5095 | if (_argo5) { | |
5096 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5097 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
5098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
5099 | return NULL; | |
5100 | } | |
5101 | } | |
5102 | { | |
5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5104 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
5105 | ||
5106 | wxPyEndAllowThreads(__tstate); | |
5107 | if (PyErr_Occurred()) return NULL; | |
5108 | } _resultobj = Py_BuildValue("i",_result); | |
5109 | return _resultobj; | |
5110 | } | |
5111 | ||
5112 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
5113 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5114 | PyObject * _resultobj; | |
5115 | wxDC * _arg0; | |
5116 | PyObject * _argo0 = 0; | |
5117 | char *_kwnames[] = { "self", NULL }; | |
5118 | ||
5119 | self = self; | |
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) | |
5121 | return NULL; | |
5122 | if (_argo0) { | |
5123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
5126 | return NULL; | |
5127 | } | |
5128 | } | |
5129 | { | |
5130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5131 | wxDC_Clear(_arg0); | |
5132 | ||
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) return NULL; | |
5135 | } Py_INCREF(Py_None); | |
5136 | _resultobj = Py_None; | |
5137 | return _resultobj; | |
5138 | } | |
5139 | ||
5140 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
5141 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5142 | PyObject * _resultobj; | |
5143 | wxDC * _arg0; | |
5144 | wxCoord _arg1; | |
5145 | wxCoord _arg2; | |
5146 | PyObject * _argo0 = 0; | |
5147 | char *_kwnames[] = { "self","x","y", NULL }; | |
5148 | ||
5149 | self = self; | |
5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5151 | return NULL; | |
5152 | if (_argo0) { | |
5153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
5156 | return NULL; | |
5157 | } | |
5158 | } | |
5159 | { | |
5160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5161 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
5162 | ||
5163 | wxPyEndAllowThreads(__tstate); | |
5164 | if (PyErr_Occurred()) return NULL; | |
5165 | } Py_INCREF(Py_None); | |
5166 | _resultobj = Py_None; | |
5167 | return _resultobj; | |
5168 | } | |
5169 | ||
5170 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
5171 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5172 | PyObject * _resultobj; | |
5173 | wxDC * _arg0; | |
5174 | PyObject * _argo0 = 0; | |
5175 | char *_kwnames[] = { "self", NULL }; | |
5176 | ||
5177 | self = self; | |
5178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) | |
5179 | return NULL; | |
5180 | if (_argo0) { | |
5181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
5184 | return NULL; | |
5185 | } | |
5186 | } | |
5187 | { | |
5188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5189 | wxDC_DestroyClippingRegion(_arg0); | |
5190 | ||
5191 | wxPyEndAllowThreads(__tstate); | |
5192 | if (PyErr_Occurred()) return NULL; | |
5193 | } Py_INCREF(Py_None); | |
5194 | _resultobj = Py_None; | |
5195 | return _resultobj; | |
5196 | } | |
5197 | ||
5198 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
5199 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5200 | PyObject * _resultobj; | |
5201 | wxCoord _result; | |
5202 | wxDC * _arg0; | |
5203 | wxCoord _arg1; | |
5204 | PyObject * _argo0 = 0; | |
5205 | char *_kwnames[] = { "self","x", NULL }; | |
5206 | ||
5207 | self = self; | |
5208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) | |
5209 | return NULL; | |
5210 | if (_argo0) { | |
5211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
5214 | return NULL; | |
5215 | } | |
5216 | } | |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5219 | _result = (wxCoord )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
5220 | ||
5221 | wxPyEndAllowThreads(__tstate); | |
5222 | if (PyErr_Occurred()) return NULL; | |
5223 | } _resultobj = Py_BuildValue("i",_result); | |
5224 | return _resultobj; | |
5225 | } | |
5226 | ||
5227 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
5228 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5229 | PyObject * _resultobj; | |
5230 | wxCoord _result; | |
5231 | wxDC * _arg0; | |
5232 | wxCoord _arg1; | |
5233 | PyObject * _argo0 = 0; | |
5234 | char *_kwnames[] = { "self","x", NULL }; | |
5235 | ||
5236 | self = self; | |
5237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) | |
5238 | return NULL; | |
5239 | if (_argo0) { | |
5240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
5243 | return NULL; | |
5244 | } | |
5245 | } | |
5246 | { | |
5247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5248 | _result = (wxCoord )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
5249 | ||
5250 | wxPyEndAllowThreads(__tstate); | |
5251 | if (PyErr_Occurred()) return NULL; | |
5252 | } _resultobj = Py_BuildValue("i",_result); | |
5253 | return _resultobj; | |
5254 | } | |
5255 | ||
5256 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
5257 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5258 | PyObject * _resultobj; | |
5259 | wxCoord _result; | |
5260 | wxDC * _arg0; | |
5261 | wxCoord _arg1; | |
5262 | PyObject * _argo0 = 0; | |
5263 | char *_kwnames[] = { "self","y", NULL }; | |
5264 | ||
5265 | self = self; | |
5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) | |
5267 | return NULL; | |
5268 | if (_argo0) { | |
5269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
5272 | return NULL; | |
5273 | } | |
5274 | } | |
5275 | { | |
5276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5277 | _result = (wxCoord )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
5278 | ||
5279 | wxPyEndAllowThreads(__tstate); | |
5280 | if (PyErr_Occurred()) return NULL; | |
5281 | } _resultobj = Py_BuildValue("i",_result); | |
5282 | return _resultobj; | |
5283 | } | |
5284 | ||
5285 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
5286 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5287 | PyObject * _resultobj; | |
5288 | wxCoord _result; | |
5289 | wxDC * _arg0; | |
5290 | wxCoord _arg1; | |
5291 | PyObject * _argo0 = 0; | |
5292 | char *_kwnames[] = { "self","y", NULL }; | |
5293 | ||
5294 | self = self; | |
5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) | |
5296 | return NULL; | |
5297 | if (_argo0) { | |
5298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
5301 | return NULL; | |
5302 | } | |
5303 | } | |
5304 | { | |
5305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5306 | _result = (wxCoord )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
5307 | ||
5308 | wxPyEndAllowThreads(__tstate); | |
5309 | if (PyErr_Occurred()) return NULL; | |
5310 | } _resultobj = Py_BuildValue("i",_result); | |
5311 | return _resultobj; | |
5312 | } | |
5313 | ||
5314 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5315 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5316 | PyObject * _resultobj; | |
5317 | wxDC * _arg0; | |
5318 | wxCoord _arg1; | |
5319 | wxCoord _arg2; | |
5320 | wxCoord _arg3; | |
5321 | wxCoord _arg4; | |
5322 | wxCoord _arg5; | |
5323 | wxCoord _arg6; | |
5324 | PyObject * _argo0 = 0; | |
5325 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; | |
5326 | ||
5327 | self = self; | |
5328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
5329 | return NULL; | |
5330 | if (_argo0) { | |
5331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
5334 | return NULL; | |
5335 | } | |
5336 | } | |
5337 | { | |
5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5339 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5340 | ||
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) return NULL; | |
5343 | } Py_INCREF(Py_None); | |
5344 | _resultobj = Py_None; | |
5345 | return _resultobj; | |
5346 | } | |
5347 | ||
5348 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) | |
5349 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5350 | PyObject * _resultobj; | |
5351 | wxDC * _arg0; | |
5352 | wxCoord _arg1; | |
5353 | wxCoord _arg2; | |
5354 | wxCoord _arg3; | |
5355 | PyObject * _argo0 = 0; | |
5356 | char *_kwnames[] = { "self","x","y","radius", NULL }; | |
5357 | ||
5358 | self = self; | |
5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
5360 | return NULL; | |
5361 | if (_argo0) { | |
5362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); | |
5365 | return NULL; | |
5366 | } | |
5367 | } | |
5368 | { | |
5369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5370 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
5371 | ||
5372 | wxPyEndAllowThreads(__tstate); | |
5373 | if (PyErr_Occurred()) return NULL; | |
5374 | } Py_INCREF(Py_None); | |
5375 | _resultobj = Py_None; | |
5376 | return _resultobj; | |
5377 | } | |
5378 | ||
5379 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5380 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5381 | PyObject * _resultobj; | |
5382 | wxDC * _arg0; | |
5383 | wxCoord _arg1; | |
5384 | wxCoord _arg2; | |
5385 | wxCoord _arg3; | |
5386 | wxCoord _arg4; | |
5387 | PyObject * _argo0 = 0; | |
5388 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
5389 | ||
5390 | self = self; | |
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5392 | return NULL; | |
5393 | if (_argo0) { | |
5394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
5400 | { | |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5402 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5403 | ||
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) return NULL; | |
5406 | } Py_INCREF(Py_None); | |
5407 | _resultobj = Py_None; | |
5408 | return _resultobj; | |
5409 | } | |
5410 | ||
5411 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5412 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5413 | PyObject * _resultobj; | |
5414 | wxDC * _arg0; | |
5415 | wxCoord _arg1; | |
5416 | wxCoord _arg2; | |
5417 | wxCoord _arg3; | |
5418 | wxCoord _arg4; | |
5419 | wxCoord _arg5; | |
5420 | wxCoord _arg6; | |
5421 | PyObject * _argo0 = 0; | |
5422 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; | |
5423 | ||
5424 | self = self; | |
5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
5426 | return NULL; | |
5427 | if (_argo0) { | |
5428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
5431 | return NULL; | |
5432 | } | |
5433 | } | |
5434 | { | |
5435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5436 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5437 | ||
5438 | wxPyEndAllowThreads(__tstate); | |
5439 | if (PyErr_Occurred()) return NULL; | |
5440 | } Py_INCREF(Py_None); | |
5441 | _resultobj = Py_None; | |
5442 | return _resultobj; | |
5443 | } | |
5444 | ||
5445 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
5446 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5447 | PyObject * _resultobj; | |
5448 | wxDC * _arg0; | |
5449 | wxIcon * _arg1; | |
5450 | wxCoord _arg2; | |
5451 | wxCoord _arg3; | |
5452 | PyObject * _argo0 = 0; | |
5453 | PyObject * _argo1 = 0; | |
5454 | char *_kwnames[] = { "self","icon","x","y", NULL }; | |
5455 | ||
5456 | self = self; | |
5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
5458 | return NULL; | |
5459 | if (_argo0) { | |
5460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
5463 | return NULL; | |
5464 | } | |
5465 | } | |
5466 | if (_argo1) { | |
5467 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
5468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
5469 | return NULL; | |
5470 | } | |
5471 | } | |
5472 | { | |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5474 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
5475 | ||
5476 | wxPyEndAllowThreads(__tstate); | |
5477 | if (PyErr_Occurred()) return NULL; | |
5478 | } Py_INCREF(Py_None); | |
5479 | _resultobj = Py_None; | |
5480 | return _resultobj; | |
5481 | } | |
5482 | ||
5483 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5484 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5485 | PyObject * _resultobj; | |
5486 | wxDC * _arg0; | |
5487 | wxString * _arg1; | |
5488 | wxRect * _arg2; | |
5489 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
5490 | int _arg4 = (int ) -1; | |
5491 | PyObject * _argo0 = 0; | |
5492 | PyObject * _obj1 = 0; | |
5493 | wxRect temp; | |
5494 | PyObject * _obj2 = 0; | |
5495 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
5496 | ||
5497 | self = self; | |
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
5499 | return NULL; | |
5500 | if (_argo0) { | |
5501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
5504 | return NULL; | |
5505 | } | |
5506 | } | |
5507 | { | |
5508 | _arg1 = wxString_in_helper(_obj1); | |
5509 | if (_arg1 == NULL) | |
5510 | return NULL; | |
5511 | } | |
5512 | { | |
5513 | _arg2 = &temp; | |
5514 | if (! wxRect_helper(_obj2, &_arg2)) | |
5515 | return NULL; | |
5516 | } | |
5517 | { | |
5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5519 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
5520 | ||
5521 | wxPyEndAllowThreads(__tstate); | |
5522 | if (PyErr_Occurred()) return NULL; | |
5523 | } Py_INCREF(Py_None); | |
5524 | _resultobj = Py_None; | |
5525 | { | |
5526 | if (_obj1) | |
5527 | delete _arg1; | |
5528 | } | |
5529 | return _resultobj; | |
5530 | } | |
5531 | ||
5532 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
5533 | wxRect rv; | |
5534 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
5535 | return rv; | |
5536 | } | |
5537 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5538 | PyObject * _resultobj; | |
5539 | wxRect * _result; | |
5540 | wxDC * _arg0; | |
5541 | wxString * _arg1; | |
5542 | wxBitmap * _arg2; | |
5543 | wxRect * _arg3; | |
5544 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
5545 | int _arg5 = (int ) -1; | |
5546 | PyObject * _argo0 = 0; | |
5547 | PyObject * _obj1 = 0; | |
5548 | PyObject * _argo2 = 0; | |
5549 | wxRect temp; | |
5550 | PyObject * _obj3 = 0; | |
5551 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
5552 | char _ptemp[128]; | |
5553 | ||
5554 | self = self; | |
5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
5556 | return NULL; | |
5557 | if (_argo0) { | |
5558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
5561 | return NULL; | |
5562 | } | |
5563 | } | |
5564 | { | |
5565 | _arg1 = wxString_in_helper(_obj1); | |
5566 | if (_arg1 == NULL) | |
5567 | return NULL; | |
5568 | } | |
5569 | if (_argo2) { | |
5570 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
5572 | return NULL; | |
5573 | } | |
5574 | } | |
5575 | { | |
5576 | _arg3 = &temp; | |
5577 | if (! wxRect_helper(_obj3, &_arg3)) | |
5578 | return NULL; | |
5579 | } | |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) return NULL; | |
5586 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
5587 | _resultobj = Py_BuildValue("s",_ptemp); | |
5588 | { | |
5589 | if (_obj1) | |
5590 | delete _arg1; | |
5591 | } | |
5592 | return _resultobj; | |
5593 | } | |
5594 | ||
5595 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5596 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5597 | PyObject * _resultobj; | |
5598 | wxDC * _arg0; | |
5599 | wxCoord _arg1; | |
5600 | wxCoord _arg2; | |
5601 | wxCoord _arg3; | |
5602 | wxCoord _arg4; | |
5603 | PyObject * _argo0 = 0; | |
5604 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
5605 | ||
5606 | self = self; | |
5607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5608 | return NULL; | |
5609 | if (_argo0) { | |
5610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
5613 | return NULL; | |
5614 | } | |
5615 | } | |
5616 | { | |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5619 | ||
5620 | wxPyEndAllowThreads(__tstate); | |
5621 | if (PyErr_Occurred()) return NULL; | |
5622 | } Py_INCREF(Py_None); | |
5623 | _resultobj = Py_None; | |
5624 | return _resultobj; | |
5625 | } | |
5626 | ||
5627 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5628 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5629 | PyObject * _resultobj; | |
5630 | wxDC * _arg0; | |
5631 | int _arg1; | |
5632 | wxPoint * _arg2; | |
5633 | wxCoord _arg3 = (wxCoord ) 0; | |
5634 | wxCoord _arg4 = (wxCoord ) 0; | |
5635 | PyObject * _argo0 = 0; | |
5636 | int NPOINTS; | |
5637 | PyObject * _obj2 = 0; | |
5638 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; | |
5639 | ||
5640 | self = self; | |
5641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) | |
5642 | return NULL; | |
5643 | if (_argo0) { | |
5644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
5647 | return NULL; | |
5648 | } | |
5649 | } | |
5650 | if (_obj2) | |
5651 | { | |
5652 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5653 | if (_arg2 == NULL) { | |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
5657 | { | |
5658 | _arg1 = NPOINTS; | |
5659 | } | |
5660 | { | |
5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5662 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5663 | ||
5664 | wxPyEndAllowThreads(__tstate); | |
5665 | if (PyErr_Occurred()) return NULL; | |
5666 | } Py_INCREF(Py_None); | |
5667 | _resultobj = Py_None; | |
5668 | { | |
5669 | delete [] _arg2; | |
5670 | } | |
5671 | return _resultobj; | |
5672 | } | |
5673 | ||
5674 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
5675 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5676 | PyObject * _resultobj; | |
5677 | wxDC * _arg0; | |
5678 | int _arg1; | |
5679 | wxPoint * _arg2; | |
5680 | wxCoord _arg3 = (wxCoord ) 0; | |
5681 | wxCoord _arg4 = (wxCoord ) 0; | |
5682 | int _arg5 = (int ) wxODDEVEN_RULE; | |
5683 | PyObject * _argo0 = 0; | |
5684 | int NPOINTS; | |
5685 | PyObject * _obj2 = 0; | |
5686 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; | |
5687 | ||
5688 | self = self; | |
5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iii:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
5690 | return NULL; | |
5691 | if (_argo0) { | |
5692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
5695 | return NULL; | |
5696 | } | |
5697 | } | |
5698 | if (_obj2) | |
5699 | { | |
5700 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5701 | if (_arg2 == NULL) { | |
5702 | return NULL; | |
5703 | } | |
5704 | } | |
5705 | { | |
5706 | _arg1 = NPOINTS; | |
5707 | } | |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5710 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5711 | ||
5712 | wxPyEndAllowThreads(__tstate); | |
5713 | if (PyErr_Occurred()) return NULL; | |
5714 | } Py_INCREF(Py_None); | |
5715 | _resultobj = Py_None; | |
5716 | { | |
5717 | delete [] _arg2; | |
5718 | } | |
5719 | return _resultobj; | |
5720 | } | |
5721 | ||
5722 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
5723 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5724 | PyObject * _resultobj; | |
5725 | wxDC * _arg0; | |
5726 | wxCoord _arg1; | |
5727 | wxCoord _arg2; | |
5728 | PyObject * _argo0 = 0; | |
5729 | char *_kwnames[] = { "self","x","y", NULL }; | |
5730 | ||
5731 | self = self; | |
5732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5733 | return NULL; | |
5734 | if (_argo0) { | |
5735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
5738 | return NULL; | |
5739 | } | |
5740 | } | |
5741 | { | |
5742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5743 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
5744 | ||
5745 | wxPyEndAllowThreads(__tstate); | |
5746 | if (PyErr_Occurred()) return NULL; | |
5747 | } Py_INCREF(Py_None); | |
5748 | _resultobj = Py_None; | |
5749 | return _resultobj; | |
5750 | } | |
5751 | ||
5752 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5753 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5754 | PyObject * _resultobj; | |
5755 | wxDC * _arg0; | |
5756 | wxCoord _arg1; | |
5757 | wxCoord _arg2; | |
5758 | wxCoord _arg3; | |
5759 | wxCoord _arg4; | |
5760 | PyObject * _argo0 = 0; | |
5761 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
5762 | ||
5763 | self = self; | |
5764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5765 | return NULL; | |
5766 | if (_argo0) { | |
5767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
5770 | return NULL; | |
5771 | } | |
5772 | } | |
5773 | { | |
5774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5775 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5776 | ||
5777 | wxPyEndAllowThreads(__tstate); | |
5778 | if (PyErr_Occurred()) return NULL; | |
5779 | } Py_INCREF(Py_None); | |
5780 | _resultobj = Py_None; | |
5781 | return _resultobj; | |
5782 | } | |
5783 | ||
5784 | #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0)) | |
5785 | static PyObject *_wrap_wxDC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5786 | PyObject * _resultobj; | |
5787 | wxDC * _arg0; | |
5788 | wxRect * _arg1; | |
5789 | PyObject * _argo0 = 0; | |
5790 | wxRect temp; | |
5791 | PyObject * _obj1 = 0; | |
5792 | char *_kwnames[] = { "self","rect", NULL }; | |
5793 | ||
5794 | self = self; | |
5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawRectangleRect",_kwnames,&_argo0,&_obj1)) | |
5796 | return NULL; | |
5797 | if (_argo0) { | |
5798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p."); | |
5801 | return NULL; | |
5802 | } | |
5803 | } | |
5804 | { | |
5805 | _arg1 = &temp; | |
5806 | if (! wxRect_helper(_obj1, &_arg1)) | |
5807 | return NULL; | |
5808 | } | |
5809 | { | |
5810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5811 | wxDC_DrawRectangleRect(_arg0,*_arg1); | |
5812 | ||
5813 | wxPyEndAllowThreads(__tstate); | |
5814 | if (PyErr_Occurred()) return NULL; | |
5815 | } Py_INCREF(Py_None); | |
5816 | _resultobj = Py_None; | |
5817 | return _resultobj; | |
5818 | } | |
5819 | ||
5820 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5821 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5822 | PyObject * _resultobj; | |
5823 | wxDC * _arg0; | |
5824 | wxString * _arg1; | |
5825 | wxCoord _arg2; | |
5826 | wxCoord _arg3; | |
5827 | double _arg4; | |
5828 | PyObject * _argo0 = 0; | |
5829 | PyObject * _obj1 = 0; | |
5830 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
5831 | ||
5832 | self = self; | |
5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5834 | return NULL; | |
5835 | if (_argo0) { | |
5836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
5839 | return NULL; | |
5840 | } | |
5841 | } | |
5842 | { | |
5843 | _arg1 = wxString_in_helper(_obj1); | |
5844 | if (_arg1 == NULL) | |
5845 | return NULL; | |
5846 | } | |
5847 | { | |
5848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5849 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
5850 | ||
5851 | wxPyEndAllowThreads(__tstate); | |
5852 | if (PyErr_Occurred()) return NULL; | |
5853 | } Py_INCREF(Py_None); | |
5854 | _resultobj = Py_None; | |
5855 | { | |
5856 | if (_obj1) | |
5857 | delete _arg1; | |
5858 | } | |
5859 | return _resultobj; | |
5860 | } | |
5861 | ||
5862 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
5863 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject * _resultobj; | |
5865 | wxDC * _arg0; | |
5866 | wxCoord _arg1; | |
5867 | wxCoord _arg2; | |
5868 | wxCoord _arg3; | |
5869 | wxCoord _arg4; | |
5870 | wxCoord _arg5 = (wxCoord ) 20; | |
5871 | PyObject * _argo0 = 0; | |
5872 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; | |
5873 | ||
5874 | self = self; | |
5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
5876 | return NULL; | |
5877 | if (_argo0) { | |
5878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
5881 | return NULL; | |
5882 | } | |
5883 | } | |
5884 | { | |
5885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5886 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5887 | ||
5888 | wxPyEndAllowThreads(__tstate); | |
5889 | if (PyErr_Occurred()) return NULL; | |
5890 | } Py_INCREF(Py_None); | |
5891 | _resultobj = Py_None; | |
5892 | return _resultobj; | |
5893 | } | |
5894 | ||
5895 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
5896 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5897 | PyObject * _resultobj; | |
5898 | wxDC * _arg0; | |
5899 | int _arg1; | |
5900 | wxPoint * _arg2; | |
5901 | PyObject * _argo0 = 0; | |
5902 | int NPOINTS; | |
5903 | PyObject * _obj2 = 0; | |
5904 | char *_kwnames[] = { "self","points", NULL }; | |
5905 | ||
5906 | self = self; | |
5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) | |
5908 | return NULL; | |
5909 | if (_argo0) { | |
5910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
5913 | return NULL; | |
5914 | } | |
5915 | } | |
5916 | if (_obj2) | |
5917 | { | |
5918 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5919 | if (_arg2 == NULL) { | |
5920 | return NULL; | |
5921 | } | |
5922 | } | |
5923 | { | |
5924 | _arg1 = NPOINTS; | |
5925 | } | |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
5929 | ||
5930 | wxPyEndAllowThreads(__tstate); | |
5931 | if (PyErr_Occurred()) return NULL; | |
5932 | } Py_INCREF(Py_None); | |
5933 | _resultobj = Py_None; | |
5934 | { | |
5935 | delete [] _arg2; | |
5936 | } | |
5937 | return _resultobj; | |
5938 | } | |
5939 | ||
5940 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
5941 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5942 | PyObject * _resultobj; | |
5943 | wxDC * _arg0; | |
5944 | wxString * _arg1; | |
5945 | wxCoord _arg2; | |
5946 | wxCoord _arg3; | |
5947 | PyObject * _argo0 = 0; | |
5948 | PyObject * _obj1 = 0; | |
5949 | char *_kwnames[] = { "self","text","x","y", NULL }; | |
5950 | ||
5951 | self = self; | |
5952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5953 | return NULL; | |
5954 | if (_argo0) { | |
5955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); | |
5958 | return NULL; | |
5959 | } | |
5960 | } | |
5961 | { | |
5962 | _arg1 = wxString_in_helper(_obj1); | |
5963 | if (_arg1 == NULL) | |
5964 | return NULL; | |
5965 | } | |
5966 | { | |
5967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5968 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
5969 | ||
5970 | wxPyEndAllowThreads(__tstate); | |
5971 | if (PyErr_Occurred()) return NULL; | |
5972 | } Py_INCREF(Py_None); | |
5973 | _resultobj = Py_None; | |
5974 | { | |
5975 | if (_obj1) | |
5976 | delete _arg1; | |
5977 | } | |
5978 | return _resultobj; | |
5979 | } | |
5980 | ||
5981 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
5982 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5983 | PyObject * _resultobj; | |
5984 | wxDC * _arg0; | |
5985 | PyObject * _argo0 = 0; | |
5986 | char *_kwnames[] = { "self", NULL }; | |
5987 | ||
5988 | self = self; | |
5989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) | |
5990 | return NULL; | |
5991 | if (_argo0) { | |
5992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
5995 | return NULL; | |
5996 | } | |
5997 | } | |
5998 | { | |
5999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6000 | wxDC_EndDoc(_arg0); | |
6001 | ||
6002 | wxPyEndAllowThreads(__tstate); | |
6003 | if (PyErr_Occurred()) return NULL; | |
6004 | } Py_INCREF(Py_None); | |
6005 | _resultobj = Py_None; | |
6006 | return _resultobj; | |
6007 | } | |
6008 | ||
6009 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
6010 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6011 | PyObject * _resultobj; | |
6012 | wxDC * _arg0; | |
6013 | PyObject * _argo0 = 0; | |
6014 | char *_kwnames[] = { "self", NULL }; | |
6015 | ||
6016 | self = self; | |
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) | |
6018 | return NULL; | |
6019 | if (_argo0) { | |
6020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
6023 | return NULL; | |
6024 | } | |
6025 | } | |
6026 | { | |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6028 | wxDC_EndDrawing(_arg0); | |
6029 | ||
6030 | wxPyEndAllowThreads(__tstate); | |
6031 | if (PyErr_Occurred()) return NULL; | |
6032 | } Py_INCREF(Py_None); | |
6033 | _resultobj = Py_None; | |
6034 | return _resultobj; | |
6035 | } | |
6036 | ||
6037 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
6038 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6039 | PyObject * _resultobj; | |
6040 | wxDC * _arg0; | |
6041 | PyObject * _argo0 = 0; | |
6042 | char *_kwnames[] = { "self", NULL }; | |
6043 | ||
6044 | self = self; | |
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) | |
6046 | return NULL; | |
6047 | if (_argo0) { | |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | wxDC_EndPage(_arg0); | |
6057 | ||
6058 | wxPyEndAllowThreads(__tstate); | |
6059 | if (PyErr_Occurred()) return NULL; | |
6060 | } Py_INCREF(Py_None); | |
6061 | _resultobj = Py_None; | |
6062 | return _resultobj; | |
6063 | } | |
6064 | ||
6065 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6066 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject * _resultobj; | |
6068 | bool _result; | |
6069 | wxDC * _arg0; | |
6070 | wxCoord _arg1; | |
6071 | wxCoord _arg2; | |
6072 | wxColour * _arg3; | |
6073 | int _arg4 = (int ) wxFLOOD_SURFACE; | |
6074 | PyObject * _argo0 = 0; | |
6075 | wxColour temp; | |
6076 | PyObject * _obj3 = 0; | |
6077 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; | |
6078 | ||
6079 | self = self; | |
6080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
6081 | return NULL; | |
6082 | if (_argo0) { | |
6083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
6086 | return NULL; | |
6087 | } | |
6088 | } | |
6089 | { | |
6090 | _arg3 = &temp; | |
6091 | if (! wxColour_helper(_obj3, &_arg3)) | |
6092 | return NULL; | |
6093 | } | |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) return NULL; | |
6100 | } _resultobj = Py_BuildValue("i",_result); | |
6101 | return _resultobj; | |
6102 | } | |
6103 | ||
6104 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
6105 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6106 | PyObject * _resultobj; | |
6107 | wxBrush * _result; | |
6108 | wxDC * _arg0; | |
6109 | PyObject * _argo0 = 0; | |
6110 | char *_kwnames[] = { "self", NULL }; | |
6111 | char _ptemp[128]; | |
6112 | ||
6113 | self = self; | |
6114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) | |
6115 | return NULL; | |
6116 | if (_argo0) { | |
6117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
6120 | return NULL; | |
6121 | } | |
6122 | } | |
6123 | { | |
6124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6125 | _result = new wxBrush (wxDC_GetBackground(_arg0)); | |
6126 | ||
6127 | wxPyEndAllowThreads(__tstate); | |
6128 | if (PyErr_Occurred()) return NULL; | |
6129 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); | |
6130 | _resultobj = Py_BuildValue("s",_ptemp); | |
6131 | return _resultobj; | |
6132 | } | |
6133 | ||
6134 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
6135 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6136 | PyObject * _resultobj; | |
6137 | wxBrush * _result; | |
6138 | wxDC * _arg0; | |
6139 | PyObject * _argo0 = 0; | |
6140 | char *_kwnames[] = { "self", NULL }; | |
6141 | char _ptemp[128]; | |
6142 | ||
6143 | self = self; | |
6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) | |
6145 | return NULL; | |
6146 | if (_argo0) { | |
6147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
6150 | return NULL; | |
6151 | } | |
6152 | } | |
6153 | { | |
6154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6155 | _result = new wxBrush (wxDC_GetBrush(_arg0)); | |
6156 | ||
6157 | wxPyEndAllowThreads(__tstate); | |
6158 | if (PyErr_Occurred()) return NULL; | |
6159 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); | |
6160 | _resultobj = Py_BuildValue("s",_ptemp); | |
6161 | return _resultobj; | |
6162 | } | |
6163 | ||
6164 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
6165 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6166 | PyObject * _resultobj; | |
6167 | wxCoord _result; | |
6168 | wxDC * _arg0; | |
6169 | PyObject * _argo0 = 0; | |
6170 | char *_kwnames[] = { "self", NULL }; | |
6171 | ||
6172 | self = self; | |
6173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) | |
6174 | return NULL; | |
6175 | if (_argo0) { | |
6176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
6179 | return NULL; | |
6180 | } | |
6181 | } | |
6182 | { | |
6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6184 | _result = (wxCoord )wxDC_GetCharHeight(_arg0); | |
6185 | ||
6186 | wxPyEndAllowThreads(__tstate); | |
6187 | if (PyErr_Occurred()) return NULL; | |
6188 | } _resultobj = Py_BuildValue("i",_result); | |
6189 | return _resultobj; | |
6190 | } | |
6191 | ||
6192 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
6193 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6194 | PyObject * _resultobj; | |
6195 | wxCoord _result; | |
6196 | wxDC * _arg0; | |
6197 | PyObject * _argo0 = 0; | |
6198 | char *_kwnames[] = { "self", NULL }; | |
6199 | ||
6200 | self = self; | |
6201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) | |
6202 | return NULL; | |
6203 | if (_argo0) { | |
6204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
6207 | return NULL; | |
6208 | } | |
6209 | } | |
6210 | { | |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | _result = (wxCoord )wxDC_GetCharWidth(_arg0); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) return NULL; | |
6216 | } _resultobj = Py_BuildValue("i",_result); | |
6217 | return _resultobj; | |
6218 | } | |
6219 | ||
6220 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6221 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6222 | PyObject * _resultobj; | |
6223 | wxDC * _arg0; | |
6224 | wxCoord * _arg1; | |
6225 | int temp; | |
6226 | wxCoord * _arg2; | |
6227 | int temp0; | |
6228 | wxCoord * _arg3; | |
6229 | int temp1; | |
6230 | wxCoord * _arg4; | |
6231 | int temp2; | |
6232 | PyObject * _argo0 = 0; | |
6233 | char *_kwnames[] = { "self", NULL }; | |
6234 | ||
6235 | self = self; | |
6236 | { | |
6237 | _arg1 = &temp; | |
6238 | } | |
6239 | { | |
6240 | _arg2 = &temp0; | |
6241 | } | |
6242 | { | |
6243 | _arg3 = &temp1; | |
6244 | } | |
6245 | { | |
6246 | _arg4 = &temp2; | |
6247 | } | |
6248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) | |
6249 | return NULL; | |
6250 | if (_argo0) { | |
6251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
6254 | return NULL; | |
6255 | } | |
6256 | } | |
6257 | { | |
6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6259 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6260 | ||
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) return NULL; | |
6263 | } Py_INCREF(Py_None); | |
6264 | _resultobj = Py_None; | |
6265 | { | |
6266 | PyObject *o; | |
6267 | o = PyInt_FromLong((long) (*_arg1)); | |
6268 | _resultobj = t_output_helper(_resultobj, o); | |
6269 | } | |
6270 | { | |
6271 | PyObject *o; | |
6272 | o = PyInt_FromLong((long) (*_arg2)); | |
6273 | _resultobj = t_output_helper(_resultobj, o); | |
6274 | } | |
6275 | { | |
6276 | PyObject *o; | |
6277 | o = PyInt_FromLong((long) (*_arg3)); | |
6278 | _resultobj = t_output_helper(_resultobj, o); | |
6279 | } | |
6280 | { | |
6281 | PyObject *o; | |
6282 | o = PyInt_FromLong((long) (*_arg4)); | |
6283 | _resultobj = t_output_helper(_resultobj, o); | |
6284 | } | |
6285 | return _resultobj; | |
6286 | } | |
6287 | ||
6288 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
6289 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6290 | PyObject * _resultobj; | |
6291 | wxFont * _result; | |
6292 | wxDC * _arg0; | |
6293 | PyObject * _argo0 = 0; | |
6294 | char *_kwnames[] = { "self", NULL }; | |
6295 | char _ptemp[128]; | |
6296 | ||
6297 | self = self; | |
6298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) | |
6299 | return NULL; | |
6300 | if (_argo0) { | |
6301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
6304 | return NULL; | |
6305 | } | |
6306 | } | |
6307 | { | |
6308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6309 | _result = new wxFont (wxDC_GetFont(_arg0)); | |
6310 | ||
6311 | wxPyEndAllowThreads(__tstate); | |
6312 | if (PyErr_Occurred()) return NULL; | |
6313 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
6314 | _resultobj = Py_BuildValue("s",_ptemp); | |
6315 | return _resultobj; | |
6316 | } | |
6317 | ||
6318 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
6319 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6320 | PyObject * _resultobj; | |
6321 | int _result; | |
6322 | wxDC * _arg0; | |
6323 | PyObject * _argo0 = 0; | |
6324 | char *_kwnames[] = { "self", NULL }; | |
6325 | ||
6326 | self = self; | |
6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) | |
6328 | return NULL; | |
6329 | if (_argo0) { | |
6330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
6333 | return NULL; | |
6334 | } | |
6335 | } | |
6336 | { | |
6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6338 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
6339 | ||
6340 | wxPyEndAllowThreads(__tstate); | |
6341 | if (PyErr_Occurred()) return NULL; | |
6342 | } _resultobj = Py_BuildValue("i",_result); | |
6343 | return _resultobj; | |
6344 | } | |
6345 | ||
6346 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) | |
6347 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6348 | PyObject * _resultobj; | |
6349 | wxDC * _arg0; | |
6350 | double * _arg1; | |
6351 | double temp; | |
6352 | double * _arg2; | |
6353 | double temp0; | |
6354 | PyObject * _argo0 = 0; | |
6355 | char *_kwnames[] = { "self", NULL }; | |
6356 | ||
6357 | self = self; | |
6358 | { | |
6359 | _arg1 = &temp; | |
6360 | } | |
6361 | { | |
6362 | _arg2 = &temp0; | |
6363 | } | |
6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
6365 | return NULL; | |
6366 | if (_argo0) { | |
6367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
6370 | return NULL; | |
6371 | } | |
6372 | } | |
6373 | { | |
6374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6375 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
6376 | ||
6377 | wxPyEndAllowThreads(__tstate); | |
6378 | if (PyErr_Occurred()) return NULL; | |
6379 | } Py_INCREF(Py_None); | |
6380 | _resultobj = Py_None; | |
6381 | { | |
6382 | PyObject *o; | |
6383 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6384 | _resultobj = t_output_helper(_resultobj, o); | |
6385 | } | |
6386 | { | |
6387 | PyObject *o; | |
6388 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6389 | _resultobj = t_output_helper(_resultobj, o); | |
6390 | } | |
6391 | return _resultobj; | |
6392 | } | |
6393 | ||
6394 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
6395 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6396 | PyObject * _resultobj; | |
6397 | int _result; | |
6398 | wxDC * _arg0; | |
6399 | PyObject * _argo0 = 0; | |
6400 | char *_kwnames[] = { "self", NULL }; | |
6401 | ||
6402 | self = self; | |
6403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) | |
6404 | return NULL; | |
6405 | if (_argo0) { | |
6406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
6409 | return NULL; | |
6410 | } | |
6411 | } | |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | _result = (int )wxDC_GetMapMode(_arg0); | |
6415 | ||
6416 | wxPyEndAllowThreads(__tstate); | |
6417 | if (PyErr_Occurred()) return NULL; | |
6418 | } _resultobj = Py_BuildValue("i",_result); | |
6419 | return _resultobj; | |
6420 | } | |
6421 | ||
6422 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
6423 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6424 | PyObject * _resultobj; | |
6425 | bool _result; | |
6426 | wxDC * _arg0; | |
6427 | PyObject * _argo0 = 0; | |
6428 | char *_kwnames[] = { "self", NULL }; | |
6429 | ||
6430 | self = self; | |
6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) | |
6432 | return NULL; | |
6433 | if (_argo0) { | |
6434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
6437 | return NULL; | |
6438 | } | |
6439 | } | |
6440 | { | |
6441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6442 | _result = (bool )wxDC_GetOptimization(_arg0); | |
6443 | ||
6444 | wxPyEndAllowThreads(__tstate); | |
6445 | if (PyErr_Occurred()) return NULL; | |
6446 | } _resultobj = Py_BuildValue("i",_result); | |
6447 | return _resultobj; | |
6448 | } | |
6449 | ||
6450 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
6451 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6452 | PyObject * _resultobj; | |
6453 | wxPen * _result; | |
6454 | wxDC * _arg0; | |
6455 | PyObject * _argo0 = 0; | |
6456 | char *_kwnames[] = { "self", NULL }; | |
6457 | char _ptemp[128]; | |
6458 | ||
6459 | self = self; | |
6460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) | |
6461 | return NULL; | |
6462 | if (_argo0) { | |
6463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
6466 | return NULL; | |
6467 | } | |
6468 | } | |
6469 | { | |
6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6471 | _result = new wxPen (wxDC_GetPen(_arg0)); | |
6472 | ||
6473 | wxPyEndAllowThreads(__tstate); | |
6474 | if (PyErr_Occurred()) return NULL; | |
6475 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); | |
6476 | _resultobj = Py_BuildValue("s",_ptemp); | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
6480 | static wxColour * wxDC_GetPixel(wxDC *self,wxCoord x,wxCoord y) { | |
6481 | wxColour* wc = new wxColour(); | |
6482 | self->GetPixel(x, y, wc); | |
6483 | return wc; | |
6484 | } | |
6485 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6486 | PyObject * _resultobj; | |
6487 | wxColour * _result; | |
6488 | wxDC * _arg0; | |
6489 | wxCoord _arg1; | |
6490 | wxCoord _arg2; | |
6491 | PyObject * _argo0 = 0; | |
6492 | char *_kwnames[] = { "self","x","y", NULL }; | |
6493 | char _ptemp[128]; | |
6494 | ||
6495 | self = self; | |
6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6497 | return NULL; | |
6498 | if (_argo0) { | |
6499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
6502 | return NULL; | |
6503 | } | |
6504 | } | |
6505 | { | |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
6508 | ||
6509 | wxPyEndAllowThreads(__tstate); | |
6510 | if (PyErr_Occurred()) return NULL; | |
6511 | } if (_result) { | |
6512 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6513 | _resultobj = Py_BuildValue("s",_ptemp); | |
6514 | } else { | |
6515 | Py_INCREF(Py_None); | |
6516 | _resultobj = Py_None; | |
6517 | } | |
6518 | return _resultobj; | |
6519 | } | |
6520 | ||
6521 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
6522 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6523 | PyObject * _resultobj; | |
6524 | wxDC * _arg0; | |
6525 | int * _arg1; | |
6526 | int temp; | |
6527 | int * _arg2; | |
6528 | int temp0; | |
6529 | PyObject * _argo0 = 0; | |
6530 | char *_kwnames[] = { "self", NULL }; | |
6531 | ||
6532 | self = self; | |
6533 | { | |
6534 | _arg1 = &temp; | |
6535 | } | |
6536 | { | |
6537 | _arg2 = &temp0; | |
6538 | } | |
6539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) | |
6540 | return NULL; | |
6541 | if (_argo0) { | |
6542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); | |
6545 | return NULL; | |
6546 | } | |
6547 | } | |
6548 | { | |
6549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6550 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); | |
6551 | ||
6552 | wxPyEndAllowThreads(__tstate); | |
6553 | if (PyErr_Occurred()) return NULL; | |
6554 | } Py_INCREF(Py_None); | |
6555 | _resultobj = Py_None; | |
6556 | { | |
6557 | PyObject *o; | |
6558 | o = PyInt_FromLong((long) (*_arg1)); | |
6559 | _resultobj = t_output_helper(_resultobj, o); | |
6560 | } | |
6561 | { | |
6562 | PyObject *o; | |
6563 | o = PyInt_FromLong((long) (*_arg2)); | |
6564 | _resultobj = t_output_helper(_resultobj, o); | |
6565 | } | |
6566 | return _resultobj; | |
6567 | } | |
6568 | ||
6569 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) | |
6570 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6571 | PyObject * _resultobj; | |
6572 | wxSize * _result; | |
6573 | wxDC * _arg0; | |
6574 | PyObject * _argo0 = 0; | |
6575 | char *_kwnames[] = { "self", NULL }; | |
6576 | char _ptemp[128]; | |
6577 | ||
6578 | self = self; | |
6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) | |
6580 | return NULL; | |
6581 | if (_argo0) { | |
6582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); | |
6585 | return NULL; | |
6586 | } | |
6587 | } | |
6588 | { | |
6589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6590 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
6591 | ||
6592 | wxPyEndAllowThreads(__tstate); | |
6593 | if (PyErr_Occurred()) return NULL; | |
6594 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
6595 | _resultobj = Py_BuildValue("s",_ptemp); | |
6596 | return _resultobj; | |
6597 | } | |
6598 | ||
6599 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) | |
6600 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6601 | PyObject * _resultobj; | |
6602 | wxSize * _result; | |
6603 | wxDC * _arg0; | |
6604 | PyObject * _argo0 = 0; | |
6605 | char *_kwnames[] = { "self", NULL }; | |
6606 | char _ptemp[128]; | |
6607 | ||
6608 | self = self; | |
6609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
6610 | return NULL; | |
6611 | if (_argo0) { | |
6612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
6615 | return NULL; | |
6616 | } | |
6617 | } | |
6618 | { | |
6619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6620 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
6621 | ||
6622 | wxPyEndAllowThreads(__tstate); | |
6623 | if (PyErr_Occurred()) return NULL; | |
6624 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
6625 | _resultobj = Py_BuildValue("s",_ptemp); | |
6626 | return _resultobj; | |
6627 | } | |
6628 | ||
6629 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
6630 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6631 | PyObject * _resultobj; | |
6632 | wxColour * _result; | |
6633 | wxDC * _arg0; | |
6634 | PyObject * _argo0 = 0; | |
6635 | char *_kwnames[] = { "self", NULL }; | |
6636 | char _ptemp[128]; | |
6637 | ||
6638 | self = self; | |
6639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) | |
6640 | return NULL; | |
6641 | if (_argo0) { | |
6642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
6645 | return NULL; | |
6646 | } | |
6647 | } | |
6648 | { | |
6649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6650 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); | |
6651 | ||
6652 | wxPyEndAllowThreads(__tstate); | |
6653 | if (PyErr_Occurred()) return NULL; | |
6654 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6655 | _resultobj = Py_BuildValue("s",_ptemp); | |
6656 | return _resultobj; | |
6657 | } | |
6658 | ||
6659 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
6660 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6661 | PyObject * _resultobj; | |
6662 | wxDC * _arg0; | |
6663 | wxString * _arg1; | |
6664 | wxCoord * _arg2; | |
6665 | int temp; | |
6666 | wxCoord * _arg3; | |
6667 | int temp0; | |
6668 | PyObject * _argo0 = 0; | |
6669 | PyObject * _obj1 = 0; | |
6670 | char *_kwnames[] = { "self","string", NULL }; | |
6671 | ||
6672 | self = self; | |
6673 | { | |
6674 | _arg2 = &temp; | |
6675 | } | |
6676 | { | |
6677 | _arg3 = &temp0; | |
6678 | } | |
6679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
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_GetTextExtent. Expected _wxDC_p."); | |
6685 | return NULL; | |
6686 | } | |
6687 | } | |
6688 | { | |
6689 | _arg1 = wxString_in_helper(_obj1); | |
6690 | if (_arg1 == NULL) | |
6691 | return NULL; | |
6692 | } | |
6693 | { | |
6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6695 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
6696 | ||
6697 | wxPyEndAllowThreads(__tstate); | |
6698 | if (PyErr_Occurred()) return NULL; | |
6699 | } Py_INCREF(Py_None); | |
6700 | _resultobj = Py_None; | |
6701 | { | |
6702 | PyObject *o; | |
6703 | o = PyInt_FromLong((long) (*_arg2)); | |
6704 | _resultobj = t_output_helper(_resultobj, o); | |
6705 | } | |
6706 | { | |
6707 | PyObject *o; | |
6708 | o = PyInt_FromLong((long) (*_arg3)); | |
6709 | _resultobj = t_output_helper(_resultobj, o); | |
6710 | } | |
6711 | { | |
6712 | if (_obj1) | |
6713 | delete _arg1; | |
6714 | } | |
6715 | return _resultobj; | |
6716 | } | |
6717 | ||
6718 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6719 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6720 | PyObject * _resultobj; | |
6721 | wxDC * _arg0; | |
6722 | wxString * _arg1; | |
6723 | wxCoord * _arg2; | |
6724 | int temp; | |
6725 | wxCoord * _arg3; | |
6726 | int temp0; | |
6727 | wxCoord * _arg4; | |
6728 | int temp1; | |
6729 | wxCoord * _arg5; | |
6730 | int temp2; | |
6731 | wxFont * _arg6 = (wxFont *) NULL; | |
6732 | PyObject * _argo0 = 0; | |
6733 | PyObject * _obj1 = 0; | |
6734 | PyObject * _argo6 = 0; | |
6735 | char *_kwnames[] = { "self","string","font", NULL }; | |
6736 | ||
6737 | self = self; | |
6738 | { | |
6739 | _arg2 = &temp; | |
6740 | } | |
6741 | { | |
6742 | _arg3 = &temp0; | |
6743 | } | |
6744 | { | |
6745 | _arg4 = &temp1; | |
6746 | } | |
6747 | { | |
6748 | _arg5 = &temp2; | |
6749 | } | |
6750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
6751 | return NULL; | |
6752 | if (_argo0) { | |
6753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); | |
6756 | return NULL; | |
6757 | } | |
6758 | } | |
6759 | { | |
6760 | _arg1 = wxString_in_helper(_obj1); | |
6761 | if (_arg1 == NULL) | |
6762 | return NULL; | |
6763 | } | |
6764 | if (_argo6) { | |
6765 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6766 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
6767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); | |
6768 | return NULL; | |
6769 | } | |
6770 | } | |
6771 | { | |
6772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6773 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6774 | ||
6775 | wxPyEndAllowThreads(__tstate); | |
6776 | if (PyErr_Occurred()) return NULL; | |
6777 | } Py_INCREF(Py_None); | |
6778 | _resultobj = Py_None; | |
6779 | { | |
6780 | PyObject *o; | |
6781 | o = PyInt_FromLong((long) (*_arg2)); | |
6782 | _resultobj = t_output_helper(_resultobj, o); | |
6783 | } | |
6784 | { | |
6785 | PyObject *o; | |
6786 | o = PyInt_FromLong((long) (*_arg3)); | |
6787 | _resultobj = t_output_helper(_resultobj, o); | |
6788 | } | |
6789 | { | |
6790 | PyObject *o; | |
6791 | o = PyInt_FromLong((long) (*_arg4)); | |
6792 | _resultobj = t_output_helper(_resultobj, o); | |
6793 | } | |
6794 | { | |
6795 | PyObject *o; | |
6796 | o = PyInt_FromLong((long) (*_arg5)); | |
6797 | _resultobj = t_output_helper(_resultobj, o); | |
6798 | } | |
6799 | { | |
6800 | if (_obj1) | |
6801 | delete _arg1; | |
6802 | } | |
6803 | return _resultobj; | |
6804 | } | |
6805 | ||
6806 | #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6807 | static PyObject *_wrap_wxDC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject * _resultobj; | |
6809 | wxDC * _arg0; | |
6810 | wxString * _arg1; | |
6811 | wxCoord * _arg2; | |
6812 | int temp; | |
6813 | wxCoord * _arg3; | |
6814 | int temp0; | |
6815 | wxCoord * _arg4; | |
6816 | int temp1; | |
6817 | wxFont * _arg5 = (wxFont *) NULL; | |
6818 | PyObject * _argo0 = 0; | |
6819 | PyObject * _obj1 = 0; | |
6820 | PyObject * _argo5 = 0; | |
6821 | char *_kwnames[] = { "self","text","font", NULL }; | |
6822 | ||
6823 | self = self; | |
6824 | { | |
6825 | _arg2 = &temp; | |
6826 | } | |
6827 | { | |
6828 | _arg3 = &temp0; | |
6829 | } | |
6830 | { | |
6831 | _arg4 = &temp1; | |
6832 | } | |
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames,&_argo0,&_obj1,&_argo5)) | |
6834 | return NULL; | |
6835 | if (_argo0) { | |
6836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p."); | |
6839 | return NULL; | |
6840 | } | |
6841 | } | |
6842 | { | |
6843 | _arg1 = wxString_in_helper(_obj1); | |
6844 | if (_arg1 == NULL) | |
6845 | return NULL; | |
6846 | } | |
6847 | if (_argo5) { | |
6848 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6849 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxFont_p")) { | |
6850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p."); | |
6851 | return NULL; | |
6852 | } | |
6853 | } | |
6854 | { | |
6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6856 | wxDC_GetMultiLineTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
6857 | ||
6858 | wxPyEndAllowThreads(__tstate); | |
6859 | if (PyErr_Occurred()) return NULL; | |
6860 | } Py_INCREF(Py_None); | |
6861 | _resultobj = Py_None; | |
6862 | { | |
6863 | PyObject *o; | |
6864 | o = PyInt_FromLong((long) (*_arg2)); | |
6865 | _resultobj = t_output_helper(_resultobj, o); | |
6866 | } | |
6867 | { | |
6868 | PyObject *o; | |
6869 | o = PyInt_FromLong((long) (*_arg3)); | |
6870 | _resultobj = t_output_helper(_resultobj, o); | |
6871 | } | |
6872 | { | |
6873 | PyObject *o; | |
6874 | o = PyInt_FromLong((long) (*_arg4)); | |
6875 | _resultobj = t_output_helper(_resultobj, o); | |
6876 | } | |
6877 | { | |
6878 | if (_obj1) | |
6879 | delete _arg1; | |
6880 | } | |
6881 | return _resultobj; | |
6882 | } | |
6883 | ||
6884 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
6885 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6886 | PyObject * _resultobj; | |
6887 | wxColour * _result; | |
6888 | wxDC * _arg0; | |
6889 | PyObject * _argo0 = 0; | |
6890 | char *_kwnames[] = { "self", NULL }; | |
6891 | char _ptemp[128]; | |
6892 | ||
6893 | self = self; | |
6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
6895 | return NULL; | |
6896 | if (_argo0) { | |
6897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
6900 | return NULL; | |
6901 | } | |
6902 | } | |
6903 | { | |
6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6905 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); | |
6906 | ||
6907 | wxPyEndAllowThreads(__tstate); | |
6908 | if (PyErr_Occurred()) return NULL; | |
6909 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6910 | _resultobj = Py_BuildValue("s",_ptemp); | |
6911 | return _resultobj; | |
6912 | } | |
6913 | ||
6914 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
6915 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6916 | PyObject * _resultobj; | |
6917 | wxDC * _arg0; | |
6918 | double * _arg1; | |
6919 | double temp; | |
6920 | double * _arg2; | |
6921 | double temp0; | |
6922 | PyObject * _argo0 = 0; | |
6923 | char *_kwnames[] = { "self", NULL }; | |
6924 | ||
6925 | self = self; | |
6926 | { | |
6927 | _arg1 = &temp; | |
6928 | } | |
6929 | { | |
6930 | _arg2 = &temp0; | |
6931 | } | |
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
6933 | return NULL; | |
6934 | if (_argo0) { | |
6935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
6938 | return NULL; | |
6939 | } | |
6940 | } | |
6941 | { | |
6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6943 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) return NULL; | |
6947 | } Py_INCREF(Py_None); | |
6948 | _resultobj = Py_None; | |
6949 | { | |
6950 | PyObject *o; | |
6951 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6952 | _resultobj = t_output_helper(_resultobj, o); | |
6953 | } | |
6954 | { | |
6955 | PyObject *o; | |
6956 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6957 | _resultobj = t_output_helper(_resultobj, o); | |
6958 | } | |
6959 | return _resultobj; | |
6960 | } | |
6961 | ||
6962 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
6963 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6964 | PyObject * _resultobj; | |
6965 | wxCoord _result; | |
6966 | wxDC * _arg0; | |
6967 | wxCoord _arg1; | |
6968 | PyObject * _argo0 = 0; | |
6969 | char *_kwnames[] = { "self","x", NULL }; | |
6970 | ||
6971 | self = self; | |
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) | |
6973 | return NULL; | |
6974 | if (_argo0) { | |
6975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
6978 | return NULL; | |
6979 | } | |
6980 | } | |
6981 | { | |
6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6983 | _result = (wxCoord )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
6984 | ||
6985 | wxPyEndAllowThreads(__tstate); | |
6986 | if (PyErr_Occurred()) return NULL; | |
6987 | } _resultobj = Py_BuildValue("i",_result); | |
6988 | return _resultobj; | |
6989 | } | |
6990 | ||
6991 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
6992 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6993 | PyObject * _resultobj; | |
6994 | wxCoord _result; | |
6995 | wxDC * _arg0; | |
6996 | wxCoord _arg1; | |
6997 | PyObject * _argo0 = 0; | |
6998 | char *_kwnames[] = { "self","x", NULL }; | |
6999 | ||
7000 | self = self; | |
7001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) | |
7002 | return NULL; | |
7003 | if (_argo0) { | |
7004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
7007 | return NULL; | |
7008 | } | |
7009 | } | |
7010 | { | |
7011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7012 | _result = (wxCoord )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
7013 | ||
7014 | wxPyEndAllowThreads(__tstate); | |
7015 | if (PyErr_Occurred()) return NULL; | |
7016 | } _resultobj = Py_BuildValue("i",_result); | |
7017 | return _resultobj; | |
7018 | } | |
7019 | ||
7020 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
7021 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7022 | PyObject * _resultobj; | |
7023 | wxCoord _result; | |
7024 | wxDC * _arg0; | |
7025 | wxCoord _arg1; | |
7026 | PyObject * _argo0 = 0; | |
7027 | char *_kwnames[] = { "self","y", NULL }; | |
7028 | ||
7029 | self = self; | |
7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) | |
7031 | return NULL; | |
7032 | if (_argo0) { | |
7033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); | |
7036 | return NULL; | |
7037 | } | |
7038 | } | |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | _result = (wxCoord )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) return NULL; | |
7045 | } _resultobj = Py_BuildValue("i",_result); | |
7046 | return _resultobj; | |
7047 | } | |
7048 | ||
7049 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
7050 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7051 | PyObject * _resultobj; | |
7052 | wxCoord _result; | |
7053 | wxDC * _arg0; | |
7054 | wxCoord _arg1; | |
7055 | PyObject * _argo0 = 0; | |
7056 | char *_kwnames[] = { "self","y", NULL }; | |
7057 | ||
7058 | self = self; | |
7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) | |
7060 | return NULL; | |
7061 | if (_argo0) { | |
7062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
7065 | return NULL; | |
7066 | } | |
7067 | } | |
7068 | { | |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7070 | _result = (wxCoord )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
7071 | ||
7072 | wxPyEndAllowThreads(__tstate); | |
7073 | if (PyErr_Occurred()) return NULL; | |
7074 | } _resultobj = Py_BuildValue("i",_result); | |
7075 | return _resultobj; | |
7076 | } | |
7077 | ||
7078 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
7079 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7080 | PyObject * _resultobj; | |
7081 | wxCoord _result; | |
7082 | wxDC * _arg0; | |
7083 | PyObject * _argo0 = 0; | |
7084 | char *_kwnames[] = { "self", NULL }; | |
7085 | ||
7086 | self = self; | |
7087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) | |
7088 | return NULL; | |
7089 | if (_argo0) { | |
7090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
7093 | return NULL; | |
7094 | } | |
7095 | } | |
7096 | { | |
7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7098 | _result = (wxCoord )wxDC_MaxX(_arg0); | |
7099 | ||
7100 | wxPyEndAllowThreads(__tstate); | |
7101 | if (PyErr_Occurred()) return NULL; | |
7102 | } _resultobj = Py_BuildValue("i",_result); | |
7103 | return _resultobj; | |
7104 | } | |
7105 | ||
7106 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
7107 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject * _resultobj; | |
7109 | wxCoord _result; | |
7110 | wxDC * _arg0; | |
7111 | PyObject * _argo0 = 0; | |
7112 | char *_kwnames[] = { "self", NULL }; | |
7113 | ||
7114 | self = self; | |
7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) | |
7116 | return NULL; | |
7117 | if (_argo0) { | |
7118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
7121 | return NULL; | |
7122 | } | |
7123 | } | |
7124 | { | |
7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7126 | _result = (wxCoord )wxDC_MaxY(_arg0); | |
7127 | ||
7128 | wxPyEndAllowThreads(__tstate); | |
7129 | if (PyErr_Occurred()) return NULL; | |
7130 | } _resultobj = Py_BuildValue("i",_result); | |
7131 | return _resultobj; | |
7132 | } | |
7133 | ||
7134 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
7135 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7136 | PyObject * _resultobj; | |
7137 | wxCoord _result; | |
7138 | wxDC * _arg0; | |
7139 | PyObject * _argo0 = 0; | |
7140 | char *_kwnames[] = { "self", NULL }; | |
7141 | ||
7142 | self = self; | |
7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) | |
7144 | return NULL; | |
7145 | if (_argo0) { | |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
7149 | return NULL; | |
7150 | } | |
7151 | } | |
7152 | { | |
7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7154 | _result = (wxCoord )wxDC_MinX(_arg0); | |
7155 | ||
7156 | wxPyEndAllowThreads(__tstate); | |
7157 | if (PyErr_Occurred()) return NULL; | |
7158 | } _resultobj = Py_BuildValue("i",_result); | |
7159 | return _resultobj; | |
7160 | } | |
7161 | ||
7162 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
7163 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7164 | PyObject * _resultobj; | |
7165 | wxCoord _result; | |
7166 | wxDC * _arg0; | |
7167 | PyObject * _argo0 = 0; | |
7168 | char *_kwnames[] = { "self", NULL }; | |
7169 | ||
7170 | self = self; | |
7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) | |
7172 | return NULL; | |
7173 | if (_argo0) { | |
7174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
7177 | return NULL; | |
7178 | } | |
7179 | } | |
7180 | { | |
7181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7182 | _result = (wxCoord )wxDC_MinY(_arg0); | |
7183 | ||
7184 | wxPyEndAllowThreads(__tstate); | |
7185 | if (PyErr_Occurred()) return NULL; | |
7186 | } _resultobj = Py_BuildValue("i",_result); | |
7187 | return _resultobj; | |
7188 | } | |
7189 | ||
7190 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
7191 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7192 | PyObject * _resultobj; | |
7193 | bool _result; | |
7194 | wxDC * _arg0; | |
7195 | PyObject * _argo0 = 0; | |
7196 | char *_kwnames[] = { "self", NULL }; | |
7197 | ||
7198 | self = self; | |
7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) | |
7200 | return NULL; | |
7201 | if (_argo0) { | |
7202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
7205 | return NULL; | |
7206 | } | |
7207 | } | |
7208 | { | |
7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7210 | _result = (bool )wxDC_Ok(_arg0); | |
7211 | ||
7212 | wxPyEndAllowThreads(__tstate); | |
7213 | if (PyErr_Occurred()) return NULL; | |
7214 | } _resultobj = Py_BuildValue("i",_result); | |
7215 | return _resultobj; | |
7216 | } | |
7217 | ||
7218 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
7219 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7220 | PyObject * _resultobj; | |
7221 | wxDC * _arg0; | |
7222 | wxCoord _arg1; | |
7223 | wxCoord _arg2; | |
7224 | PyObject * _argo0 = 0; | |
7225 | char *_kwnames[] = { "self","x","y", NULL }; | |
7226 | ||
7227 | self = self; | |
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7229 | return NULL; | |
7230 | if (_argo0) { | |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | { | |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) return NULL; | |
7243 | } Py_INCREF(Py_None); | |
7244 | _resultobj = Py_None; | |
7245 | return _resultobj; | |
7246 | } | |
7247 | ||
7248 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
7249 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7250 | PyObject * _resultobj; | |
7251 | wxDC * _arg0; | |
7252 | wxBrush * _arg1; | |
7253 | PyObject * _argo0 = 0; | |
7254 | PyObject * _argo1 = 0; | |
7255 | char *_kwnames[] = { "self","brush", NULL }; | |
7256 | ||
7257 | self = self; | |
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) | |
7259 | return NULL; | |
7260 | if (_argo0) { | |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
7264 | return NULL; | |
7265 | } | |
7266 | } | |
7267 | if (_argo1) { | |
7268 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
7269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
7270 | return NULL; | |
7271 | } | |
7272 | } | |
7273 | { | |
7274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7275 | wxDC_SetBackground(_arg0,*_arg1); | |
7276 | ||
7277 | wxPyEndAllowThreads(__tstate); | |
7278 | if (PyErr_Occurred()) return NULL; | |
7279 | } Py_INCREF(Py_None); | |
7280 | _resultobj = Py_None; | |
7281 | return _resultobj; | |
7282 | } | |
7283 | ||
7284 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
7285 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7286 | PyObject * _resultobj; | |
7287 | wxDC * _arg0; | |
7288 | int _arg1; | |
7289 | PyObject * _argo0 = 0; | |
7290 | char *_kwnames[] = { "self","mode", NULL }; | |
7291 | ||
7292 | self = self; | |
7293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) | |
7294 | return NULL; | |
7295 | if (_argo0) { | |
7296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
7299 | return NULL; | |
7300 | } | |
7301 | } | |
7302 | { | |
7303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7304 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
7305 | ||
7306 | wxPyEndAllowThreads(__tstate); | |
7307 | if (PyErr_Occurred()) return NULL; | |
7308 | } Py_INCREF(Py_None); | |
7309 | _resultobj = Py_None; | |
7310 | return _resultobj; | |
7311 | } | |
7312 | ||
7313 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7314 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7315 | PyObject * _resultobj; | |
7316 | wxDC * _arg0; | |
7317 | wxCoord _arg1; | |
7318 | wxCoord _arg2; | |
7319 | wxCoord _arg3; | |
7320 | wxCoord _arg4; | |
7321 | PyObject * _argo0 = 0; | |
7322 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
7323 | ||
7324 | self = self; | |
7325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7326 | return NULL; | |
7327 | if (_argo0) { | |
7328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
7331 | return NULL; | |
7332 | } | |
7333 | } | |
7334 | { | |
7335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7336 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7337 | ||
7338 | wxPyEndAllowThreads(__tstate); | |
7339 | if (PyErr_Occurred()) return NULL; | |
7340 | } Py_INCREF(Py_None); | |
7341 | _resultobj = Py_None; | |
7342 | return _resultobj; | |
7343 | } | |
7344 | ||
7345 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) | |
7346 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7347 | PyObject * _resultobj; | |
7348 | wxDC * _arg0; | |
7349 | wxRegion * _arg1; | |
7350 | PyObject * _argo0 = 0; | |
7351 | PyObject * _argo1 = 0; | |
7352 | char *_kwnames[] = { "self","region", NULL }; | |
7353 | ||
7354 | self = self; | |
7355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
7356 | return NULL; | |
7357 | if (_argo0) { | |
7358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
7361 | return NULL; | |
7362 | } | |
7363 | } | |
7364 | if (_argo1) { | |
7365 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
7366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
7367 | return NULL; | |
7368 | } | |
7369 | } | |
7370 | { | |
7371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7372 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); | |
7373 | ||
7374 | wxPyEndAllowThreads(__tstate); | |
7375 | if (PyErr_Occurred()) return NULL; | |
7376 | } Py_INCREF(Py_None); | |
7377 | _resultobj = Py_None; | |
7378 | return _resultobj; | |
7379 | } | |
7380 | ||
7381 | #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) | |
7382 | static PyObject *_wrap_wxDC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7383 | PyObject * _resultobj; | |
7384 | wxDC * _arg0; | |
7385 | wxRect * _arg1; | |
7386 | PyObject * _argo0 = 0; | |
7387 | wxRect temp; | |
7388 | PyObject * _obj1 = 0; | |
7389 | char *_kwnames[] = { "self","rect", NULL }; | |
7390 | ||
7391 | self = self; | |
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRect",_kwnames,&_argo0,&_obj1)) | |
7393 | return NULL; | |
7394 | if (_argo0) { | |
7395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p."); | |
7398 | return NULL; | |
7399 | } | |
7400 | } | |
7401 | { | |
7402 | _arg1 = &temp; | |
7403 | if (! wxRect_helper(_obj1, &_arg1)) | |
7404 | return NULL; | |
7405 | } | |
7406 | { | |
7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7408 | wxDC_SetClippingRect(_arg0,*_arg1); | |
7409 | ||
7410 | wxPyEndAllowThreads(__tstate); | |
7411 | if (PyErr_Occurred()) return NULL; | |
7412 | } Py_INCREF(Py_None); | |
7413 | _resultobj = Py_None; | |
7414 | return _resultobj; | |
7415 | } | |
7416 | ||
7417 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
7418 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7419 | PyObject * _resultobj; | |
7420 | wxDC * _arg0; | |
7421 | wxPalette * _arg1; | |
7422 | PyObject * _argo0 = 0; | |
7423 | PyObject * _argo1 = 0; | |
7424 | char *_kwnames[] = { "self","colourMap", NULL }; | |
7425 | ||
7426 | self = self; | |
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) | |
7428 | return NULL; | |
7429 | if (_argo0) { | |
7430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
7433 | return NULL; | |
7434 | } | |
7435 | } | |
7436 | if (_argo1) { | |
7437 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
7438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
7439 | return NULL; | |
7440 | } | |
7441 | } | |
7442 | { | |
7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7444 | wxDC_SetPalette(_arg0,*_arg1); | |
7445 | ||
7446 | wxPyEndAllowThreads(__tstate); | |
7447 | if (PyErr_Occurred()) return NULL; | |
7448 | } Py_INCREF(Py_None); | |
7449 | _resultobj = Py_None; | |
7450 | return _resultobj; | |
7451 | } | |
7452 | ||
7453 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
7454 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7455 | PyObject * _resultobj; | |
7456 | wxDC * _arg0; | |
7457 | wxBrush * _arg1; | |
7458 | PyObject * _argo0 = 0; | |
7459 | PyObject * _argo1 = 0; | |
7460 | char *_kwnames[] = { "self","brush", NULL }; | |
7461 | ||
7462 | self = self; | |
7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) | |
7464 | return NULL; | |
7465 | if (_argo0) { | |
7466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
7469 | return NULL; | |
7470 | } | |
7471 | } | |
7472 | if (_argo1) { | |
7473 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
7474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
7475 | return NULL; | |
7476 | } | |
7477 | } | |
7478 | { | |
7479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7480 | wxDC_SetBrush(_arg0,*_arg1); | |
7481 | ||
7482 | wxPyEndAllowThreads(__tstate); | |
7483 | if (PyErr_Occurred()) return NULL; | |
7484 | } Py_INCREF(Py_None); | |
7485 | _resultobj = Py_None; | |
7486 | return _resultobj; | |
7487 | } | |
7488 | ||
7489 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
7490 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7491 | PyObject * _resultobj; | |
7492 | wxDC * _arg0; | |
7493 | wxFont * _arg1; | |
7494 | PyObject * _argo0 = 0; | |
7495 | PyObject * _argo1 = 0; | |
7496 | char *_kwnames[] = { "self","font", NULL }; | |
7497 | ||
7498 | self = self; | |
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) | |
7500 | return NULL; | |
7501 | if (_argo0) { | |
7502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
7505 | return NULL; | |
7506 | } | |
7507 | } | |
7508 | if (_argo1) { | |
7509 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
7510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
7511 | return NULL; | |
7512 | } | |
7513 | } | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | wxDC_SetFont(_arg0,*_arg1); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) return NULL; | |
7520 | } Py_INCREF(Py_None); | |
7521 | _resultobj = Py_None; | |
7522 | return _resultobj; | |
7523 | } | |
7524 | ||
7525 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
7526 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7527 | PyObject * _resultobj; | |
7528 | wxDC * _arg0; | |
7529 | int _arg1; | |
7530 | PyObject * _argo0 = 0; | |
7531 | char *_kwnames[] = { "self","function", NULL }; | |
7532 | ||
7533 | self = self; | |
7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) | |
7535 | return NULL; | |
7536 | if (_argo0) { | |
7537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
7540 | return NULL; | |
7541 | } | |
7542 | } | |
7543 | { | |
7544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7545 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
7546 | ||
7547 | wxPyEndAllowThreads(__tstate); | |
7548 | if (PyErr_Occurred()) return NULL; | |
7549 | } Py_INCREF(Py_None); | |
7550 | _resultobj = Py_None; | |
7551 | return _resultobj; | |
7552 | } | |
7553 | ||
7554 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) | |
7555 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject * _resultobj; | |
7557 | wxDC * _arg0; | |
7558 | double _arg1; | |
7559 | double _arg2; | |
7560 | PyObject * _argo0 = 0; | |
7561 | char *_kwnames[] = { "self","x","y", NULL }; | |
7562 | ||
7563 | self = self; | |
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7565 | return NULL; | |
7566 | if (_argo0) { | |
7567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
7570 | return NULL; | |
7571 | } | |
7572 | } | |
7573 | { | |
7574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7575 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
7576 | ||
7577 | wxPyEndAllowThreads(__tstate); | |
7578 | if (PyErr_Occurred()) return NULL; | |
7579 | } Py_INCREF(Py_None); | |
7580 | _resultobj = Py_None; | |
7581 | return _resultobj; | |
7582 | } | |
7583 | ||
7584 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
7585 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7586 | PyObject * _resultobj; | |
7587 | wxDC * _arg0; | |
7588 | int _arg1; | |
7589 | PyObject * _argo0 = 0; | |
7590 | char *_kwnames[] = { "self","mode", NULL }; | |
7591 | ||
7592 | self = self; | |
7593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) | |
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_SetMapMode. Expected _wxDC_p."); | |
7599 | return NULL; | |
7600 | } | |
7601 | } | |
7602 | { | |
7603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7604 | wxDC_SetMapMode(_arg0,_arg1); | |
7605 | ||
7606 | wxPyEndAllowThreads(__tstate); | |
7607 | if (PyErr_Occurred()) return NULL; | |
7608 | } Py_INCREF(Py_None); | |
7609 | _resultobj = Py_None; | |
7610 | return _resultobj; | |
7611 | } | |
7612 | ||
7613 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
7614 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7615 | PyObject * _resultobj; | |
7616 | wxDC * _arg0; | |
7617 | bool _arg1; | |
7618 | PyObject * _argo0 = 0; | |
7619 | int tempbool1; | |
7620 | char *_kwnames[] = { "self","optimize", NULL }; | |
7621 | ||
7622 | self = self; | |
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) | |
7624 | return NULL; | |
7625 | if (_argo0) { | |
7626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
7629 | return NULL; | |
7630 | } | |
7631 | } | |
7632 | _arg1 = (bool ) tempbool1; | |
7633 | { | |
7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7635 | wxDC_SetOptimization(_arg0,_arg1); | |
7636 | ||
7637 | wxPyEndAllowThreads(__tstate); | |
7638 | if (PyErr_Occurred()) return NULL; | |
7639 | } Py_INCREF(Py_None); | |
7640 | _resultobj = Py_None; | |
7641 | return _resultobj; | |
7642 | } | |
7643 | ||
7644 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
7645 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7646 | PyObject * _resultobj; | |
7647 | wxDC * _arg0; | |
7648 | wxPen * _arg1; | |
7649 | PyObject * _argo0 = 0; | |
7650 | PyObject * _argo1 = 0; | |
7651 | char *_kwnames[] = { "self","pen", NULL }; | |
7652 | ||
7653 | self = self; | |
7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) | |
7655 | return NULL; | |
7656 | if (_argo0) { | |
7657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
7660 | return NULL; | |
7661 | } | |
7662 | } | |
7663 | if (_argo1) { | |
7664 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
7665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
7666 | return NULL; | |
7667 | } | |
7668 | } | |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | wxDC_SetPen(_arg0,*_arg1); | |
7672 | ||
7673 | wxPyEndAllowThreads(__tstate); | |
7674 | if (PyErr_Occurred()) return NULL; | |
7675 | } Py_INCREF(Py_None); | |
7676 | _resultobj = Py_None; | |
7677 | return _resultobj; | |
7678 | } | |
7679 | ||
7680 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
7681 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7682 | PyObject * _resultobj; | |
7683 | wxDC * _arg0; | |
7684 | wxColour * _arg1; | |
7685 | PyObject * _argo0 = 0; | |
7686 | wxColour temp; | |
7687 | PyObject * _obj1 = 0; | |
7688 | char *_kwnames[] = { "self","colour", NULL }; | |
7689 | ||
7690 | self = self; | |
7691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) | |
7692 | return NULL; | |
7693 | if (_argo0) { | |
7694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
7697 | return NULL; | |
7698 | } | |
7699 | } | |
7700 | { | |
7701 | _arg1 = &temp; | |
7702 | if (! wxColour_helper(_obj1, &_arg1)) | |
7703 | return NULL; | |
7704 | } | |
7705 | { | |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | wxDC_SetTextBackground(_arg0,*_arg1); | |
7708 | ||
7709 | wxPyEndAllowThreads(__tstate); | |
7710 | if (PyErr_Occurred()) return NULL; | |
7711 | } Py_INCREF(Py_None); | |
7712 | _resultobj = Py_None; | |
7713 | return _resultobj; | |
7714 | } | |
7715 | ||
7716 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
7717 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7718 | PyObject * _resultobj; | |
7719 | wxDC * _arg0; | |
7720 | wxColour * _arg1; | |
7721 | PyObject * _argo0 = 0; | |
7722 | wxColour temp; | |
7723 | PyObject * _obj1 = 0; | |
7724 | char *_kwnames[] = { "self","colour", NULL }; | |
7725 | ||
7726 | self = self; | |
7727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) | |
7728 | return NULL; | |
7729 | if (_argo0) { | |
7730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
7733 | return NULL; | |
7734 | } | |
7735 | } | |
7736 | { | |
7737 | _arg1 = &temp; | |
7738 | if (! wxColour_helper(_obj1, &_arg1)) | |
7739 | return NULL; | |
7740 | } | |
7741 | { | |
7742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7743 | wxDC_SetTextForeground(_arg0,*_arg1); | |
7744 | ||
7745 | wxPyEndAllowThreads(__tstate); | |
7746 | if (PyErr_Occurred()) return NULL; | |
7747 | } Py_INCREF(Py_None); | |
7748 | _resultobj = Py_None; | |
7749 | return _resultobj; | |
7750 | } | |
7751 | ||
7752 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
7753 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7754 | PyObject * _resultobj; | |
7755 | wxDC * _arg0; | |
7756 | double _arg1; | |
7757 | double _arg2; | |
7758 | PyObject * _argo0 = 0; | |
7759 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; | |
7760 | ||
7761 | self = self; | |
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7763 | return NULL; | |
7764 | if (_argo0) { | |
7765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); | |
7768 | return NULL; | |
7769 | } | |
7770 | } | |
7771 | { | |
7772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7773 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
7774 | ||
7775 | wxPyEndAllowThreads(__tstate); | |
7776 | if (PyErr_Occurred()) return NULL; | |
7777 | } Py_INCREF(Py_None); | |
7778 | _resultobj = Py_None; | |
7779 | return _resultobj; | |
7780 | } | |
7781 | ||
7782 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
7783 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7784 | PyObject * _resultobj; | |
7785 | bool _result; | |
7786 | wxDC * _arg0; | |
7787 | wxString * _arg1; | |
7788 | PyObject * _argo0 = 0; | |
7789 | PyObject * _obj1 = 0; | |
7790 | char *_kwnames[] = { "self","message", NULL }; | |
7791 | ||
7792 | self = self; | |
7793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) | |
7794 | return NULL; | |
7795 | if (_argo0) { | |
7796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
7799 | return NULL; | |
7800 | } | |
7801 | } | |
7802 | { | |
7803 | _arg1 = wxString_in_helper(_obj1); | |
7804 | if (_arg1 == NULL) | |
7805 | return NULL; | |
7806 | } | |
7807 | { | |
7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7809 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
7810 | ||
7811 | wxPyEndAllowThreads(__tstate); | |
7812 | if (PyErr_Occurred()) return NULL; | |
7813 | } _resultobj = Py_BuildValue("i",_result); | |
7814 | { | |
7815 | if (_obj1) | |
7816 | delete _arg1; | |
7817 | } | |
7818 | return _resultobj; | |
7819 | } | |
7820 | ||
7821 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
7822 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7823 | PyObject * _resultobj; | |
7824 | wxDC * _arg0; | |
7825 | PyObject * _argo0 = 0; | |
7826 | char *_kwnames[] = { "self", NULL }; | |
7827 | ||
7828 | self = self; | |
7829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) | |
7830 | return NULL; | |
7831 | if (_argo0) { | |
7832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); | |
7835 | return NULL; | |
7836 | } | |
7837 | } | |
7838 | { | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | wxDC_StartPage(_arg0); | |
7841 | ||
7842 | wxPyEndAllowThreads(__tstate); | |
7843 | if (PyErr_Occurred()) return NULL; | |
7844 | } Py_INCREF(Py_None); | |
7845 | _resultobj = Py_None; | |
7846 | return _resultobj; | |
7847 | } | |
7848 | ||
7849 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7850 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7851 | PyObject * _resultobj; | |
7852 | wxDC * _arg0; | |
7853 | wxBitmap * _arg1; | |
7854 | wxCoord _arg2; | |
7855 | wxCoord _arg3; | |
7856 | int _arg4 = (int ) FALSE; | |
7857 | PyObject * _argo0 = 0; | |
7858 | PyObject * _argo1 = 0; | |
7859 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; | |
7860 | ||
7861 | self = self; | |
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) | |
7863 | return NULL; | |
7864 | if (_argo0) { | |
7865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
7868 | return NULL; | |
7869 | } | |
7870 | } | |
7871 | if (_argo1) { | |
7872 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
7874 | return NULL; | |
7875 | } | |
7876 | } | |
7877 | { | |
7878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7879 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
7880 | ||
7881 | wxPyEndAllowThreads(__tstate); | |
7882 | if (PyErr_Occurred()) return NULL; | |
7883 | } Py_INCREF(Py_None); | |
7884 | _resultobj = Py_None; | |
7885 | return _resultobj; | |
7886 | } | |
7887 | ||
7888 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) | |
7889 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7890 | PyObject * _resultobj; | |
7891 | bool _result; | |
7892 | wxDC * _arg0; | |
7893 | PyObject * _argo0 = 0; | |
7894 | char *_kwnames[] = { "self", NULL }; | |
7895 | ||
7896 | self = self; | |
7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
7898 | return NULL; | |
7899 | if (_argo0) { | |
7900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
7903 | return NULL; | |
7904 | } | |
7905 | } | |
7906 | { | |
7907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7908 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
7909 | ||
7910 | wxPyEndAllowThreads(__tstate); | |
7911 | if (PyErr_Occurred()) return NULL; | |
7912 | } _resultobj = Py_BuildValue("i",_result); | |
7913 | return _resultobj; | |
7914 | } | |
7915 | ||
7916 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
7917 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7918 | PyObject * _resultobj; | |
7919 | bool _result; | |
7920 | wxDC * _arg0; | |
7921 | PyObject * _argo0 = 0; | |
7922 | char *_kwnames[] = { "self", NULL }; | |
7923 | ||
7924 | self = self; | |
7925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
7926 | return NULL; | |
7927 | if (_argo0) { | |
7928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
7931 | return NULL; | |
7932 | } | |
7933 | } | |
7934 | { | |
7935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7936 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
7937 | ||
7938 | wxPyEndAllowThreads(__tstate); | |
7939 | if (PyErr_Occurred()) return NULL; | |
7940 | } _resultobj = Py_BuildValue("i",_result); | |
7941 | return _resultobj; | |
7942 | } | |
7943 | ||
7944 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
7945 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject * _resultobj; | |
7947 | int _result; | |
7948 | wxDC * _arg0; | |
7949 | PyObject * _argo0 = 0; | |
7950 | char *_kwnames[] = { "self", NULL }; | |
7951 | ||
7952 | self = self; | |
7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
7954 | return NULL; | |
7955 | if (_argo0) { | |
7956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
7959 | return NULL; | |
7960 | } | |
7961 | } | |
7962 | { | |
7963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7964 | _result = (int )wxDC_GetDepth(_arg0); | |
7965 | ||
7966 | wxPyEndAllowThreads(__tstate); | |
7967 | if (PyErr_Occurred()) return NULL; | |
7968 | } _resultobj = Py_BuildValue("i",_result); | |
7969 | return _resultobj; | |
7970 | } | |
7971 | ||
7972 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
7973 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7974 | PyObject * _resultobj; | |
7975 | wxSize * _result; | |
7976 | wxDC * _arg0; | |
7977 | PyObject * _argo0 = 0; | |
7978 | char *_kwnames[] = { "self", NULL }; | |
7979 | char _ptemp[128]; | |
7980 | ||
7981 | self = self; | |
7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
7983 | return NULL; | |
7984 | if (_argo0) { | |
7985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
7988 | return NULL; | |
7989 | } | |
7990 | } | |
7991 | { | |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7993 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
7994 | ||
7995 | wxPyEndAllowThreads(__tstate); | |
7996 | if (PyErr_Occurred()) return NULL; | |
7997 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7998 | _resultobj = Py_BuildValue("s",_ptemp); | |
7999 | return _resultobj; | |
8000 | } | |
8001 | ||
8002 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8003 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8004 | PyObject * _resultobj; | |
8005 | wxDC * _arg0; | |
8006 | int * _arg1; | |
8007 | int temp; | |
8008 | int * _arg2; | |
8009 | int temp0; | |
8010 | PyObject * _argo0 = 0; | |
8011 | char *_kwnames[] = { "self", NULL }; | |
8012 | ||
8013 | self = self; | |
8014 | { | |
8015 | _arg1 = &temp; | |
8016 | } | |
8017 | { | |
8018 | _arg2 = &temp0; | |
8019 | } | |
8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8021 | return NULL; | |
8022 | if (_argo0) { | |
8023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8026 | return NULL; | |
8027 | } | |
8028 | } | |
8029 | { | |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
8032 | ||
8033 | wxPyEndAllowThreads(__tstate); | |
8034 | if (PyErr_Occurred()) return NULL; | |
8035 | } Py_INCREF(Py_None); | |
8036 | _resultobj = Py_None; | |
8037 | { | |
8038 | PyObject *o; | |
8039 | o = PyInt_FromLong((long) (*_arg1)); | |
8040 | _resultobj = t_output_helper(_resultobj, o); | |
8041 | } | |
8042 | { | |
8043 | PyObject *o; | |
8044 | o = PyInt_FromLong((long) (*_arg2)); | |
8045 | _resultobj = t_output_helper(_resultobj, o); | |
8046 | } | |
8047 | return _resultobj; | |
8048 | } | |
8049 | ||
8050 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
8051 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8052 | PyObject * _resultobj; | |
8053 | wxDC * _arg0; | |
8054 | int _arg1; | |
8055 | int _arg2; | |
8056 | PyObject * _argo0 = 0; | |
8057 | char *_kwnames[] = { "self","x","y", NULL }; | |
8058 | ||
8059 | self = self; | |
8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8061 | return NULL; | |
8062 | if (_argo0) { | |
8063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
8066 | return NULL; | |
8067 | } | |
8068 | } | |
8069 | { | |
8070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8071 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
8072 | ||
8073 | wxPyEndAllowThreads(__tstate); | |
8074 | if (PyErr_Occurred()) return NULL; | |
8075 | } Py_INCREF(Py_None); | |
8076 | _resultobj = Py_None; | |
8077 | return _resultobj; | |
8078 | } | |
8079 | ||
8080 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
8081 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8082 | PyObject * _resultobj; | |
8083 | wxDC * _arg0; | |
8084 | int * _arg1; | |
8085 | int temp; | |
8086 | int * _arg2; | |
8087 | int temp0; | |
8088 | PyObject * _argo0 = 0; | |
8089 | char *_kwnames[] = { "self", NULL }; | |
8090 | ||
8091 | self = self; | |
8092 | { | |
8093 | _arg1 = &temp; | |
8094 | } | |
8095 | { | |
8096 | _arg2 = &temp0; | |
8097 | } | |
8098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
8099 | return NULL; | |
8100 | if (_argo0) { | |
8101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
8104 | return NULL; | |
8105 | } | |
8106 | } | |
8107 | { | |
8108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8109 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
8110 | ||
8111 | wxPyEndAllowThreads(__tstate); | |
8112 | if (PyErr_Occurred()) return NULL; | |
8113 | } Py_INCREF(Py_None); | |
8114 | _resultobj = Py_None; | |
8115 | { | |
8116 | PyObject *o; | |
8117 | o = PyInt_FromLong((long) (*_arg1)); | |
8118 | _resultobj = t_output_helper(_resultobj, o); | |
8119 | } | |
8120 | { | |
8121 | PyObject *o; | |
8122 | o = PyInt_FromLong((long) (*_arg2)); | |
8123 | _resultobj = t_output_helper(_resultobj, o); | |
8124 | } | |
8125 | return _resultobj; | |
8126 | } | |
8127 | ||
8128 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
8129 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8130 | PyObject * _resultobj; | |
8131 | wxDC * _arg0; | |
8132 | bool _arg1; | |
8133 | bool _arg2; | |
8134 | PyObject * _argo0 = 0; | |
8135 | int tempbool1; | |
8136 | int tempbool2; | |
8137 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
8138 | ||
8139 | self = self; | |
8140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8141 | return NULL; | |
8142 | if (_argo0) { | |
8143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
8146 | return NULL; | |
8147 | } | |
8148 | } | |
8149 | _arg1 = (bool ) tempbool1; | |
8150 | _arg2 = (bool ) tempbool2; | |
8151 | { | |
8152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8153 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
8154 | ||
8155 | wxPyEndAllowThreads(__tstate); | |
8156 | if (PyErr_Occurred()) return NULL; | |
8157 | } Py_INCREF(Py_None); | |
8158 | _resultobj = Py_None; | |
8159 | return _resultobj; | |
8160 | } | |
8161 | ||
8162 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) | |
8163 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8164 | PyObject * _resultobj; | |
8165 | wxDC * _arg0; | |
8166 | int _arg1; | |
8167 | int _arg2; | |
8168 | PyObject * _argo0 = 0; | |
8169 | char *_kwnames[] = { "self","x","y", NULL }; | |
8170 | ||
8171 | self = self; | |
8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8173 | return NULL; | |
8174 | if (_argo0) { | |
8175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
8178 | return NULL; | |
8179 | } | |
8180 | } | |
8181 | { | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
8184 | ||
8185 | wxPyEndAllowThreads(__tstate); | |
8186 | if (PyErr_Occurred()) return NULL; | |
8187 | } Py_INCREF(Py_None); | |
8188 | _resultobj = Py_None; | |
8189 | return _resultobj; | |
8190 | } | |
8191 | ||
8192 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
8193 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8194 | PyObject * _resultobj; | |
8195 | wxDC * _arg0; | |
8196 | PyObject * _argo0 = 0; | |
8197 | char *_kwnames[] = { "self", NULL }; | |
8198 | ||
8199 | self = self; | |
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
8201 | return NULL; | |
8202 | if (_argo0) { | |
8203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
8206 | return NULL; | |
8207 | } | |
8208 | } | |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | wxDC_ResetBoundingBox(_arg0); | |
8212 | ||
8213 | wxPyEndAllowThreads(__tstate); | |
8214 | if (PyErr_Occurred()) return NULL; | |
8215 | } Py_INCREF(Py_None); | |
8216 | _resultobj = Py_None; | |
8217 | return _resultobj; | |
8218 | } | |
8219 | ||
8220 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8221 | PyObject * _resultobj; | |
8222 | wxDC * _arg0; | |
8223 | int * _arg1; | |
8224 | int temp; | |
8225 | int * _arg2; | |
8226 | int temp0; | |
8227 | int * _arg3; | |
8228 | int temp1; | |
8229 | int * _arg4; | |
8230 | int temp2; | |
8231 | PyObject * _argo0 = 0; | |
8232 | char *_kwnames[] = { "self", NULL }; | |
8233 | ||
8234 | self = self; | |
8235 | { | |
8236 | _arg1 = &temp; | |
8237 | } | |
8238 | { | |
8239 | _arg2 = &temp0; | |
8240 | } | |
8241 | { | |
8242 | _arg3 = &temp1; | |
8243 | } | |
8244 | { | |
8245 | _arg4 = &temp2; | |
8246 | } | |
8247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
8248 | return NULL; | |
8249 | if (_argo0) { | |
8250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
8253 | return NULL; | |
8254 | } | |
8255 | } | |
8256 | { | |
8257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8258 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8259 | ||
8260 | wxPyEndAllowThreads(__tstate); | |
8261 | if (PyErr_Occurred()) return NULL; | |
8262 | } Py_INCREF(Py_None); | |
8263 | _resultobj = Py_None; | |
8264 | { | |
8265 | PyObject *o; | |
8266 | o = PyInt_FromLong((long) (*_arg1)); | |
8267 | _resultobj = t_output_helper(_resultobj, o); | |
8268 | } | |
8269 | { | |
8270 | PyObject *o; | |
8271 | o = PyInt_FromLong((long) (*_arg2)); | |
8272 | _resultobj = t_output_helper(_resultobj, o); | |
8273 | } | |
8274 | { | |
8275 | PyObject *o; | |
8276 | o = PyInt_FromLong((long) (*_arg3)); | |
8277 | _resultobj = t_output_helper(_resultobj, o); | |
8278 | } | |
8279 | { | |
8280 | PyObject *o; | |
8281 | o = PyInt_FromLong((long) (*_arg4)); | |
8282 | _resultobj = t_output_helper(_resultobj, o); | |
8283 | } | |
8284 | return _resultobj; | |
8285 | } | |
8286 | ||
8287 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { | |
8288 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
8289 | } | |
8290 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8291 | PyObject * _resultobj; | |
8292 | PyObject * _result; | |
8293 | wxDC * _arg0; | |
8294 | PyObject * _arg1; | |
8295 | PyObject * _arg2; | |
8296 | PyObject * _arg3; | |
8297 | PyObject * _argo0 = 0; | |
8298 | PyObject * _obj1 = 0; | |
8299 | PyObject * _obj2 = 0; | |
8300 | PyObject * _obj3 = 0; | |
8301 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
8302 | ||
8303 | self = self; | |
8304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8305 | return NULL; | |
8306 | if (_argo0) { | |
8307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
8310 | return NULL; | |
8311 | } | |
8312 | } | |
8313 | { | |
8314 | _arg1 = _obj1; | |
8315 | } | |
8316 | { | |
8317 | _arg2 = _obj2; | |
8318 | } | |
8319 | { | |
8320 | _arg3 = _obj3; | |
8321 | } | |
8322 | { | |
8323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8324 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2,_arg3); | |
8325 | ||
8326 | wxPyEndAllowThreads(__tstate); | |
8327 | if (PyErr_Occurred()) return NULL; | |
8328 | }{ | |
8329 | _resultobj = _result; | |
8330 | } | |
8331 | return _resultobj; | |
8332 | } | |
8333 | ||
8334 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { | |
8335 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
8336 | } | |
8337 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8338 | PyObject * _resultobj; | |
8339 | PyObject * _result; | |
8340 | wxDC * _arg0; | |
8341 | PyObject * _arg1; | |
8342 | PyObject * _arg2; | |
8343 | PyObject * _arg3; | |
8344 | PyObject * _argo0 = 0; | |
8345 | PyObject * _obj1 = 0; | |
8346 | PyObject * _obj2 = 0; | |
8347 | PyObject * _obj3 = 0; | |
8348 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
8349 | ||
8350 | self = self; | |
8351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8352 | return NULL; | |
8353 | if (_argo0) { | |
8354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
8357 | return NULL; | |
8358 | } | |
8359 | } | |
8360 | { | |
8361 | _arg1 = _obj1; | |
8362 | } | |
8363 | { | |
8364 | _arg2 = _obj2; | |
8365 | } | |
8366 | { | |
8367 | _arg3 = _obj3; | |
8368 | } | |
8369 | { | |
8370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8371 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2,_arg3); | |
8372 | ||
8373 | wxPyEndAllowThreads(__tstate); | |
8374 | if (PyErr_Occurred()) return NULL; | |
8375 | }{ | |
8376 | _resultobj = _result; | |
8377 | } | |
8378 | return _resultobj; | |
8379 | } | |
8380 | ||
8381 | static PyObject * wxDC__DrawRectangleList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { | |
8382 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
8383 | } | |
8384 | static PyObject *_wrap_wxDC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8385 | PyObject * _resultobj; | |
8386 | PyObject * _result; | |
8387 | wxDC * _arg0; | |
8388 | PyObject * _arg1; | |
8389 | PyObject * _arg2; | |
8390 | PyObject * _arg3; | |
8391 | PyObject * _argo0 = 0; | |
8392 | PyObject * _obj1 = 0; | |
8393 | PyObject * _obj2 = 0; | |
8394 | PyObject * _obj3 = 0; | |
8395 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
8396 | ||
8397 | self = self; | |
8398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawRectangleList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8399 | return NULL; | |
8400 | if (_argo0) { | |
8401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p."); | |
8404 | return NULL; | |
8405 | } | |
8406 | } | |
8407 | { | |
8408 | _arg1 = _obj1; | |
8409 | } | |
8410 | { | |
8411 | _arg2 = _obj2; | |
8412 | } | |
8413 | { | |
8414 | _arg3 = _obj3; | |
8415 | } | |
8416 | { | |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | _result = (PyObject *)wxDC__DrawRectangleList(_arg0,_arg1,_arg2,_arg3); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) return NULL; | |
8422 | }{ | |
8423 | _resultobj = _result; | |
8424 | } | |
8425 | return _resultobj; | |
8426 | } | |
8427 | ||
8428 | static PyObject * wxDC__DrawEllipseList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { | |
8429 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
8430 | } | |
8431 | static PyObject *_wrap_wxDC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8432 | PyObject * _resultobj; | |
8433 | PyObject * _result; | |
8434 | wxDC * _arg0; | |
8435 | PyObject * _arg1; | |
8436 | PyObject * _arg2; | |
8437 | PyObject * _arg3; | |
8438 | PyObject * _argo0 = 0; | |
8439 | PyObject * _obj1 = 0; | |
8440 | PyObject * _obj2 = 0; | |
8441 | PyObject * _obj3 = 0; | |
8442 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
8443 | ||
8444 | self = self; | |
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawEllipseList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8446 | return NULL; | |
8447 | if (_argo0) { | |
8448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p."); | |
8451 | return NULL; | |
8452 | } | |
8453 | } | |
8454 | { | |
8455 | _arg1 = _obj1; | |
8456 | } | |
8457 | { | |
8458 | _arg2 = _obj2; | |
8459 | } | |
8460 | { | |
8461 | _arg3 = _obj3; | |
8462 | } | |
8463 | { | |
8464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8465 | _result = (PyObject *)wxDC__DrawEllipseList(_arg0,_arg1,_arg2,_arg3); | |
8466 | ||
8467 | wxPyEndAllowThreads(__tstate); | |
8468 | if (PyErr_Occurred()) return NULL; | |
8469 | }{ | |
8470 | _resultobj = _result; | |
8471 | } | |
8472 | return _resultobj; | |
8473 | } | |
8474 | ||
8475 | static PyObject * wxDC__DrawPolygonList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { | |
8476 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
8477 | } | |
8478 | static PyObject *_wrap_wxDC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8479 | PyObject * _resultobj; | |
8480 | PyObject * _result; | |
8481 | wxDC * _arg0; | |
8482 | PyObject * _arg1; | |
8483 | PyObject * _arg2; | |
8484 | PyObject * _arg3; | |
8485 | PyObject * _argo0 = 0; | |
8486 | PyObject * _obj1 = 0; | |
8487 | PyObject * _obj2 = 0; | |
8488 | PyObject * _obj3 = 0; | |
8489 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
8490 | ||
8491 | self = self; | |
8492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPolygonList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8493 | return NULL; | |
8494 | if (_argo0) { | |
8495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p."); | |
8498 | return NULL; | |
8499 | } | |
8500 | } | |
8501 | { | |
8502 | _arg1 = _obj1; | |
8503 | } | |
8504 | { | |
8505 | _arg2 = _obj2; | |
8506 | } | |
8507 | { | |
8508 | _arg3 = _obj3; | |
8509 | } | |
8510 | { | |
8511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8512 | _result = (PyObject *)wxDC__DrawPolygonList(_arg0,_arg1,_arg2,_arg3); | |
8513 | ||
8514 | wxPyEndAllowThreads(__tstate); | |
8515 | if (PyErr_Occurred()) return NULL; | |
8516 | }{ | |
8517 | _resultobj = _result; | |
8518 | } | |
8519 | return _resultobj; | |
8520 | } | |
8521 | ||
8522 | static PyObject * wxDC__DrawTextList(wxDC *self,PyObject * textList,PyObject * pyPoints,PyObject * foregroundList,PyObject * backgroundList) { | |
8523 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
8524 | } | |
8525 | static PyObject *_wrap_wxDC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8526 | PyObject * _resultobj; | |
8527 | PyObject * _result; | |
8528 | wxDC * _arg0; | |
8529 | PyObject * _arg1; | |
8530 | PyObject * _arg2; | |
8531 | PyObject * _arg3; | |
8532 | PyObject * _arg4; | |
8533 | PyObject * _argo0 = 0; | |
8534 | PyObject * _obj1 = 0; | |
8535 | PyObject * _obj2 = 0; | |
8536 | PyObject * _obj3 = 0; | |
8537 | PyObject * _obj4 = 0; | |
8538 | char *_kwnames[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL }; | |
8539 | ||
8540 | self = self; | |
8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOO:wxDC__DrawTextList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4)) | |
8542 | return NULL; | |
8543 | if (_argo0) { | |
8544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p."); | |
8547 | return NULL; | |
8548 | } | |
8549 | } | |
8550 | { | |
8551 | _arg1 = _obj1; | |
8552 | } | |
8553 | { | |
8554 | _arg2 = _obj2; | |
8555 | } | |
8556 | { | |
8557 | _arg3 = _obj3; | |
8558 | } | |
8559 | { | |
8560 | _arg4 = _obj4; | |
8561 | } | |
8562 | { | |
8563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8564 | _result = (PyObject *)wxDC__DrawTextList(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8565 | ||
8566 | wxPyEndAllowThreads(__tstate); | |
8567 | if (PyErr_Occurred()) return NULL; | |
8568 | }{ | |
8569 | _resultobj = _result; | |
8570 | } | |
8571 | return _resultobj; | |
8572 | } | |
8573 | ||
8574 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
8575 | wxMemoryDC *src; | |
8576 | wxDC *dest; | |
8577 | src = (wxMemoryDC *) ptr; | |
8578 | dest = (wxDC *) src; | |
8579 | return (void *) dest; | |
8580 | } | |
8581 | ||
8582 | static void *SwigwxMemoryDCTowxObject(void *ptr) { | |
8583 | wxMemoryDC *src; | |
8584 | wxObject *dest; | |
8585 | src = (wxMemoryDC *) ptr; | |
8586 | dest = (wxObject *) src; | |
8587 | return (void *) dest; | |
8588 | } | |
8589 | ||
8590 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
8591 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8592 | PyObject * _resultobj; | |
8593 | wxMemoryDC * _result; | |
8594 | char *_kwnames[] = { NULL }; | |
8595 | char _ptemp[128]; | |
8596 | ||
8597 | self = self; | |
8598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) | |
8599 | return NULL; | |
8600 | { | |
8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8602 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
8603 | ||
8604 | wxPyEndAllowThreads(__tstate); | |
8605 | if (PyErr_Occurred()) return NULL; | |
8606 | } if (_result) { | |
8607 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
8608 | _resultobj = Py_BuildValue("s",_ptemp); | |
8609 | } else { | |
8610 | Py_INCREF(Py_None); | |
8611 | _resultobj = Py_None; | |
8612 | } | |
8613 | return _resultobj; | |
8614 | } | |
8615 | ||
8616 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
8617 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8618 | PyObject * _resultobj; | |
8619 | wxMemoryDC * _arg0; | |
8620 | wxBitmap * _arg1; | |
8621 | PyObject * _argo0 = 0; | |
8622 | PyObject * _argo1 = 0; | |
8623 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8624 | ||
8625 | self = self; | |
8626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) | |
8627 | return NULL; | |
8628 | if (_argo0) { | |
8629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
8632 | return NULL; | |
8633 | } | |
8634 | } | |
8635 | if (_argo1) { | |
8636 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
8638 | return NULL; | |
8639 | } | |
8640 | } | |
8641 | { | |
8642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8643 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
8644 | ||
8645 | wxPyEndAllowThreads(__tstate); | |
8646 | if (PyErr_Occurred()) return NULL; | |
8647 | } Py_INCREF(Py_None); | |
8648 | _resultobj = Py_None; | |
8649 | return _resultobj; | |
8650 | } | |
8651 | ||
8652 | static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) { | |
8653 | wxBufferedDC *src; | |
8654 | wxMemoryDC *dest; | |
8655 | src = (wxBufferedDC *) ptr; | |
8656 | dest = (wxMemoryDC *) src; | |
8657 | return (void *) dest; | |
8658 | } | |
8659 | ||
8660 | static void *SwigwxBufferedDCTowxDC(void *ptr) { | |
8661 | wxBufferedDC *src; | |
8662 | wxDC *dest; | |
8663 | src = (wxBufferedDC *) ptr; | |
8664 | dest = (wxDC *) src; | |
8665 | return (void *) dest; | |
8666 | } | |
8667 | ||
8668 | static void *SwigwxBufferedDCTowxObject(void *ptr) { | |
8669 | wxBufferedDC *src; | |
8670 | wxObject *dest; | |
8671 | src = (wxBufferedDC *) ptr; | |
8672 | dest = (wxObject *) src; | |
8673 | return (void *) dest; | |
8674 | } | |
8675 | ||
8676 | #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
8677 | static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8678 | PyObject * _resultobj; | |
8679 | wxBufferedDC * _result; | |
8680 | wxDC * _arg0; | |
8681 | wxBitmap * _arg1; | |
8682 | PyObject * _argo0 = 0; | |
8683 | PyObject * _argo1 = 0; | |
8684 | char *_kwnames[] = { "dc","buffer", NULL }; | |
8685 | char _ptemp[128]; | |
8686 | ||
8687 | self = self; | |
8688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1)) | |
8689 | return NULL; | |
8690 | if (_argo0) { | |
8691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p."); | |
8694 | return NULL; | |
8695 | } | |
8696 | } | |
8697 | if (_argo1) { | |
8698 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p."); | |
8700 | return NULL; | |
8701 | } | |
8702 | } | |
8703 | { | |
8704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8705 | _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1); | |
8706 | ||
8707 | wxPyEndAllowThreads(__tstate); | |
8708 | if (PyErr_Occurred()) return NULL; | |
8709 | } if (_result) { | |
8710 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
8711 | _resultobj = Py_BuildValue("s",_ptemp); | |
8712 | } else { | |
8713 | Py_INCREF(Py_None); | |
8714 | _resultobj = Py_None; | |
8715 | } | |
8716 | return _resultobj; | |
8717 | } | |
8718 | ||
8719 | #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
8720 | static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8721 | PyObject * _resultobj; | |
8722 | wxBufferedDC * _result; | |
8723 | wxDC * _arg0; | |
8724 | wxSize * _arg1; | |
8725 | PyObject * _argo0 = 0; | |
8726 | wxSize temp; | |
8727 | PyObject * _obj1 = 0; | |
8728 | char *_kwnames[] = { "dc","area", NULL }; | |
8729 | char _ptemp[128]; | |
8730 | ||
8731 | self = self; | |
8732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1)) | |
8733 | return NULL; | |
8734 | if (_argo0) { | |
8735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p."); | |
8738 | return NULL; | |
8739 | } | |
8740 | } | |
8741 | { | |
8742 | _arg1 = &temp; | |
8743 | if (! wxSize_helper(_obj1, &_arg1)) | |
8744 | return NULL; | |
8745 | } | |
8746 | { | |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8748 | _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1); | |
8749 | ||
8750 | wxPyEndAllowThreads(__tstate); | |
8751 | if (PyErr_Occurred()) return NULL; | |
8752 | } if (_result) { | |
8753 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
8754 | _resultobj = Py_BuildValue("s",_ptemp); | |
8755 | } else { | |
8756 | Py_INCREF(Py_None); | |
8757 | _resultobj = Py_None; | |
8758 | } | |
8759 | return _resultobj; | |
8760 | } | |
8761 | ||
8762 | #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask()) | |
8763 | static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject * _resultobj; | |
8765 | wxBufferedDC * _arg0; | |
8766 | PyObject * _argo0 = 0; | |
8767 | char *_kwnames[] = { "self", NULL }; | |
8768 | ||
8769 | self = self; | |
8770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0)) | |
8771 | return NULL; | |
8772 | if (_argo0) { | |
8773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) { | |
8775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p."); | |
8776 | return NULL; | |
8777 | } | |
8778 | } | |
8779 | { | |
8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8781 | wxBufferedDC_UnMask(_arg0); | |
8782 | ||
8783 | wxPyEndAllowThreads(__tstate); | |
8784 | if (PyErr_Occurred()) return NULL; | |
8785 | } Py_INCREF(Py_None); | |
8786 | _resultobj = Py_None; | |
8787 | return _resultobj; | |
8788 | } | |
8789 | ||
8790 | static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) { | |
8791 | wxBufferedPaintDC *src; | |
8792 | wxBufferedDC *dest; | |
8793 | src = (wxBufferedPaintDC *) ptr; | |
8794 | dest = (wxBufferedDC *) src; | |
8795 | return (void *) dest; | |
8796 | } | |
8797 | ||
8798 | static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) { | |
8799 | wxBufferedPaintDC *src; | |
8800 | wxMemoryDC *dest; | |
8801 | src = (wxBufferedPaintDC *) ptr; | |
8802 | dest = (wxMemoryDC *) src; | |
8803 | return (void *) dest; | |
8804 | } | |
8805 | ||
8806 | static void *SwigwxBufferedPaintDCTowxDC(void *ptr) { | |
8807 | wxBufferedPaintDC *src; | |
8808 | wxDC *dest; | |
8809 | src = (wxBufferedPaintDC *) ptr; | |
8810 | dest = (wxDC *) src; | |
8811 | return (void *) dest; | |
8812 | } | |
8813 | ||
8814 | static void *SwigwxBufferedPaintDCTowxObject(void *ptr) { | |
8815 | wxBufferedPaintDC *src; | |
8816 | wxObject *dest; | |
8817 | src = (wxBufferedPaintDC *) ptr; | |
8818 | dest = (wxObject *) src; | |
8819 | return (void *) dest; | |
8820 | } | |
8821 | ||
8822 | #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1)) | |
8823 | static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8824 | PyObject * _resultobj; | |
8825 | wxBufferedPaintDC * _result; | |
8826 | wxWindow * _arg0; | |
8827 | wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap; | |
8828 | PyObject * _argo0 = 0; | |
8829 | PyObject * _argo1 = 0; | |
8830 | char *_kwnames[] = { "window","buffer", NULL }; | |
8831 | char _ptemp[128]; | |
8832 | ||
8833 | self = self; | |
8834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1)) | |
8835 | return NULL; | |
8836 | if (_argo0) { | |
8837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p."); | |
8840 | return NULL; | |
8841 | } | |
8842 | } | |
8843 | if (_argo1) { | |
8844 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p."); | |
8846 | return NULL; | |
8847 | } | |
8848 | } | |
8849 | { | |
8850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8851 | _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1); | |
8852 | ||
8853 | wxPyEndAllowThreads(__tstate); | |
8854 | if (PyErr_Occurred()) return NULL; | |
8855 | } if (_result) { | |
8856 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p"); | |
8857 | _resultobj = Py_BuildValue("s",_ptemp); | |
8858 | } else { | |
8859 | Py_INCREF(Py_None); | |
8860 | _resultobj = Py_None; | |
8861 | } | |
8862 | return _resultobj; | |
8863 | } | |
8864 | ||
8865 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
8866 | wxScreenDC *src; | |
8867 | wxDC *dest; | |
8868 | src = (wxScreenDC *) ptr; | |
8869 | dest = (wxDC *) src; | |
8870 | return (void *) dest; | |
8871 | } | |
8872 | ||
8873 | static void *SwigwxScreenDCTowxObject(void *ptr) { | |
8874 | wxScreenDC *src; | |
8875 | wxObject *dest; | |
8876 | src = (wxScreenDC *) ptr; | |
8877 | dest = (wxObject *) src; | |
8878 | return (void *) dest; | |
8879 | } | |
8880 | ||
8881 | #define new_wxScreenDC() (new wxScreenDC()) | |
8882 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8883 | PyObject * _resultobj; | |
8884 | wxScreenDC * _result; | |
8885 | char *_kwnames[] = { NULL }; | |
8886 | char _ptemp[128]; | |
8887 | ||
8888 | self = self; | |
8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) | |
8890 | return NULL; | |
8891 | { | |
8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8893 | _result = (wxScreenDC *)new_wxScreenDC(); | |
8894 | ||
8895 | wxPyEndAllowThreads(__tstate); | |
8896 | if (PyErr_Occurred()) return NULL; | |
8897 | } if (_result) { | |
8898 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
8899 | _resultobj = Py_BuildValue("s",_ptemp); | |
8900 | } else { | |
8901 | Py_INCREF(Py_None); | |
8902 | _resultobj = Py_None; | |
8903 | } | |
8904 | return _resultobj; | |
8905 | } | |
8906 | ||
8907 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
8908 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8909 | PyObject * _resultobj; | |
8910 | bool _result; | |
8911 | wxScreenDC * _arg0; | |
8912 | wxWindow * _arg1; | |
8913 | PyObject * _argo0 = 0; | |
8914 | PyObject * _argo1 = 0; | |
8915 | char *_kwnames[] = { "self","window", NULL }; | |
8916 | ||
8917 | self = self; | |
8918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) | |
8919 | return NULL; | |
8920 | if (_argo0) { | |
8921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); | |
8924 | return NULL; | |
8925 | } | |
8926 | } | |
8927 | if (_argo1) { | |
8928 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8929 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); | |
8931 | return NULL; | |
8932 | } | |
8933 | } | |
8934 | { | |
8935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8936 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); | |
8937 | ||
8938 | wxPyEndAllowThreads(__tstate); | |
8939 | if (PyErr_Occurred()) return NULL; | |
8940 | } _resultobj = Py_BuildValue("i",_result); | |
8941 | return _resultobj; | |
8942 | } | |
8943 | ||
8944 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
8945 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8946 | PyObject * _resultobj; | |
8947 | bool _result; | |
8948 | wxScreenDC * _arg0; | |
8949 | wxRect * _arg1 = (wxRect *) NULL; | |
8950 | PyObject * _argo0 = 0; | |
8951 | wxRect temp; | |
8952 | PyObject * _obj1 = 0; | |
8953 | char *_kwnames[] = { "self","rect", NULL }; | |
8954 | ||
8955 | self = self; | |
8956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) | |
8957 | return NULL; | |
8958 | if (_argo0) { | |
8959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
8962 | return NULL; | |
8963 | } | |
8964 | } | |
8965 | if (_obj1) | |
8966 | { | |
8967 | _arg1 = &temp; | |
8968 | if (! wxRect_helper(_obj1, &_arg1)) | |
8969 | return NULL; | |
8970 | } | |
8971 | { | |
8972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8973 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); | |
8974 | ||
8975 | wxPyEndAllowThreads(__tstate); | |
8976 | if (PyErr_Occurred()) return NULL; | |
8977 | } _resultobj = Py_BuildValue("i",_result); | |
8978 | return _resultobj; | |
8979 | } | |
8980 | ||
8981 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
8982 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject * _resultobj; | |
8984 | bool _result; | |
8985 | wxScreenDC * _arg0; | |
8986 | PyObject * _argo0 = 0; | |
8987 | char *_kwnames[] = { "self", NULL }; | |
8988 | ||
8989 | self = self; | |
8990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) | |
8991 | return NULL; | |
8992 | if (_argo0) { | |
8993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
8996 | return NULL; | |
8997 | } | |
8998 | } | |
8999 | { | |
9000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9001 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
9002 | ||
9003 | wxPyEndAllowThreads(__tstate); | |
9004 | if (PyErr_Occurred()) return NULL; | |
9005 | } _resultobj = Py_BuildValue("i",_result); | |
9006 | return _resultobj; | |
9007 | } | |
9008 | ||
9009 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9010 | wxClientDC *src; | |
9011 | wxDC *dest; | |
9012 | src = (wxClientDC *) ptr; | |
9013 | dest = (wxDC *) src; | |
9014 | return (void *) dest; | |
9015 | } | |
9016 | ||
9017 | static void *SwigwxClientDCTowxObject(void *ptr) { | |
9018 | wxClientDC *src; | |
9019 | wxObject *dest; | |
9020 | src = (wxClientDC *) ptr; | |
9021 | dest = (wxObject *) src; | |
9022 | return (void *) dest; | |
9023 | } | |
9024 | ||
9025 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
9026 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9027 | PyObject * _resultobj; | |
9028 | wxClientDC * _result; | |
9029 | wxWindow * _arg0; | |
9030 | PyObject * _argo0 = 0; | |
9031 | char *_kwnames[] = { "win", NULL }; | |
9032 | char _ptemp[128]; | |
9033 | ||
9034 | self = self; | |
9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) | |
9036 | return NULL; | |
9037 | if (_argo0) { | |
9038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
9041 | return NULL; | |
9042 | } | |
9043 | } | |
9044 | { | |
9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9046 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
9047 | ||
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) return NULL; | |
9050 | } if (_result) { | |
9051 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9052 | _resultobj = Py_BuildValue("s",_ptemp); | |
9053 | } else { | |
9054 | Py_INCREF(Py_None); | |
9055 | _resultobj = Py_None; | |
9056 | } | |
9057 | return _resultobj; | |
9058 | } | |
9059 | ||
9060 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
9061 | wxPaintDC *src; | |
9062 | wxDC *dest; | |
9063 | src = (wxPaintDC *) ptr; | |
9064 | dest = (wxDC *) src; | |
9065 | return (void *) dest; | |
9066 | } | |
9067 | ||
9068 | static void *SwigwxPaintDCTowxObject(void *ptr) { | |
9069 | wxPaintDC *src; | |
9070 | wxObject *dest; | |
9071 | src = (wxPaintDC *) ptr; | |
9072 | dest = (wxObject *) src; | |
9073 | return (void *) dest; | |
9074 | } | |
9075 | ||
9076 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
9077 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9078 | PyObject * _resultobj; | |
9079 | wxPaintDC * _result; | |
9080 | wxWindow * _arg0; | |
9081 | PyObject * _argo0 = 0; | |
9082 | char *_kwnames[] = { "win", NULL }; | |
9083 | char _ptemp[128]; | |
9084 | ||
9085 | self = self; | |
9086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) | |
9087 | return NULL; | |
9088 | if (_argo0) { | |
9089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
9092 | return NULL; | |
9093 | } | |
9094 | } | |
9095 | { | |
9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9097 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
9098 | ||
9099 | wxPyEndAllowThreads(__tstate); | |
9100 | if (PyErr_Occurred()) return NULL; | |
9101 | } if (_result) { | |
9102 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
9103 | _resultobj = Py_BuildValue("s",_ptemp); | |
9104 | } else { | |
9105 | Py_INCREF(Py_None); | |
9106 | _resultobj = Py_None; | |
9107 | } | |
9108 | return _resultobj; | |
9109 | } | |
9110 | ||
9111 | static void *SwigwxWindowDCTowxDC(void *ptr) { | |
9112 | wxWindowDC *src; | |
9113 | wxDC *dest; | |
9114 | src = (wxWindowDC *) ptr; | |
9115 | dest = (wxDC *) src; | |
9116 | return (void *) dest; | |
9117 | } | |
9118 | ||
9119 | static void *SwigwxWindowDCTowxObject(void *ptr) { | |
9120 | wxWindowDC *src; | |
9121 | wxObject *dest; | |
9122 | src = (wxWindowDC *) ptr; | |
9123 | dest = (wxObject *) src; | |
9124 | return (void *) dest; | |
9125 | } | |
9126 | ||
9127 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
9128 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject * _resultobj; | |
9130 | wxWindowDC * _result; | |
9131 | wxWindow * _arg0; | |
9132 | PyObject * _argo0 = 0; | |
9133 | char *_kwnames[] = { "win", NULL }; | |
9134 | char _ptemp[128]; | |
9135 | ||
9136 | self = self; | |
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) | |
9138 | return NULL; | |
9139 | if (_argo0) { | |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
9143 | return NULL; | |
9144 | } | |
9145 | } | |
9146 | { | |
9147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9148 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
9149 | ||
9150 | wxPyEndAllowThreads(__tstate); | |
9151 | if (PyErr_Occurred()) return NULL; | |
9152 | } if (_result) { | |
9153 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
9154 | _resultobj = Py_BuildValue("s",_ptemp); | |
9155 | } else { | |
9156 | Py_INCREF(Py_None); | |
9157 | _resultobj = Py_None; | |
9158 | } | |
9159 | return _resultobj; | |
9160 | } | |
9161 | ||
9162 | static void *SwigwxMirrorDCTowxDC(void *ptr) { | |
9163 | wxMirrorDC *src; | |
9164 | wxDC *dest; | |
9165 | src = (wxMirrorDC *) ptr; | |
9166 | dest = (wxDC *) src; | |
9167 | return (void *) dest; | |
9168 | } | |
9169 | ||
9170 | static void *SwigwxMirrorDCTowxObject(void *ptr) { | |
9171 | wxMirrorDC *src; | |
9172 | wxObject *dest; | |
9173 | src = (wxMirrorDC *) ptr; | |
9174 | dest = (wxObject *) src; | |
9175 | return (void *) dest; | |
9176 | } | |
9177 | ||
9178 | #define new_wxMirrorDC(_swigarg0,_swigarg1) (new wxMirrorDC(_swigarg0,_swigarg1)) | |
9179 | static PyObject *_wrap_new_wxMirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9180 | PyObject * _resultobj; | |
9181 | wxMirrorDC * _result; | |
9182 | wxDC * _arg0; | |
9183 | bool _arg1; | |
9184 | PyObject * _argo0 = 0; | |
9185 | int tempbool1; | |
9186 | char *_kwnames[] = { "dc","mirror", NULL }; | |
9187 | char _ptemp[128]; | |
9188 | ||
9189 | self = self; | |
9190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxMirrorDC",_kwnames,&_argo0,&tempbool1)) | |
9191 | return NULL; | |
9192 | if (_argo0) { | |
9193 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMirrorDC. Expected _wxDC_p."); | |
9195 | return NULL; | |
9196 | } | |
9197 | } | |
9198 | _arg1 = (bool ) tempbool1; | |
9199 | { | |
9200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9201 | _result = (wxMirrorDC *)new_wxMirrorDC(*_arg0,_arg1); | |
9202 | ||
9203 | wxPyEndAllowThreads(__tstate); | |
9204 | if (PyErr_Occurred()) return NULL; | |
9205 | } if (_result) { | |
9206 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMirrorDC_p"); | |
9207 | _resultobj = Py_BuildValue("s",_ptemp); | |
9208 | } else { | |
9209 | Py_INCREF(Py_None); | |
9210 | _resultobj = Py_None; | |
9211 | } | |
9212 | return _resultobj; | |
9213 | } | |
9214 | ||
9215 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { | |
9216 | wxPalette *src; | |
9217 | wxGDIObject *dest; | |
9218 | src = (wxPalette *) ptr; | |
9219 | dest = (wxGDIObject *) src; | |
9220 | return (void *) dest; | |
9221 | } | |
9222 | ||
9223 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9224 | wxPalette *src; | |
9225 | wxObject *dest; | |
9226 | src = (wxPalette *) ptr; | |
9227 | dest = (wxObject *) src; | |
9228 | return (void *) dest; | |
9229 | } | |
9230 | ||
9231 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9232 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject * _resultobj; | |
9234 | wxPalette * _result; | |
9235 | int _arg0; | |
9236 | byte * _arg1; | |
9237 | byte * _arg2; | |
9238 | byte * _arg3; | |
9239 | PyObject * _obj1 = 0; | |
9240 | PyObject * _obj2 = 0; | |
9241 | PyObject * _obj3 = 0; | |
9242 | char *_kwnames[] = { "choices","choices","choices", NULL }; | |
9243 | char _ptemp[128]; | |
9244 | ||
9245 | self = self; | |
9246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) | |
9247 | return NULL; | |
9248 | { | |
9249 | _arg1 = byte_LIST_helper(_obj1); | |
9250 | if (_arg1 == NULL) { | |
9251 | return NULL; | |
9252 | } | |
9253 | } | |
9254 | { | |
9255 | _arg2 = byte_LIST_helper(_obj2); | |
9256 | if (_arg2 == NULL) { | |
9257 | return NULL; | |
9258 | } | |
9259 | } | |
9260 | if (_obj3) | |
9261 | { | |
9262 | _arg3 = byte_LIST_helper(_obj3); | |
9263 | if (_arg3 == NULL) { | |
9264 | return NULL; | |
9265 | } | |
9266 | } | |
9267 | { | |
9268 | if (_obj1) { | |
9269 | _arg0 = PyList_Size(_obj1); | |
9270 | } | |
9271 | else { | |
9272 | _arg0 = 0; | |
9273 | } | |
9274 | } | |
9275 | { | |
9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9277 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
9278 | ||
9279 | wxPyEndAllowThreads(__tstate); | |
9280 | if (PyErr_Occurred()) return NULL; | |
9281 | } if (_result) { | |
9282 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9283 | _resultobj = Py_BuildValue("s",_ptemp); | |
9284 | } else { | |
9285 | Py_INCREF(Py_None); | |
9286 | _resultobj = Py_None; | |
9287 | } | |
9288 | { | |
9289 | delete [] _arg1; | |
9290 | } | |
9291 | { | |
9292 | delete [] _arg2; | |
9293 | } | |
9294 | { | |
9295 | delete [] _arg3; | |
9296 | } | |
9297 | return _resultobj; | |
9298 | } | |
9299 | ||
9300 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
9301 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9302 | PyObject * _resultobj; | |
9303 | wxPalette * _arg0; | |
9304 | PyObject * _argo0 = 0; | |
9305 | char *_kwnames[] = { "self", NULL }; | |
9306 | ||
9307 | self = self; | |
9308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) | |
9309 | return NULL; | |
9310 | if (_argo0) { | |
9311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
9314 | return NULL; | |
9315 | } | |
9316 | } | |
9317 | { | |
9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9319 | delete_wxPalette(_arg0); | |
9320 | ||
9321 | wxPyEndAllowThreads(__tstate); | |
9322 | if (PyErr_Occurred()) return NULL; | |
9323 | } Py_INCREF(Py_None); | |
9324 | _resultobj = Py_None; | |
9325 | return _resultobj; | |
9326 | } | |
9327 | ||
9328 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
9329 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9330 | PyObject * _resultobj; | |
9331 | int _result; | |
9332 | wxPalette * _arg0; | |
9333 | byte _arg1; | |
9334 | byte _arg2; | |
9335 | byte _arg3; | |
9336 | PyObject * _argo0 = 0; | |
9337 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
9338 | ||
9339 | self = self; | |
9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
9341 | return NULL; | |
9342 | if (_argo0) { | |
9343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
9346 | return NULL; | |
9347 | } | |
9348 | } | |
9349 | { | |
9350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9351 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
9352 | ||
9353 | wxPyEndAllowThreads(__tstate); | |
9354 | if (PyErr_Occurred()) return NULL; | |
9355 | } _resultobj = Py_BuildValue("i",_result); | |
9356 | return _resultobj; | |
9357 | } | |
9358 | ||
9359 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9360 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9361 | PyObject * _resultobj; | |
9362 | bool _result; | |
9363 | wxPalette * _arg0; | |
9364 | int _arg1; | |
9365 | byte * _arg2; | |
9366 | int temp; | |
9367 | byte * _arg3; | |
9368 | int temp0; | |
9369 | byte * _arg4; | |
9370 | int temp1; | |
9371 | PyObject * _argo0 = 0; | |
9372 | char *_kwnames[] = { "self","pixel", NULL }; | |
9373 | ||
9374 | self = self; | |
9375 | { | |
9376 | _arg2 = (byte*)&temp; | |
9377 | } | |
9378 | { | |
9379 | _arg3 = (byte*)&temp0; | |
9380 | } | |
9381 | { | |
9382 | _arg4 = (byte*)&temp1; | |
9383 | } | |
9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
9385 | return NULL; | |
9386 | if (_argo0) { | |
9387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
9390 | return NULL; | |
9391 | } | |
9392 | } | |
9393 | { | |
9394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9395 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9396 | ||
9397 | wxPyEndAllowThreads(__tstate); | |
9398 | if (PyErr_Occurred()) return NULL; | |
9399 | } _resultobj = Py_BuildValue("i",_result); | |
9400 | { | |
9401 | PyObject *o; | |
9402 | o = PyInt_FromLong((long) (*_arg2)); | |
9403 | _resultobj = t_output_helper(_resultobj, o); | |
9404 | } | |
9405 | { | |
9406 | PyObject *o; | |
9407 | o = PyInt_FromLong((long) (*_arg3)); | |
9408 | _resultobj = t_output_helper(_resultobj, o); | |
9409 | } | |
9410 | { | |
9411 | PyObject *o; | |
9412 | o = PyInt_FromLong((long) (*_arg4)); | |
9413 | _resultobj = t_output_helper(_resultobj, o); | |
9414 | } | |
9415 | return _resultobj; | |
9416 | } | |
9417 | ||
9418 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
9419 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9420 | PyObject * _resultobj; | |
9421 | bool _result; | |
9422 | wxPalette * _arg0; | |
9423 | PyObject * _argo0 = 0; | |
9424 | char *_kwnames[] = { "self", NULL }; | |
9425 | ||
9426 | self = self; | |
9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) | |
9428 | return NULL; | |
9429 | if (_argo0) { | |
9430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
9432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
9433 | return NULL; | |
9434 | } | |
9435 | } | |
9436 | { | |
9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9438 | _result = (bool )wxPalette_Ok(_arg0); | |
9439 | ||
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) return NULL; | |
9442 | } _resultobj = Py_BuildValue("i",_result); | |
9443 | return _resultobj; | |
9444 | } | |
9445 | ||
9446 | static void *SwigwxImageListTowxObject(void *ptr) { | |
9447 | wxImageList *src; | |
9448 | wxObject *dest; | |
9449 | src = (wxImageList *) ptr; | |
9450 | dest = (wxObject *) src; | |
9451 | return (void *) dest; | |
9452 | } | |
9453 | ||
9454 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9455 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9456 | PyObject * _resultobj; | |
9457 | wxImageList * _result; | |
9458 | int _arg0; | |
9459 | int _arg1; | |
9460 | int _arg2 = (int ) TRUE; | |
9461 | int _arg3 = (int ) 1; | |
9462 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; | |
9463 | char _ptemp[128]; | |
9464 | ||
9465 | self = self; | |
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9467 | return NULL; | |
9468 | { | |
9469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9470 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
9471 | ||
9472 | wxPyEndAllowThreads(__tstate); | |
9473 | if (PyErr_Occurred()) return NULL; | |
9474 | } if (_result) { | |
9475 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
9476 | _resultobj = Py_BuildValue("s",_ptemp); | |
9477 | } else { | |
9478 | Py_INCREF(Py_None); | |
9479 | _resultobj = Py_None; | |
9480 | } | |
9481 | return _resultobj; | |
9482 | } | |
9483 | ||
9484 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
9485 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9486 | PyObject * _resultobj; | |
9487 | wxImageList * _arg0; | |
9488 | PyObject * _argo0 = 0; | |
9489 | char *_kwnames[] = { "self", NULL }; | |
9490 | ||
9491 | self = self; | |
9492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) | |
9493 | return NULL; | |
9494 | if (_argo0) { | |
9495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); | |
9498 | return NULL; | |
9499 | } | |
9500 | } | |
9501 | { | |
9502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9503 | delete_wxImageList(_arg0); | |
9504 | ||
9505 | wxPyEndAllowThreads(__tstate); | |
9506 | if (PyErr_Occurred()) return NULL; | |
9507 | } Py_INCREF(Py_None); | |
9508 | _resultobj = Py_None; | |
9509 | return _resultobj; | |
9510 | } | |
9511 | ||
9512 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
9513 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9514 | PyObject * _resultobj; | |
9515 | int _result; | |
9516 | wxImageList * _arg0; | |
9517 | wxBitmap * _arg1; | |
9518 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
9519 | PyObject * _argo0 = 0; | |
9520 | PyObject * _argo1 = 0; | |
9521 | PyObject * _argo2 = 0; | |
9522 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
9523 | ||
9524 | self = self; | |
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9526 | return NULL; | |
9527 | if (_argo0) { | |
9528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); | |
9531 | return NULL; | |
9532 | } | |
9533 | } | |
9534 | if (_argo1) { | |
9535 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); | |
9537 | return NULL; | |
9538 | } | |
9539 | } | |
9540 | if (_argo2) { | |
9541 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
9542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
9543 | return NULL; | |
9544 | } | |
9545 | } | |
9546 | { | |
9547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9548 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
9549 | ||
9550 | wxPyEndAllowThreads(__tstate); | |
9551 | if (PyErr_Occurred()) return NULL; | |
9552 | } _resultobj = Py_BuildValue("i",_result); | |
9553 | return _resultobj; | |
9554 | } | |
9555 | ||
9556 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
9557 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9558 | PyObject * _resultobj; | |
9559 | int _result; | |
9560 | wxImageList * _arg0; | |
9561 | wxBitmap * _arg1; | |
9562 | wxColour * _arg2; | |
9563 | PyObject * _argo0 = 0; | |
9564 | PyObject * _argo1 = 0; | |
9565 | wxColour temp; | |
9566 | PyObject * _obj2 = 0; | |
9567 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
9568 | ||
9569 | self = self; | |
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9571 | return NULL; | |
9572 | if (_argo0) { | |
9573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
9576 | return NULL; | |
9577 | } | |
9578 | } | |
9579 | if (_argo1) { | |
9580 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
9582 | return NULL; | |
9583 | } | |
9584 | } | |
9585 | { | |
9586 | _arg2 = &temp; | |
9587 | if (! wxColour_helper(_obj2, &_arg2)) | |
9588 | return NULL; | |
9589 | } | |
9590 | { | |
9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9592 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
9593 | ||
9594 | wxPyEndAllowThreads(__tstate); | |
9595 | if (PyErr_Occurred()) return NULL; | |
9596 | } _resultobj = Py_BuildValue("i",_result); | |
9597 | return _resultobj; | |
9598 | } | |
9599 | ||
9600 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
9601 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9602 | PyObject * _resultobj; | |
9603 | int _result; | |
9604 | wxImageList * _arg0; | |
9605 | wxIcon * _arg1; | |
9606 | PyObject * _argo0 = 0; | |
9607 | PyObject * _argo1 = 0; | |
9608 | char *_kwnames[] = { "self","icon", NULL }; | |
9609 | ||
9610 | self = self; | |
9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
9612 | return NULL; | |
9613 | if (_argo0) { | |
9614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
9617 | return NULL; | |
9618 | } | |
9619 | } | |
9620 | if (_argo1) { | |
9621 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
9622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
9623 | return NULL; | |
9624 | } | |
9625 | } | |
9626 | { | |
9627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9628 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
9629 | ||
9630 | wxPyEndAllowThreads(__tstate); | |
9631 | if (PyErr_Occurred()) return NULL; | |
9632 | } _resultobj = Py_BuildValue("i",_result); | |
9633 | return _resultobj; | |
9634 | } | |
9635 | ||
9636 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
9637 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9638 | PyObject * _resultobj; | |
9639 | bool _result; | |
9640 | wxImageList * _arg0; | |
9641 | int _arg1; | |
9642 | wxBitmap * _arg2; | |
9643 | PyObject * _argo0 = 0; | |
9644 | PyObject * _argo2 = 0; | |
9645 | char *_kwnames[] = { "self","index","bitmap", NULL }; | |
9646 | ||
9647 | self = self; | |
9648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) | |
9649 | return NULL; | |
9650 | if (_argo0) { | |
9651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); | |
9654 | return NULL; | |
9655 | } | |
9656 | } | |
9657 | if (_argo2) { | |
9658 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
9659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); | |
9660 | return NULL; | |
9661 | } | |
9662 | } | |
9663 | { | |
9664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9665 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); | |
9666 | ||
9667 | wxPyEndAllowThreads(__tstate); | |
9668 | if (PyErr_Occurred()) return NULL; | |
9669 | } _resultobj = Py_BuildValue("i",_result); | |
9670 | return _resultobj; | |
9671 | } | |
9672 | ||
9673 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
9674 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9675 | PyObject * _resultobj; | |
9676 | bool _result; | |
9677 | wxImageList * _arg0; | |
9678 | int _arg1; | |
9679 | wxDC * _arg2; | |
9680 | int _arg3; | |
9681 | int _arg4; | |
9682 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); | |
9683 | bool _arg6 = (bool ) FALSE; | |
9684 | PyObject * _argo0 = 0; | |
9685 | PyObject * _argo2 = 0; | |
9686 | int tempbool6 = (int) FALSE; | |
9687 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; | |
9688 | ||
9689 | self = self; | |
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
9691 | return NULL; | |
9692 | if (_argo0) { | |
9693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); | |
9696 | return NULL; | |
9697 | } | |
9698 | } | |
9699 | if (_argo2) { | |
9700 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
9701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); | |
9702 | return NULL; | |
9703 | } | |
9704 | } | |
9705 | _arg6 = (bool ) tempbool6; | |
9706 | { | |
9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9708 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
9709 | ||
9710 | wxPyEndAllowThreads(__tstate); | |
9711 | if (PyErr_Occurred()) return NULL; | |
9712 | } _resultobj = Py_BuildValue("i",_result); | |
9713 | return _resultobj; | |
9714 | } | |
9715 | ||
9716 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
9717 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject * _resultobj; | |
9719 | int _result; | |
9720 | wxImageList * _arg0; | |
9721 | PyObject * _argo0 = 0; | |
9722 | char *_kwnames[] = { "self", NULL }; | |
9723 | ||
9724 | self = self; | |
9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) | |
9726 | return NULL; | |
9727 | if (_argo0) { | |
9728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); | |
9731 | return NULL; | |
9732 | } | |
9733 | } | |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | _result = (int )wxImageList_GetImageCount(_arg0); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) return NULL; | |
9740 | } _resultobj = Py_BuildValue("i",_result); | |
9741 | return _resultobj; | |
9742 | } | |
9743 | ||
9744 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9745 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject * _resultobj; | |
9747 | bool _result; | |
9748 | wxImageList * _arg0; | |
9749 | int _arg1; | |
9750 | PyObject * _argo0 = 0; | |
9751 | char *_kwnames[] = { "self","index", NULL }; | |
9752 | ||
9753 | self = self; | |
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) | |
9755 | return NULL; | |
9756 | if (_argo0) { | |
9757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); | |
9760 | return NULL; | |
9761 | } | |
9762 | } | |
9763 | { | |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9765 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
9766 | ||
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) return NULL; | |
9769 | } _resultobj = Py_BuildValue("i",_result); | |
9770 | return _resultobj; | |
9771 | } | |
9772 | ||
9773 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
9774 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9775 | PyObject * _resultobj; | |
9776 | bool _result; | |
9777 | wxImageList * _arg0; | |
9778 | PyObject * _argo0 = 0; | |
9779 | char *_kwnames[] = { "self", NULL }; | |
9780 | ||
9781 | self = self; | |
9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) | |
9783 | return NULL; | |
9784 | if (_argo0) { | |
9785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); | |
9788 | return NULL; | |
9789 | } | |
9790 | } | |
9791 | { | |
9792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9793 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
9794 | ||
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) return NULL; | |
9797 | } _resultobj = Py_BuildValue("i",_result); | |
9798 | return _resultobj; | |
9799 | } | |
9800 | ||
9801 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) | |
9802 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9803 | PyObject * _resultobj; | |
9804 | wxImageList * _arg0; | |
9805 | int _arg1; | |
9806 | int * _arg2; | |
9807 | int temp; | |
9808 | int * _arg3; | |
9809 | int temp0; | |
9810 | PyObject * _argo0 = 0; | |
9811 | char *_kwnames[] = { "self","index", NULL }; | |
9812 | ||
9813 | self = self; | |
9814 | { | |
9815 | _arg2 = &temp; | |
9816 | } | |
9817 | { | |
9818 | _arg3 = &temp0; | |
9819 | } | |
9820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
9821 | return NULL; | |
9822 | if (_argo0) { | |
9823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
9826 | return NULL; | |
9827 | } | |
9828 | } | |
9829 | { | |
9830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9831 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
9832 | ||
9833 | wxPyEndAllowThreads(__tstate); | |
9834 | if (PyErr_Occurred()) return NULL; | |
9835 | } Py_INCREF(Py_None); | |
9836 | _resultobj = Py_None; | |
9837 | { | |
9838 | PyObject *o; | |
9839 | o = PyInt_FromLong((long) (*_arg2)); | |
9840 | _resultobj = t_output_helper(_resultobj, o); | |
9841 | } | |
9842 | { | |
9843 | PyObject *o; | |
9844 | o = PyInt_FromLong((long) (*_arg3)); | |
9845 | _resultobj = t_output_helper(_resultobj, o); | |
9846 | } | |
9847 | return _resultobj; | |
9848 | } | |
9849 | ||
9850 | static void *SwigwxRegionTowxGDIObject(void *ptr) { | |
9851 | wxRegion *src; | |
9852 | wxGDIObject *dest; | |
9853 | src = (wxRegion *) ptr; | |
9854 | dest = (wxGDIObject *) src; | |
9855 | return (void *) dest; | |
9856 | } | |
9857 | ||
9858 | static void *SwigwxRegionTowxObject(void *ptr) { | |
9859 | wxRegion *src; | |
9860 | wxObject *dest; | |
9861 | src = (wxRegion *) ptr; | |
9862 | dest = (wxObject *) src; | |
9863 | return (void *) dest; | |
9864 | } | |
9865 | ||
9866 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9867 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9868 | PyObject * _resultobj; | |
9869 | wxRegion * _result; | |
9870 | wxCoord _arg0 = (wxCoord ) 0; | |
9871 | wxCoord _arg1 = (wxCoord ) 0; | |
9872 | wxCoord _arg2 = (wxCoord ) 0; | |
9873 | wxCoord _arg3 = (wxCoord ) 0; | |
9874 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
9875 | char _ptemp[128]; | |
9876 | ||
9877 | self = self; | |
9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9879 | return NULL; | |
9880 | { | |
9881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9882 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
9883 | ||
9884 | wxPyEndAllowThreads(__tstate); | |
9885 | if (PyErr_Occurred()) return NULL; | |
9886 | } if (_result) { | |
9887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
9888 | _resultobj = Py_BuildValue("s",_ptemp); | |
9889 | } else { | |
9890 | Py_INCREF(Py_None); | |
9891 | _resultobj = Py_None; | |
9892 | } | |
9893 | return _resultobj; | |
9894 | } | |
9895 | ||
9896 | #define new_wxRegionFromBitmap(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2)) | |
9897 | static PyObject *_wrap_new_wxRegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9898 | PyObject * _resultobj; | |
9899 | wxRegion * _result; | |
9900 | wxBitmap * _arg0; | |
9901 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
9902 | int _arg2 = (int ) 0; | |
9903 | PyObject * _argo0 = 0; | |
9904 | wxColour temp; | |
9905 | PyObject * _obj1 = 0; | |
9906 | char *_kwnames[] = { "bmp","transColour","tolerance", NULL }; | |
9907 | char _ptemp[128]; | |
9908 | ||
9909 | self = self; | |
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:new_wxRegionFromBitmap",_kwnames,&_argo0,&_obj1,&_arg2)) | |
9911 | return NULL; | |
9912 | if (_argo0) { | |
9913 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
9914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionFromBitmap. Expected _wxBitmap_p."); | |
9915 | return NULL; | |
9916 | } | |
9917 | } | |
9918 | if (_obj1) | |
9919 | { | |
9920 | _arg1 = &temp; | |
9921 | if (! wxColour_helper(_obj1, &_arg1)) | |
9922 | return NULL; | |
9923 | } | |
9924 | { | |
9925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9926 | _result = (wxRegion *)new_wxRegionFromBitmap(*_arg0,*_arg1,_arg2); | |
9927 | ||
9928 | wxPyEndAllowThreads(__tstate); | |
9929 | if (PyErr_Occurred()) return NULL; | |
9930 | } if (_result) { | |
9931 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
9932 | _resultobj = Py_BuildValue("s",_ptemp); | |
9933 | } else { | |
9934 | Py_INCREF(Py_None); | |
9935 | _resultobj = Py_None; | |
9936 | } | |
9937 | return _resultobj; | |
9938 | } | |
9939 | ||
9940 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
9941 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject * _resultobj; | |
9943 | wxRegion * _arg0; | |
9944 | PyObject * _argo0 = 0; | |
9945 | char *_kwnames[] = { "self", NULL }; | |
9946 | ||
9947 | self = self; | |
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
9949 | return NULL; | |
9950 | if (_argo0) { | |
9951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
9954 | return NULL; | |
9955 | } | |
9956 | } | |
9957 | { | |
9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9959 | delete_wxRegion(_arg0); | |
9960 | ||
9961 | wxPyEndAllowThreads(__tstate); | |
9962 | if (PyErr_Occurred()) return NULL; | |
9963 | } Py_INCREF(Py_None); | |
9964 | _resultobj = Py_None; | |
9965 | return _resultobj; | |
9966 | } | |
9967 | ||
9968 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
9969 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9970 | PyObject * _resultobj; | |
9971 | wxRegion * _arg0; | |
9972 | PyObject * _argo0 = 0; | |
9973 | char *_kwnames[] = { "self", NULL }; | |
9974 | ||
9975 | self = self; | |
9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
9977 | return NULL; | |
9978 | if (_argo0) { | |
9979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
9982 | return NULL; | |
9983 | } | |
9984 | } | |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | wxRegion_Clear(_arg0); | |
9988 | ||
9989 | wxPyEndAllowThreads(__tstate); | |
9990 | if (PyErr_Occurred()) return NULL; | |
9991 | } Py_INCREF(Py_None); | |
9992 | _resultobj = Py_None; | |
9993 | return _resultobj; | |
9994 | } | |
9995 | ||
9996 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
9997 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9998 | PyObject * _resultobj; | |
9999 | wxRegionContain _result; | |
10000 | wxRegion * _arg0; | |
10001 | wxCoord _arg1; | |
10002 | wxCoord _arg2; | |
10003 | PyObject * _argo0 = 0; | |
10004 | char *_kwnames[] = { "self","x","y", NULL }; | |
10005 | ||
10006 | self = self; | |
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10008 | return NULL; | |
10009 | if (_argo0) { | |
10010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10013 | return NULL; | |
10014 | } | |
10015 | } | |
10016 | { | |
10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10018 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
10019 | ||
10020 | wxPyEndAllowThreads(__tstate); | |
10021 | if (PyErr_Occurred()) return NULL; | |
10022 | } _resultobj = Py_BuildValue("i",_result); | |
10023 | return _resultobj; | |
10024 | } | |
10025 | ||
10026 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10027 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10028 | PyObject * _resultobj; | |
10029 | wxRegionContain _result; | |
10030 | wxRegion * _arg0; | |
10031 | wxPoint * _arg1; | |
10032 | PyObject * _argo0 = 0; | |
10033 | wxPoint temp; | |
10034 | PyObject * _obj1 = 0; | |
10035 | char *_kwnames[] = { "self","pt", NULL }; | |
10036 | ||
10037 | self = self; | |
10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10039 | return NULL; | |
10040 | if (_argo0) { | |
10041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10044 | return NULL; | |
10045 | } | |
10046 | } | |
10047 | { | |
10048 | _arg1 = &temp; | |
10049 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10050 | return NULL; | |
10051 | } | |
10052 | { | |
10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10054 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
10055 | ||
10056 | wxPyEndAllowThreads(__tstate); | |
10057 | if (PyErr_Occurred()) return NULL; | |
10058 | } _resultobj = Py_BuildValue("i",_result); | |
10059 | return _resultobj; | |
10060 | } | |
10061 | ||
10062 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10063 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10064 | PyObject * _resultobj; | |
10065 | wxRegionContain _result; | |
10066 | wxRegion * _arg0; | |
10067 | wxRect * _arg1; | |
10068 | PyObject * _argo0 = 0; | |
10069 | wxRect temp; | |
10070 | PyObject * _obj1 = 0; | |
10071 | char *_kwnames[] = { "self","rect", NULL }; | |
10072 | ||
10073 | self = self; | |
10074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
10075 | return NULL; | |
10076 | if (_argo0) { | |
10077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
10080 | return NULL; | |
10081 | } | |
10082 | } | |
10083 | { | |
10084 | _arg1 = &temp; | |
10085 | if (! wxRect_helper(_obj1, &_arg1)) | |
10086 | return NULL; | |
10087 | } | |
10088 | { | |
10089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10090 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
10091 | ||
10092 | wxPyEndAllowThreads(__tstate); | |
10093 | if (PyErr_Occurred()) return NULL; | |
10094 | } _resultobj = Py_BuildValue("i",_result); | |
10095 | return _resultobj; | |
10096 | } | |
10097 | ||
10098 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10099 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject * _resultobj; | |
10101 | wxRegionContain _result; | |
10102 | wxRegion * _arg0; | |
10103 | wxCoord _arg1; | |
10104 | wxCoord _arg2; | |
10105 | wxCoord _arg3; | |
10106 | wxCoord _arg4; | |
10107 | PyObject * _argo0 = 0; | |
10108 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
10109 | ||
10110 | self = self; | |
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10112 | return NULL; | |
10113 | if (_argo0) { | |
10114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
10117 | return NULL; | |
10118 | } | |
10119 | } | |
10120 | { | |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10123 | ||
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) return NULL; | |
10126 | } _resultobj = Py_BuildValue("i",_result); | |
10127 | return _resultobj; | |
10128 | } | |
10129 | ||
10130 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
10131 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10132 | PyObject * _resultobj; | |
10133 | wxRect * _result; | |
10134 | wxRegion * _arg0; | |
10135 | PyObject * _argo0 = 0; | |
10136 | char *_kwnames[] = { "self", NULL }; | |
10137 | char _ptemp[128]; | |
10138 | ||
10139 | self = self; | |
10140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
10141 | return NULL; | |
10142 | if (_argo0) { | |
10143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
10146 | return NULL; | |
10147 | } | |
10148 | } | |
10149 | { | |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
10154 | if (PyErr_Occurred()) return NULL; | |
10155 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
10156 | _resultobj = Py_BuildValue("s",_ptemp); | |
10157 | return _resultobj; | |
10158 | } | |
10159 | ||
10160 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10161 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10162 | PyObject * _resultobj; | |
10163 | bool _result; | |
10164 | wxRegion * _arg0; | |
10165 | wxCoord _arg1; | |
10166 | wxCoord _arg2; | |
10167 | wxCoord _arg3; | |
10168 | wxCoord _arg4; | |
10169 | PyObject * _argo0 = 0; | |
10170 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10171 | ||
10172 | self = self; | |
10173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10174 | return NULL; | |
10175 | if (_argo0) { | |
10176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
10179 | return NULL; | |
10180 | } | |
10181 | } | |
10182 | { | |
10183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10184 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10185 | ||
10186 | wxPyEndAllowThreads(__tstate); | |
10187 | if (PyErr_Occurred()) return NULL; | |
10188 | } _resultobj = Py_BuildValue("i",_result); | |
10189 | return _resultobj; | |
10190 | } | |
10191 | ||
10192 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10193 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10194 | PyObject * _resultobj; | |
10195 | bool _result; | |
10196 | wxRegion * _arg0; | |
10197 | wxRect * _arg1; | |
10198 | PyObject * _argo0 = 0; | |
10199 | wxRect temp; | |
10200 | PyObject * _obj1 = 0; | |
10201 | char *_kwnames[] = { "self","rect", NULL }; | |
10202 | ||
10203 | self = self; | |
10204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
10205 | return NULL; | |
10206 | if (_argo0) { | |
10207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
10210 | return NULL; | |
10211 | } | |
10212 | } | |
10213 | { | |
10214 | _arg1 = &temp; | |
10215 | if (! wxRect_helper(_obj1, &_arg1)) | |
10216 | return NULL; | |
10217 | } | |
10218 | { | |
10219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10220 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
10221 | ||
10222 | wxPyEndAllowThreads(__tstate); | |
10223 | if (PyErr_Occurred()) return NULL; | |
10224 | } _resultobj = Py_BuildValue("i",_result); | |
10225 | return _resultobj; | |
10226 | } | |
10227 | ||
10228 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10229 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject * _resultobj; | |
10231 | bool _result; | |
10232 | wxRegion * _arg0; | |
10233 | wxRegion * _arg1; | |
10234 | PyObject * _argo0 = 0; | |
10235 | PyObject * _argo1 = 0; | |
10236 | char *_kwnames[] = { "self","region", NULL }; | |
10237 | ||
10238 | self = self; | |
10239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
10240 | return NULL; | |
10241 | if (_argo0) { | |
10242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10245 | return NULL; | |
10246 | } | |
10247 | } | |
10248 | if (_argo1) { | |
10249 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10251 | return NULL; | |
10252 | } | |
10253 | } | |
10254 | { | |
10255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10256 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
10257 | ||
10258 | wxPyEndAllowThreads(__tstate); | |
10259 | if (PyErr_Occurred()) return NULL; | |
10260 | } _resultobj = Py_BuildValue("i",_result); | |
10261 | return _resultobj; | |
10262 | } | |
10263 | ||
10264 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
10265 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10266 | PyObject * _resultobj; | |
10267 | bool _result; | |
10268 | wxRegion * _arg0; | |
10269 | PyObject * _argo0 = 0; | |
10270 | char *_kwnames[] = { "self", NULL }; | |
10271 | ||
10272 | self = self; | |
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
10274 | return NULL; | |
10275 | if (_argo0) { | |
10276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
10279 | return NULL; | |
10280 | } | |
10281 | } | |
10282 | { | |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) return NULL; | |
10288 | } _resultobj = Py_BuildValue("i",_result); | |
10289 | return _resultobj; | |
10290 | } | |
10291 | ||
10292 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10293 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10294 | PyObject * _resultobj; | |
10295 | bool _result; | |
10296 | wxRegion * _arg0; | |
10297 | wxCoord _arg1; | |
10298 | wxCoord _arg2; | |
10299 | wxCoord _arg3; | |
10300 | wxCoord _arg4; | |
10301 | PyObject * _argo0 = 0; | |
10302 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10303 | ||
10304 | self = self; | |
10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10306 | return NULL; | |
10307 | if (_argo0) { | |
10308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
10311 | return NULL; | |
10312 | } | |
10313 | } | |
10314 | { | |
10315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10316 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10317 | ||
10318 | wxPyEndAllowThreads(__tstate); | |
10319 | if (PyErr_Occurred()) return NULL; | |
10320 | } _resultobj = Py_BuildValue("i",_result); | |
10321 | return _resultobj; | |
10322 | } | |
10323 | ||
10324 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10325 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10326 | PyObject * _resultobj; | |
10327 | bool _result; | |
10328 | wxRegion * _arg0; | |
10329 | wxRect * _arg1; | |
10330 | PyObject * _argo0 = 0; | |
10331 | wxRect temp; | |
10332 | PyObject * _obj1 = 0; | |
10333 | char *_kwnames[] = { "self","rect", NULL }; | |
10334 | ||
10335 | self = self; | |
10336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
10337 | return NULL; | |
10338 | if (_argo0) { | |
10339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
10342 | return NULL; | |
10343 | } | |
10344 | } | |
10345 | { | |
10346 | _arg1 = &temp; | |
10347 | if (! wxRect_helper(_obj1, &_arg1)) | |
10348 | return NULL; | |
10349 | } | |
10350 | { | |
10351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10352 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
10353 | ||
10354 | wxPyEndAllowThreads(__tstate); | |
10355 | if (PyErr_Occurred()) return NULL; | |
10356 | } _resultobj = Py_BuildValue("i",_result); | |
10357 | return _resultobj; | |
10358 | } | |
10359 | ||
10360 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10361 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10362 | PyObject * _resultobj; | |
10363 | bool _result; | |
10364 | wxRegion * _arg0; | |
10365 | wxRegion * _arg1; | |
10366 | PyObject * _argo0 = 0; | |
10367 | PyObject * _argo1 = 0; | |
10368 | char *_kwnames[] = { "self","region", NULL }; | |
10369 | ||
10370 | self = self; | |
10371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
10372 | return NULL; | |
10373 | if (_argo0) { | |
10374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10377 | return NULL; | |
10378 | } | |
10379 | } | |
10380 | if (_argo1) { | |
10381 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10383 | return NULL; | |
10384 | } | |
10385 | } | |
10386 | { | |
10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10388 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
10389 | ||
10390 | wxPyEndAllowThreads(__tstate); | |
10391 | if (PyErr_Occurred()) return NULL; | |
10392 | } _resultobj = Py_BuildValue("i",_result); | |
10393 | return _resultobj; | |
10394 | } | |
10395 | ||
10396 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10397 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10398 | PyObject * _resultobj; | |
10399 | bool _result; | |
10400 | wxRegion * _arg0; | |
10401 | wxCoord _arg1; | |
10402 | wxCoord _arg2; | |
10403 | wxCoord _arg3; | |
10404 | wxCoord _arg4; | |
10405 | PyObject * _argo0 = 0; | |
10406 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10407 | ||
10408 | self = self; | |
10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10410 | return NULL; | |
10411 | if (_argo0) { | |
10412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
10415 | return NULL; | |
10416 | } | |
10417 | } | |
10418 | { | |
10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10420 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10421 | ||
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) return NULL; | |
10424 | } _resultobj = Py_BuildValue("i",_result); | |
10425 | return _resultobj; | |
10426 | } | |
10427 | ||
10428 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10429 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10430 | PyObject * _resultobj; | |
10431 | bool _result; | |
10432 | wxRegion * _arg0; | |
10433 | wxRect * _arg1; | |
10434 | PyObject * _argo0 = 0; | |
10435 | wxRect temp; | |
10436 | PyObject * _obj1 = 0; | |
10437 | char *_kwnames[] = { "self","rect", NULL }; | |
10438 | ||
10439 | self = self; | |
10440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
10441 | return NULL; | |
10442 | if (_argo0) { | |
10443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
10446 | return NULL; | |
10447 | } | |
10448 | } | |
10449 | { | |
10450 | _arg1 = &temp; | |
10451 | if (! wxRect_helper(_obj1, &_arg1)) | |
10452 | return NULL; | |
10453 | } | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
10457 | ||
10458 | wxPyEndAllowThreads(__tstate); | |
10459 | if (PyErr_Occurred()) return NULL; | |
10460 | } _resultobj = Py_BuildValue("i",_result); | |
10461 | return _resultobj; | |
10462 | } | |
10463 | ||
10464 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10465 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10466 | PyObject * _resultobj; | |
10467 | bool _result; | |
10468 | wxRegion * _arg0; | |
10469 | wxRegion * _arg1; | |
10470 | PyObject * _argo0 = 0; | |
10471 | PyObject * _argo1 = 0; | |
10472 | char *_kwnames[] = { "self","region", NULL }; | |
10473 | ||
10474 | self = self; | |
10475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
10476 | return NULL; | |
10477 | if (_argo0) { | |
10478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10481 | return NULL; | |
10482 | } | |
10483 | } | |
10484 | if (_argo1) { | |
10485 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10487 | return NULL; | |
10488 | } | |
10489 | } | |
10490 | { | |
10491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10492 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
10493 | ||
10494 | wxPyEndAllowThreads(__tstate); | |
10495 | if (PyErr_Occurred()) return NULL; | |
10496 | } _resultobj = Py_BuildValue("i",_result); | |
10497 | return _resultobj; | |
10498 | } | |
10499 | ||
10500 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10501 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10502 | PyObject * _resultobj; | |
10503 | bool _result; | |
10504 | wxRegion * _arg0; | |
10505 | wxCoord _arg1; | |
10506 | wxCoord _arg2; | |
10507 | wxCoord _arg3; | |
10508 | wxCoord _arg4; | |
10509 | PyObject * _argo0 = 0; | |
10510 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10511 | ||
10512 | self = self; | |
10513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10514 | return NULL; | |
10515 | if (_argo0) { | |
10516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
10519 | return NULL; | |
10520 | } | |
10521 | } | |
10522 | { | |
10523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10524 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10525 | ||
10526 | wxPyEndAllowThreads(__tstate); | |
10527 | if (PyErr_Occurred()) return NULL; | |
10528 | } _resultobj = Py_BuildValue("i",_result); | |
10529 | return _resultobj; | |
10530 | } | |
10531 | ||
10532 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10533 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10534 | PyObject * _resultobj; | |
10535 | bool _result; | |
10536 | wxRegion * _arg0; | |
10537 | wxRect * _arg1; | |
10538 | PyObject * _argo0 = 0; | |
10539 | wxRect temp; | |
10540 | PyObject * _obj1 = 0; | |
10541 | char *_kwnames[] = { "self","rect", NULL }; | |
10542 | ||
10543 | self = self; | |
10544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
10545 | return NULL; | |
10546 | if (_argo0) { | |
10547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
10550 | return NULL; | |
10551 | } | |
10552 | } | |
10553 | { | |
10554 | _arg1 = &temp; | |
10555 | if (! wxRect_helper(_obj1, &_arg1)) | |
10556 | return NULL; | |
10557 | } | |
10558 | { | |
10559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10560 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
10561 | ||
10562 | wxPyEndAllowThreads(__tstate); | |
10563 | if (PyErr_Occurred()) return NULL; | |
10564 | } _resultobj = Py_BuildValue("i",_result); | |
10565 | return _resultobj; | |
10566 | } | |
10567 | ||
10568 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10569 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10570 | PyObject * _resultobj; | |
10571 | bool _result; | |
10572 | wxRegion * _arg0; | |
10573 | wxRegion * _arg1; | |
10574 | PyObject * _argo0 = 0; | |
10575 | PyObject * _argo1 = 0; | |
10576 | char *_kwnames[] = { "self","region", NULL }; | |
10577 | ||
10578 | self = self; | |
10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
10580 | return NULL; | |
10581 | if (_argo0) { | |
10582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10585 | return NULL; | |
10586 | } | |
10587 | } | |
10588 | if (_argo1) { | |
10589 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10591 | return NULL; | |
10592 | } | |
10593 | } | |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) return NULL; | |
10600 | } _resultobj = Py_BuildValue("i",_result); | |
10601 | return _resultobj; | |
10602 | } | |
10603 | ||
10604 | #define wxRegion_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap()) | |
10605 | static PyObject *_wrap_wxRegion_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10606 | PyObject * _resultobj; | |
10607 | wxBitmap * _result; | |
10608 | wxRegion * _arg0; | |
10609 | PyObject * _argo0 = 0; | |
10610 | char *_kwnames[] = { "self", NULL }; | |
10611 | char _ptemp[128]; | |
10612 | ||
10613 | self = self; | |
10614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_ConvertToBitmap",_kwnames,&_argo0)) | |
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_ConvertToBitmap. Expected _wxRegion_p."); | |
10620 | return NULL; | |
10621 | } | |
10622 | } | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10625 | _result = new wxBitmap (wxRegion_ConvertToBitmap(_arg0)); | |
10626 | ||
10627 | wxPyEndAllowThreads(__tstate); | |
10628 | if (PyErr_Occurred()) return NULL; | |
10629 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
10630 | _resultobj = Py_BuildValue("s",_ptemp); | |
10631 | return _resultobj; | |
10632 | } | |
10633 | ||
10634 | #define wxRegion_UnionBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2)) | |
10635 | static PyObject *_wrap_wxRegion_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10636 | PyObject * _resultobj; | |
10637 | bool _result; | |
10638 | wxRegion * _arg0; | |
10639 | wxBitmap * _arg1; | |
10640 | wxColour * _arg2 = (wxColour *) &wxNullColour; | |
10641 | int _arg3 = (int ) 0; | |
10642 | PyObject * _argo0 = 0; | |
10643 | PyObject * _argo1 = 0; | |
10644 | wxColour temp; | |
10645 | PyObject * _obj2 = 0; | |
10646 | char *_kwnames[] = { "self","bmp","transColour","tolerance", NULL }; | |
10647 | ||
10648 | self = self; | |
10649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|Oi:wxRegion_UnionBitmap",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3)) | |
10650 | return NULL; | |
10651 | if (_argo0) { | |
10652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionBitmap. Expected _wxRegion_p."); | |
10655 | return NULL; | |
10656 | } | |
10657 | } | |
10658 | if (_argo1) { | |
10659 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionBitmap. Expected _wxBitmap_p."); | |
10661 | return NULL; | |
10662 | } | |
10663 | } | |
10664 | if (_obj2) | |
10665 | { | |
10666 | _arg2 = &temp; | |
10667 | if (! wxColour_helper(_obj2, &_arg2)) | |
10668 | return NULL; | |
10669 | } | |
10670 | { | |
10671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10672 | _result = (bool )wxRegion_UnionBitmap(_arg0,*_arg1,*_arg2,_arg3); | |
10673 | ||
10674 | wxPyEndAllowThreads(__tstate); | |
10675 | if (PyErr_Occurred()) return NULL; | |
10676 | } _resultobj = Py_BuildValue("i",_result); | |
10677 | return _resultobj; | |
10678 | } | |
10679 | ||
10680 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
10681 | wxRegionIterator *src; | |
10682 | wxObject *dest; | |
10683 | src = (wxRegionIterator *) ptr; | |
10684 | dest = (wxObject *) src; | |
10685 | return (void *) dest; | |
10686 | } | |
10687 | ||
10688 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
10689 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10690 | PyObject * _resultobj; | |
10691 | wxRegionIterator * _result; | |
10692 | wxRegion * _arg0; | |
10693 | PyObject * _argo0 = 0; | |
10694 | char *_kwnames[] = { "region", NULL }; | |
10695 | char _ptemp[128]; | |
10696 | ||
10697 | self = self; | |
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
10699 | return NULL; | |
10700 | if (_argo0) { | |
10701 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
10703 | return NULL; | |
10704 | } | |
10705 | } | |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) return NULL; | |
10712 | } if (_result) { | |
10713 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
10714 | _resultobj = Py_BuildValue("s",_ptemp); | |
10715 | } else { | |
10716 | Py_INCREF(Py_None); | |
10717 | _resultobj = Py_None; | |
10718 | } | |
10719 | return _resultobj; | |
10720 | } | |
10721 | ||
10722 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
10723 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10724 | PyObject * _resultobj; | |
10725 | wxRegionIterator * _arg0; | |
10726 | PyObject * _argo0 = 0; | |
10727 | char *_kwnames[] = { "self", NULL }; | |
10728 | ||
10729 | self = self; | |
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
10731 | return NULL; | |
10732 | if (_argo0) { | |
10733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
10736 | return NULL; | |
10737 | } | |
10738 | } | |
10739 | { | |
10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10741 | delete_wxRegionIterator(_arg0); | |
10742 | ||
10743 | wxPyEndAllowThreads(__tstate); | |
10744 | if (PyErr_Occurred()) return NULL; | |
10745 | } Py_INCREF(Py_None); | |
10746 | _resultobj = Py_None; | |
10747 | return _resultobj; | |
10748 | } | |
10749 | ||
10750 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
10751 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10752 | PyObject * _resultobj; | |
10753 | wxCoord _result; | |
10754 | wxRegionIterator * _arg0; | |
10755 | PyObject * _argo0 = 0; | |
10756 | char *_kwnames[] = { "self", NULL }; | |
10757 | ||
10758 | self = self; | |
10759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
10760 | return NULL; | |
10761 | if (_argo0) { | |
10762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
10765 | return NULL; | |
10766 | } | |
10767 | } | |
10768 | { | |
10769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10770 | _result = (wxCoord )wxRegionIterator_GetX(_arg0); | |
10771 | ||
10772 | wxPyEndAllowThreads(__tstate); | |
10773 | if (PyErr_Occurred()) return NULL; | |
10774 | } _resultobj = Py_BuildValue("i",_result); | |
10775 | return _resultobj; | |
10776 | } | |
10777 | ||
10778 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
10779 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10780 | PyObject * _resultobj; | |
10781 | wxCoord _result; | |
10782 | wxRegionIterator * _arg0; | |
10783 | PyObject * _argo0 = 0; | |
10784 | char *_kwnames[] = { "self", NULL }; | |
10785 | ||
10786 | self = self; | |
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
10788 | return NULL; | |
10789 | if (_argo0) { | |
10790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
10793 | return NULL; | |
10794 | } | |
10795 | } | |
10796 | { | |
10797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10798 | _result = (wxCoord )wxRegionIterator_GetY(_arg0); | |
10799 | ||
10800 | wxPyEndAllowThreads(__tstate); | |
10801 | if (PyErr_Occurred()) return NULL; | |
10802 | } _resultobj = Py_BuildValue("i",_result); | |
10803 | return _resultobj; | |
10804 | } | |
10805 | ||
10806 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
10807 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10808 | PyObject * _resultobj; | |
10809 | wxCoord _result; | |
10810 | wxRegionIterator * _arg0; | |
10811 | PyObject * _argo0 = 0; | |
10812 | char *_kwnames[] = { "self", NULL }; | |
10813 | ||
10814 | self = self; | |
10815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
10816 | return NULL; | |
10817 | if (_argo0) { | |
10818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
10821 | return NULL; | |
10822 | } | |
10823 | } | |
10824 | { | |
10825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10826 | _result = (wxCoord )wxRegionIterator_GetW(_arg0); | |
10827 | ||
10828 | wxPyEndAllowThreads(__tstate); | |
10829 | if (PyErr_Occurred()) return NULL; | |
10830 | } _resultobj = Py_BuildValue("i",_result); | |
10831 | return _resultobj; | |
10832 | } | |
10833 | ||
10834 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
10835 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10836 | PyObject * _resultobj; | |
10837 | wxCoord _result; | |
10838 | wxRegionIterator * _arg0; | |
10839 | PyObject * _argo0 = 0; | |
10840 | char *_kwnames[] = { "self", NULL }; | |
10841 | ||
10842 | self = self; | |
10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
10844 | return NULL; | |
10845 | if (_argo0) { | |
10846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
10849 | return NULL; | |
10850 | } | |
10851 | } | |
10852 | { | |
10853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10854 | _result = (wxCoord )wxRegionIterator_GetWidth(_arg0); | |
10855 | ||
10856 | wxPyEndAllowThreads(__tstate); | |
10857 | if (PyErr_Occurred()) return NULL; | |
10858 | } _resultobj = Py_BuildValue("i",_result); | |
10859 | return _resultobj; | |
10860 | } | |
10861 | ||
10862 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
10863 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10864 | PyObject * _resultobj; | |
10865 | wxCoord _result; | |
10866 | wxRegionIterator * _arg0; | |
10867 | PyObject * _argo0 = 0; | |
10868 | char *_kwnames[] = { "self", NULL }; | |
10869 | ||
10870 | self = self; | |
10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
10872 | return NULL; | |
10873 | if (_argo0) { | |
10874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
10877 | return NULL; | |
10878 | } | |
10879 | } | |
10880 | { | |
10881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10882 | _result = (wxCoord )wxRegionIterator_GetH(_arg0); | |
10883 | ||
10884 | wxPyEndAllowThreads(__tstate); | |
10885 | if (PyErr_Occurred()) return NULL; | |
10886 | } _resultobj = Py_BuildValue("i",_result); | |
10887 | return _resultobj; | |
10888 | } | |
10889 | ||
10890 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
10891 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10892 | PyObject * _resultobj; | |
10893 | wxCoord _result; | |
10894 | wxRegionIterator * _arg0; | |
10895 | PyObject * _argo0 = 0; | |
10896 | char *_kwnames[] = { "self", NULL }; | |
10897 | ||
10898 | self = self; | |
10899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
10900 | return NULL; | |
10901 | if (_argo0) { | |
10902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
10905 | return NULL; | |
10906 | } | |
10907 | } | |
10908 | { | |
10909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10910 | _result = (wxCoord )wxRegionIterator_GetHeight(_arg0); | |
10911 | ||
10912 | wxPyEndAllowThreads(__tstate); | |
10913 | if (PyErr_Occurred()) return NULL; | |
10914 | } _resultobj = Py_BuildValue("i",_result); | |
10915 | return _resultobj; | |
10916 | } | |
10917 | ||
10918 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
10919 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10920 | PyObject * _resultobj; | |
10921 | wxRect * _result; | |
10922 | wxRegionIterator * _arg0; | |
10923 | PyObject * _argo0 = 0; | |
10924 | char *_kwnames[] = { "self", NULL }; | |
10925 | char _ptemp[128]; | |
10926 | ||
10927 | self = self; | |
10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
10929 | return NULL; | |
10930 | if (_argo0) { | |
10931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
10934 | return NULL; | |
10935 | } | |
10936 | } | |
10937 | { | |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10939 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
10940 | ||
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) return NULL; | |
10943 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
10944 | _resultobj = Py_BuildValue("s",_ptemp); | |
10945 | return _resultobj; | |
10946 | } | |
10947 | ||
10948 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
10949 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10950 | PyObject * _resultobj; | |
10951 | bool _result; | |
10952 | wxRegionIterator * _arg0; | |
10953 | PyObject * _argo0 = 0; | |
10954 | char *_kwnames[] = { "self", NULL }; | |
10955 | ||
10956 | self = self; | |
10957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
10958 | return NULL; | |
10959 | if (_argo0) { | |
10960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
10963 | return NULL; | |
10964 | } | |
10965 | } | |
10966 | { | |
10967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10968 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
10969 | ||
10970 | wxPyEndAllowThreads(__tstate); | |
10971 | if (PyErr_Occurred()) return NULL; | |
10972 | } _resultobj = Py_BuildValue("i",_result); | |
10973 | return _resultobj; | |
10974 | } | |
10975 | ||
10976 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
10977 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10978 | PyObject * _resultobj; | |
10979 | wxRegionIterator * _arg0; | |
10980 | PyObject * _argo0 = 0; | |
10981 | char *_kwnames[] = { "self", NULL }; | |
10982 | ||
10983 | self = self; | |
10984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
10985 | return NULL; | |
10986 | if (_argo0) { | |
10987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
10990 | return NULL; | |
10991 | } | |
10992 | } | |
10993 | { | |
10994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10995 | wxRegionIterator_Reset(_arg0); | |
10996 | ||
10997 | wxPyEndAllowThreads(__tstate); | |
10998 | if (PyErr_Occurred()) return NULL; | |
10999 | } Py_INCREF(Py_None); | |
11000 | _resultobj = Py_None; | |
11001 | return _resultobj; | |
11002 | } | |
11003 | ||
11004 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11005 | (*self) ++; | |
11006 | } | |
11007 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11008 | PyObject * _resultobj; | |
11009 | wxRegionIterator * _arg0; | |
11010 | PyObject * _argo0 = 0; | |
11011 | char *_kwnames[] = { "self", NULL }; | |
11012 | ||
11013 | self = self; | |
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11015 | return NULL; | |
11016 | if (_argo0) { | |
11017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11020 | return NULL; | |
11021 | } | |
11022 | } | |
11023 | { | |
11024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11025 | wxRegionIterator_Next(_arg0); | |
11026 | ||
11027 | wxPyEndAllowThreads(__tstate); | |
11028 | if (PyErr_Occurred()) return NULL; | |
11029 | } Py_INCREF(Py_None); | |
11030 | _resultobj = Py_None; | |
11031 | return _resultobj; | |
11032 | } | |
11033 | ||
11034 | static PyMethodDef gdicMethods[] = { | |
11035 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11046 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11047 | { "wxRegion_UnionBitmap", (PyCFunction) _wrap_wxRegion_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11048 | { "wxRegion_ConvertToBitmap", (PyCFunction) _wrap_wxRegion_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11049 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11050 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11052 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11053 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11054 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11056 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11057 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11058 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11059 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11060 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11061 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11062 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11063 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11064 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11065 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11066 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
11067 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11068 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11069 | { "new_wxRegionFromBitmap", (PyCFunction) _wrap_new_wxRegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11070 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11071 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11072 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
11073 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11074 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11075 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
11076 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11077 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11078 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
11079 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
11080 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11081 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11082 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11083 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11084 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11085 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11086 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11087 | { "new_wxMirrorDC", (PyCFunction) _wrap_new_wxMirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
11088 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, | |
11089 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11090 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11091 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11092 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11093 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
11094 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
11095 | { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11096 | { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
11097 | { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
11098 | { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
11099 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
11100 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
11101 | { "wxDC__DrawTextList", (PyCFunction) _wrap_wxDC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
11102 | { "wxDC__DrawPolygonList", (PyCFunction) _wrap_wxDC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
11103 | { "wxDC__DrawEllipseList", (PyCFunction) _wrap_wxDC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
11104 | { "wxDC__DrawRectangleList", (PyCFunction) _wrap_wxDC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
11105 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
11106 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
11107 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11108 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11109 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11110 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
11111 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11112 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11113 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11114 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11115 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11116 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11117 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11118 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11119 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11120 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11121 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11122 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11123 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11124 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11125 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11126 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11127 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11128 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11129 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11130 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11131 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11132 | { "wxDC_SetClippingRect", (PyCFunction) _wrap_wxDC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
11133 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
11134 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11135 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11136 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11137 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11138 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11139 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11140 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11141 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11142 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11143 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11144 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11145 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11146 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
11147 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11148 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11149 | { "wxDC_GetMultiLineTextExtent", (PyCFunction) _wrap_wxDC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11150 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11151 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11152 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11153 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11154 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11155 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11156 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11157 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
11158 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11159 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11160 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11161 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11162 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11163 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
11164 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11165 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11166 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11167 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11168 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
11169 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
11170 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11171 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
11172 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
11173 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
11174 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
11175 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
11176 | { "wxDC_DrawRectangleRect", (PyCFunction) _wrap_wxDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
11177 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
11178 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
11179 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
11180 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
11181 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
11182 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
11183 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
11184 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
11185 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
11186 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
11187 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
11188 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
11189 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
11190 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
11191 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
11192 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
11193 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11194 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
11195 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11196 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
11197 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11198 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
11199 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11200 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
11201 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
11202 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
11203 | { "wxBrush_SetMacTheme", (PyCFunction) _wrap_wxBrush_SetMacTheme, METH_VARARGS | METH_KEYWORDS }, | |
11204 | { "wxBrush_GetMacTheme", (PyCFunction) _wrap_wxBrush_GetMacTheme, METH_VARARGS | METH_KEYWORDS }, | |
11205 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11206 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11207 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11208 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11209 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
11213 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
11214 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11215 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
11216 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
11217 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
11218 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
11219 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11220 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11221 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
11222 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
11223 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11224 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11225 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11226 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11227 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
11228 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11229 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11230 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11231 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11232 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11233 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
11234 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
11235 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
11236 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
11237 | { "wxColourDatabase_AddColour", (PyCFunction) _wrap_wxColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
11238 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
11239 | { "wxColourDatabase_FindColourNoAdd", (PyCFunction) _wrap_wxColourDatabase_FindColourNoAdd, METH_VARARGS | METH_KEYWORDS }, | |
11240 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
11241 | { "wxColour___ne__", (PyCFunction) _wrap_wxColour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
11242 | { "wxColour___eq__", (PyCFunction) _wrap_wxColour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
11243 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11252 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "wxIconLocation_GetIndex", (PyCFunction) _wrap_wxIconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "wxIconLocation_SetIndex", (PyCFunction) _wrap_wxIconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxIconLocation_GetFileName", (PyCFunction) _wrap_wxIconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "wxIconLocation_SetFileName", (PyCFunction) _wrap_wxIconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxIconLocation_IsOk", (PyCFunction) _wrap_wxIconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "delete_wxIconLocation", (PyCFunction) _wrap_delete_wxIconLocation, METH_VARARGS | METH_KEYWORDS }, | |
11267 | { "new_wxIconLocation", (PyCFunction) _wrap_new_wxIconLocation, METH_VARARGS | METH_KEYWORDS }, | |
11268 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11272 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11276 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
11277 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
11278 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11282 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11283 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11284 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11285 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11286 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11288 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
11297 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11298 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11299 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxCursorFromBits", (PyCFunction) _wrap_wxCursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxCursorFromImage", (PyCFunction) _wrap_wxCursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxIconFromLocation", (PyCFunction) _wrap_wxIconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
11311 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { NULL, NULL } | |
11316 | }; | |
11317 | #ifdef __cplusplus | |
11318 | } | |
11319 | #endif | |
11320 | /* | |
11321 | * This table is used by the pointer type-checker | |
11322 | */ | |
11323 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11324 | { "_signed_long","_long",0}, | |
11325 | { "_wxPrintQuality","_wxCoord",0}, | |
11326 | { "_wxPrintQuality","_int",0}, | |
11327 | { "_wxPrintQuality","_signed_int",0}, | |
11328 | { "_wxPrintQuality","_unsigned_int",0}, | |
11329 | { "_wxPrintQuality","_wxWindowID",0}, | |
11330 | { "_wxPrintQuality","_uint",0}, | |
11331 | { "_wxPrintQuality","_EBool",0}, | |
11332 | { "_wxPrintQuality","_size_t",0}, | |
11333 | { "_wxPrintQuality","_time_t",0}, | |
11334 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, | |
11335 | { "_byte","_unsigned_char",0}, | |
11336 | { "_long","_unsigned_long",0}, | |
11337 | { "_long","_signed_long",0}, | |
11338 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
11339 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
11340 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
11341 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, | |
11342 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
11343 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
11344 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
11345 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
11346 | { "_wxDC","_wxMirrorDC",SwigwxMirrorDCTowxDC}, | |
11347 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
11348 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
11349 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
11350 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
11351 | { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC}, | |
11352 | { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC}, | |
11353 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
11354 | { "_size_t","_wxCoord",0}, | |
11355 | { "_size_t","_wxPrintQuality",0}, | |
11356 | { "_size_t","_time_t",0}, | |
11357 | { "_size_t","_unsigned_int",0}, | |
11358 | { "_size_t","_int",0}, | |
11359 | { "_size_t","_wxWindowID",0}, | |
11360 | { "_size_t","_uint",0}, | |
11361 | { "_uint","_wxCoord",0}, | |
11362 | { "_uint","_wxPrintQuality",0}, | |
11363 | { "_uint","_time_t",0}, | |
11364 | { "_uint","_size_t",0}, | |
11365 | { "_uint","_unsigned_int",0}, | |
11366 | { "_uint","_int",0}, | |
11367 | { "_uint","_wxWindowID",0}, | |
11368 | { "_wxChar","_char",0}, | |
11369 | { "_char","_wxChar",0}, | |
11370 | { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC}, | |
11371 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11372 | { "_EBool","_wxCoord",0}, | |
11373 | { "_EBool","_wxPrintQuality",0}, | |
11374 | { "_EBool","_signed_int",0}, | |
11375 | { "_EBool","_int",0}, | |
11376 | { "_EBool","_wxWindowID",0}, | |
11377 | { "_unsigned_long","_long",0}, | |
11378 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11379 | { "_signed_int","_wxCoord",0}, | |
11380 | { "_signed_int","_wxPrintQuality",0}, | |
11381 | { "_signed_int","_EBool",0}, | |
11382 | { "_signed_int","_wxWindowID",0}, | |
11383 | { "_signed_int","_int",0}, | |
11384 | { "_WXTYPE","_short",0}, | |
11385 | { "_WXTYPE","_signed_short",0}, | |
11386 | { "_WXTYPE","_unsigned_short",0}, | |
11387 | { "_unsigned_short","_WXTYPE",0}, | |
11388 | { "_unsigned_short","_short",0}, | |
11389 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
11390 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
11391 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
11392 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
11393 | { "_wxObject","_wxMirrorDC",SwigwxMirrorDCTowxObject}, | |
11394 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, | |
11395 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
11396 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
11397 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
11398 | { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject}, | |
11399 | { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject}, | |
11400 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
11401 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
11402 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, | |
11403 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
11404 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
11405 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, | |
11406 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
11407 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
11408 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
11409 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
11410 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
11411 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
11412 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
11413 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
11414 | { "_signed_short","_WXTYPE",0}, | |
11415 | { "_signed_short","_short",0}, | |
11416 | { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC}, | |
11417 | { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC}, | |
11418 | { "_unsigned_char","_byte",0}, | |
11419 | { "_unsigned_int","_wxCoord",0}, | |
11420 | { "_unsigned_int","_wxPrintQuality",0}, | |
11421 | { "_unsigned_int","_time_t",0}, | |
11422 | { "_unsigned_int","_size_t",0}, | |
11423 | { "_unsigned_int","_uint",0}, | |
11424 | { "_unsigned_int","_wxWindowID",0}, | |
11425 | { "_unsigned_int","_int",0}, | |
11426 | { "_short","_WXTYPE",0}, | |
11427 | { "_short","_unsigned_short",0}, | |
11428 | { "_short","_signed_short",0}, | |
11429 | { "_wxWindowID","_wxCoord",0}, | |
11430 | { "_wxWindowID","_wxPrintQuality",0}, | |
11431 | { "_wxWindowID","_time_t",0}, | |
11432 | { "_wxWindowID","_size_t",0}, | |
11433 | { "_wxWindowID","_EBool",0}, | |
11434 | { "_wxWindowID","_uint",0}, | |
11435 | { "_wxWindowID","_int",0}, | |
11436 | { "_wxWindowID","_signed_int",0}, | |
11437 | { "_wxWindowID","_unsigned_int",0}, | |
11438 | { "_int","_wxCoord",0}, | |
11439 | { "_int","_wxPrintQuality",0}, | |
11440 | { "_int","_time_t",0}, | |
11441 | { "_int","_size_t",0}, | |
11442 | { "_int","_EBool",0}, | |
11443 | { "_int","_uint",0}, | |
11444 | { "_int","_wxWindowID",0}, | |
11445 | { "_int","_unsigned_int",0}, | |
11446 | { "_int","_signed_int",0}, | |
11447 | { "_time_t","_wxCoord",0}, | |
11448 | { "_time_t","_wxPrintQuality",0}, | |
11449 | { "_time_t","_unsigned_int",0}, | |
11450 | { "_time_t","_int",0}, | |
11451 | { "_time_t","_wxWindowID",0}, | |
11452 | { "_time_t","_uint",0}, | |
11453 | { "_time_t","_size_t",0}, | |
11454 | { "_wxCoord","_int",0}, | |
11455 | { "_wxCoord","_signed_int",0}, | |
11456 | { "_wxCoord","_unsigned_int",0}, | |
11457 | { "_wxCoord","_wxWindowID",0}, | |
11458 | { "_wxCoord","_uint",0}, | |
11459 | { "_wxCoord","_EBool",0}, | |
11460 | { "_wxCoord","_size_t",0}, | |
11461 | { "_wxCoord","_time_t",0}, | |
11462 | { "_wxCoord","_wxPrintQuality",0}, | |
11463 | {0,0,0}}; | |
11464 | ||
11465 | static PyObject *SWIG_globals; | |
11466 | #ifdef __cplusplus | |
11467 | extern "C" | |
11468 | #endif | |
11469 | SWIGEXPORT(void) initgdic() { | |
11470 | PyObject *m, *d; | |
11471 | SWIG_globals = SWIG_newvarlink(); | |
11472 | m = Py_InitModule("gdic", gdicMethods); | |
11473 | d = PyModule_GetDict(m); | |
11474 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); | |
11475 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
11476 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
11477 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
11478 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
11479 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
11480 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
11481 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
11482 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
11483 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
11484 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11485 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
11486 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
11487 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
11488 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
11489 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
11490 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
11491 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
11492 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
11493 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
11494 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
11495 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
11496 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
11497 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
11498 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
11499 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
11500 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
11501 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
11502 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
11503 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
11504 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
11505 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
11506 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
11507 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
11508 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
11509 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
11510 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
11511 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
11512 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
11513 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
11514 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
11515 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
11516 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
11517 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
11518 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
11519 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
11520 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
11521 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
11522 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
11523 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
11524 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
11525 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
11526 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
11527 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); | |
11528 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
11529 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
11530 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
11531 | { | |
11532 | int i; | |
11533 | for (i = 0; _swig_mapping[i].n1; i++) | |
11534 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11535 | } | |
11536 | } |