]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/gdi.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initgdic | |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/imaglist.h> | |
e6056257 RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
c3bfa1cb | 64 | #include <wx/dcbuffer.h> |
40699168 | 65 | #include <wx/iconbndl.h> |
e6056257 RD |
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 | } | |
c3bfa1cb RD |
93 | |
94 | // Put some wx default wxChar* values into wxStrings. | |
95 | static const wxString wxPyEmptyString(wxT("")); | |
e6056257 RD |
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 | ||
3a37d753 RD |
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); | |
e6056257 RD |
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 | } | |
da0ddbd6 RD |
177 | |
178 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
179 | wxIcon* icon = new wxIcon(); | |
180 | icon->CopyFromBitmap(bmp); | |
181 | return icon; | |
182 | } | |
e6056257 RD |
183 | // Alternate 'constructor' |
184 | wxCursor* wxPyStockCursor(int id) { | |
185 | return new wxCursor(id); | |
186 | } | |
187 | // Alternate 'constructor' | |
188 | wxColour* wxNamedColour(const wxString& colorName) { | |
189 | return new wxColour(colorName); | |
190 | } | |
191 | ||
192 | class wxPyPen : public wxPen { | |
193 | public: | |
194 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
195 | : wxPen(colour, width, style) | |
196 | { m_dash = NULL; } | |
197 | ~wxPyPen() { | |
198 | if (m_dash) | |
80cb3dbc | 199 | delete [] m_dash; |
e6056257 RD |
200 | } |
201 | ||
202 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
80cb3dbc RD |
203 | if (m_dash) |
204 | delete [] m_dash; | |
e6056257 | 205 | m_dash = new wxDash[nb_dashes]; |
80cb3dbc | 206 | for (int i=0; i<nb_dashes; i++) { |
e6056257 | 207 | m_dash[i] = dash[i]; |
80cb3dbc | 208 | } |
e6056257 RD |
209 | wxPen::SetDashes(nb_dashes, m_dash); |
210 | } | |
211 | ||
212 | private: | |
213 | wxDash* m_dash; | |
214 | }; | |
215 | ||
216 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
217 | *x1 = dc->MinX(); | |
218 | *y1 = dc->MinY(); | |
219 | *x2 = dc->MaxX(); | |
220 | *y2 = dc->MaxY(); | |
221 | } | |
222 | // Alternate 'constructor' | |
223 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
224 | return new wxMemoryDC(oldDC); | |
225 | } | |
226 | ||
227 | #if 0 | |
228 | extern wxFont * wxNORMAL_FONT; | |
229 | extern wxFont * wxSMALL_FONT; | |
230 | extern wxFont * wxITALIC_FONT; | |
231 | extern wxFont * wxSWISS_FONT; | |
232 | extern wxPen * wxRED_PEN; | |
233 | extern wxPen * wxCYAN_PEN; | |
234 | extern wxPen * wxGREEN_PEN; | |
235 | extern wxPen * wxBLACK_PEN; | |
236 | extern wxPen * wxWHITE_PEN; | |
237 | extern wxPen * wxTRANSPARENT_PEN; | |
238 | extern wxPen * wxBLACK_DASHED_PEN; | |
239 | extern wxPen * wxGREY_PEN; | |
240 | extern wxPen * wxMEDIUM_GREY_PEN; | |
241 | extern wxPen * wxLIGHT_GREY_PEN; | |
242 | extern wxBrush * wxBLUE_BRUSH; | |
243 | extern wxBrush * wxGREEN_BRUSH; | |
244 | extern wxBrush * wxWHITE_BRUSH; | |
245 | extern wxBrush * wxBLACK_BRUSH; | |
246 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
247 | extern wxBrush * wxCYAN_BRUSH; | |
248 | extern wxBrush * wxRED_BRUSH; | |
249 | extern wxBrush * wxGREY_BRUSH; | |
250 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
251 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
252 | extern wxColour * wxBLACK; | |
253 | extern wxColour * wxWHITE; | |
254 | extern wxColour * wxRED; | |
255 | extern wxColour * wxBLUE; | |
256 | extern wxColour * wxGREEN; | |
257 | extern wxColour * wxCYAN; | |
258 | extern wxColour * wxLIGHT_GREY; | |
259 | extern wxCursor * wxSTANDARD_CURSOR; | |
260 | extern wxCursor * wxHOURGLASS_CURSOR; | |
261 | extern wxCursor * wxCROSS_CURSOR; | |
262 | extern wxBitmap wxNullBitmap; | |
263 | extern wxIcon wxNullIcon; | |
264 | extern wxCursor wxNullCursor; | |
265 | extern wxPen wxNullPen; | |
266 | extern wxBrush wxNullBrush; | |
267 | extern wxPalette wxNullPalette; | |
268 | extern wxFont wxNullFont; | |
269 | extern wxColour wxNullColour; | |
270 | extern wxFontList * wxTheFontList; | |
271 | extern wxPenList * wxThePenList; | |
272 | extern wxBrushList * wxTheBrushList; | |
273 | extern wxColourDatabase * wxTheColourDatabase; | |
274 | ||
275 | #endif | |
276 | #ifdef __cplusplus | |
277 | extern "C" { | |
278 | #endif | |
279 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
280 | PyObject * _resultobj; | |
281 | wxBitmap * _result; | |
282 | int _arg0; | |
283 | int _arg1; | |
284 | int _arg2 = (int ) -1; | |
285 | char *_kwnames[] = { "width","height","depth", NULL }; | |
286 | char _ptemp[128]; | |
287 | ||
288 | self = self; | |
289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) | |
290 | return NULL; | |
291 | { | |
0e2ff151 | 292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 293 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
e6056257 | 294 | |
0e2ff151 | 295 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
296 | if (PyErr_Occurred()) return NULL; |
297 | } if (_result) { | |
298 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
299 | _resultobj = Py_BuildValue("s",_ptemp); | |
300 | } else { | |
301 | Py_INCREF(Py_None); | |
302 | _resultobj = Py_None; | |
303 | } | |
304 | return _resultobj; | |
305 | } | |
306 | ||
307 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
308 | PyObject * _resultobj; | |
309 | wxBitmap * _result; | |
310 | PyObject * _arg0; | |
311 | PyObject * _obj0 = 0; | |
312 | char *_kwnames[] = { "listOfStrings", NULL }; | |
313 | char _ptemp[128]; | |
314 | ||
315 | self = self; | |
316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
317 | return NULL; | |
318 | { | |
319 | _arg0 = _obj0; | |
320 | } | |
321 | { | |
0e2ff151 | 322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 323 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
e6056257 | 324 | |
0e2ff151 | 325 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
326 | if (PyErr_Occurred()) return NULL; |
327 | } if (_result) { | |
328 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
329 | _resultobj = Py_BuildValue("s",_ptemp); | |
330 | } else { | |
331 | Py_INCREF(Py_None); | |
332 | _resultobj = Py_None; | |
333 | } | |
334 | return _resultobj; | |
335 | } | |
336 | ||
337 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
338 | PyObject * _resultobj; | |
339 | wxBitmap * _result; | |
340 | wxIcon * _arg0; | |
341 | PyObject * _argo0 = 0; | |
342 | char *_kwnames[] = { "icon", NULL }; | |
343 | char _ptemp[128]; | |
344 | ||
345 | self = self; | |
346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
347 | return NULL; | |
348 | if (_argo0) { | |
349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
352 | return NULL; | |
353 | } | |
354 | } | |
355 | { | |
0e2ff151 | 356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 357 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
e6056257 | 358 | |
0e2ff151 | 359 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
360 | if (PyErr_Occurred()) return NULL; |
361 | } if (_result) { | |
362 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
363 | _resultobj = Py_BuildValue("s",_ptemp); | |
364 | } else { | |
365 | Py_INCREF(Py_None); | |
366 | _resultobj = Py_None; | |
367 | } | |
368 | return _resultobj; | |
369 | } | |
370 | ||
371 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
372 | PyObject * _resultobj; | |
373 | wxBitmap * _result; | |
3a37d753 | 374 | PyObject * _arg0; |
e6056257 RD |
375 | int _arg1; |
376 | int _arg2; | |
377 | int _arg3 = (int ) 1; | |
3a37d753 | 378 | PyObject * _obj0 = 0; |
e6056257 RD |
379 | char *_kwnames[] = { "bits","width","height","depth", NULL }; |
380 | char _ptemp[128]; | |
381 | ||
382 | self = self; | |
3a37d753 | 383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxBitmapFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
e6056257 | 384 | return NULL; |
3a37d753 RD |
385 | { |
386 | _arg0 = _obj0; | |
387 | } | |
e6056257 | 388 | { |
0e2ff151 | 389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 390 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 391 | |
0e2ff151 | 392 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
393 | if (PyErr_Occurred()) return NULL; |
394 | } if (_result) { | |
395 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
396 | _resultobj = Py_BuildValue("s",_ptemp); | |
397 | } else { | |
398 | Py_INCREF(Py_None); | |
399 | _resultobj = Py_None; | |
400 | } | |
401 | return _resultobj; | |
402 | } | |
403 | ||
404 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
405 | PyObject * _resultobj; | |
406 | wxMask * _result; | |
407 | wxBitmap * _arg0; | |
408 | wxColour * _arg1; | |
409 | PyObject * _argo0 = 0; | |
410 | wxColour temp; | |
411 | PyObject * _obj1 = 0; | |
412 | char *_kwnames[] = { "bitmap","colour", NULL }; | |
413 | char _ptemp[128]; | |
414 | ||
415 | self = self; | |
416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) | |
417 | return NULL; | |
418 | if (_argo0) { | |
419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
422 | return NULL; | |
423 | } | |
424 | } | |
425 | { | |
426 | _arg1 = &temp; | |
427 | if (! wxColour_helper(_obj1, &_arg1)) | |
428 | return NULL; | |
429 | } | |
430 | { | |
0e2ff151 | 431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 432 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
e6056257 | 433 | |
0e2ff151 | 434 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
435 | if (PyErr_Occurred()) return NULL; |
436 | } if (_result) { | |
437 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
438 | _resultobj = Py_BuildValue("s",_ptemp); | |
439 | } else { | |
440 | Py_INCREF(Py_None); | |
441 | _resultobj = Py_None; | |
442 | } | |
443 | return _resultobj; | |
444 | } | |
445 | ||
446 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
447 | PyObject * _resultobj; | |
448 | wxIcon * _result; | |
449 | char *_kwnames[] = { NULL }; | |
450 | char _ptemp[128]; | |
451 | ||
452 | self = self; | |
453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
454 | return NULL; | |
455 | { | |
0e2ff151 | 456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 457 | _result = (wxIcon *)wxEmptyIcon(); |
e6056257 | 458 | |
0e2ff151 | 459 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
460 | if (PyErr_Occurred()) return NULL; |
461 | } if (_result) { | |
462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
463 | _resultobj = Py_BuildValue("s",_ptemp); | |
464 | } else { | |
465 | Py_INCREF(Py_None); | |
466 | _resultobj = Py_None; | |
467 | } | |
468 | return _resultobj; | |
469 | } | |
470 | ||
471 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
472 | PyObject * _resultobj; | |
473 | wxIcon * _result; | |
474 | PyObject * _arg0; | |
475 | PyObject * _obj0 = 0; | |
476 | char *_kwnames[] = { "listOfStrings", NULL }; | |
477 | char _ptemp[128]; | |
478 | ||
479 | self = self; | |
480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
481 | return NULL; | |
482 | { | |
483 | _arg0 = _obj0; | |
484 | } | |
485 | { | |
0e2ff151 | 486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 487 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
e6056257 | 488 | |
0e2ff151 | 489 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
490 | if (PyErr_Occurred()) return NULL; |
491 | } if (_result) { | |
492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
493 | _resultobj = Py_BuildValue("s",_ptemp); | |
494 | } else { | |
495 | Py_INCREF(Py_None); | |
496 | _resultobj = Py_None; | |
497 | } | |
498 | return _resultobj; | |
499 | } | |
500 | ||
da0ddbd6 RD |
501 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
502 | PyObject * _resultobj; | |
503 | wxIcon * _result; | |
504 | wxBitmap * _arg0; | |
505 | PyObject * _argo0 = 0; | |
506 | char *_kwnames[] = { "bmp", NULL }; | |
507 | char _ptemp[128]; | |
508 | ||
509 | self = self; | |
510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
511 | return NULL; | |
512 | if (_argo0) { | |
513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
516 | return NULL; | |
517 | } | |
518 | } | |
519 | { | |
520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 521 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); |
da0ddbd6 RD |
522 | |
523 | wxPyEndAllowThreads(__tstate); | |
524 | if (PyErr_Occurred()) return NULL; | |
525 | } if (_result) { | |
526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | } else { | |
529 | Py_INCREF(Py_None); | |
530 | _resultobj = Py_None; | |
531 | } | |
532 | return _resultobj; | |
533 | } | |
534 | ||
e6056257 RD |
535 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
536 | PyObject * _resultobj; | |
537 | wxCursor * _result; | |
538 | int _arg0; | |
539 | char *_kwnames[] = { "id", NULL }; | |
540 | char _ptemp[128]; | |
541 | ||
542 | self = self; | |
543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) | |
544 | return NULL; | |
545 | { | |
0e2ff151 | 546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 547 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
e6056257 | 548 | |
0e2ff151 | 549 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
550 | if (PyErr_Occurred()) return NULL; |
551 | } if (_result) { | |
552 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
553 | _resultobj = Py_BuildValue("s",_ptemp); | |
554 | } else { | |
555 | Py_INCREF(Py_None); | |
556 | _resultobj = Py_None; | |
557 | } | |
558 | return _resultobj; | |
559 | } | |
560 | ||
561 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
562 | PyObject * _resultobj; | |
563 | wxColour * _result; | |
564 | wxString * _arg0; | |
565 | PyObject * _obj0 = 0; | |
566 | char *_kwnames[] = { "colorName", NULL }; | |
567 | char _ptemp[128]; | |
568 | ||
569 | self = self; | |
570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) | |
571 | return NULL; | |
572 | { | |
6824d4f9 RD |
573 | _arg0 = wxString_in_helper(_obj0); |
574 | if (_arg0 == NULL) | |
e6056257 | 575 | return NULL; |
e6056257 RD |
576 | } |
577 | { | |
0e2ff151 | 578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 579 | _result = (wxColour *)wxNamedColour(*_arg0); |
e6056257 | 580 | |
0e2ff151 | 581 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
582 | if (PyErr_Occurred()) return NULL; |
583 | } if (_result) { | |
584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
585 | _resultobj = Py_BuildValue("s",_ptemp); | |
586 | } else { | |
587 | Py_INCREF(Py_None); | |
588 | _resultobj = Py_None; | |
589 | } | |
590 | { | |
591 | if (_obj0) | |
592 | delete _arg0; | |
593 | } | |
594 | return _resultobj; | |
595 | } | |
596 | ||
597 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
598 | PyObject * _resultobj; | |
599 | wxMemoryDC * _result; | |
600 | wxDC * _arg0; | |
601 | PyObject * _argo0 = 0; | |
602 | char *_kwnames[] = { "oldDC", NULL }; | |
603 | char _ptemp[128]; | |
604 | ||
605 | self = self; | |
606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) | |
607 | return NULL; | |
608 | if (_argo0) { | |
609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
612 | return NULL; | |
613 | } | |
614 | } | |
615 | { | |
0e2ff151 | 616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 617 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
e6056257 | 618 | |
0e2ff151 | 619 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
620 | if (PyErr_Occurred()) return NULL; |
621 | } if (_result) { | |
622 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
623 | _resultobj = Py_BuildValue("s",_ptemp); | |
624 | } else { | |
625 | Py_INCREF(Py_None); | |
626 | _resultobj = Py_None; | |
627 | } | |
628 | return _resultobj; | |
629 | } | |
630 | ||
631 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
632 | ||
633 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
634 | return 1; | |
635 | } | |
636 | ||
637 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
638 | PyObject * pyobj; | |
639 | char ptemp[128]; | |
640 | ||
641 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
642 | pyobj = PyString_FromString(ptemp); | |
643 | return pyobj; | |
644 | } | |
645 | ||
646 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
647 | ||
648 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
649 | return 1; | |
650 | } | |
651 | ||
652 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
653 | PyObject * pyobj; | |
654 | char ptemp[128]; | |
655 | ||
656 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
657 | pyobj = PyString_FromString(ptemp); | |
658 | return pyobj; | |
659 | } | |
660 | ||
661 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
662 | ||
663 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
664 | return 1; | |
665 | } | |
666 | ||
667 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
668 | PyObject * pyobj; | |
669 | char ptemp[128]; | |
670 | ||
671 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
672 | pyobj = PyString_FromString(ptemp); | |
673 | return pyobj; | |
674 | } | |
675 | ||
676 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
677 | ||
678 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
679 | return 1; | |
680 | } | |
681 | ||
682 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
683 | PyObject * pyobj; | |
684 | char ptemp[128]; | |
685 | ||
686 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
687 | pyobj = PyString_FromString(ptemp); | |
688 | return pyobj; | |
689 | } | |
690 | ||
691 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
692 | ||
693 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
694 | return 1; | |
695 | } | |
696 | ||
697 | static PyObject *_wrap_wxRED_PEN_get() { | |
698 | PyObject * pyobj; | |
699 | char ptemp[128]; | |
700 | ||
701 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
702 | pyobj = PyString_FromString(ptemp); | |
703 | return pyobj; | |
704 | } | |
705 | ||
706 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
707 | ||
708 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
709 | return 1; | |
710 | } | |
711 | ||
712 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
713 | PyObject * pyobj; | |
714 | char ptemp[128]; | |
715 | ||
716 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
717 | pyobj = PyString_FromString(ptemp); | |
718 | return pyobj; | |
719 | } | |
720 | ||
721 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
722 | ||
723 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
724 | return 1; | |
725 | } | |
726 | ||
727 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
728 | PyObject * pyobj; | |
729 | char ptemp[128]; | |
730 | ||
731 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
732 | pyobj = PyString_FromString(ptemp); | |
733 | return pyobj; | |
734 | } | |
735 | ||
736 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
737 | ||
738 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
739 | return 1; | |
740 | } | |
741 | ||
742 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
743 | PyObject * pyobj; | |
744 | char ptemp[128]; | |
745 | ||
746 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
747 | pyobj = PyString_FromString(ptemp); | |
748 | return pyobj; | |
749 | } | |
750 | ||
751 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
752 | ||
753 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
754 | return 1; | |
755 | } | |
756 | ||
757 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
758 | PyObject * pyobj; | |
759 | char ptemp[128]; | |
760 | ||
761 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
762 | pyobj = PyString_FromString(ptemp); | |
763 | return pyobj; | |
764 | } | |
765 | ||
766 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
767 | ||
768 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
769 | return 1; | |
770 | } | |
771 | ||
772 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
773 | PyObject * pyobj; | |
774 | char ptemp[128]; | |
775 | ||
776 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
777 | pyobj = PyString_FromString(ptemp); | |
778 | return pyobj; | |
779 | } | |
780 | ||
781 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
782 | ||
783 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
784 | return 1; | |
785 | } | |
786 | ||
787 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
788 | PyObject * pyobj; | |
789 | char ptemp[128]; | |
790 | ||
791 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
792 | pyobj = PyString_FromString(ptemp); | |
793 | return pyobj; | |
794 | } | |
795 | ||
796 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
797 | ||
798 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
799 | return 1; | |
800 | } | |
801 | ||
802 | static PyObject *_wrap_wxGREY_PEN_get() { | |
803 | PyObject * pyobj; | |
804 | char ptemp[128]; | |
805 | ||
806 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
807 | pyobj = PyString_FromString(ptemp); | |
808 | return pyobj; | |
809 | } | |
810 | ||
811 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
812 | ||
813 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
814 | return 1; | |
815 | } | |
816 | ||
817 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
818 | PyObject * pyobj; | |
819 | char ptemp[128]; | |
820 | ||
821 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
822 | pyobj = PyString_FromString(ptemp); | |
823 | return pyobj; | |
824 | } | |
825 | ||
826 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
827 | ||
828 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
829 | return 1; | |
830 | } | |
831 | ||
832 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
833 | PyObject * pyobj; | |
834 | char ptemp[128]; | |
835 | ||
836 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
837 | pyobj = PyString_FromString(ptemp); | |
838 | return pyobj; | |
839 | } | |
840 | ||
841 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
842 | ||
843 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
844 | return 1; | |
845 | } | |
846 | ||
847 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
848 | PyObject * pyobj; | |
849 | char ptemp[128]; | |
850 | ||
851 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
852 | pyobj = PyString_FromString(ptemp); | |
853 | return pyobj; | |
854 | } | |
855 | ||
856 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
857 | ||
858 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
859 | return 1; | |
860 | } | |
861 | ||
862 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
863 | PyObject * pyobj; | |
864 | char ptemp[128]; | |
865 | ||
866 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
867 | pyobj = PyString_FromString(ptemp); | |
868 | return pyobj; | |
869 | } | |
870 | ||
871 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
872 | ||
873 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
874 | return 1; | |
875 | } | |
876 | ||
877 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
878 | PyObject * pyobj; | |
879 | char ptemp[128]; | |
880 | ||
881 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
882 | pyobj = PyString_FromString(ptemp); | |
883 | return pyobj; | |
884 | } | |
885 | ||
886 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
887 | ||
888 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
889 | return 1; | |
890 | } | |
891 | ||
892 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
893 | PyObject * pyobj; | |
894 | char ptemp[128]; | |
895 | ||
896 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
897 | pyobj = PyString_FromString(ptemp); | |
898 | return pyobj; | |
899 | } | |
900 | ||
901 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
902 | ||
903 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
904 | return 1; | |
905 | } | |
906 | ||
907 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
908 | PyObject * pyobj; | |
909 | char ptemp[128]; | |
910 | ||
911 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
912 | pyobj = PyString_FromString(ptemp); | |
913 | return pyobj; | |
914 | } | |
915 | ||
916 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
917 | ||
918 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
919 | return 1; | |
920 | } | |
921 | ||
922 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
923 | PyObject * pyobj; | |
924 | char ptemp[128]; | |
925 | ||
926 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
927 | pyobj = PyString_FromString(ptemp); | |
928 | return pyobj; | |
929 | } | |
930 | ||
931 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
932 | ||
933 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
934 | return 1; | |
935 | } | |
936 | ||
937 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
938 | PyObject * pyobj; | |
939 | char ptemp[128]; | |
940 | ||
941 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
942 | pyobj = PyString_FromString(ptemp); | |
943 | return pyobj; | |
944 | } | |
945 | ||
946 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
947 | ||
948 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
949 | return 1; | |
950 | } | |
951 | ||
952 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
953 | PyObject * pyobj; | |
954 | char ptemp[128]; | |
955 | ||
956 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
957 | pyobj = PyString_FromString(ptemp); | |
958 | return pyobj; | |
959 | } | |
960 | ||
961 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
962 | ||
963 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
964 | return 1; | |
965 | } | |
966 | ||
967 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
968 | PyObject * pyobj; | |
969 | char ptemp[128]; | |
970 | ||
971 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
972 | pyobj = PyString_FromString(ptemp); | |
973 | return pyobj; | |
974 | } | |
975 | ||
976 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
977 | ||
978 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
979 | return 1; | |
980 | } | |
981 | ||
982 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
983 | PyObject * pyobj; | |
984 | char ptemp[128]; | |
985 | ||
986 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
987 | pyobj = PyString_FromString(ptemp); | |
988 | return pyobj; | |
989 | } | |
990 | ||
991 | static int _wrap_wxBLACK_set(PyObject *val) { | |
992 | ||
993 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
994 | return 1; | |
995 | } | |
996 | ||
997 | static PyObject *_wrap_wxBLACK_get() { | |
998 | PyObject * pyobj; | |
999 | char ptemp[128]; | |
1000 | ||
1001 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
1002 | pyobj = PyString_FromString(ptemp); | |
1003 | return pyobj; | |
1004 | } | |
1005 | ||
1006 | static int _wrap_wxWHITE_set(PyObject *val) { | |
1007 | ||
1008 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
1009 | return 1; | |
1010 | } | |
1011 | ||
1012 | static PyObject *_wrap_wxWHITE_get() { | |
1013 | PyObject * pyobj; | |
1014 | char ptemp[128]; | |
1015 | ||
1016 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1017 | pyobj = PyString_FromString(ptemp); | |
1018 | return pyobj; | |
1019 | } | |
1020 | ||
1021 | static int _wrap_wxRED_set(PyObject *val) { | |
1022 | ||
1023 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1024 | return 1; | |
1025 | } | |
1026 | ||
1027 | static PyObject *_wrap_wxRED_get() { | |
1028 | PyObject * pyobj; | |
1029 | char ptemp[128]; | |
1030 | ||
1031 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1032 | pyobj = PyString_FromString(ptemp); | |
1033 | return pyobj; | |
1034 | } | |
1035 | ||
1036 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1037 | ||
1038 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1039 | return 1; | |
1040 | } | |
1041 | ||
1042 | static PyObject *_wrap_wxBLUE_get() { | |
1043 | PyObject * pyobj; | |
1044 | char ptemp[128]; | |
1045 | ||
1046 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1047 | pyobj = PyString_FromString(ptemp); | |
1048 | return pyobj; | |
1049 | } | |
1050 | ||
1051 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1052 | ||
1053 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1054 | return 1; | |
1055 | } | |
1056 | ||
1057 | static PyObject *_wrap_wxGREEN_get() { | |
1058 | PyObject * pyobj; | |
1059 | char ptemp[128]; | |
1060 | ||
1061 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1062 | pyobj = PyString_FromString(ptemp); | |
1063 | return pyobj; | |
1064 | } | |
1065 | ||
1066 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1067 | ||
1068 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1069 | return 1; | |
1070 | } | |
1071 | ||
1072 | static PyObject *_wrap_wxCYAN_get() { | |
1073 | PyObject * pyobj; | |
1074 | char ptemp[128]; | |
1075 | ||
1076 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1077 | pyobj = PyString_FromString(ptemp); | |
1078 | return pyobj; | |
1079 | } | |
1080 | ||
1081 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1082 | ||
1083 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1084 | return 1; | |
1085 | } | |
1086 | ||
1087 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1088 | PyObject * pyobj; | |
1089 | char ptemp[128]; | |
1090 | ||
1091 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1092 | pyobj = PyString_FromString(ptemp); | |
1093 | return pyobj; | |
1094 | } | |
1095 | ||
1096 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1097 | ||
1098 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1099 | return 1; | |
1100 | } | |
1101 | ||
1102 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1103 | PyObject * pyobj; | |
1104 | char ptemp[128]; | |
1105 | ||
1106 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1107 | pyobj = PyString_FromString(ptemp); | |
1108 | return pyobj; | |
1109 | } | |
1110 | ||
1111 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1112 | ||
1113 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1114 | return 1; | |
1115 | } | |
1116 | ||
1117 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1118 | PyObject * pyobj; | |
1119 | char ptemp[128]; | |
1120 | ||
1121 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1122 | pyobj = PyString_FromString(ptemp); | |
1123 | return pyobj; | |
1124 | } | |
1125 | ||
1126 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1127 | ||
1128 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1129 | return 1; | |
1130 | } | |
1131 | ||
1132 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1133 | PyObject * pyobj; | |
1134 | char ptemp[128]; | |
1135 | ||
1136 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1137 | pyobj = PyString_FromString(ptemp); | |
1138 | return pyobj; | |
1139 | } | |
1140 | ||
1141 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1142 | ||
1143 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1144 | return 1; | |
1145 | } | |
1146 | ||
1147 | static PyObject *_wrap_wxNullBitmap_get() { | |
1148 | PyObject * pyobj; | |
1149 | char ptemp[128]; | |
1150 | ||
1151 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1152 | pyobj = PyString_FromString(ptemp); | |
1153 | return pyobj; | |
1154 | } | |
1155 | ||
1156 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1157 | ||
1158 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1159 | return 1; | |
1160 | } | |
1161 | ||
1162 | static PyObject *_wrap_wxNullIcon_get() { | |
1163 | PyObject * pyobj; | |
1164 | char ptemp[128]; | |
1165 | ||
1166 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1167 | pyobj = PyString_FromString(ptemp); | |
1168 | return pyobj; | |
1169 | } | |
1170 | ||
1171 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1172 | ||
1173 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1174 | return 1; | |
1175 | } | |
1176 | ||
1177 | static PyObject *_wrap_wxNullCursor_get() { | |
1178 | PyObject * pyobj; | |
1179 | char ptemp[128]; | |
1180 | ||
1181 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1182 | pyobj = PyString_FromString(ptemp); | |
1183 | return pyobj; | |
1184 | } | |
1185 | ||
1186 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1187 | ||
1188 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1189 | return 1; | |
1190 | } | |
1191 | ||
1192 | static PyObject *_wrap_wxNullPen_get() { | |
1193 | PyObject * pyobj; | |
1194 | char ptemp[128]; | |
1195 | ||
1196 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1197 | pyobj = PyString_FromString(ptemp); | |
1198 | return pyobj; | |
1199 | } | |
1200 | ||
1201 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1202 | ||
1203 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1204 | return 1; | |
1205 | } | |
1206 | ||
1207 | static PyObject *_wrap_wxNullBrush_get() { | |
1208 | PyObject * pyobj; | |
1209 | char ptemp[128]; | |
1210 | ||
1211 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1212 | pyobj = PyString_FromString(ptemp); | |
1213 | return pyobj; | |
1214 | } | |
1215 | ||
1216 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1217 | ||
1218 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1219 | return 1; | |
1220 | } | |
1221 | ||
1222 | static PyObject *_wrap_wxNullPalette_get() { | |
1223 | PyObject * pyobj; | |
1224 | char ptemp[128]; | |
1225 | ||
1226 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1227 | pyobj = PyString_FromString(ptemp); | |
1228 | return pyobj; | |
1229 | } | |
1230 | ||
1231 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1232 | ||
1233 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1234 | return 1; | |
1235 | } | |
1236 | ||
1237 | static PyObject *_wrap_wxNullFont_get() { | |
1238 | PyObject * pyobj; | |
1239 | char ptemp[128]; | |
1240 | ||
1241 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1242 | pyobj = PyString_FromString(ptemp); | |
1243 | return pyobj; | |
1244 | } | |
1245 | ||
1246 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1247 | ||
1248 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1249 | return 1; | |
1250 | } | |
1251 | ||
1252 | static PyObject *_wrap_wxNullColour_get() { | |
1253 | PyObject * pyobj; | |
1254 | char ptemp[128]; | |
1255 | ||
1256 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1257 | pyobj = PyString_FromString(ptemp); | |
1258 | return pyobj; | |
1259 | } | |
1260 | ||
1261 | static int _wrap_wxTheFontList_set(PyObject *val) { | |
1262 | ||
1263 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1264 | return 1; | |
1265 | } | |
1266 | ||
1267 | static PyObject *_wrap_wxTheFontList_get() { | |
1268 | PyObject * pyobj; | |
1269 | char ptemp[128]; | |
1270 | ||
1271 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1272 | pyobj = PyString_FromString(ptemp); | |
1273 | return pyobj; | |
1274 | } | |
1275 | ||
1276 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1277 | ||
1278 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1279 | return 1; | |
1280 | } | |
1281 | ||
1282 | static PyObject *_wrap_wxThePenList_get() { | |
1283 | PyObject * pyobj; | |
1284 | char ptemp[128]; | |
1285 | ||
1286 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1287 | pyobj = PyString_FromString(ptemp); | |
1288 | return pyobj; | |
1289 | } | |
1290 | ||
1291 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1292 | ||
1293 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1294 | return 1; | |
1295 | } | |
1296 | ||
1297 | static PyObject *_wrap_wxTheBrushList_get() { | |
1298 | PyObject * pyobj; | |
1299 | char ptemp[128]; | |
1300 | ||
1301 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); | |
1302 | pyobj = PyString_FromString(ptemp); | |
1303 | return pyobj; | |
1304 | } | |
1305 | ||
1306 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1307 | ||
1308 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1309 | return 1; | |
1310 | } | |
1311 | ||
1312 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1313 | PyObject * pyobj; | |
1314 | char ptemp[128]; | |
1315 | ||
1316 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1317 | pyobj = PyString_FromString(ptemp); | |
1318 | return pyobj; | |
1319 | } | |
1320 | ||
1321 | static void *SwigwxGDIObjectTowxObject(void *ptr) { | |
1322 | wxGDIObject *src; | |
1323 | wxObject *dest; | |
1324 | src = (wxGDIObject *) ptr; | |
1325 | dest = (wxObject *) src; | |
1326 | return (void *) dest; | |
1327 | } | |
1328 | ||
1329 | #define new_wxGDIObject() (new wxGDIObject()) | |
1330 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1331 | PyObject * _resultobj; | |
1332 | wxGDIObject * _result; | |
1333 | char *_kwnames[] = { NULL }; | |
1334 | char _ptemp[128]; | |
1335 | ||
1336 | self = self; | |
1337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1338 | return NULL; | |
1339 | { | |
0e2ff151 | 1340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1341 | _result = (wxGDIObject *)new_wxGDIObject(); |
e6056257 | 1342 | |
0e2ff151 | 1343 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1344 | if (PyErr_Occurred()) return NULL; |
1345 | } if (_result) { | |
1346 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1347 | _resultobj = Py_BuildValue("s",_ptemp); | |
1348 | } else { | |
1349 | Py_INCREF(Py_None); | |
1350 | _resultobj = Py_None; | |
1351 | } | |
1352 | return _resultobj; | |
1353 | } | |
1354 | ||
1355 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1356 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1357 | PyObject * _resultobj; | |
1358 | wxGDIObject * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | ||
1362 | self = self; | |
1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1364 | return NULL; | |
1365 | if (_argo0) { | |
1366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1369 | return NULL; | |
1370 | } | |
1371 | } | |
1372 | { | |
0e2ff151 | 1373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1374 | delete_wxGDIObject(_arg0); |
e6056257 | 1375 | |
0e2ff151 | 1376 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1377 | if (PyErr_Occurred()) return NULL; |
1378 | } Py_INCREF(Py_None); | |
1379 | _resultobj = Py_None; | |
1380 | return _resultobj; | |
1381 | } | |
1382 | ||
1383 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1384 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1385 | PyObject * _resultobj; | |
1386 | bool _result; | |
1387 | wxGDIObject * _arg0; | |
1388 | PyObject * _argo0 = 0; | |
1389 | char *_kwnames[] = { "self", NULL }; | |
1390 | ||
1391 | self = self; | |
1392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1393 | return NULL; | |
1394 | if (_argo0) { | |
1395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1398 | return NULL; | |
1399 | } | |
1400 | } | |
1401 | { | |
0e2ff151 | 1402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1403 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
e6056257 | 1404 | |
0e2ff151 | 1405 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1406 | if (PyErr_Occurred()) return NULL; |
1407 | } _resultobj = Py_BuildValue("i",_result); | |
1408 | return _resultobj; | |
1409 | } | |
1410 | ||
1411 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1412 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1413 | PyObject * _resultobj; | |
1414 | wxGDIObject * _arg0; | |
1415 | bool _arg1; | |
1416 | PyObject * _argo0 = 0; | |
1417 | int tempbool1; | |
1418 | char *_kwnames[] = { "self","visible", NULL }; | |
1419 | ||
1420 | self = self; | |
1421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1422 | return NULL; | |
1423 | if (_argo0) { | |
1424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1427 | return NULL; | |
1428 | } | |
1429 | } | |
1430 | _arg1 = (bool ) tempbool1; | |
1431 | { | |
0e2ff151 | 1432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1433 | wxGDIObject_SetVisible(_arg0,_arg1); |
e6056257 | 1434 | |
0e2ff151 | 1435 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1436 | if (PyErr_Occurred()) return NULL; |
1437 | } Py_INCREF(Py_None); | |
1438 | _resultobj = Py_None; | |
1439 | return _resultobj; | |
1440 | } | |
1441 | ||
1442 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1443 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1444 | PyObject * _resultobj; | |
1445 | bool _result; | |
1446 | wxGDIObject * _arg0; | |
1447 | PyObject * _argo0 = 0; | |
1448 | char *_kwnames[] = { "self", NULL }; | |
1449 | ||
1450 | self = self; | |
1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1452 | return NULL; | |
1453 | if (_argo0) { | |
1454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1457 | return NULL; | |
1458 | } | |
1459 | } | |
1460 | { | |
0e2ff151 | 1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1462 | _result = (bool )wxGDIObject_IsNull(_arg0); |
e6056257 | 1463 | |
0e2ff151 | 1464 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1465 | if (PyErr_Occurred()) return NULL; |
1466 | } _resultobj = Py_BuildValue("i",_result); | |
1467 | return _resultobj; | |
1468 | } | |
1469 | ||
1470 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1471 | wxBitmap *src; | |
1472 | wxGDIObject *dest; | |
1473 | src = (wxBitmap *) ptr; | |
1474 | dest = (wxGDIObject *) src; | |
1475 | return (void *) dest; | |
1476 | } | |
1477 | ||
1478 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1479 | wxBitmap *src; | |
1480 | wxObject *dest; | |
1481 | src = (wxBitmap *) ptr; | |
1482 | dest = (wxObject *) src; | |
1483 | return (void *) dest; | |
1484 | } | |
1485 | ||
1486 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
1487 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1488 | PyObject * _resultobj; | |
1489 | wxBitmap * _result; | |
1490 | wxString * _arg0; | |
da0ddbd6 | 1491 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
e6056257 RD |
1492 | PyObject * _obj0 = 0; |
1493 | char *_kwnames[] = { "name","type", NULL }; | |
1494 | char _ptemp[128]; | |
1495 | ||
1496 | self = self; | |
1497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) | |
1498 | return NULL; | |
1499 | { | |
6824d4f9 RD |
1500 | _arg0 = wxString_in_helper(_obj0); |
1501 | if (_arg0 == NULL) | |
e6056257 | 1502 | return NULL; |
e6056257 RD |
1503 | } |
1504 | { | |
0e2ff151 | 1505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1506 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
e6056257 | 1507 | |
0e2ff151 | 1508 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1509 | if (PyErr_Occurred()) return NULL; |
1510 | } if (_result) { | |
1511 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1512 | _resultobj = Py_BuildValue("s",_ptemp); | |
1513 | } else { | |
1514 | Py_INCREF(Py_None); | |
1515 | _resultobj = Py_None; | |
1516 | } | |
1517 | { | |
1518 | if (_obj0) | |
1519 | delete _arg0; | |
1520 | } | |
1521 | return _resultobj; | |
1522 | } | |
1523 | ||
1524 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
1525 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1526 | PyObject * _resultobj; | |
1527 | wxBitmap * _arg0; | |
1528 | PyObject * _argo0 = 0; | |
1529 | char *_kwnames[] = { "self", NULL }; | |
1530 | ||
1531 | self = self; | |
1532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) | |
1533 | return NULL; | |
1534 | if (_argo0) { | |
1535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
1538 | return NULL; | |
1539 | } | |
1540 | } | |
1541 | { | |
0e2ff151 | 1542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1543 | delete_wxBitmap(_arg0); |
e6056257 | 1544 | |
0e2ff151 | 1545 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1546 | if (PyErr_Occurred()) return NULL; |
1547 | } Py_INCREF(Py_None); | |
1548 | _resultobj = Py_None; | |
1549 | return _resultobj; | |
1550 | } | |
1551 | ||
1552 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1553 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1554 | PyObject * _resultobj; | |
1555 | wxPalette * _result; | |
1556 | wxBitmap * _arg0; | |
1557 | PyObject * _argo0 = 0; | |
1558 | char *_kwnames[] = { "self", NULL }; | |
1559 | char _ptemp[128]; | |
1560 | ||
1561 | self = self; | |
1562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) | |
1563 | return NULL; | |
1564 | if (_argo0) { | |
1565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1568 | return NULL; | |
1569 | } | |
1570 | } | |
1571 | { | |
0e2ff151 | 1572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1573 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
e6056257 | 1574 | |
0e2ff151 | 1575 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1576 | if (PyErr_Occurred()) return NULL; |
1577 | } if (_result) { | |
1578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1579 | _resultobj = Py_BuildValue("s",_ptemp); | |
1580 | } else { | |
1581 | Py_INCREF(Py_None); | |
1582 | _resultobj = Py_None; | |
1583 | } | |
1584 | return _resultobj; | |
1585 | } | |
1586 | ||
1587 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1588 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject * _resultobj; | |
1590 | wxMask * _result; | |
1591 | wxBitmap * _arg0; | |
1592 | PyObject * _argo0 = 0; | |
1593 | char *_kwnames[] = { "self", NULL }; | |
1594 | char _ptemp[128]; | |
1595 | ||
1596 | self = self; | |
1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) | |
1598 | return NULL; | |
1599 | if (_argo0) { | |
1600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1603 | return NULL; | |
1604 | } | |
1605 | } | |
1606 | { | |
0e2ff151 | 1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1608 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
e6056257 | 1609 | |
0e2ff151 | 1610 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1611 | if (PyErr_Occurred()) return NULL; |
1612 | } if (_result) { | |
1613 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1614 | _resultobj = Py_BuildValue("s",_ptemp); | |
1615 | } else { | |
1616 | Py_INCREF(Py_None); | |
1617 | _resultobj = Py_None; | |
1618 | } | |
1619 | return _resultobj; | |
1620 | } | |
1621 | ||
1622 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1623 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1624 | PyObject * _resultobj; | |
1625 | bool _result; | |
1626 | wxBitmap * _arg0; | |
1627 | wxString * _arg1; | |
da0ddbd6 | 1628 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
e6056257 RD |
1629 | PyObject * _argo0 = 0; |
1630 | PyObject * _obj1 = 0; | |
1631 | char *_kwnames[] = { "self","name","type", NULL }; | |
1632 | ||
1633 | self = self; | |
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1635 | return NULL; | |
1636 | if (_argo0) { | |
1637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1640 | return NULL; | |
1641 | } | |
1642 | } | |
1643 | { | |
6824d4f9 RD |
1644 | _arg1 = wxString_in_helper(_obj1); |
1645 | if (_arg1 == NULL) | |
e6056257 | 1646 | return NULL; |
e6056257 RD |
1647 | } |
1648 | { | |
0e2ff151 | 1649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1650 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
e6056257 | 1651 | |
0e2ff151 | 1652 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1653 | if (PyErr_Occurred()) return NULL; |
1654 | } _resultobj = Py_BuildValue("i",_result); | |
1655 | { | |
1656 | if (_obj1) | |
1657 | delete _arg1; | |
1658 | } | |
1659 | return _resultobj; | |
1660 | } | |
1661 | ||
1662 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) | |
1663 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1664 | PyObject * _resultobj; | |
1665 | bool _result; | |
1666 | wxBitmap * _arg0; | |
1667 | wxString * _arg1; | |
1668 | wxBitmapType _arg2; | |
1669 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1670 | PyObject * _argo0 = 0; | |
1671 | PyObject * _obj1 = 0; | |
1672 | PyObject * _argo3 = 0; | |
1673 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
1674 | ||
1675 | self = self; | |
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) | |
1677 | return NULL; | |
1678 | if (_argo0) { | |
1679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1682 | return NULL; | |
1683 | } | |
1684 | } | |
1685 | { | |
6824d4f9 RD |
1686 | _arg1 = wxString_in_helper(_obj1); |
1687 | if (_arg1 == NULL) | |
e6056257 | 1688 | return NULL; |
e6056257 RD |
1689 | } |
1690 | if (_argo3) { | |
1691 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1692 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
1697 | { | |
0e2ff151 | 1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1699 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 1700 | |
0e2ff151 | 1701 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1702 | if (PyErr_Occurred()) return NULL; |
1703 | } _resultobj = Py_BuildValue("i",_result); | |
1704 | { | |
1705 | if (_obj1) | |
1706 | delete _arg1; | |
1707 | } | |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1712 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | wxBitmap * _arg0; | |
1715 | wxMask * _arg1; | |
1716 | PyObject * _argo0 = 0; | |
1717 | PyObject * _argo1 = 0; | |
1718 | char *_kwnames[] = { "self","mask", NULL }; | |
1719 | ||
1720 | self = self; | |
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
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_SetMask. Expected _wxBitmap_p."); | |
1727 | return NULL; | |
1728 | } | |
1729 | } | |
1730 | if (_argo1) { | |
1731 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1732 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1734 | return NULL; | |
1735 | } | |
1736 | } | |
1737 | { | |
0e2ff151 | 1738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1739 | wxBitmap_SetMask(_arg0,_arg1); |
e6056257 | 1740 | |
0e2ff151 | 1741 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1742 | if (PyErr_Occurred()) return NULL; |
1743 | } Py_INCREF(Py_None); | |
1744 | _resultobj = Py_None; | |
1745 | return _resultobj; | |
1746 | } | |
1747 | ||
1748 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1749 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1750 | PyObject * _resultobj; | |
1751 | bool _result; | |
1752 | wxBitmap * _arg0; | |
1753 | PyObject * _argo0 = 0; | |
1754 | char *_kwnames[] = { "self", NULL }; | |
1755 | ||
1756 | self = self; | |
1757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1758 | return NULL; | |
1759 | if (_argo0) { | |
1760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1763 | return NULL; | |
1764 | } | |
1765 | } | |
1766 | { | |
0e2ff151 | 1767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1768 | _result = (bool )wxBitmap_Ok(_arg0); |
e6056257 | 1769 | |
0e2ff151 | 1770 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1771 | if (PyErr_Occurred()) return NULL; |
1772 | } _resultobj = Py_BuildValue("i",_result); | |
1773 | return _resultobj; | |
1774 | } | |
1775 | ||
1776 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1777 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1778 | PyObject * _resultobj; | |
1779 | int _result; | |
1780 | wxBitmap * _arg0; | |
1781 | PyObject * _argo0 = 0; | |
1782 | char *_kwnames[] = { "self", NULL }; | |
1783 | ||
1784 | self = self; | |
1785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1786 | return NULL; | |
1787 | if (_argo0) { | |
1788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1791 | return NULL; | |
1792 | } | |
1793 | } | |
1794 | { | |
0e2ff151 | 1795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1796 | _result = (int )wxBitmap_GetWidth(_arg0); |
e6056257 | 1797 | |
0e2ff151 | 1798 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1799 | if (PyErr_Occurred()) return NULL; |
1800 | } _resultobj = Py_BuildValue("i",_result); | |
1801 | return _resultobj; | |
1802 | } | |
1803 | ||
1804 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1805 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1806 | PyObject * _resultobj; | |
1807 | int _result; | |
1808 | wxBitmap * _arg0; | |
1809 | PyObject * _argo0 = 0; | |
1810 | char *_kwnames[] = { "self", NULL }; | |
1811 | ||
1812 | self = self; | |
1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1814 | return NULL; | |
1815 | if (_argo0) { | |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1819 | return NULL; | |
1820 | } | |
1821 | } | |
1822 | { | |
0e2ff151 | 1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1824 | _result = (int )wxBitmap_GetHeight(_arg0); |
e6056257 | 1825 | |
0e2ff151 | 1826 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1827 | if (PyErr_Occurred()) return NULL; |
1828 | } _resultobj = Py_BuildValue("i",_result); | |
1829 | return _resultobj; | |
1830 | } | |
1831 | ||
1832 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1833 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1834 | PyObject * _resultobj; | |
1835 | int _result; | |
1836 | wxBitmap * _arg0; | |
1837 | PyObject * _argo0 = 0; | |
1838 | char *_kwnames[] = { "self", NULL }; | |
1839 | ||
1840 | self = self; | |
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) | |
1842 | return NULL; | |
1843 | if (_argo0) { | |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1847 | return NULL; | |
1848 | } | |
1849 | } | |
1850 | { | |
0e2ff151 | 1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1852 | _result = (int )wxBitmap_GetDepth(_arg0); |
e6056257 | 1853 | |
0e2ff151 | 1854 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1855 | if (PyErr_Occurred()) return NULL; |
1856 | } _resultobj = Py_BuildValue("i",_result); | |
1857 | return _resultobj; | |
1858 | } | |
1859 | ||
1860 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1861 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1862 | PyObject * _resultobj; | |
1863 | wxBitmap * _arg0; | |
1864 | int _arg1; | |
1865 | PyObject * _argo0 = 0; | |
1866 | char *_kwnames[] = { "self","w", NULL }; | |
1867 | ||
1868 | self = self; | |
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1870 | return NULL; | |
1871 | if (_argo0) { | |
1872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1875 | return NULL; | |
1876 | } | |
1877 | } | |
1878 | { | |
0e2ff151 | 1879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1880 | wxBitmap_SetWidth(_arg0,_arg1); |
e6056257 | 1881 | |
0e2ff151 | 1882 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1883 | if (PyErr_Occurred()) return NULL; |
1884 | } Py_INCREF(Py_None); | |
1885 | _resultobj = Py_None; | |
1886 | return _resultobj; | |
1887 | } | |
1888 | ||
1889 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1890 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1891 | PyObject * _resultobj; | |
1892 | wxBitmap * _arg0; | |
1893 | int _arg1; | |
1894 | PyObject * _argo0 = 0; | |
1895 | char *_kwnames[] = { "self","h", NULL }; | |
1896 | ||
1897 | self = self; | |
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) | |
1899 | return NULL; | |
1900 | if (_argo0) { | |
1901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
1904 | return NULL; | |
1905 | } | |
1906 | } | |
1907 | { | |
0e2ff151 | 1908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1909 | wxBitmap_SetHeight(_arg0,_arg1); |
e6056257 | 1910 | |
0e2ff151 | 1911 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1912 | if (PyErr_Occurred()) return NULL; |
1913 | } Py_INCREF(Py_None); | |
1914 | _resultobj = Py_None; | |
1915 | return _resultobj; | |
1916 | } | |
1917 | ||
1918 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1919 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1920 | PyObject * _resultobj; | |
1921 | wxBitmap * _arg0; | |
1922 | int _arg1; | |
1923 | PyObject * _argo0 = 0; | |
1924 | char *_kwnames[] = { "self","d", NULL }; | |
1925 | ||
1926 | self = self; | |
1927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
1928 | return NULL; | |
1929 | if (_argo0) { | |
1930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
1933 | return NULL; | |
1934 | } | |
1935 | } | |
1936 | { | |
0e2ff151 | 1937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1938 | wxBitmap_SetDepth(_arg0,_arg1); |
e6056257 | 1939 | |
0e2ff151 | 1940 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1941 | if (PyErr_Occurred()) return NULL; |
1942 | } Py_INCREF(Py_None); | |
1943 | _resultobj = Py_None; | |
1944 | return _resultobj; | |
1945 | } | |
1946 | ||
1947 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) | |
1948 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1949 | PyObject * _resultobj; | |
1950 | wxBitmap * _result; | |
1951 | wxBitmap * _arg0; | |
1952 | wxRect * _arg1; | |
1953 | PyObject * _argo0 = 0; | |
1954 | wxRect temp; | |
1955 | PyObject * _obj1 = 0; | |
1956 | char *_kwnames[] = { "self","rect", NULL }; | |
1957 | char _ptemp[128]; | |
1958 | ||
1959 | self = self; | |
1960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1961 | return NULL; | |
1962 | if (_argo0) { | |
1963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1966 | return NULL; | |
1967 | } | |
1968 | } | |
1969 | { | |
1970 | _arg1 = &temp; | |
1971 | if (! wxRect_helper(_obj1, &_arg1)) | |
1972 | return NULL; | |
1973 | } | |
1974 | { | |
0e2ff151 | 1975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1976 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
e6056257 | 1977 | |
0e2ff151 | 1978 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1979 | if (PyErr_Occurred()) return NULL; |
1980 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1981 | _resultobj = Py_BuildValue("s",_ptemp); | |
1982 | return _resultobj; | |
1983 | } | |
1984 | ||
1985 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
1986 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1987 | PyObject * _resultobj; | |
1988 | bool _result; | |
1989 | wxBitmap * _arg0; | |
1990 | wxIcon * _arg1; | |
1991 | PyObject * _argo0 = 0; | |
1992 | PyObject * _argo1 = 0; | |
1993 | char *_kwnames[] = { "self","icon", NULL }; | |
1994 | ||
1995 | self = self; | |
1996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
1997 | return NULL; | |
1998 | if (_argo0) { | |
1999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2002 | return NULL; | |
2003 | } | |
2004 | } | |
2005 | if (_argo1) { | |
2006 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2007 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2009 | return NULL; | |
2010 | } | |
2011 | } | |
2012 | { | |
0e2ff151 | 2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2014 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
e6056257 | 2015 | |
0e2ff151 | 2016 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2017 | if (PyErr_Occurred()) return NULL; |
2018 | } _resultobj = Py_BuildValue("i",_result); | |
2019 | return _resultobj; | |
2020 | } | |
2021 | ||
2022 | static void *SwigwxMaskTowxObject(void *ptr) { | |
2023 | wxMask *src; | |
2024 | wxObject *dest; | |
2025 | src = (wxMask *) ptr; | |
2026 | dest = (wxObject *) src; | |
2027 | return (void *) dest; | |
2028 | } | |
2029 | ||
2030 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
2031 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2032 | PyObject * _resultobj; | |
2033 | wxMask * _result; | |
2034 | wxBitmap * _arg0; | |
2035 | PyObject * _argo0 = 0; | |
2036 | char *_kwnames[] = { "bitmap", NULL }; | |
2037 | char _ptemp[128]; | |
2038 | ||
2039 | self = self; | |
2040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2041 | return NULL; | |
2042 | if (_argo0) { | |
2043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2046 | return NULL; | |
2047 | } | |
2048 | } | |
2049 | { | |
0e2ff151 | 2050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2051 | _result = (wxMask *)new_wxMask(*_arg0); |
e6056257 | 2052 | |
0e2ff151 | 2053 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2054 | if (PyErr_Occurred()) return NULL; |
2055 | } if (_result) { | |
2056 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2057 | _resultobj = Py_BuildValue("s",_ptemp); | |
2058 | } else { | |
2059 | Py_INCREF(Py_None); | |
2060 | _resultobj = Py_None; | |
2061 | } | |
2062 | return _resultobj; | |
2063 | } | |
2064 | ||
2065 | static void wxMask_Destroy(wxMask *self) { delete self; } | |
2066 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2067 | PyObject * _resultobj; | |
2068 | wxMask * _arg0; | |
2069 | PyObject * _argo0 = 0; | |
2070 | char *_kwnames[] = { "self", NULL }; | |
2071 | ||
2072 | self = self; | |
2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2074 | return NULL; | |
2075 | if (_argo0) { | |
2076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2079 | return NULL; | |
2080 | } | |
2081 | } | |
2082 | { | |
0e2ff151 | 2083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2084 | wxMask_Destroy(_arg0); |
e6056257 | 2085 | |
0e2ff151 | 2086 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2087 | if (PyErr_Occurred()) return NULL; |
2088 | } Py_INCREF(Py_None); | |
2089 | _resultobj = Py_None; | |
2090 | return _resultobj; | |
2091 | } | |
2092 | ||
2093 | static void *SwigwxIconTowxGDIObject(void *ptr) { | |
2094 | wxIcon *src; | |
2095 | wxGDIObject *dest; | |
2096 | src = (wxIcon *) ptr; | |
2097 | dest = (wxGDIObject *) src; | |
2098 | return (void *) dest; | |
2099 | } | |
2100 | ||
2101 | static void *SwigwxIconTowxObject(void *ptr) { | |
2102 | wxIcon *src; | |
2103 | wxObject *dest; | |
2104 | src = (wxIcon *) ptr; | |
2105 | dest = (wxObject *) src; | |
2106 | return (void *) dest; | |
2107 | } | |
2108 | ||
2109 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2110 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2111 | PyObject * _resultobj; | |
2112 | wxIcon * _result; | |
2113 | wxString * _arg0; | |
2114 | long _arg1; | |
2115 | int _arg2 = (int ) -1; | |
2116 | int _arg3 = (int ) -1; | |
2117 | PyObject * _obj0 = 0; | |
2118 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; | |
2119 | char _ptemp[128]; | |
2120 | ||
2121 | self = self; | |
2122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2123 | return NULL; | |
2124 | { | |
6824d4f9 RD |
2125 | _arg0 = wxString_in_helper(_obj0); |
2126 | if (_arg0 == NULL) | |
e6056257 | 2127 | return NULL; |
e6056257 RD |
2128 | } |
2129 | { | |
0e2ff151 | 2130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2131 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
e6056257 | 2132 | |
0e2ff151 | 2133 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2134 | if (PyErr_Occurred()) return NULL; |
2135 | } if (_result) { | |
2136 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2137 | _resultobj = Py_BuildValue("s",_ptemp); | |
2138 | } else { | |
2139 | Py_INCREF(Py_None); | |
2140 | _resultobj = Py_None; | |
2141 | } | |
2142 | { | |
2143 | if (_obj0) | |
2144 | delete _arg0; | |
2145 | } | |
2146 | return _resultobj; | |
2147 | } | |
2148 | ||
2149 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
2150 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2151 | PyObject * _resultobj; | |
2152 | wxIcon * _arg0; | |
2153 | PyObject * _argo0 = 0; | |
2154 | char *_kwnames[] = { "self", NULL }; | |
2155 | ||
2156 | self = self; | |
2157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) | |
2158 | return NULL; | |
2159 | if (_argo0) { | |
2160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
2163 | return NULL; | |
2164 | } | |
2165 | } | |
2166 | { | |
0e2ff151 | 2167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2168 | delete_wxIcon(_arg0); |
e6056257 | 2169 | |
0e2ff151 | 2170 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2171 | if (PyErr_Occurred()) return NULL; |
2172 | } Py_INCREF(Py_None); | |
2173 | _resultobj = Py_None; | |
2174 | return _resultobj; | |
2175 | } | |
2176 | ||
e6056257 RD |
2177 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
2178 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2179 | PyObject * _resultobj; | |
2180 | bool _result; | |
2181 | wxIcon * _arg0; | |
2182 | PyObject * _argo0 = 0; | |
2183 | char *_kwnames[] = { "self", NULL }; | |
2184 | ||
2185 | self = self; | |
2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2187 | return NULL; | |
2188 | if (_argo0) { | |
2189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2192 | return NULL; | |
2193 | } | |
2194 | } | |
2195 | { | |
0e2ff151 | 2196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2197 | _result = (bool )wxIcon_Ok(_arg0); |
e6056257 | 2198 | |
0e2ff151 | 2199 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2200 | if (PyErr_Occurred()) return NULL; |
2201 | } _resultobj = Py_BuildValue("i",_result); | |
2202 | return _resultobj; | |
2203 | } | |
2204 | ||
2205 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2206 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2207 | PyObject * _resultobj; | |
2208 | int _result; | |
2209 | wxIcon * _arg0; | |
2210 | PyObject * _argo0 = 0; | |
2211 | char *_kwnames[] = { "self", NULL }; | |
2212 | ||
2213 | self = self; | |
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2215 | return NULL; | |
2216 | if (_argo0) { | |
2217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2220 | return NULL; | |
2221 | } | |
2222 | } | |
2223 | { | |
0e2ff151 | 2224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2225 | _result = (int )wxIcon_GetWidth(_arg0); |
e6056257 | 2226 | |
0e2ff151 | 2227 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2228 | if (PyErr_Occurred()) return NULL; |
2229 | } _resultobj = Py_BuildValue("i",_result); | |
2230 | return _resultobj; | |
2231 | } | |
2232 | ||
2233 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2234 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2235 | PyObject * _resultobj; | |
2236 | int _result; | |
2237 | wxIcon * _arg0; | |
2238 | PyObject * _argo0 = 0; | |
2239 | char *_kwnames[] = { "self", NULL }; | |
2240 | ||
2241 | self = self; | |
2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2243 | return NULL; | |
2244 | if (_argo0) { | |
2245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2248 | return NULL; | |
2249 | } | |
2250 | } | |
2251 | { | |
0e2ff151 | 2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2253 | _result = (int )wxIcon_GetHeight(_arg0); |
e6056257 | 2254 | |
0e2ff151 | 2255 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2256 | if (PyErr_Occurred()) return NULL; |
2257 | } _resultobj = Py_BuildValue("i",_result); | |
2258 | return _resultobj; | |
2259 | } | |
2260 | ||
2261 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2262 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2263 | PyObject * _resultobj; | |
2264 | int _result; | |
2265 | wxIcon * _arg0; | |
2266 | PyObject * _argo0 = 0; | |
2267 | char *_kwnames[] = { "self", NULL }; | |
2268 | ||
2269 | self = self; | |
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2271 | return NULL; | |
2272 | if (_argo0) { | |
2273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2276 | return NULL; | |
2277 | } | |
2278 | } | |
2279 | { | |
0e2ff151 | 2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2281 | _result = (int )wxIcon_GetDepth(_arg0); |
e6056257 | 2282 | |
0e2ff151 | 2283 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2284 | if (PyErr_Occurred()) return NULL; |
2285 | } _resultobj = Py_BuildValue("i",_result); | |
2286 | return _resultobj; | |
2287 | } | |
2288 | ||
2289 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2290 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject * _resultobj; | |
2292 | wxIcon * _arg0; | |
2293 | int _arg1; | |
2294 | PyObject * _argo0 = 0; | |
2295 | char *_kwnames[] = { "self","w", NULL }; | |
2296 | ||
2297 | self = self; | |
2298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2299 | return NULL; | |
2300 | if (_argo0) { | |
2301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2304 | return NULL; | |
2305 | } | |
2306 | } | |
2307 | { | |
0e2ff151 | 2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2309 | wxIcon_SetWidth(_arg0,_arg1); |
e6056257 | 2310 | |
0e2ff151 | 2311 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2312 | if (PyErr_Occurred()) return NULL; |
2313 | } Py_INCREF(Py_None); | |
2314 | _resultobj = Py_None; | |
2315 | return _resultobj; | |
2316 | } | |
2317 | ||
2318 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2319 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2320 | PyObject * _resultobj; | |
2321 | wxIcon * _arg0; | |
2322 | int _arg1; | |
2323 | PyObject * _argo0 = 0; | |
2324 | char *_kwnames[] = { "self","h", NULL }; | |
2325 | ||
2326 | self = self; | |
2327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2328 | return NULL; | |
2329 | if (_argo0) { | |
2330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2333 | return NULL; | |
2334 | } | |
2335 | } | |
2336 | { | |
0e2ff151 | 2337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2338 | wxIcon_SetHeight(_arg0,_arg1); |
e6056257 | 2339 | |
0e2ff151 | 2340 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2341 | if (PyErr_Occurred()) return NULL; |
2342 | } Py_INCREF(Py_None); | |
2343 | _resultobj = Py_None; | |
2344 | return _resultobj; | |
2345 | } | |
2346 | ||
2347 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2348 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject * _resultobj; | |
2350 | wxIcon * _arg0; | |
2351 | int _arg1; | |
2352 | PyObject * _argo0 = 0; | |
2353 | char *_kwnames[] = { "self","d", NULL }; | |
2354 | ||
2355 | self = self; | |
2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2357 | return NULL; | |
2358 | if (_argo0) { | |
2359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2362 | return NULL; | |
2363 | } | |
2364 | } | |
2365 | { | |
0e2ff151 | 2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2367 | wxIcon_SetDepth(_arg0,_arg1); |
e6056257 | 2368 | |
0e2ff151 | 2369 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2370 | if (PyErr_Occurred()) return NULL; |
2371 | } Py_INCREF(Py_None); | |
2372 | _resultobj = Py_None; | |
2373 | return _resultobj; | |
2374 | } | |
2375 | ||
2376 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) | |
2377 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2378 | PyObject * _resultobj; | |
2379 | wxIcon * _arg0; | |
2380 | wxBitmap * _arg1; | |
2381 | PyObject * _argo0 = 0; | |
6abe8375 RD |
2382 | PyObject * _argo1 = 0; |
2383 | char *_kwnames[] = { "self","bmp", NULL }; | |
2384 | ||
2385 | self = self; | |
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2387 | return NULL; | |
2388 | if (_argo0) { | |
2389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2392 | return NULL; | |
2393 | } | |
2394 | } | |
2395 | if (_argo1) { | |
2396 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2397 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2399 | return NULL; | |
2400 | } | |
2401 | } | |
2402 | { | |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2404 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
6abe8375 RD |
2405 | |
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) return NULL; | |
2408 | } Py_INCREF(Py_None); | |
2409 | _resultobj = Py_None; | |
2410 | return _resultobj; | |
2411 | } | |
2412 | ||
40699168 RD |
2413 | #define new_wxIconBundle() (new wxIconBundle()) |
2414 | static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6abe8375 | 2415 | PyObject * _resultobj; |
40699168 | 2416 | wxIconBundle * _result; |
6abe8375 RD |
2417 | char *_kwnames[] = { NULL }; |
2418 | char _ptemp[128]; | |
2419 | ||
2420 | self = self; | |
40699168 | 2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames)) |
6abe8375 RD |
2422 | return NULL; |
2423 | { | |
2424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40699168 | 2425 | _result = (wxIconBundle *)new_wxIconBundle(); |
6abe8375 RD |
2426 | |
2427 | wxPyEndAllowThreads(__tstate); | |
2428 | if (PyErr_Occurred()) return NULL; | |
2429 | } if (_result) { | |
40699168 | 2430 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); |
6abe8375 RD |
2431 | _resultobj = Py_BuildValue("s",_ptemp); |
2432 | } else { | |
2433 | Py_INCREF(Py_None); | |
2434 | _resultobj = Py_None; | |
2435 | } | |
2436 | return _resultobj; | |
2437 | } | |
2438 | ||
40699168 RD |
2439 | #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1)) |
2440 | static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2441 | PyObject * _resultobj; |
40699168 RD |
2442 | wxIconBundle * _result; |
2443 | wxString * _arg0; | |
2444 | long _arg1; | |
2445 | PyObject * _obj0 = 0; | |
2446 | char *_kwnames[] = { "file","type", NULL }; | |
2447 | char _ptemp[128]; | |
e6056257 RD |
2448 | |
2449 | self = self; | |
40699168 | 2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1)) |
e6056257 | 2451 | return NULL; |
e6056257 | 2452 | { |
40699168 RD |
2453 | _arg0 = wxString_in_helper(_obj0); |
2454 | if (_arg0 == NULL) | |
e6056257 | 2455 | return NULL; |
e6056257 RD |
2456 | } |
2457 | { | |
0e2ff151 | 2458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 2459 | _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1); |
e6056257 | 2460 | |
0e2ff151 | 2461 | wxPyEndAllowThreads(__tstate); |
e6056257 | 2462 | if (PyErr_Occurred()) return NULL; |
40699168 RD |
2463 | } if (_result) { |
2464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2465 | _resultobj = Py_BuildValue("s",_ptemp); | |
2466 | } else { | |
2467 | Py_INCREF(Py_None); | |
2468 | _resultobj = Py_None; | |
2469 | } | |
e6056257 | 2470 | { |
40699168 RD |
2471 | if (_obj0) |
2472 | delete _arg0; | |
e6056257 RD |
2473 | } |
2474 | return _resultobj; | |
2475 | } | |
2476 | ||
40699168 RD |
2477 | #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0)) |
2478 | static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2479 | PyObject * _resultobj; |
40699168 RD |
2480 | wxIconBundle * _result; |
2481 | wxIcon * _arg0; | |
e6056257 | 2482 | PyObject * _argo0 = 0; |
40699168 RD |
2483 | char *_kwnames[] = { "icon", NULL }; |
2484 | char _ptemp[128]; | |
e6056257 RD |
2485 | |
2486 | self = self; | |
40699168 | 2487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0)) |
e6056257 RD |
2488 | return NULL; |
2489 | if (_argo0) { | |
2490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
40699168 RD |
2491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p."); | |
e6056257 RD |
2493 | return NULL; |
2494 | } | |
2495 | } | |
e6056257 | 2496 | { |
0e2ff151 | 2497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 2498 | _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0); |
e6056257 | 2499 | |
0e2ff151 | 2500 | wxPyEndAllowThreads(__tstate); |
e6056257 | 2501 | if (PyErr_Occurred()) return NULL; |
40699168 RD |
2502 | } if (_result) { |
2503 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2504 | _resultobj = Py_BuildValue("s",_ptemp); | |
2505 | } else { | |
2506 | Py_INCREF(Py_None); | |
2507 | _resultobj = Py_None; | |
2508 | } | |
e6056257 RD |
2509 | return _resultobj; |
2510 | } | |
2511 | ||
40699168 RD |
2512 | #define delete_wxIconBundle(_swigobj) (delete _swigobj) |
2513 | static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2514 | PyObject * _resultobj; |
40699168 | 2515 | wxIconBundle * _arg0; |
e6056257 | 2516 | PyObject * _argo0 = 0; |
40699168 | 2517 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
2518 | |
2519 | self = self; | |
40699168 | 2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0)) |
e6056257 RD |
2521 | return NULL; |
2522 | if (_argo0) { | |
2523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
40699168 RD |
2524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p."); | |
e6056257 RD |
2526 | return NULL; |
2527 | } | |
2528 | } | |
2529 | { | |
0e2ff151 | 2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 2531 | delete_wxIconBundle(_arg0); |
e6056257 | 2532 | |
0e2ff151 | 2533 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2534 | if (PyErr_Occurred()) return NULL; |
2535 | } Py_INCREF(Py_None); | |
2536 | _resultobj = Py_None; | |
2537 | return _resultobj; | |
2538 | } | |
2539 | ||
40699168 RD |
2540 | #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0)) |
2541 | static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2542 | PyObject * _resultobj; |
40699168 RD |
2543 | wxIconBundle * _arg0; |
2544 | wxIcon * _arg1; | |
e6056257 RD |
2545 | PyObject * _argo0 = 0; |
2546 | PyObject * _argo1 = 0; | |
40699168 | 2547 | char *_kwnames[] = { "self","icon", NULL }; |
e6056257 RD |
2548 | |
2549 | self = self; | |
40699168 | 2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1)) |
e6056257 RD |
2551 | return NULL; |
2552 | if (_argo0) { | |
2553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
40699168 RD |
2554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p."); | |
e6056257 RD |
2556 | return NULL; |
2557 | } | |
2558 | } | |
2559 | if (_argo1) { | |
2560 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
40699168 RD |
2561 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { |
2562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p."); | |
e6056257 RD |
2563 | return NULL; |
2564 | } | |
2565 | } | |
2566 | { | |
0e2ff151 | 2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 2568 | wxIconBundle_AddIcon(_arg0,*_arg1); |
e6056257 | 2569 | |
0e2ff151 | 2570 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2571 | if (PyErr_Occurred()) return NULL; |
2572 | } Py_INCREF(Py_None); | |
2573 | _resultobj = Py_None; | |
2574 | return _resultobj; | |
2575 | } | |
2576 | ||
40699168 RD |
2577 | #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1)) |
2578 | static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6abe8375 | 2579 | PyObject * _resultobj; |
40699168 | 2580 | wxIconBundle * _arg0; |
6abe8375 | 2581 | wxString * _arg1; |
40699168 | 2582 | long _arg2; |
6abe8375 RD |
2583 | PyObject * _argo0 = 0; |
2584 | PyObject * _obj1 = 0; | |
40699168 | 2585 | char *_kwnames[] = { "self","file","type", NULL }; |
6abe8375 RD |
2586 | |
2587 | self = self; | |
40699168 | 2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
6abe8375 RD |
2589 | return NULL; |
2590 | if (_argo0) { | |
2591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
40699168 RD |
2592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p."); | |
6abe8375 RD |
2594 | return NULL; |
2595 | } | |
2596 | } | |
2597 | { | |
6824d4f9 RD |
2598 | _arg1 = wxString_in_helper(_obj1); |
2599 | if (_arg1 == NULL) | |
6abe8375 | 2600 | return NULL; |
6abe8375 RD |
2601 | } |
2602 | { | |
2603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40699168 | 2604 | wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2); |
6abe8375 RD |
2605 | |
2606 | wxPyEndAllowThreads(__tstate); | |
2607 | if (PyErr_Occurred()) return NULL; | |
2608 | } Py_INCREF(Py_None); | |
2609 | _resultobj = Py_None; | |
2610 | { | |
2611 | if (_obj1) | |
2612 | delete _arg1; | |
2613 | } | |
2614 | return _resultobj; | |
2615 | } | |
2616 | ||
40699168 RD |
2617 | #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0)) |
2618 | static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2619 | PyObject * _resultobj; |
40699168 RD |
2620 | wxIcon * _result; |
2621 | wxIconBundle * _arg0; | |
2622 | wxSize * _arg1; | |
e6056257 | 2623 | PyObject * _argo0 = 0; |
40699168 RD |
2624 | wxSize temp; |
2625 | PyObject * _obj1 = 0; | |
2626 | char *_kwnames[] = { "self","size", NULL }; | |
e6056257 RD |
2627 | char _ptemp[128]; |
2628 | ||
2629 | self = self; | |
40699168 | 2630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
2631 | return NULL; |
2632 | if (_argo0) { | |
2633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
40699168 RD |
2634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p."); | |
e6056257 RD |
2636 | return NULL; |
2637 | } | |
2638 | } | |
c3bfa1cb | 2639 | { |
40699168 RD |
2640 | _arg1 = &temp; |
2641 | if (! wxSize_helper(_obj1, &_arg1)) | |
c3bfa1cb RD |
2642 | return NULL; |
2643 | } | |
e6056257 | 2644 | { |
0e2ff151 | 2645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 RD |
2646 | const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1); |
2647 | _result = (wxIcon *) &_result_ref; | |
e6056257 | 2648 | |
0e2ff151 | 2649 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2650 | if (PyErr_Occurred()) return NULL; |
2651 | } if (_result) { | |
40699168 | 2652 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
e6056257 RD |
2653 | _resultobj = Py_BuildValue("s",_ptemp); |
2654 | } else { | |
2655 | Py_INCREF(Py_None); | |
2656 | _resultobj = Py_None; | |
2657 | } | |
2658 | return _resultobj; | |
2659 | } | |
2660 | ||
40699168 RD |
2661 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2662 | wxCursor *src; | |
2663 | wxGDIObject *dest; | |
2664 | src = (wxCursor *) ptr; | |
2665 | dest = (wxGDIObject *) src; | |
2666 | return (void *) dest; | |
2667 | } | |
2668 | ||
2669 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2670 | wxCursor *src; | |
2671 | wxObject *dest; | |
2672 | src = (wxCursor *) ptr; | |
2673 | dest = (wxObject *) src; | |
2674 | return (void *) dest; | |
2675 | } | |
2676 | ||
2677 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2678 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2679 | PyObject * _resultobj; |
40699168 | 2680 | wxCursor * _arg0; |
e6056257 | 2681 | PyObject * _argo0 = 0; |
40699168 | 2682 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
2683 | |
2684 | self = self; | |
40699168 | 2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) |
e6056257 RD |
2686 | return NULL; |
2687 | if (_argo0) { | |
2688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
40699168 RD |
2689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { |
2690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
e6056257 RD |
2691 | return NULL; |
2692 | } | |
2693 | } | |
2694 | { | |
0e2ff151 | 2695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 2696 | delete_wxCursor(_arg0); |
e6056257 | 2697 | |
0e2ff151 | 2698 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2699 | if (PyErr_Occurred()) return NULL; |
2700 | } Py_INCREF(Py_None); | |
2701 | _resultobj = Py_None; | |
2702 | return _resultobj; | |
2703 | } | |
2704 | ||
40699168 RD |
2705 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) |
2706 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
00360d46 | 2707 | PyObject * _resultobj; |
40699168 RD |
2708 | bool _result; |
2709 | wxCursor * _arg0; | |
00360d46 RD |
2710 | PyObject * _argo0 = 0; |
2711 | char *_kwnames[] = { "self", NULL }; | |
2712 | ||
2713 | self = self; | |
40699168 | 2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) |
00360d46 RD |
2715 | return NULL; |
2716 | if (_argo0) { | |
2717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
40699168 RD |
2718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { |
2719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
00360d46 RD |
2720 | return NULL; |
2721 | } | |
2722 | } | |
2723 | { | |
0e2ff151 | 2724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 2725 | _result = (bool )wxCursor_Ok(_arg0); |
00360d46 | 2726 | |
0e2ff151 | 2727 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
2728 | if (PyErr_Occurred()) return NULL; |
2729 | } _resultobj = Py_BuildValue("i",_result); | |
2730 | return _resultobj; | |
2731 | } | |
2732 | ||
e6056257 RD |
2733 | static void *SwigwxColourTowxObject(void *ptr) { |
2734 | wxColour *src; | |
2735 | wxObject *dest; | |
2736 | src = (wxColour *) ptr; | |
2737 | dest = (wxObject *) src; | |
2738 | return (void *) dest; | |
2739 | } | |
2740 | ||
2741 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) | |
2742 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2743 | PyObject * _resultobj; | |
2744 | wxColour * _result; | |
2745 | unsigned char _arg0 = (unsigned char ) 0; | |
2746 | unsigned char _arg1 = (unsigned char ) 0; | |
2747 | unsigned char _arg2 = (unsigned char ) 0; | |
2748 | char *_kwnames[] = { "red","green","blue", NULL }; | |
2749 | char _ptemp[128]; | |
2750 | ||
2751 | self = self; | |
2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) | |
2753 | return NULL; | |
2754 | { | |
0e2ff151 | 2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2756 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
e6056257 | 2757 | |
0e2ff151 | 2758 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2759 | if (PyErr_Occurred()) return NULL; |
2760 | } if (_result) { | |
2761 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
2762 | _resultobj = Py_BuildValue("s",_ptemp); | |
2763 | } else { | |
2764 | Py_INCREF(Py_None); | |
2765 | _resultobj = Py_None; | |
2766 | } | |
2767 | return _resultobj; | |
2768 | } | |
2769 | ||
2770 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
2771 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | wxColour * _arg0; | |
2774 | wxColour temp; | |
2775 | PyObject * _obj0 = 0; | |
2776 | char *_kwnames[] = { "self", NULL }; | |
2777 | ||
2778 | self = self; | |
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) | |
2780 | return NULL; | |
2781 | { | |
2782 | _arg0 = &temp; | |
2783 | if (! wxColour_helper(_obj0, &_arg0)) | |
2784 | return NULL; | |
2785 | } | |
2786 | { | |
0e2ff151 | 2787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2788 | delete_wxColour(_arg0); |
e6056257 | 2789 | |
0e2ff151 | 2790 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2791 | if (PyErr_Occurred()) return NULL; |
2792 | } Py_INCREF(Py_None); | |
2793 | _resultobj = Py_None; | |
2794 | return _resultobj; | |
2795 | } | |
2796 | ||
2797 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
2798 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject * _resultobj; | |
2800 | unsigned char _result; | |
2801 | wxColour * _arg0; | |
2802 | wxColour temp; | |
2803 | PyObject * _obj0 = 0; | |
2804 | char *_kwnames[] = { "self", NULL }; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) | |
2808 | return NULL; | |
2809 | { | |
2810 | _arg0 = &temp; | |
2811 | if (! wxColour_helper(_obj0, &_arg0)) | |
2812 | return NULL; | |
2813 | } | |
2814 | { | |
0e2ff151 | 2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2816 | _result = (unsigned char )wxColour_Red(_arg0); |
e6056257 | 2817 | |
0e2ff151 | 2818 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2819 | if (PyErr_Occurred()) return NULL; |
2820 | } _resultobj = Py_BuildValue("b",_result); | |
2821 | return _resultobj; | |
2822 | } | |
2823 | ||
2824 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
2825 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2826 | PyObject * _resultobj; | |
2827 | unsigned char _result; | |
2828 | wxColour * _arg0; | |
2829 | wxColour temp; | |
2830 | PyObject * _obj0 = 0; | |
2831 | char *_kwnames[] = { "self", NULL }; | |
2832 | ||
2833 | self = self; | |
2834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) | |
2835 | return NULL; | |
2836 | { | |
2837 | _arg0 = &temp; | |
2838 | if (! wxColour_helper(_obj0, &_arg0)) | |
2839 | return NULL; | |
2840 | } | |
2841 | { | |
0e2ff151 | 2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2843 | _result = (unsigned char )wxColour_Green(_arg0); |
e6056257 | 2844 | |
0e2ff151 | 2845 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2846 | if (PyErr_Occurred()) return NULL; |
2847 | } _resultobj = Py_BuildValue("b",_result); | |
2848 | return _resultobj; | |
2849 | } | |
2850 | ||
2851 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
2852 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2853 | PyObject * _resultobj; | |
2854 | unsigned char _result; | |
2855 | wxColour * _arg0; | |
2856 | wxColour temp; | |
2857 | PyObject * _obj0 = 0; | |
2858 | char *_kwnames[] = { "self", NULL }; | |
2859 | ||
2860 | self = self; | |
2861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) | |
2862 | return NULL; | |
2863 | { | |
2864 | _arg0 = &temp; | |
2865 | if (! wxColour_helper(_obj0, &_arg0)) | |
2866 | return NULL; | |
2867 | } | |
2868 | { | |
0e2ff151 | 2869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2870 | _result = (unsigned char )wxColour_Blue(_arg0); |
e6056257 | 2871 | |
0e2ff151 | 2872 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2873 | if (PyErr_Occurred()) return NULL; |
2874 | } _resultobj = Py_BuildValue("b",_result); | |
2875 | return _resultobj; | |
2876 | } | |
2877 | ||
2878 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
2879 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2880 | PyObject * _resultobj; | |
2881 | bool _result; | |
2882 | wxColour * _arg0; | |
2883 | wxColour temp; | |
2884 | PyObject * _obj0 = 0; | |
2885 | char *_kwnames[] = { "self", NULL }; | |
2886 | ||
2887 | self = self; | |
2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) | |
2889 | return NULL; | |
2890 | { | |
2891 | _arg0 = &temp; | |
2892 | if (! wxColour_helper(_obj0, &_arg0)) | |
2893 | return NULL; | |
2894 | } | |
2895 | { | |
0e2ff151 | 2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2897 | _result = (bool )wxColour_Ok(_arg0); |
e6056257 | 2898 | |
0e2ff151 | 2899 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2900 | if (PyErr_Occurred()) return NULL; |
2901 | } _resultobj = Py_BuildValue("i",_result); | |
2902 | return _resultobj; | |
2903 | } | |
2904 | ||
2905 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
2906 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2907 | PyObject * _resultobj; | |
2908 | wxColour * _arg0; | |
2909 | unsigned char _arg1; | |
2910 | unsigned char _arg2; | |
2911 | unsigned char _arg3; | |
2912 | wxColour temp; | |
2913 | PyObject * _obj0 = 0; | |
2914 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
2915 | ||
2916 | self = self; | |
2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2918 | return NULL; | |
2919 | { | |
2920 | _arg0 = &temp; | |
2921 | if (! wxColour_helper(_obj0, &_arg0)) | |
2922 | return NULL; | |
2923 | } | |
2924 | { | |
0e2ff151 | 2925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2926 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 2927 | |
0e2ff151 | 2928 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2929 | if (PyErr_Occurred()) return NULL; |
2930 | } Py_INCREF(Py_None); | |
2931 | _resultobj = Py_None; | |
2932 | return _resultobj; | |
2933 | } | |
2934 | ||
2935 | static PyObject * wxColour_Get(wxColour *self) { | |
2936 | PyObject* rv = PyTuple_New(3); | |
2937 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
2938 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
2939 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
2940 | return rv; | |
2941 | } | |
2942 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2943 | PyObject * _resultobj; | |
2944 | PyObject * _result; | |
2945 | wxColour * _arg0; | |
2946 | wxColour temp; | |
2947 | PyObject * _obj0 = 0; | |
2948 | char *_kwnames[] = { "self", NULL }; | |
2949 | ||
2950 | self = self; | |
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) | |
2952 | return NULL; | |
2953 | { | |
2954 | _arg0 = &temp; | |
2955 | if (! wxColour_helper(_obj0, &_arg0)) | |
2956 | return NULL; | |
2957 | } | |
2958 | { | |
0e2ff151 | 2959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2960 | _result = (PyObject *)wxColour_Get(_arg0); |
e6056257 | 2961 | |
0e2ff151 | 2962 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2963 | if (PyErr_Occurred()) return NULL; |
2964 | }{ | |
2965 | _resultobj = _result; | |
2966 | } | |
2967 | return _resultobj; | |
2968 | } | |
2969 | ||
2970 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { | |
2971 | wxColourDatabase *src; | |
2972 | wxObject *dest; | |
2973 | src = (wxColourDatabase *) ptr; | |
2974 | dest = (wxObject *) src; | |
2975 | return (void *) dest; | |
2976 | } | |
2977 | ||
2978 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) | |
2979 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2980 | PyObject * _resultobj; | |
2981 | wxColour * _result; | |
2982 | wxColourDatabase * _arg0; | |
2983 | wxString * _arg1; | |
2984 | PyObject * _argo0 = 0; | |
2985 | PyObject * _obj1 = 0; | |
2986 | char *_kwnames[] = { "self","colour", NULL }; | |
2987 | char _ptemp[128]; | |
2988 | ||
2989 | self = self; | |
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
2991 | return NULL; | |
2992 | if (_argo0) { | |
2993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
2995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
2996 | return NULL; | |
2997 | } | |
2998 | } | |
2999 | { | |
6824d4f9 RD |
3000 | _arg1 = wxString_in_helper(_obj1); |
3001 | if (_arg1 == NULL) | |
e6056257 | 3002 | return NULL; |
e6056257 RD |
3003 | } |
3004 | { | |
0e2ff151 | 3005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3006 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
e6056257 | 3007 | |
0e2ff151 | 3008 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3009 | if (PyErr_Occurred()) return NULL; |
3010 | } if (_result) { | |
3011 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3012 | _resultobj = Py_BuildValue("s",_ptemp); | |
3013 | } else { | |
3014 | Py_INCREF(Py_None); | |
3015 | _resultobj = Py_None; | |
3016 | } | |
3017 | { | |
3018 | if (_obj1) | |
3019 | delete _arg1; | |
3020 | } | |
3021 | return _resultobj; | |
3022 | } | |
3023 | ||
3024 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
3025 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject * _resultobj; | |
3027 | wxString * _result; | |
3028 | wxColourDatabase * _arg0; | |
3029 | wxColour * _arg1; | |
3030 | PyObject * _argo0 = 0; | |
3031 | wxColour temp; | |
3032 | PyObject * _obj1 = 0; | |
3033 | char *_kwnames[] = { "self","colour", NULL }; | |
3034 | ||
3035 | self = self; | |
3036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
3037 | return NULL; | |
3038 | if (_argo0) { | |
3039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
3042 | return NULL; | |
3043 | } | |
3044 | } | |
3045 | { | |
3046 | _arg1 = &temp; | |
3047 | if (! wxColour_helper(_obj1, &_arg1)) | |
3048 | return NULL; | |
3049 | } | |
3050 | { | |
0e2ff151 | 3051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3052 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
e6056257 | 3053 | |
0e2ff151 | 3054 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3055 | if (PyErr_Occurred()) return NULL; |
3056 | }{ | |
6824d4f9 RD |
3057 | #if wxUSE_UNICODE |
3058 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3059 | #else | |
e6056257 | 3060 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3061 | #endif |
e6056257 RD |
3062 | } |
3063 | { | |
3064 | delete _result; | |
3065 | } | |
3066 | return _resultobj; | |
3067 | } | |
3068 | ||
3069 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
a341e32e RD |
3070 | // first see if the name is already there |
3071 | wxString cName = name; | |
3072 | cName.MakeUpper(); | |
3073 | wxString cName2 = cName; | |
c3bfa1cb | 3074 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) |
a341e32e RD |
3075 | cName2.clear(); |
3076 | ||
3077 | wxNode *node = self->First(); | |
3078 | while ( node ) { | |
3079 | const wxChar *key = node->GetKeyString(); | |
3080 | if ( cName == key || cName2 == key ) { | |
3081 | wxColour* c = (wxColour *)node->Data(); | |
3082 | c->Set(red, green, blue); | |
3083 | return; | |
3084 | } | |
3085 | node = node->Next(); | |
3086 | } | |
3087 | ||
3088 | // otherwise append the new colour | |
e6056257 RD |
3089 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
3090 | } | |
3091 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3092 | PyObject * _resultobj; | |
3093 | wxColourDatabase * _arg0; | |
3094 | wxString * _arg1; | |
3095 | int _arg2; | |
3096 | int _arg3; | |
3097 | int _arg4; | |
3098 | PyObject * _argo0 = 0; | |
3099 | PyObject * _obj1 = 0; | |
3100 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
3101 | ||
3102 | self = self; | |
3103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
3104 | return NULL; | |
3105 | if (_argo0) { | |
3106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
3109 | return NULL; | |
3110 | } | |
3111 | } | |
3112 | { | |
6824d4f9 RD |
3113 | _arg1 = wxString_in_helper(_obj1); |
3114 | if (_arg1 == NULL) | |
e6056257 | 3115 | return NULL; |
e6056257 RD |
3116 | } |
3117 | { | |
0e2ff151 | 3118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3119 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
e6056257 | 3120 | |
0e2ff151 | 3121 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3122 | if (PyErr_Occurred()) return NULL; |
3123 | } Py_INCREF(Py_None); | |
3124 | _resultobj = Py_None; | |
3125 | { | |
3126 | if (_obj1) | |
3127 | delete _arg1; | |
3128 | } | |
3129 | return _resultobj; | |
3130 | } | |
3131 | ||
3132 | static void *SwigwxPenTowxGDIObject(void *ptr) { | |
3133 | wxPen *src; | |
3134 | wxGDIObject *dest; | |
3135 | src = (wxPen *) ptr; | |
3136 | dest = (wxGDIObject *) src; | |
3137 | return (void *) dest; | |
3138 | } | |
3139 | ||
3140 | static void *SwigwxPenTowxObject(void *ptr) { | |
3141 | wxPen *src; | |
3142 | wxObject *dest; | |
3143 | src = (wxPen *) ptr; | |
3144 | dest = (wxObject *) src; | |
3145 | return (void *) dest; | |
3146 | } | |
3147 | ||
3148 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
3149 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3150 | PyObject * _resultobj; | |
3151 | wxPen * _result; | |
3152 | wxColour * _arg0; | |
3153 | int _arg1 = (int ) 1; | |
3154 | int _arg2 = (int ) wxSOLID; | |
3155 | wxColour temp; | |
3156 | PyObject * _obj0 = 0; | |
3157 | char *_kwnames[] = { "colour","width","style", NULL }; | |
3158 | char _ptemp[128]; | |
3159 | ||
3160 | self = self; | |
3161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
3162 | return NULL; | |
3163 | { | |
3164 | _arg0 = &temp; | |
3165 | if (! wxColour_helper(_obj0, &_arg0)) | |
3166 | return NULL; | |
3167 | } | |
3168 | { | |
0e2ff151 | 3169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3170 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
e6056257 | 3171 | |
0e2ff151 | 3172 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3173 | if (PyErr_Occurred()) return NULL; |
3174 | } if (_result) { | |
3175 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3176 | _resultobj = Py_BuildValue("s",_ptemp); | |
3177 | } else { | |
3178 | Py_INCREF(Py_None); | |
3179 | _resultobj = Py_None; | |
3180 | } | |
3181 | return _resultobj; | |
3182 | } | |
3183 | ||
3184 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
3185 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3186 | PyObject * _resultobj; | |
3187 | wxPen * _arg0; | |
3188 | PyObject * _argo0 = 0; | |
3189 | char *_kwnames[] = { "self", NULL }; | |
3190 | ||
3191 | self = self; | |
3192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
3193 | return NULL; | |
3194 | if (_argo0) { | |
3195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
3198 | return NULL; | |
3199 | } | |
3200 | } | |
3201 | { | |
0e2ff151 | 3202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3203 | delete_wxPen(_arg0); |
e6056257 | 3204 | |
0e2ff151 | 3205 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3206 | if (PyErr_Occurred()) return NULL; |
3207 | } Py_INCREF(Py_None); | |
3208 | _resultobj = Py_None; | |
3209 | return _resultobj; | |
3210 | } | |
3211 | ||
3212 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
3213 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3214 | PyObject * _resultobj; | |
3215 | int _result; | |
3216 | wxPen * _arg0; | |
3217 | PyObject * _argo0 = 0; | |
3218 | char *_kwnames[] = { "self", NULL }; | |
3219 | ||
3220 | self = self; | |
3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
3222 | return NULL; | |
3223 | if (_argo0) { | |
3224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
3227 | return NULL; | |
3228 | } | |
3229 | } | |
3230 | { | |
0e2ff151 | 3231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3232 | _result = (int )wxPen_GetCap(_arg0); |
e6056257 | 3233 | |
0e2ff151 | 3234 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3235 | if (PyErr_Occurred()) return NULL; |
3236 | } _resultobj = Py_BuildValue("i",_result); | |
3237 | return _resultobj; | |
3238 | } | |
3239 | ||
3240 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
3241 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3242 | PyObject * _resultobj; | |
3243 | wxColour * _result; | |
3244 | wxPen * _arg0; | |
3245 | PyObject * _argo0 = 0; | |
3246 | char *_kwnames[] = { "self", NULL }; | |
3247 | char _ptemp[128]; | |
3248 | ||
3249 | self = self; | |
3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
3251 | return NULL; | |
3252 | if (_argo0) { | |
3253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
3256 | return NULL; | |
3257 | } | |
3258 | } | |
3259 | { | |
0e2ff151 | 3260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3261 | _result = new wxColour (wxPen_GetColour(_arg0)); |
e6056257 | 3262 | |
0e2ff151 | 3263 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3264 | if (PyErr_Occurred()) return NULL; |
3265 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
3266 | _resultobj = Py_BuildValue("s",_ptemp); | |
3267 | return _resultobj; | |
3268 | } | |
3269 | ||
3270 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
3271 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3272 | PyObject * _resultobj; | |
3273 | int _result; | |
3274 | wxPen * _arg0; | |
3275 | PyObject * _argo0 = 0; | |
3276 | char *_kwnames[] = { "self", NULL }; | |
3277 | ||
3278 | self = self; | |
3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) | |
3280 | return NULL; | |
3281 | if (_argo0) { | |
3282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
3285 | return NULL; | |
3286 | } | |
3287 | } | |
3288 | { | |
0e2ff151 | 3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3290 | _result = (int )wxPen_GetJoin(_arg0); |
e6056257 | 3291 | |
0e2ff151 | 3292 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3293 | if (PyErr_Occurred()) return NULL; |
3294 | } _resultobj = Py_BuildValue("i",_result); | |
3295 | return _resultobj; | |
3296 | } | |
3297 | ||
3298 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3299 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3300 | PyObject * _resultobj; | |
3301 | int _result; | |
3302 | wxPen * _arg0; | |
3303 | PyObject * _argo0 = 0; | |
3304 | char *_kwnames[] = { "self", NULL }; | |
3305 | ||
3306 | self = self; | |
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) | |
3308 | return NULL; | |
3309 | if (_argo0) { | |
3310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
3313 | return NULL; | |
3314 | } | |
3315 | } | |
3316 | { | |
0e2ff151 | 3317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3318 | _result = (int )wxPen_GetStyle(_arg0); |
e6056257 | 3319 | |
0e2ff151 | 3320 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3321 | if (PyErr_Occurred()) return NULL; |
3322 | } _resultobj = Py_BuildValue("i",_result); | |
3323 | return _resultobj; | |
3324 | } | |
3325 | ||
3326 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
3327 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3328 | PyObject * _resultobj; | |
3329 | int _result; | |
3330 | wxPen * _arg0; | |
3331 | PyObject * _argo0 = 0; | |
3332 | char *_kwnames[] = { "self", NULL }; | |
3333 | ||
3334 | self = self; | |
3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) | |
3336 | return NULL; | |
3337 | if (_argo0) { | |
3338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
3341 | return NULL; | |
3342 | } | |
3343 | } | |
3344 | { | |
0e2ff151 | 3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3346 | _result = (int )wxPen_GetWidth(_arg0); |
e6056257 | 3347 | |
0e2ff151 | 3348 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3349 | if (PyErr_Occurred()) return NULL; |
3350 | } _resultobj = Py_BuildValue("i",_result); | |
3351 | return _resultobj; | |
3352 | } | |
3353 | ||
3354 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
3355 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3356 | PyObject * _resultobj; | |
3357 | bool _result; | |
3358 | wxPen * _arg0; | |
3359 | PyObject * _argo0 = 0; | |
3360 | char *_kwnames[] = { "self", NULL }; | |
3361 | ||
3362 | self = self; | |
3363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) | |
3364 | return NULL; | |
3365 | if (_argo0) { | |
3366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
3369 | return NULL; | |
3370 | } | |
3371 | } | |
3372 | { | |
0e2ff151 | 3373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3374 | _result = (bool )wxPen_Ok(_arg0); |
e6056257 | 3375 | |
0e2ff151 | 3376 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3377 | if (PyErr_Occurred()) return NULL; |
3378 | } _resultobj = Py_BuildValue("i",_result); | |
3379 | return _resultobj; | |
3380 | } | |
3381 | ||
3382 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
3383 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3384 | PyObject * _resultobj; | |
3385 | wxPen * _arg0; | |
3386 | int _arg1; | |
3387 | PyObject * _argo0 = 0; | |
3388 | char *_kwnames[] = { "self","cap_style", NULL }; | |
3389 | ||
3390 | self = self; | |
3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) | |
3392 | return NULL; | |
3393 | if (_argo0) { | |
3394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
3397 | return NULL; | |
3398 | } | |
3399 | } | |
3400 | { | |
0e2ff151 | 3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3402 | wxPen_SetCap(_arg0,_arg1); |
e6056257 | 3403 | |
0e2ff151 | 3404 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3405 | if (PyErr_Occurred()) return NULL; |
3406 | } Py_INCREF(Py_None); | |
3407 | _resultobj = Py_None; | |
3408 | return _resultobj; | |
3409 | } | |
3410 | ||
3411 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
3412 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3413 | PyObject * _resultobj; | |
3414 | wxPen * _arg0; | |
3415 | wxColour * _arg1; | |
3416 | PyObject * _argo0 = 0; | |
3417 | wxColour temp; | |
3418 | PyObject * _obj1 = 0; | |
3419 | char *_kwnames[] = { "self","colour", NULL }; | |
3420 | ||
3421 | self = self; | |
3422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) | |
3423 | return NULL; | |
3424 | if (_argo0) { | |
3425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
3428 | return NULL; | |
3429 | } | |
3430 | } | |
3431 | { | |
3432 | _arg1 = &temp; | |
3433 | if (! wxColour_helper(_obj1, &_arg1)) | |
3434 | return NULL; | |
3435 | } | |
3436 | { | |
0e2ff151 | 3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3438 | wxPen_SetColour(_arg0,*_arg1); |
e6056257 | 3439 | |
0e2ff151 | 3440 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3441 | if (PyErr_Occurred()) return NULL; |
3442 | } Py_INCREF(Py_None); | |
3443 | _resultobj = Py_None; | |
3444 | return _resultobj; | |
3445 | } | |
3446 | ||
3447 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
3448 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3449 | PyObject * _resultobj; | |
3450 | wxPen * _arg0; | |
3451 | int _arg1; | |
3452 | PyObject * _argo0 = 0; | |
3453 | char *_kwnames[] = { "self","join_style", NULL }; | |
3454 | ||
3455 | self = self; | |
3456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) | |
3457 | return NULL; | |
3458 | if (_argo0) { | |
3459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
3462 | return NULL; | |
3463 | } | |
3464 | } | |
3465 | { | |
0e2ff151 | 3466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3467 | wxPen_SetJoin(_arg0,_arg1); |
e6056257 | 3468 | |
0e2ff151 | 3469 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3470 | if (PyErr_Occurred()) return NULL; |
3471 | } Py_INCREF(Py_None); | |
3472 | _resultobj = Py_None; | |
3473 | return _resultobj; | |
3474 | } | |
3475 | ||
3476 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
3477 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject * _resultobj; | |
3479 | wxPen * _arg0; | |
3480 | int _arg1; | |
3481 | PyObject * _argo0 = 0; | |
3482 | char *_kwnames[] = { "self","style", NULL }; | |
3483 | ||
3484 | self = self; | |
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) | |
3486 | return NULL; | |
3487 | if (_argo0) { | |
3488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
3491 | return NULL; | |
3492 | } | |
3493 | } | |
3494 | { | |
0e2ff151 | 3495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3496 | wxPen_SetStyle(_arg0,_arg1); |
e6056257 | 3497 | |
0e2ff151 | 3498 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3499 | if (PyErr_Occurred()) return NULL; |
3500 | } Py_INCREF(Py_None); | |
3501 | _resultobj = Py_None; | |
3502 | return _resultobj; | |
3503 | } | |
3504 | ||
3505 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3506 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3507 | PyObject * _resultobj; | |
3508 | wxPen * _arg0; | |
3509 | int _arg1; | |
3510 | PyObject * _argo0 = 0; | |
3511 | char *_kwnames[] = { "self","width", NULL }; | |
3512 | ||
3513 | self = self; | |
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3515 | return NULL; | |
3516 | if (_argo0) { | |
3517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
3520 | return NULL; | |
3521 | } | |
3522 | } | |
3523 | { | |
0e2ff151 | 3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3525 | wxPen_SetWidth(_arg0,_arg1); |
e6056257 | 3526 | |
0e2ff151 | 3527 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3528 | if (PyErr_Occurred()) return NULL; |
3529 | } Py_INCREF(Py_None); | |
3530 | _resultobj = Py_None; | |
3531 | return _resultobj; | |
3532 | } | |
3533 | ||
3534 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
3535 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3536 | PyObject * _resultobj; | |
3537 | wxPen * _arg0; | |
3538 | int _arg1; | |
3539 | wxDash * _arg2; | |
3540 | PyObject * _argo0 = 0; | |
3541 | PyObject * _obj2 = 0; | |
3542 | char *_kwnames[] = { "self","choices", NULL }; | |
3543 | ||
3544 | self = self; | |
3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
3546 | return NULL; | |
3547 | if (_argo0) { | |
3548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
3551 | return NULL; | |
3552 | } | |
3553 | } | |
3554 | if (_obj2) | |
3555 | { | |
3556 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
3557 | if (_arg2 == NULL) { | |
3558 | return NULL; | |
3559 | } | |
3560 | } | |
3561 | { | |
3562 | if (_obj2) { | |
3563 | _arg1 = PyList_Size(_obj2); | |
3564 | } | |
3565 | else { | |
3566 | _arg1 = 0; | |
3567 | } | |
3568 | } | |
3569 | { | |
0e2ff151 | 3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3571 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
e6056257 | 3572 | |
0e2ff151 | 3573 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3574 | if (PyErr_Occurred()) return NULL; |
3575 | } Py_INCREF(Py_None); | |
3576 | _resultobj = Py_None; | |
3577 | { | |
3578 | delete [] _arg2; | |
3579 | } | |
3580 | return _resultobj; | |
3581 | } | |
3582 | ||
70b76c7c RD |
3583 | static PyObject * wxPen_GetDashes(wxPen *self) { |
3584 | wxDash* dashes; | |
3585 | int count = self->GetDashes(&dashes); | |
3586 | wxPyBeginBlockThreads(); | |
3587 | PyObject* retval = PyList_New(0); | |
3588 | for (int x=0; x<count; x++) | |
3589 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
3590 | wxPyEndBlockThreads(); | |
3591 | return retval; | |
3592 | } | |
3593 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3594 | PyObject * _resultobj; | |
3595 | PyObject * _result; | |
3596 | wxPen * _arg0; | |
3597 | PyObject * _argo0 = 0; | |
3598 | char *_kwnames[] = { "self", NULL }; | |
3599 | ||
3600 | self = self; | |
3601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0)) | |
3602 | return NULL; | |
3603 | if (_argo0) { | |
3604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
3607 | return NULL; | |
3608 | } | |
3609 | } | |
3610 | { | |
3611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3612 | _result = (PyObject *)wxPen_GetDashes(_arg0); | |
3613 | ||
3614 | wxPyEndAllowThreads(__tstate); | |
3615 | if (PyErr_Occurred()) return NULL; | |
3616 | }{ | |
3617 | _resultobj = _result; | |
3618 | } | |
3619 | return _resultobj; | |
3620 | } | |
3621 | ||
e6056257 RD |
3622 | static void *SwigwxPyPenTowxPen(void *ptr) { |
3623 | wxPyPen *src; | |
3624 | wxPen *dest; | |
3625 | src = (wxPyPen *) ptr; | |
3626 | dest = (wxPen *) src; | |
3627 | return (void *) dest; | |
3628 | } | |
3629 | ||
3630 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
3631 | wxPyPen *src; | |
3632 | wxGDIObject *dest; | |
3633 | src = (wxPyPen *) ptr; | |
3634 | dest = (wxGDIObject *) src; | |
3635 | return (void *) dest; | |
3636 | } | |
3637 | ||
3638 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
3639 | wxPyPen *src; | |
3640 | wxObject *dest; | |
3641 | src = (wxPyPen *) ptr; | |
3642 | dest = (wxObject *) src; | |
3643 | return (void *) dest; | |
3644 | } | |
3645 | ||
3646 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
3647 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3648 | PyObject * _resultobj; | |
3649 | wxPyPen * _result; | |
3650 | wxColour * _arg0; | |
3651 | int _arg1 = (int ) 1; | |
3652 | int _arg2 = (int ) wxSOLID; | |
3653 | wxColour temp; | |
3654 | PyObject * _obj0 = 0; | |
3655 | char *_kwnames[] = { "colour","width","style", NULL }; | |
3656 | char _ptemp[128]; | |
3657 | ||
3658 | self = self; | |
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
3660 | return NULL; | |
3661 | { | |
3662 | _arg0 = &temp; | |
3663 | if (! wxColour_helper(_obj0, &_arg0)) | |
3664 | return NULL; | |
3665 | } | |
3666 | { | |
0e2ff151 | 3667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3668 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
e6056257 | 3669 | |
0e2ff151 | 3670 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3671 | if (PyErr_Occurred()) return NULL; |
3672 | } if (_result) { | |
3673 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
3674 | _resultobj = Py_BuildValue("s",_ptemp); | |
3675 | } else { | |
3676 | Py_INCREF(Py_None); | |
3677 | _resultobj = Py_None; | |
3678 | } | |
3679 | return _resultobj; | |
3680 | } | |
3681 | ||
3682 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
3683 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3684 | PyObject * _resultobj; | |
3685 | wxPyPen * _arg0; | |
3686 | PyObject * _argo0 = 0; | |
3687 | char *_kwnames[] = { "self", NULL }; | |
3688 | ||
3689 | self = self; | |
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
3691 | return NULL; | |
3692 | if (_argo0) { | |
3693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
3695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
3696 | return NULL; | |
3697 | } | |
3698 | } | |
3699 | { | |
0e2ff151 | 3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3701 | delete_wxPyPen(_arg0); |
e6056257 | 3702 | |
0e2ff151 | 3703 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3704 | if (PyErr_Occurred()) return NULL; |
3705 | } Py_INCREF(Py_None); | |
3706 | _resultobj = Py_None; | |
3707 | return _resultobj; | |
3708 | } | |
3709 | ||
3710 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
3711 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3712 | PyObject * _resultobj; | |
3713 | wxPyPen * _arg0; | |
3714 | int _arg1; | |
3715 | wxDash * _arg2; | |
3716 | PyObject * _argo0 = 0; | |
3717 | PyObject * _obj2 = 0; | |
3718 | char *_kwnames[] = { "self","choices", NULL }; | |
3719 | ||
3720 | self = self; | |
3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
3722 | return NULL; | |
3723 | if (_argo0) { | |
3724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
3726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
3727 | return NULL; | |
3728 | } | |
3729 | } | |
3730 | if (_obj2) | |
3731 | { | |
3732 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
3733 | if (_arg2 == NULL) { | |
3734 | return NULL; | |
3735 | } | |
3736 | } | |
3737 | { | |
3738 | if (_obj2) { | |
3739 | _arg1 = PyList_Size(_obj2); | |
3740 | } | |
3741 | else { | |
3742 | _arg1 = 0; | |
3743 | } | |
3744 | } | |
3745 | { | |
0e2ff151 | 3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3747 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
e6056257 | 3748 | |
0e2ff151 | 3749 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3750 | if (PyErr_Occurred()) return NULL; |
3751 | } Py_INCREF(Py_None); | |
3752 | _resultobj = Py_None; | |
3753 | { | |
3754 | delete [] _arg2; | |
3755 | } | |
3756 | return _resultobj; | |
3757 | } | |
3758 | ||
3759 | static void *SwigwxPenListTowxObject(void *ptr) { | |
3760 | wxPenList *src; | |
3761 | wxObject *dest; | |
3762 | src = (wxPenList *) ptr; | |
3763 | dest = (wxObject *) src; | |
3764 | return (void *) dest; | |
3765 | } | |
3766 | ||
3767 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) | |
3768 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3769 | PyObject * _resultobj; | |
3770 | wxPenList * _arg0; | |
3771 | wxPen * _arg1; | |
3772 | PyObject * _argo0 = 0; | |
3773 | PyObject * _argo1 = 0; | |
3774 | char *_kwnames[] = { "self","pen", NULL }; | |
3775 | ||
3776 | self = self; | |
3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
3778 | return NULL; | |
3779 | if (_argo0) { | |
3780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
3783 | return NULL; | |
3784 | } | |
3785 | } | |
3786 | if (_argo1) { | |
3787 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3788 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
3789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
3790 | return NULL; | |
3791 | } | |
3792 | } | |
3793 | { | |
0e2ff151 | 3794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3795 | wxPenList_AddPen(_arg0,_arg1); |
e6056257 | 3796 | |
0e2ff151 | 3797 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3798 | if (PyErr_Occurred()) return NULL; |
3799 | } Py_INCREF(Py_None); | |
3800 | _resultobj = Py_None; | |
3801 | return _resultobj; | |
3802 | } | |
3803 | ||
3804 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
3805 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject * _resultobj; | |
3807 | wxPen * _result; | |
3808 | wxPenList * _arg0; | |
3809 | wxColour * _arg1; | |
3810 | int _arg2; | |
3811 | int _arg3; | |
3812 | PyObject * _argo0 = 0; | |
3813 | wxColour temp; | |
3814 | PyObject * _obj1 = 0; | |
3815 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
3816 | char _ptemp[128]; | |
3817 | ||
3818 | self = self; | |
3819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
3820 | return NULL; | |
3821 | if (_argo0) { | |
3822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
3825 | return NULL; | |
3826 | } | |
3827 | } | |
3828 | { | |
3829 | _arg1 = &temp; | |
3830 | if (! wxColour_helper(_obj1, &_arg1)) | |
3831 | return NULL; | |
3832 | } | |
3833 | { | |
0e2ff151 | 3834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3835 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 3836 | |
0e2ff151 | 3837 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3838 | if (PyErr_Occurred()) return NULL; |
3839 | } if (_result) { | |
3840 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3841 | _resultobj = Py_BuildValue("s",_ptemp); | |
3842 | } else { | |
3843 | Py_INCREF(Py_None); | |
3844 | _resultobj = Py_None; | |
3845 | } | |
3846 | return _resultobj; | |
3847 | } | |
3848 | ||
3849 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
3850 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject * _resultobj; | |
3852 | wxPenList * _arg0; | |
3853 | wxPen * _arg1; | |
3854 | PyObject * _argo0 = 0; | |
3855 | PyObject * _argo1 = 0; | |
3856 | char *_kwnames[] = { "self","pen", NULL }; | |
3857 | ||
3858 | self = self; | |
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
3860 | return NULL; | |
3861 | if (_argo0) { | |
3862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
3865 | return NULL; | |
3866 | } | |
3867 | } | |
3868 | if (_argo1) { | |
3869 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3870 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
3871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
3872 | return NULL; | |
3873 | } | |
3874 | } | |
3875 | { | |
0e2ff151 | 3876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3877 | wxPenList_RemovePen(_arg0,_arg1); |
e6056257 | 3878 | |
0e2ff151 | 3879 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3880 | if (PyErr_Occurred()) return NULL; |
3881 | } Py_INCREF(Py_None); | |
3882 | _resultobj = Py_None; | |
3883 | return _resultobj; | |
3884 | } | |
3885 | ||
00360d46 RD |
3886 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
3887 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3888 | PyObject * _resultobj; | |
3889 | int _result; | |
3890 | wxPenList * _arg0; | |
3891 | PyObject * _argo0 = 0; | |
3892 | char *_kwnames[] = { "self", NULL }; | |
3893 | ||
3894 | self = self; | |
3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
3896 | return NULL; | |
3897 | if (_argo0) { | |
3898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
3901 | return NULL; | |
3902 | } | |
3903 | } | |
3904 | { | |
0e2ff151 | 3905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3906 | _result = (int )wxPenList_GetCount(_arg0); |
00360d46 | 3907 | |
0e2ff151 | 3908 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
3909 | if (PyErr_Occurred()) return NULL; |
3910 | } _resultobj = Py_BuildValue("i",_result); | |
3911 | return _resultobj; | |
3912 | } | |
3913 | ||
e6056257 RD |
3914 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
3915 | wxBrush *src; | |
3916 | wxGDIObject *dest; | |
3917 | src = (wxBrush *) ptr; | |
3918 | dest = (wxGDIObject *) src; | |
3919 | return (void *) dest; | |
3920 | } | |
3921 | ||
3922 | static void *SwigwxBrushTowxObject(void *ptr) { | |
3923 | wxBrush *src; | |
3924 | wxObject *dest; | |
3925 | src = (wxBrush *) ptr; | |
3926 | dest = (wxObject *) src; | |
3927 | return (void *) dest; | |
3928 | } | |
3929 | ||
3930 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
3931 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3932 | PyObject * _resultobj; | |
3933 | wxBrush * _result; | |
3934 | wxColour * _arg0; | |
3935 | int _arg1 = (int ) wxSOLID; | |
3936 | wxColour temp; | |
3937 | PyObject * _obj0 = 0; | |
3938 | char *_kwnames[] = { "colour","style", NULL }; | |
3939 | char _ptemp[128]; | |
3940 | ||
3941 | self = self; | |
3942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) | |
3943 | return NULL; | |
3944 | { | |
3945 | _arg0 = &temp; | |
3946 | if (! wxColour_helper(_obj0, &_arg0)) | |
3947 | return NULL; | |
3948 | } | |
3949 | { | |
0e2ff151 | 3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3951 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
e6056257 | 3952 | |
0e2ff151 | 3953 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3954 | if (PyErr_Occurred()) return NULL; |
3955 | } if (_result) { | |
3956 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
3957 | _resultobj = Py_BuildValue("s",_ptemp); | |
3958 | } else { | |
3959 | Py_INCREF(Py_None); | |
3960 | _resultobj = Py_None; | |
3961 | } | |
3962 | return _resultobj; | |
3963 | } | |
3964 | ||
3965 | #define delete_wxBrush(_swigobj) (delete _swigobj) | |
3966 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject * _resultobj; | |
3968 | wxBrush * _arg0; | |
3969 | PyObject * _argo0 = 0; | |
3970 | char *_kwnames[] = { "self", NULL }; | |
3971 | ||
3972 | self = self; | |
3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
3974 | return NULL; | |
3975 | if (_argo0) { | |
3976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
3978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
3979 | return NULL; | |
3980 | } | |
3981 | } | |
3982 | { | |
0e2ff151 | 3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3984 | delete_wxBrush(_arg0); |
e6056257 | 3985 | |
0e2ff151 | 3986 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3987 | if (PyErr_Occurred()) return NULL; |
3988 | } Py_INCREF(Py_None); | |
3989 | _resultobj = Py_None; | |
3990 | return _resultobj; | |
3991 | } | |
3992 | ||
3993 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
3994 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3995 | PyObject * _resultobj; | |
3996 | wxColour * _result; | |
3997 | wxBrush * _arg0; | |
3998 | PyObject * _argo0 = 0; | |
3999 | char *_kwnames[] = { "self", NULL }; | |
4000 | char _ptemp[128]; | |
4001 | ||
4002 | self = self; | |
4003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) | |
4004 | return NULL; | |
4005 | if (_argo0) { | |
4006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
4009 | return NULL; | |
4010 | } | |
4011 | } | |
4012 | { | |
0e2ff151 | 4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4014 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
e6056257 | 4015 | |
0e2ff151 | 4016 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4017 | if (PyErr_Occurred()) return NULL; |
4018 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4019 | _resultobj = Py_BuildValue("s",_ptemp); | |
4020 | return _resultobj; | |
4021 | } | |
4022 | ||
4023 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
4024 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4025 | PyObject * _resultobj; | |
4026 | wxBitmap * _result; | |
4027 | wxBrush * _arg0; | |
4028 | PyObject * _argo0 = 0; | |
4029 | char *_kwnames[] = { "self", NULL }; | |
4030 | char _ptemp[128]; | |
4031 | ||
4032 | self = self; | |
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) | |
4034 | return NULL; | |
4035 | if (_argo0) { | |
4036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
4039 | return NULL; | |
4040 | } | |
4041 | } | |
4042 | { | |
0e2ff151 | 4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4044 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
e6056257 | 4045 | |
0e2ff151 | 4046 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4047 | if (PyErr_Occurred()) return NULL; |
4048 | } if (_result) { | |
4049 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4050 | _resultobj = Py_BuildValue("s",_ptemp); | |
4051 | } else { | |
4052 | Py_INCREF(Py_None); | |
4053 | _resultobj = Py_None; | |
4054 | } | |
4055 | return _resultobj; | |
4056 | } | |
4057 | ||
4058 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
4059 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4060 | PyObject * _resultobj; | |
4061 | int _result; | |
4062 | wxBrush * _arg0; | |
4063 | PyObject * _argo0 = 0; | |
4064 | char *_kwnames[] = { "self", NULL }; | |
4065 | ||
4066 | self = self; | |
4067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) | |
4068 | return NULL; | |
4069 | if (_argo0) { | |
4070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
4073 | return NULL; | |
4074 | } | |
4075 | } | |
4076 | { | |
0e2ff151 | 4077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4078 | _result = (int )wxBrush_GetStyle(_arg0); |
e6056257 | 4079 | |
0e2ff151 | 4080 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4081 | if (PyErr_Occurred()) return NULL; |
4082 | } _resultobj = Py_BuildValue("i",_result); | |
4083 | return _resultobj; | |
4084 | } | |
4085 | ||
4086 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
4087 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4088 | PyObject * _resultobj; | |
4089 | bool _result; | |
4090 | wxBrush * _arg0; | |
4091 | PyObject * _argo0 = 0; | |
4092 | char *_kwnames[] = { "self", NULL }; | |
4093 | ||
4094 | self = self; | |
4095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) | |
4096 | return NULL; | |
4097 | if (_argo0) { | |
4098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
4101 | return NULL; | |
4102 | } | |
4103 | } | |
4104 | { | |
0e2ff151 | 4105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4106 | _result = (bool )wxBrush_Ok(_arg0); |
e6056257 | 4107 | |
0e2ff151 | 4108 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4109 | if (PyErr_Occurred()) return NULL; |
4110 | } _resultobj = Py_BuildValue("i",_result); | |
4111 | return _resultobj; | |
4112 | } | |
4113 | ||
4114 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
4115 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4116 | PyObject * _resultobj; | |
4117 | wxBrush * _arg0; | |
4118 | wxColour * _arg1; | |
4119 | PyObject * _argo0 = 0; | |
4120 | wxColour temp; | |
4121 | PyObject * _obj1 = 0; | |
4122 | char *_kwnames[] = { "self","colour", NULL }; | |
4123 | ||
4124 | self = self; | |
4125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) | |
4126 | return NULL; | |
4127 | if (_argo0) { | |
4128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
4131 | return NULL; | |
4132 | } | |
4133 | } | |
4134 | { | |
4135 | _arg1 = &temp; | |
4136 | if (! wxColour_helper(_obj1, &_arg1)) | |
4137 | return NULL; | |
4138 | } | |
4139 | { | |
0e2ff151 | 4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4141 | wxBrush_SetColour(_arg0,*_arg1); |
e6056257 | 4142 | |
0e2ff151 | 4143 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4144 | if (PyErr_Occurred()) return NULL; |
4145 | } Py_INCREF(Py_None); | |
4146 | _resultobj = Py_None; | |
4147 | return _resultobj; | |
4148 | } | |
4149 | ||
4150 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
4151 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject * _resultobj; | |
4153 | wxBrush * _arg0; | |
4154 | wxBitmap * _arg1; | |
4155 | PyObject * _argo0 = 0; | |
4156 | PyObject * _argo1 = 0; | |
4157 | char *_kwnames[] = { "self","bitmap", NULL }; | |
4158 | ||
4159 | self = self; | |
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) | |
4161 | return NULL; | |
4162 | if (_argo0) { | |
4163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
4166 | return NULL; | |
4167 | } | |
4168 | } | |
4169 | if (_argo1) { | |
4170 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4171 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
4172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
4173 | return NULL; | |
4174 | } | |
4175 | } | |
4176 | { | |
0e2ff151 | 4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4178 | wxBrush_SetStipple(_arg0,*_arg1); |
e6056257 | 4179 | |
0e2ff151 | 4180 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4181 | if (PyErr_Occurred()) return NULL; |
4182 | } Py_INCREF(Py_None); | |
4183 | _resultobj = Py_None; | |
4184 | return _resultobj; | |
4185 | } | |
4186 | ||
4187 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4188 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4189 | PyObject * _resultobj; | |
4190 | wxBrush * _arg0; | |
4191 | int _arg1; | |
4192 | PyObject * _argo0 = 0; | |
4193 | char *_kwnames[] = { "self","style", NULL }; | |
4194 | ||
4195 | self = self; | |
4196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4197 | return NULL; | |
4198 | if (_argo0) { | |
4199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
4202 | return NULL; | |
4203 | } | |
4204 | } | |
4205 | { | |
0e2ff151 | 4206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4207 | wxBrush_SetStyle(_arg0,_arg1); |
e6056257 | 4208 | |
0e2ff151 | 4209 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4210 | if (PyErr_Occurred()) return NULL; |
4211 | } Py_INCREF(Py_None); | |
4212 | _resultobj = Py_None; | |
4213 | return _resultobj; | |
4214 | } | |
4215 | ||
4216 | static void *SwigwxBrushListTowxObject(void *ptr) { | |
4217 | wxBrushList *src; | |
4218 | wxObject *dest; | |
4219 | src = (wxBrushList *) ptr; | |
4220 | dest = (wxObject *) src; | |
4221 | return (void *) dest; | |
4222 | } | |
4223 | ||
4224 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) | |
4225 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4226 | PyObject * _resultobj; | |
4227 | wxBrushList * _arg0; | |
4228 | wxBrush * _arg1; | |
4229 | PyObject * _argo0 = 0; | |
4230 | PyObject * _argo1 = 0; | |
4231 | char *_kwnames[] = { "self","brush", NULL }; | |
4232 | ||
4233 | self = self; | |
4234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
4235 | return NULL; | |
4236 | if (_argo0) { | |
4237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
4240 | return NULL; | |
4241 | } | |
4242 | } | |
4243 | if (_argo1) { | |
4244 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4245 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
4247 | return NULL; | |
4248 | } | |
4249 | } | |
4250 | { | |
0e2ff151 | 4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4252 | wxBrushList_AddBrush(_arg0,_arg1); |
e6056257 | 4253 | |
0e2ff151 | 4254 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4255 | if (PyErr_Occurred()) return NULL; |
4256 | } Py_INCREF(Py_None); | |
4257 | _resultobj = Py_None; | |
4258 | return _resultobj; | |
4259 | } | |
4260 | ||
4261 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
4262 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4263 | PyObject * _resultobj; | |
4264 | wxBrush * _result; | |
4265 | wxBrushList * _arg0; | |
4266 | wxColour * _arg1; | |
4267 | int _arg2; | |
4268 | PyObject * _argo0 = 0; | |
4269 | wxColour temp; | |
4270 | PyObject * _obj1 = 0; | |
4271 | char *_kwnames[] = { "self","colour","style", NULL }; | |
4272 | char _ptemp[128]; | |
4273 | ||
4274 | self = self; | |
4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4276 | return NULL; | |
4277 | if (_argo0) { | |
4278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
4281 | return NULL; | |
4282 | } | |
4283 | } | |
4284 | { | |
4285 | _arg1 = &temp; | |
4286 | if (! wxColour_helper(_obj1, &_arg1)) | |
4287 | return NULL; | |
4288 | } | |
4289 | { | |
0e2ff151 | 4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4291 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
e6056257 | 4292 | |
0e2ff151 | 4293 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4294 | if (PyErr_Occurred()) return NULL; |
4295 | } if (_result) { | |
4296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4297 | _resultobj = Py_BuildValue("s",_ptemp); | |
4298 | } else { | |
4299 | Py_INCREF(Py_None); | |
4300 | _resultobj = Py_None; | |
4301 | } | |
4302 | return _resultobj; | |
4303 | } | |
4304 | ||
4305 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
4306 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4307 | PyObject * _resultobj; | |
4308 | wxBrushList * _arg0; | |
4309 | wxBrush * _arg1; | |
4310 | PyObject * _argo0 = 0; | |
4311 | PyObject * _argo1 = 0; | |
4312 | char *_kwnames[] = { "self","brush", NULL }; | |
4313 | ||
4314 | self = self; | |
4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
4316 | return NULL; | |
4317 | if (_argo0) { | |
4318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
4321 | return NULL; | |
4322 | } | |
4323 | } | |
4324 | if (_argo1) { | |
4325 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4326 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
4328 | return NULL; | |
4329 | } | |
4330 | } | |
4331 | { | |
0e2ff151 | 4332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4333 | wxBrushList_RemoveBrush(_arg0,_arg1); |
e6056257 | 4334 | |
0e2ff151 | 4335 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4336 | if (PyErr_Occurred()) return NULL; |
4337 | } Py_INCREF(Py_None); | |
4338 | _resultobj = Py_None; | |
4339 | return _resultobj; | |
4340 | } | |
4341 | ||
00360d46 RD |
4342 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
4343 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4344 | PyObject * _resultobj; | |
4345 | int _result; | |
4346 | wxBrushList * _arg0; | |
4347 | PyObject * _argo0 = 0; | |
4348 | char *_kwnames[] = { "self", NULL }; | |
4349 | ||
4350 | self = self; | |
4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
4352 | return NULL; | |
4353 | if (_argo0) { | |
4354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
4357 | return NULL; | |
4358 | } | |
4359 | } | |
4360 | { | |
0e2ff151 | 4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4362 | _result = (int )wxBrushList_GetCount(_arg0); |
00360d46 | 4363 | |
0e2ff151 | 4364 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
4365 | if (PyErr_Occurred()) return NULL; |
4366 | } _resultobj = Py_BuildValue("i",_result); | |
4367 | return _resultobj; | |
4368 | } | |
4369 | ||
e6056257 RD |
4370 | static void *SwigwxDCTowxObject(void *ptr) { |
4371 | wxDC *src; | |
4372 | wxObject *dest; | |
4373 | src = (wxDC *) ptr; | |
4374 | dest = (wxObject *) src; | |
4375 | return (void *) dest; | |
4376 | } | |
4377 | ||
4378 | #define delete_wxDC(_swigobj) (delete _swigobj) | |
4379 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4380 | PyObject * _resultobj; | |
4381 | wxDC * _arg0; | |
4382 | PyObject * _argo0 = 0; | |
4383 | char *_kwnames[] = { "self", NULL }; | |
4384 | ||
4385 | self = self; | |
4386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) | |
4387 | return NULL; | |
4388 | if (_argo0) { | |
4389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
4392 | return NULL; | |
4393 | } | |
4394 | } | |
4395 | { | |
0e2ff151 | 4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4397 | delete_wxDC(_arg0); |
e6056257 | 4398 | |
0e2ff151 | 4399 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4400 | if (PyErr_Occurred()) return NULL; |
4401 | } Py_INCREF(Py_None); | |
4402 | _resultobj = Py_None; | |
4403 | return _resultobj; | |
4404 | } | |
4405 | ||
4406 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
4407 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4408 | PyObject * _resultobj; | |
4409 | wxDC * _arg0; | |
4410 | PyObject * _argo0 = 0; | |
4411 | char *_kwnames[] = { "self", NULL }; | |
4412 | ||
4413 | self = self; | |
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) | |
4415 | return NULL; | |
4416 | if (_argo0) { | |
4417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
4420 | return NULL; | |
4421 | } | |
4422 | } | |
4423 | { | |
0e2ff151 | 4424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4425 | wxDC_BeginDrawing(_arg0); |
e6056257 | 4426 | |
0e2ff151 | 4427 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4428 | if (PyErr_Occurred()) return NULL; |
4429 | } Py_INCREF(Py_None); | |
4430 | _resultobj = Py_None; | |
4431 | return _resultobj; | |
4432 | } | |
4433 | ||
4434 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4435 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4436 | PyObject * _resultobj; | |
4437 | bool _result; | |
4438 | wxDC * _arg0; | |
4439 | long _arg1; | |
4440 | long _arg2; | |
4441 | long _arg3; | |
4442 | long _arg4; | |
4443 | wxDC * _arg5; | |
4444 | long _arg6; | |
4445 | long _arg7; | |
4446 | int _arg8 = (int ) wxCOPY; | |
4447 | int _arg9 = (int ) FALSE; | |
4448 | PyObject * _argo0 = 0; | |
4449 | PyObject * _argo5 = 0; | |
4450 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; | |
4451 | ||
4452 | self = self; | |
4453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
4454 | return NULL; | |
4455 | if (_argo0) { | |
4456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
4459 | return NULL; | |
4460 | } | |
4461 | } | |
4462 | if (_argo5) { | |
4463 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
4464 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
4465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
4466 | return NULL; | |
4467 | } | |
4468 | } | |
4469 | { | |
0e2ff151 | 4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4471 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
e6056257 | 4472 | |
0e2ff151 | 4473 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4474 | if (PyErr_Occurred()) return NULL; |
4475 | } _resultobj = Py_BuildValue("i",_result); | |
4476 | return _resultobj; | |
4477 | } | |
4478 | ||
4479 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
4480 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4481 | PyObject * _resultobj; | |
4482 | wxDC * _arg0; | |
4483 | PyObject * _argo0 = 0; | |
4484 | char *_kwnames[] = { "self", NULL }; | |
4485 | ||
4486 | self = self; | |
4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) | |
4488 | return NULL; | |
4489 | if (_argo0) { | |
4490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
4493 | return NULL; | |
4494 | } | |
4495 | } | |
4496 | { | |
0e2ff151 | 4497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4498 | wxDC_Clear(_arg0); |
e6056257 | 4499 | |
0e2ff151 | 4500 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4501 | if (PyErr_Occurred()) return NULL; |
4502 | } Py_INCREF(Py_None); | |
4503 | _resultobj = Py_None; | |
4504 | return _resultobj; | |
4505 | } | |
4506 | ||
4507 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
4508 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4509 | PyObject * _resultobj; | |
4510 | wxDC * _arg0; | |
4511 | long _arg1; | |
4512 | long _arg2; | |
4513 | PyObject * _argo0 = 0; | |
4514 | char *_kwnames[] = { "self","x","y", NULL }; | |
4515 | ||
4516 | self = self; | |
4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4518 | return NULL; | |
4519 | if (_argo0) { | |
4520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
4523 | return NULL; | |
4524 | } | |
4525 | } | |
4526 | { | |
0e2ff151 | 4527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4528 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
e6056257 | 4529 | |
0e2ff151 | 4530 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4531 | if (PyErr_Occurred()) return NULL; |
4532 | } Py_INCREF(Py_None); | |
4533 | _resultobj = Py_None; | |
4534 | return _resultobj; | |
4535 | } | |
4536 | ||
4537 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
4538 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4539 | PyObject * _resultobj; | |
4540 | wxDC * _arg0; | |
4541 | PyObject * _argo0 = 0; | |
4542 | char *_kwnames[] = { "self", NULL }; | |
4543 | ||
4544 | self = self; | |
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) | |
4546 | return NULL; | |
4547 | if (_argo0) { | |
4548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
4551 | return NULL; | |
4552 | } | |
4553 | } | |
4554 | { | |
0e2ff151 | 4555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4556 | wxDC_DestroyClippingRegion(_arg0); |
e6056257 | 4557 | |
0e2ff151 | 4558 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4559 | if (PyErr_Occurred()) return NULL; |
4560 | } Py_INCREF(Py_None); | |
4561 | _resultobj = Py_None; | |
4562 | return _resultobj; | |
4563 | } | |
4564 | ||
4565 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
4566 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4567 | PyObject * _resultobj; | |
4568 | long _result; | |
4569 | wxDC * _arg0; | |
4570 | long _arg1; | |
4571 | PyObject * _argo0 = 0; | |
4572 | char *_kwnames[] = { "self","x", NULL }; | |
4573 | ||
4574 | self = self; | |
4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) | |
4576 | return NULL; | |
4577 | if (_argo0) { | |
4578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
4581 | return NULL; | |
4582 | } | |
4583 | } | |
4584 | { | |
0e2ff151 | 4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4586 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
e6056257 | 4587 | |
0e2ff151 | 4588 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4589 | if (PyErr_Occurred()) return NULL; |
4590 | } _resultobj = Py_BuildValue("l",_result); | |
4591 | return _resultobj; | |
4592 | } | |
4593 | ||
4594 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
4595 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4596 | PyObject * _resultobj; | |
4597 | long _result; | |
4598 | wxDC * _arg0; | |
4599 | long _arg1; | |
4600 | PyObject * _argo0 = 0; | |
4601 | char *_kwnames[] = { "self","x", NULL }; | |
4602 | ||
4603 | self = self; | |
4604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) | |
4605 | return NULL; | |
4606 | if (_argo0) { | |
4607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
4610 | return NULL; | |
4611 | } | |
4612 | } | |
4613 | { | |
0e2ff151 | 4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4615 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
e6056257 | 4616 | |
0e2ff151 | 4617 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4618 | if (PyErr_Occurred()) return NULL; |
4619 | } _resultobj = Py_BuildValue("l",_result); | |
4620 | return _resultobj; | |
4621 | } | |
4622 | ||
4623 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
4624 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject * _resultobj; | |
4626 | long _result; | |
4627 | wxDC * _arg0; | |
4628 | long _arg1; | |
4629 | PyObject * _argo0 = 0; | |
4630 | char *_kwnames[] = { "self","y", NULL }; | |
4631 | ||
4632 | self = self; | |
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) | |
4634 | return NULL; | |
4635 | if (_argo0) { | |
4636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
4639 | return NULL; | |
4640 | } | |
4641 | } | |
4642 | { | |
0e2ff151 | 4643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4644 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
e6056257 | 4645 | |
0e2ff151 | 4646 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4647 | if (PyErr_Occurred()) return NULL; |
4648 | } _resultobj = Py_BuildValue("l",_result); | |
4649 | return _resultobj; | |
4650 | } | |
4651 | ||
4652 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
4653 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4654 | PyObject * _resultobj; | |
4655 | long _result; | |
4656 | wxDC * _arg0; | |
4657 | long _arg1; | |
4658 | PyObject * _argo0 = 0; | |
4659 | char *_kwnames[] = { "self","y", NULL }; | |
4660 | ||
4661 | self = self; | |
4662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) | |
4663 | return NULL; | |
4664 | if (_argo0) { | |
4665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
4668 | return NULL; | |
4669 | } | |
4670 | } | |
4671 | { | |
0e2ff151 | 4672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4673 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
e6056257 | 4674 | |
0e2ff151 | 4675 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4676 | if (PyErr_Occurred()) return NULL; |
4677 | } _resultobj = Py_BuildValue("l",_result); | |
4678 | return _resultobj; | |
4679 | } | |
4680 | ||
4681 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4682 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4683 | PyObject * _resultobj; | |
4684 | wxDC * _arg0; | |
4685 | long _arg1; | |
4686 | long _arg2; | |
4687 | long _arg3; | |
4688 | long _arg4; | |
4689 | long _arg5; | |
4690 | long _arg6; | |
4691 | PyObject * _argo0 = 0; | |
4692 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; | |
4693 | ||
4694 | self = self; | |
4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4696 | return NULL; | |
4697 | if (_argo0) { | |
4698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
4701 | return NULL; | |
4702 | } | |
4703 | } | |
4704 | { | |
0e2ff151 | 4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4706 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 4707 | |
0e2ff151 | 4708 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4709 | if (PyErr_Occurred()) return NULL; |
4710 | } Py_INCREF(Py_None); | |
4711 | _resultobj = Py_None; | |
4712 | return _resultobj; | |
4713 | } | |
4714 | ||
4715 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) | |
4716 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4717 | PyObject * _resultobj; | |
4718 | wxDC * _arg0; | |
4719 | long _arg1; | |
4720 | long _arg2; | |
4721 | long _arg3; | |
4722 | PyObject * _argo0 = 0; | |
4723 | char *_kwnames[] = { "self","x","y","radius", NULL }; | |
4724 | ||
4725 | self = self; | |
4726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4727 | return NULL; | |
4728 | if (_argo0) { | |
4729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); | |
4732 | return NULL; | |
4733 | } | |
4734 | } | |
4735 | { | |
0e2ff151 | 4736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4737 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 4738 | |
0e2ff151 | 4739 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4740 | if (PyErr_Occurred()) return NULL; |
4741 | } Py_INCREF(Py_None); | |
4742 | _resultobj = Py_None; | |
4743 | return _resultobj; | |
4744 | } | |
4745 | ||
4746 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4747 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4748 | PyObject * _resultobj; | |
4749 | wxDC * _arg0; | |
4750 | long _arg1; | |
4751 | long _arg2; | |
4752 | long _arg3; | |
4753 | long _arg4; | |
4754 | PyObject * _argo0 = 0; | |
4755 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
4756 | ||
4757 | self = self; | |
4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
4759 | return NULL; | |
4760 | if (_argo0) { | |
4761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
4764 | return NULL; | |
4765 | } | |
4766 | } | |
4767 | { | |
0e2ff151 | 4768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4769 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 4770 | |
0e2ff151 | 4771 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4772 | if (PyErr_Occurred()) return NULL; |
4773 | } Py_INCREF(Py_None); | |
4774 | _resultobj = Py_None; | |
4775 | return _resultobj; | |
4776 | } | |
4777 | ||
4778 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4779 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4780 | PyObject * _resultobj; | |
4781 | wxDC * _arg0; | |
4782 | long _arg1; | |
4783 | long _arg2; | |
4784 | long _arg3; | |
4785 | long _arg4; | |
4786 | long _arg5; | |
4787 | long _arg6; | |
4788 | PyObject * _argo0 = 0; | |
4789 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; | |
4790 | ||
4791 | self = self; | |
4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4793 | return NULL; | |
4794 | if (_argo0) { | |
4795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
4798 | return NULL; | |
4799 | } | |
4800 | } | |
4801 | { | |
0e2ff151 | 4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4803 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 4804 | |
0e2ff151 | 4805 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4806 | if (PyErr_Occurred()) return NULL; |
4807 | } Py_INCREF(Py_None); | |
4808 | _resultobj = Py_None; | |
4809 | return _resultobj; | |
4810 | } | |
4811 | ||
4812 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
4813 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4814 | PyObject * _resultobj; | |
4815 | wxDC * _arg0; | |
4816 | wxIcon * _arg1; | |
4817 | long _arg2; | |
4818 | long _arg3; | |
4819 | PyObject * _argo0 = 0; | |
4820 | PyObject * _argo1 = 0; | |
4821 | char *_kwnames[] = { "self","icon","x","y", NULL }; | |
4822 | ||
4823 | self = self; | |
4824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
4825 | return NULL; | |
4826 | if (_argo0) { | |
4827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
4830 | return NULL; | |
4831 | } | |
4832 | } | |
4833 | if (_argo1) { | |
4834 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4835 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
4836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
4837 | return NULL; | |
4838 | } | |
4839 | } | |
4840 | { | |
0e2ff151 | 4841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4842 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 4843 | |
0e2ff151 | 4844 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4845 | if (PyErr_Occurred()) return NULL; |
4846 | } Py_INCREF(Py_None); | |
4847 | _resultobj = Py_None; | |
4848 | return _resultobj; | |
4849 | } | |
4850 | ||
a341e32e RD |
4851 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4852 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4853 | PyObject * _resultobj; | |
4854 | wxDC * _arg0; | |
4855 | wxString * _arg1; | |
4856 | wxRect * _arg2; | |
4857 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
4858 | int _arg4 = (int ) -1; | |
4859 | PyObject * _argo0 = 0; | |
4860 | PyObject * _obj1 = 0; | |
4861 | wxRect temp; | |
4862 | PyObject * _obj2 = 0; | |
4863 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
4864 | ||
4865 | self = self; | |
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
4867 | return NULL; | |
4868 | if (_argo0) { | |
4869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
4872 | return NULL; | |
4873 | } | |
4874 | } | |
4875 | { | |
6824d4f9 RD |
4876 | _arg1 = wxString_in_helper(_obj1); |
4877 | if (_arg1 == NULL) | |
a341e32e | 4878 | return NULL; |
a341e32e RD |
4879 | } |
4880 | { | |
4881 | _arg2 = &temp; | |
4882 | if (! wxRect_helper(_obj2, &_arg2)) | |
4883 | return NULL; | |
4884 | } | |
4885 | { | |
4886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 4887 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
a341e32e RD |
4888 | |
4889 | wxPyEndAllowThreads(__tstate); | |
4890 | if (PyErr_Occurred()) return NULL; | |
4891 | } Py_INCREF(Py_None); | |
4892 | _resultobj = Py_None; | |
4893 | { | |
4894 | if (_obj1) | |
4895 | delete _arg1; | |
4896 | } | |
4897 | return _resultobj; | |
4898 | } | |
4899 | ||
4900 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
4901 | wxRect rv; | |
4902 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
4903 | return rv; | |
4904 | } | |
4905 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4906 | PyObject * _resultobj; | |
4907 | wxRect * _result; | |
4908 | wxDC * _arg0; | |
4909 | wxString * _arg1; | |
4910 | wxBitmap * _arg2; | |
4911 | wxRect * _arg3; | |
4912 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
4913 | int _arg5 = (int ) -1; | |
4914 | PyObject * _argo0 = 0; | |
4915 | PyObject * _obj1 = 0; | |
4916 | PyObject * _argo2 = 0; | |
4917 | wxRect temp; | |
4918 | PyObject * _obj3 = 0; | |
4919 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
4920 | char _ptemp[128]; | |
4921 | ||
4922 | self = self; | |
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
4924 | return NULL; | |
4925 | if (_argo0) { | |
4926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
4929 | return NULL; | |
4930 | } | |
4931 | } | |
4932 | { | |
6824d4f9 RD |
4933 | _arg1 = wxString_in_helper(_obj1); |
4934 | if (_arg1 == NULL) | |
a341e32e | 4935 | return NULL; |
a341e32e RD |
4936 | } |
4937 | if (_argo2) { | |
4938 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4939 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
4940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
4941 | return NULL; | |
4942 | } | |
4943 | } | |
4944 | { | |
4945 | _arg3 = &temp; | |
4946 | if (! wxRect_helper(_obj3, &_arg3)) | |
4947 | return NULL; | |
4948 | } | |
4949 | { | |
4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 4951 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); |
a341e32e RD |
4952 | |
4953 | wxPyEndAllowThreads(__tstate); | |
4954 | if (PyErr_Occurred()) return NULL; | |
4955 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
4956 | _resultobj = Py_BuildValue("s",_ptemp); | |
4957 | { | |
4958 | if (_obj1) | |
4959 | delete _arg1; | |
4960 | } | |
4961 | return _resultobj; | |
4962 | } | |
4963 | ||
e6056257 RD |
4964 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4965 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4966 | PyObject * _resultobj; | |
4967 | wxDC * _arg0; | |
4968 | long _arg1; | |
4969 | long _arg2; | |
4970 | long _arg3; | |
4971 | long _arg4; | |
4972 | PyObject * _argo0 = 0; | |
4973 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
4974 | ||
4975 | self = self; | |
4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
4977 | return NULL; | |
4978 | if (_argo0) { | |
4979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
4982 | return NULL; | |
4983 | } | |
4984 | } | |
4985 | { | |
0e2ff151 | 4986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4987 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 4988 | |
0e2ff151 | 4989 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4990 | if (PyErr_Occurred()) return NULL; |
4991 | } Py_INCREF(Py_None); | |
4992 | _resultobj = Py_None; | |
4993 | return _resultobj; | |
4994 | } | |
4995 | ||
4996 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4997 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4998 | PyObject * _resultobj; | |
4999 | wxDC * _arg0; | |
5000 | int _arg1; | |
5001 | wxPoint * _arg2; | |
5002 | long _arg3 = (long ) 0; | |
5003 | long _arg4 = (long ) 0; | |
5004 | PyObject * _argo0 = 0; | |
5005 | int NPOINTS; | |
5006 | PyObject * _obj2 = 0; | |
5007 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; | |
5008 | ||
5009 | self = self; | |
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) | |
5011 | return NULL; | |
5012 | if (_argo0) { | |
5013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
5016 | return NULL; | |
5017 | } | |
5018 | } | |
5019 | if (_obj2) | |
5020 | { | |
5021 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5022 | if (_arg2 == NULL) { | |
5023 | return NULL; | |
5024 | } | |
5025 | } | |
5026 | { | |
5027 | _arg1 = NPOINTS; | |
5028 | } | |
5029 | { | |
0e2ff151 | 5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5031 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 5032 | |
0e2ff151 | 5033 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5034 | if (PyErr_Occurred()) return NULL; |
5035 | } Py_INCREF(Py_None); | |
5036 | _resultobj = Py_None; | |
5037 | { | |
5038 | delete [] _arg2; | |
5039 | } | |
5040 | return _resultobj; | |
5041 | } | |
5042 | ||
5043 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
5044 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5045 | PyObject * _resultobj; | |
5046 | wxDC * _arg0; | |
5047 | int _arg1; | |
5048 | wxPoint * _arg2; | |
5049 | long _arg3 = (long ) 0; | |
5050 | long _arg4 = (long ) 0; | |
5051 | int _arg5 = (int ) wxODDEVEN_RULE; | |
5052 | PyObject * _argo0 = 0; | |
5053 | int NPOINTS; | |
5054 | PyObject * _obj2 = 0; | |
5055 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; | |
5056 | ||
5057 | self = self; | |
5058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
5059 | return NULL; | |
5060 | if (_argo0) { | |
5061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
5064 | return NULL; | |
5065 | } | |
5066 | } | |
5067 | if (_obj2) | |
5068 | { | |
5069 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5070 | if (_arg2 == NULL) { | |
5071 | return NULL; | |
5072 | } | |
5073 | } | |
5074 | { | |
5075 | _arg1 = NPOINTS; | |
5076 | } | |
5077 | { | |
0e2ff151 | 5078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5079 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
e6056257 | 5080 | |
0e2ff151 | 5081 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5082 | if (PyErr_Occurred()) return NULL; |
5083 | } Py_INCREF(Py_None); | |
5084 | _resultobj = Py_None; | |
5085 | { | |
5086 | delete [] _arg2; | |
5087 | } | |
5088 | return _resultobj; | |
5089 | } | |
5090 | ||
5091 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
5092 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5093 | PyObject * _resultobj; | |
5094 | wxDC * _arg0; | |
5095 | long _arg1; | |
5096 | long _arg2; | |
5097 | PyObject * _argo0 = 0; | |
5098 | char *_kwnames[] = { "self","x","y", NULL }; | |
5099 | ||
5100 | self = self; | |
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5102 | return NULL; | |
5103 | if (_argo0) { | |
5104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
5107 | return NULL; | |
5108 | } | |
5109 | } | |
5110 | { | |
0e2ff151 | 5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5112 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
e6056257 | 5113 | |
0e2ff151 | 5114 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5115 | if (PyErr_Occurred()) return NULL; |
5116 | } Py_INCREF(Py_None); | |
5117 | _resultobj = Py_None; | |
5118 | return _resultobj; | |
5119 | } | |
5120 | ||
5121 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5122 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5123 | PyObject * _resultobj; | |
5124 | wxDC * _arg0; | |
5125 | long _arg1; | |
5126 | long _arg2; | |
5127 | long _arg3; | |
5128 | long _arg4; | |
5129 | PyObject * _argo0 = 0; | |
5130 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
5131 | ||
5132 | self = self; | |
5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
5134 | return NULL; | |
5135 | if (_argo0) { | |
5136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
5139 | return NULL; | |
5140 | } | |
5141 | } | |
5142 | { | |
0e2ff151 | 5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5144 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 5145 | |
0e2ff151 | 5146 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5147 | if (PyErr_Occurred()) return NULL; |
5148 | } Py_INCREF(Py_None); | |
5149 | _resultobj = Py_None; | |
5150 | return _resultobj; | |
5151 | } | |
5152 | ||
383ea3d0 RD |
5153 | #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0)) |
5154 | static PyObject *_wrap_wxDC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5155 | PyObject * _resultobj; | |
5156 | wxDC * _arg0; | |
5157 | wxRect * _arg1; | |
5158 | PyObject * _argo0 = 0; | |
5159 | wxRect temp; | |
5160 | PyObject * _obj1 = 0; | |
5161 | char *_kwnames[] = { "self","rect", NULL }; | |
5162 | ||
5163 | self = self; | |
5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawRectangleRect",_kwnames,&_argo0,&_obj1)) | |
5165 | return NULL; | |
5166 | if (_argo0) { | |
5167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p."); | |
5170 | return NULL; | |
5171 | } | |
5172 | } | |
5173 | { | |
5174 | _arg1 = &temp; | |
5175 | if (! wxRect_helper(_obj1, &_arg1)) | |
5176 | return NULL; | |
5177 | } | |
5178 | { | |
5179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5180 | wxDC_DrawRectangleRect(_arg0,*_arg1); | |
5181 | ||
5182 | wxPyEndAllowThreads(__tstate); | |
5183 | if (PyErr_Occurred()) return NULL; | |
5184 | } Py_INCREF(Py_None); | |
5185 | _resultobj = Py_None; | |
5186 | return _resultobj; | |
5187 | } | |
5188 | ||
e6056257 RD |
5189 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5190 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5191 | PyObject * _resultobj; | |
5192 | wxDC * _arg0; | |
5193 | wxString * _arg1; | |
5194 | wxCoord _arg2; | |
5195 | wxCoord _arg3; | |
5196 | double _arg4; | |
5197 | PyObject * _argo0 = 0; | |
5198 | PyObject * _obj1 = 0; | |
5199 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
5200 | ||
5201 | self = self; | |
5202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5203 | return NULL; | |
5204 | if (_argo0) { | |
5205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
5208 | return NULL; | |
5209 | } | |
5210 | } | |
5211 | { | |
6824d4f9 RD |
5212 | _arg1 = wxString_in_helper(_obj1); |
5213 | if (_arg1 == NULL) | |
e6056257 | 5214 | return NULL; |
e6056257 RD |
5215 | } |
5216 | { | |
0e2ff151 | 5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5218 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
e6056257 | 5219 | |
0e2ff151 | 5220 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5221 | if (PyErr_Occurred()) return NULL; |
5222 | } Py_INCREF(Py_None); | |
5223 | _resultobj = Py_None; | |
5224 | { | |
5225 | if (_obj1) | |
5226 | delete _arg1; | |
5227 | } | |
5228 | return _resultobj; | |
5229 | } | |
5230 | ||
5231 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
5232 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5233 | PyObject * _resultobj; | |
5234 | wxDC * _arg0; | |
5235 | long _arg1; | |
5236 | long _arg2; | |
5237 | long _arg3; | |
5238 | long _arg4; | |
5239 | long _arg5 = (long ) 20; | |
5240 | PyObject * _argo0 = 0; | |
5241 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; | |
5242 | ||
5243 | self = self; | |
5244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
5245 | return NULL; | |
5246 | if (_argo0) { | |
5247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
5250 | return NULL; | |
5251 | } | |
5252 | } | |
5253 | { | |
0e2ff151 | 5254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5255 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
e6056257 | 5256 | |
0e2ff151 | 5257 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5258 | if (PyErr_Occurred()) return NULL; |
5259 | } Py_INCREF(Py_None); | |
5260 | _resultobj = Py_None; | |
5261 | return _resultobj; | |
5262 | } | |
5263 | ||
5264 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
5265 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5266 | PyObject * _resultobj; | |
5267 | wxDC * _arg0; | |
5268 | int _arg1; | |
5269 | wxPoint * _arg2; | |
5270 | PyObject * _argo0 = 0; | |
5271 | int NPOINTS; | |
5272 | PyObject * _obj2 = 0; | |
5273 | char *_kwnames[] = { "self","points", NULL }; | |
5274 | ||
5275 | self = self; | |
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) | |
5277 | return NULL; | |
5278 | if (_argo0) { | |
5279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
5282 | return NULL; | |
5283 | } | |
5284 | } | |
5285 | if (_obj2) | |
5286 | { | |
5287 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
5288 | if (_arg2 == NULL) { | |
5289 | return NULL; | |
5290 | } | |
5291 | } | |
5292 | { | |
5293 | _arg1 = NPOINTS; | |
5294 | } | |
5295 | { | |
0e2ff151 | 5296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5297 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
e6056257 | 5298 | |
0e2ff151 | 5299 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5300 | if (PyErr_Occurred()) return NULL; |
5301 | } Py_INCREF(Py_None); | |
5302 | _resultobj = Py_None; | |
5303 | { | |
5304 | delete [] _arg2; | |
5305 | } | |
5306 | return _resultobj; | |
5307 | } | |
5308 | ||
5309 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
5310 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject * _resultobj; | |
5312 | wxDC * _arg0; | |
5313 | wxString * _arg1; | |
5314 | long _arg2; | |
5315 | long _arg3; | |
5316 | PyObject * _argo0 = 0; | |
5317 | PyObject * _obj1 = 0; | |
5318 | char *_kwnames[] = { "self","text","x","y", NULL }; | |
5319 | ||
5320 | self = self; | |
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5322 | return NULL; | |
5323 | if (_argo0) { | |
5324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); | |
5327 | return NULL; | |
5328 | } | |
5329 | } | |
5330 | { | |
6824d4f9 RD |
5331 | _arg1 = wxString_in_helper(_obj1); |
5332 | if (_arg1 == NULL) | |
e6056257 | 5333 | return NULL; |
e6056257 RD |
5334 | } |
5335 | { | |
0e2ff151 | 5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5337 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 5338 | |
0e2ff151 | 5339 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5340 | if (PyErr_Occurred()) return NULL; |
5341 | } Py_INCREF(Py_None); | |
5342 | _resultobj = Py_None; | |
5343 | { | |
5344 | if (_obj1) | |
5345 | delete _arg1; | |
5346 | } | |
5347 | return _resultobj; | |
5348 | } | |
5349 | ||
5350 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
5351 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5352 | PyObject * _resultobj; | |
5353 | wxDC * _arg0; | |
5354 | PyObject * _argo0 = 0; | |
5355 | char *_kwnames[] = { "self", NULL }; | |
5356 | ||
5357 | self = self; | |
5358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) | |
5359 | return NULL; | |
5360 | if (_argo0) { | |
5361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
5364 | return NULL; | |
5365 | } | |
5366 | } | |
5367 | { | |
0e2ff151 | 5368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5369 | wxDC_EndDoc(_arg0); |
e6056257 | 5370 | |
0e2ff151 | 5371 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5372 | if (PyErr_Occurred()) return NULL; |
5373 | } Py_INCREF(Py_None); | |
5374 | _resultobj = Py_None; | |
5375 | return _resultobj; | |
5376 | } | |
5377 | ||
5378 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
5379 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5380 | PyObject * _resultobj; | |
5381 | wxDC * _arg0; | |
5382 | PyObject * _argo0 = 0; | |
5383 | char *_kwnames[] = { "self", NULL }; | |
5384 | ||
5385 | self = self; | |
5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) | |
5387 | return NULL; | |
5388 | if (_argo0) { | |
5389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
5392 | return NULL; | |
5393 | } | |
5394 | } | |
5395 | { | |
0e2ff151 | 5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5397 | wxDC_EndDrawing(_arg0); |
e6056257 | 5398 | |
0e2ff151 | 5399 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5400 | if (PyErr_Occurred()) return NULL; |
5401 | } Py_INCREF(Py_None); | |
5402 | _resultobj = Py_None; | |
5403 | return _resultobj; | |
5404 | } | |
5405 | ||
5406 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
5407 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5408 | PyObject * _resultobj; | |
5409 | wxDC * _arg0; | |
5410 | PyObject * _argo0 = 0; | |
5411 | char *_kwnames[] = { "self", NULL }; | |
5412 | ||
5413 | self = self; | |
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) | |
5415 | return NULL; | |
5416 | if (_argo0) { | |
5417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
5420 | return NULL; | |
5421 | } | |
5422 | } | |
5423 | { | |
0e2ff151 | 5424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5425 | wxDC_EndPage(_arg0); |
e6056257 | 5426 | |
0e2ff151 | 5427 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5428 | if (PyErr_Occurred()) return NULL; |
5429 | } Py_INCREF(Py_None); | |
5430 | _resultobj = Py_None; | |
5431 | return _resultobj; | |
5432 | } | |
5433 | ||
5434 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5435 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5436 | PyObject * _resultobj; | |
eb28fd47 | 5437 | bool _result; |
e6056257 RD |
5438 | wxDC * _arg0; |
5439 | long _arg1; | |
5440 | long _arg2; | |
5441 | wxColour * _arg3; | |
5442 | int _arg4 = (int ) wxFLOOD_SURFACE; | |
5443 | PyObject * _argo0 = 0; | |
5444 | wxColour temp; | |
5445 | PyObject * _obj3 = 0; | |
5446 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; | |
5447 | ||
5448 | self = self; | |
5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
5450 | return NULL; | |
5451 | if (_argo0) { | |
5452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
5455 | return NULL; | |
5456 | } | |
5457 | } | |
5458 | { | |
5459 | _arg3 = &temp; | |
5460 | if (! wxColour_helper(_obj3, &_arg3)) | |
5461 | return NULL; | |
5462 | } | |
5463 | { | |
0e2ff151 | 5464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eb28fd47 | 5465 | _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
e6056257 | 5466 | |
0e2ff151 | 5467 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5468 | if (PyErr_Occurred()) return NULL; |
eb28fd47 | 5469 | } _resultobj = Py_BuildValue("i",_result); |
e6056257 RD |
5470 | return _resultobj; |
5471 | } | |
5472 | ||
5473 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
5474 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5475 | PyObject * _resultobj; | |
5476 | wxBrush * _result; | |
5477 | wxDC * _arg0; | |
5478 | PyObject * _argo0 = 0; | |
5479 | char *_kwnames[] = { "self", NULL }; | |
5480 | char _ptemp[128]; | |
5481 | ||
5482 | self = self; | |
5483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) | |
5484 | return NULL; | |
5485 | if (_argo0) { | |
5486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
5489 | return NULL; | |
5490 | } | |
5491 | } | |
5492 | { | |
0e2ff151 | 5493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5494 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
e6056257 | 5495 | |
0e2ff151 | 5496 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5497 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5498 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
5499 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5500 | return _resultobj; |
5501 | } | |
5502 | ||
5503 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
5504 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5505 | PyObject * _resultobj; | |
5506 | wxBrush * _result; | |
5507 | wxDC * _arg0; | |
5508 | PyObject * _argo0 = 0; | |
5509 | char *_kwnames[] = { "self", NULL }; | |
5510 | char _ptemp[128]; | |
5511 | ||
5512 | self = self; | |
5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) | |
5514 | return NULL; | |
5515 | if (_argo0) { | |
5516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
5519 | return NULL; | |
5520 | } | |
5521 | } | |
5522 | { | |
0e2ff151 | 5523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5524 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
e6056257 | 5525 | |
0e2ff151 | 5526 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5527 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5528 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
5529 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5530 | return _resultobj; |
5531 | } | |
5532 | ||
5533 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
5534 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5535 | PyObject * _resultobj; | |
5536 | long _result; | |
5537 | wxDC * _arg0; | |
5538 | PyObject * _argo0 = 0; | |
5539 | char *_kwnames[] = { "self", NULL }; | |
5540 | ||
5541 | self = self; | |
5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) | |
5543 | return NULL; | |
5544 | if (_argo0) { | |
5545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
5548 | return NULL; | |
5549 | } | |
5550 | } | |
5551 | { | |
0e2ff151 | 5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5553 | _result = (long )wxDC_GetCharHeight(_arg0); |
e6056257 | 5554 | |
0e2ff151 | 5555 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5556 | if (PyErr_Occurred()) return NULL; |
5557 | } _resultobj = Py_BuildValue("l",_result); | |
5558 | return _resultobj; | |
5559 | } | |
5560 | ||
5561 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
5562 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5563 | PyObject * _resultobj; | |
5564 | long _result; | |
5565 | wxDC * _arg0; | |
5566 | PyObject * _argo0 = 0; | |
5567 | char *_kwnames[] = { "self", NULL }; | |
5568 | ||
5569 | self = self; | |
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) | |
5571 | return NULL; | |
5572 | if (_argo0) { | |
5573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
5576 | return NULL; | |
5577 | } | |
5578 | } | |
5579 | { | |
0e2ff151 | 5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5581 | _result = (long )wxDC_GetCharWidth(_arg0); |
e6056257 | 5582 | |
0e2ff151 | 5583 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5584 | if (PyErr_Occurred()) return NULL; |
5585 | } _resultobj = Py_BuildValue("l",_result); | |
5586 | return _resultobj; | |
5587 | } | |
5588 | ||
5589 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5590 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject * _resultobj; | |
5592 | wxDC * _arg0; | |
5593 | long * _arg1; | |
5594 | long temp; | |
5595 | long * _arg2; | |
5596 | long temp0; | |
5597 | long * _arg3; | |
5598 | long temp1; | |
5599 | long * _arg4; | |
5600 | long temp2; | |
5601 | PyObject * _argo0 = 0; | |
5602 | char *_kwnames[] = { "self", NULL }; | |
5603 | ||
5604 | self = self; | |
5605 | { | |
5606 | _arg1 = &temp; | |
5607 | } | |
5608 | { | |
5609 | _arg2 = &temp0; | |
5610 | } | |
5611 | { | |
5612 | _arg3 = &temp1; | |
5613 | } | |
5614 | { | |
5615 | _arg4 = &temp2; | |
5616 | } | |
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) | |
5618 | return NULL; | |
5619 | if (_argo0) { | |
5620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
5623 | return NULL; | |
5624 | } | |
5625 | } | |
5626 | { | |
0e2ff151 | 5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5628 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 5629 | |
0e2ff151 | 5630 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5631 | if (PyErr_Occurred()) return NULL; |
5632 | } Py_INCREF(Py_None); | |
5633 | _resultobj = Py_None; | |
5634 | { | |
5635 | PyObject *o; | |
5636 | o = PyInt_FromLong((long) (*_arg1)); | |
5637 | _resultobj = t_output_helper(_resultobj, o); | |
5638 | } | |
5639 | { | |
5640 | PyObject *o; | |
5641 | o = PyInt_FromLong((long) (*_arg2)); | |
5642 | _resultobj = t_output_helper(_resultobj, o); | |
5643 | } | |
5644 | { | |
5645 | PyObject *o; | |
5646 | o = PyInt_FromLong((long) (*_arg3)); | |
5647 | _resultobj = t_output_helper(_resultobj, o); | |
5648 | } | |
5649 | { | |
5650 | PyObject *o; | |
5651 | o = PyInt_FromLong((long) (*_arg4)); | |
5652 | _resultobj = t_output_helper(_resultobj, o); | |
5653 | } | |
5654 | return _resultobj; | |
5655 | } | |
5656 | ||
5657 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
5658 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5659 | PyObject * _resultobj; | |
5660 | wxFont * _result; | |
5661 | wxDC * _arg0; | |
5662 | PyObject * _argo0 = 0; | |
5663 | char *_kwnames[] = { "self", NULL }; | |
5664 | char _ptemp[128]; | |
5665 | ||
5666 | self = self; | |
5667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) | |
5668 | return NULL; | |
5669 | if (_argo0) { | |
5670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
5673 | return NULL; | |
5674 | } | |
5675 | } | |
5676 | { | |
0e2ff151 | 5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5678 | _result = new wxFont (wxDC_GetFont(_arg0)); |
e6056257 | 5679 | |
0e2ff151 | 5680 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5681 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5682 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5683 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5684 | return _resultobj; |
5685 | } | |
5686 | ||
5687 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
5688 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5689 | PyObject * _resultobj; | |
5690 | int _result; | |
5691 | wxDC * _arg0; | |
5692 | PyObject * _argo0 = 0; | |
5693 | char *_kwnames[] = { "self", NULL }; | |
5694 | ||
5695 | self = self; | |
5696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) | |
5697 | return NULL; | |
5698 | if (_argo0) { | |
5699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
5702 | return NULL; | |
5703 | } | |
5704 | } | |
5705 | { | |
0e2ff151 | 5706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5707 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
e6056257 | 5708 | |
0e2ff151 | 5709 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5710 | if (PyErr_Occurred()) return NULL; |
5711 | } _resultobj = Py_BuildValue("i",_result); | |
5712 | return _resultobj; | |
5713 | } | |
5714 | ||
5715 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) | |
5716 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject * _resultobj; | |
5718 | wxDC * _arg0; | |
5719 | double * _arg1; | |
5720 | double temp; | |
5721 | double * _arg2; | |
5722 | double temp0; | |
5723 | PyObject * _argo0 = 0; | |
5724 | char *_kwnames[] = { "self", NULL }; | |
5725 | ||
5726 | self = self; | |
5727 | { | |
5728 | _arg1 = &temp; | |
5729 | } | |
5730 | { | |
5731 | _arg2 = &temp0; | |
5732 | } | |
5733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
5734 | return NULL; | |
5735 | if (_argo0) { | |
5736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
5739 | return NULL; | |
5740 | } | |
5741 | } | |
5742 | { | |
0e2ff151 | 5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5744 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
e6056257 | 5745 | |
0e2ff151 | 5746 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5747 | if (PyErr_Occurred()) return NULL; |
5748 | } Py_INCREF(Py_None); | |
5749 | _resultobj = Py_None; | |
5750 | { | |
5751 | PyObject *o; | |
5752 | o = PyFloat_FromDouble((double) (*_arg1)); | |
5753 | _resultobj = t_output_helper(_resultobj, o); | |
5754 | } | |
5755 | { | |
5756 | PyObject *o; | |
5757 | o = PyFloat_FromDouble((double) (*_arg2)); | |
5758 | _resultobj = t_output_helper(_resultobj, o); | |
5759 | } | |
5760 | return _resultobj; | |
5761 | } | |
5762 | ||
5763 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
5764 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5765 | PyObject * _resultobj; | |
5766 | int _result; | |
5767 | wxDC * _arg0; | |
5768 | PyObject * _argo0 = 0; | |
5769 | char *_kwnames[] = { "self", NULL }; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
0e2ff151 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5783 | _result = (int )wxDC_GetMapMode(_arg0); |
e6056257 | 5784 | |
0e2ff151 | 5785 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5786 | if (PyErr_Occurred()) return NULL; |
5787 | } _resultobj = Py_BuildValue("i",_result); | |
5788 | return _resultobj; | |
5789 | } | |
5790 | ||
5791 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
5792 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5793 | PyObject * _resultobj; | |
5794 | bool _result; | |
5795 | wxDC * _arg0; | |
5796 | PyObject * _argo0 = 0; | |
5797 | char *_kwnames[] = { "self", NULL }; | |
5798 | ||
5799 | self = self; | |
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) | |
5801 | return NULL; | |
5802 | if (_argo0) { | |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
5806 | return NULL; | |
5807 | } | |
5808 | } | |
5809 | { | |
0e2ff151 | 5810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5811 | _result = (bool )wxDC_GetOptimization(_arg0); |
e6056257 | 5812 | |
0e2ff151 | 5813 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5814 | if (PyErr_Occurred()) return NULL; |
5815 | } _resultobj = Py_BuildValue("i",_result); | |
5816 | return _resultobj; | |
5817 | } | |
5818 | ||
5819 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
5820 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5821 | PyObject * _resultobj; | |
5822 | wxPen * _result; | |
5823 | wxDC * _arg0; | |
5824 | PyObject * _argo0 = 0; | |
5825 | char *_kwnames[] = { "self", NULL }; | |
5826 | char _ptemp[128]; | |
5827 | ||
5828 | self = self; | |
5829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) | |
5830 | return NULL; | |
5831 | if (_argo0) { | |
5832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
5835 | return NULL; | |
5836 | } | |
5837 | } | |
5838 | { | |
0e2ff151 | 5839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5840 | _result = new wxPen (wxDC_GetPen(_arg0)); |
e6056257 | 5841 | |
0e2ff151 | 5842 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5843 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5844 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
5845 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5846 | return _resultobj; |
5847 | } | |
5848 | ||
5849 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
5850 | wxColour* wc = new wxColour(); | |
5851 | self->GetPixel(x, y, wc); | |
5852 | return wc; | |
5853 | } | |
5854 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5855 | PyObject * _resultobj; | |
5856 | wxColour * _result; | |
5857 | wxDC * _arg0; | |
5858 | long _arg1; | |
5859 | long _arg2; | |
5860 | PyObject * _argo0 = 0; | |
5861 | char *_kwnames[] = { "self","x","y", NULL }; | |
5862 | char _ptemp[128]; | |
5863 | ||
5864 | self = self; | |
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5866 | return NULL; | |
5867 | if (_argo0) { | |
5868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
5871 | return NULL; | |
5872 | } | |
5873 | } | |
5874 | { | |
0e2ff151 | 5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5876 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
e6056257 | 5877 | |
0e2ff151 | 5878 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5879 | if (PyErr_Occurred()) return NULL; |
5880 | } if (_result) { | |
5881 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5882 | _resultobj = Py_BuildValue("s",_ptemp); | |
5883 | } else { | |
5884 | Py_INCREF(Py_None); | |
5885 | _resultobj = Py_None; | |
5886 | } | |
5887 | return _resultobj; | |
5888 | } | |
5889 | ||
5890 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
5891 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5892 | PyObject * _resultobj; | |
5893 | wxDC * _arg0; | |
5894 | int * _arg1; | |
5895 | int temp; | |
5896 | int * _arg2; | |
5897 | int temp0; | |
5898 | PyObject * _argo0 = 0; | |
5899 | char *_kwnames[] = { "self", NULL }; | |
5900 | ||
5901 | self = self; | |
5902 | { | |
5903 | _arg1 = &temp; | |
5904 | } | |
5905 | { | |
5906 | _arg2 = &temp0; | |
5907 | } | |
5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) | |
5909 | return NULL; | |
5910 | if (_argo0) { | |
5911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); | |
5914 | return NULL; | |
5915 | } | |
5916 | } | |
5917 | { | |
0e2ff151 | 5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5919 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
e6056257 | 5920 | |
0e2ff151 | 5921 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5922 | if (PyErr_Occurred()) return NULL; |
5923 | } Py_INCREF(Py_None); | |
5924 | _resultobj = Py_None; | |
5925 | { | |
5926 | PyObject *o; | |
5927 | o = PyInt_FromLong((long) (*_arg1)); | |
5928 | _resultobj = t_output_helper(_resultobj, o); | |
5929 | } | |
5930 | { | |
5931 | PyObject *o; | |
5932 | o = PyInt_FromLong((long) (*_arg2)); | |
5933 | _resultobj = t_output_helper(_resultobj, o); | |
5934 | } | |
5935 | return _resultobj; | |
5936 | } | |
5937 | ||
5938 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) | |
5939 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5940 | PyObject * _resultobj; | |
5941 | wxSize * _result; | |
5942 | wxDC * _arg0; | |
5943 | PyObject * _argo0 = 0; | |
5944 | char *_kwnames[] = { "self", NULL }; | |
5945 | char _ptemp[128]; | |
5946 | ||
5947 | self = self; | |
5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) | |
5949 | return NULL; | |
5950 | if (_argo0) { | |
5951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); | |
5954 | return NULL; | |
5955 | } | |
5956 | } | |
5957 | { | |
0e2ff151 | 5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5959 | _result = new wxSize (wxDC_GetSize(_arg0)); |
e6056257 | 5960 | |
0e2ff151 | 5961 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5962 | if (PyErr_Occurred()) return NULL; |
5963 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5964 | _resultobj = Py_BuildValue("s",_ptemp); | |
5965 | return _resultobj; | |
5966 | } | |
5967 | ||
5968 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) | |
5969 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5970 | PyObject * _resultobj; | |
5971 | wxSize * _result; | |
5972 | wxDC * _arg0; | |
5973 | PyObject * _argo0 = 0; | |
5974 | char *_kwnames[] = { "self", NULL }; | |
5975 | char _ptemp[128]; | |
5976 | ||
5977 | self = self; | |
5978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
5979 | return NULL; | |
5980 | if (_argo0) { | |
5981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
5984 | return NULL; | |
5985 | } | |
5986 | } | |
5987 | { | |
0e2ff151 | 5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5989 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
e6056257 | 5990 | |
0e2ff151 | 5991 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5992 | if (PyErr_Occurred()) return NULL; |
5993 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5994 | _resultobj = Py_BuildValue("s",_ptemp); | |
5995 | return _resultobj; | |
5996 | } | |
5997 | ||
5998 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
5999 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6000 | PyObject * _resultobj; | |
6001 | wxColour * _result; | |
6002 | wxDC * _arg0; | |
6003 | PyObject * _argo0 = 0; | |
6004 | char *_kwnames[] = { "self", NULL }; | |
6005 | char _ptemp[128]; | |
6006 | ||
6007 | self = self; | |
6008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) | |
6009 | return NULL; | |
6010 | if (_argo0) { | |
6011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
6014 | return NULL; | |
6015 | } | |
6016 | } | |
6017 | { | |
0e2ff151 | 6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6019 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
e6056257 | 6020 | |
0e2ff151 | 6021 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6022 | if (PyErr_Occurred()) return NULL; |
6023 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6024 | _resultobj = Py_BuildValue("s",_ptemp); | |
6025 | return _resultobj; | |
6026 | } | |
6027 | ||
6028 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
6029 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6030 | PyObject * _resultobj; | |
6031 | wxDC * _arg0; | |
6032 | wxString * _arg1; | |
6033 | long * _arg2; | |
6034 | long temp; | |
6035 | long * _arg3; | |
6036 | long temp0; | |
6037 | PyObject * _argo0 = 0; | |
6038 | PyObject * _obj1 = 0; | |
6039 | char *_kwnames[] = { "self","string", NULL }; | |
6040 | ||
6041 | self = self; | |
6042 | { | |
6043 | _arg2 = &temp; | |
6044 | } | |
6045 | { | |
6046 | _arg3 = &temp0; | |
6047 | } | |
6048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
6049 | return NULL; | |
6050 | if (_argo0) { | |
6051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); | |
6054 | return NULL; | |
6055 | } | |
6056 | } | |
6057 | { | |
6824d4f9 RD |
6058 | _arg1 = wxString_in_helper(_obj1); |
6059 | if (_arg1 == NULL) | |
e6056257 | 6060 | return NULL; |
e6056257 RD |
6061 | } |
6062 | { | |
0e2ff151 | 6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6064 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 6065 | |
0e2ff151 | 6066 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6067 | if (PyErr_Occurred()) return NULL; |
6068 | } Py_INCREF(Py_None); | |
6069 | _resultobj = Py_None; | |
6070 | { | |
6071 | PyObject *o; | |
6072 | o = PyInt_FromLong((long) (*_arg2)); | |
6073 | _resultobj = t_output_helper(_resultobj, o); | |
6074 | } | |
6075 | { | |
6076 | PyObject *o; | |
6077 | o = PyInt_FromLong((long) (*_arg3)); | |
6078 | _resultobj = t_output_helper(_resultobj, o); | |
6079 | } | |
6080 | { | |
6081 | if (_obj1) | |
6082 | delete _arg1; | |
6083 | } | |
6084 | return _resultobj; | |
6085 | } | |
6086 | ||
6087 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6088 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject * _resultobj; | |
6090 | wxDC * _arg0; | |
6091 | wxString * _arg1; | |
6092 | long * _arg2; | |
6093 | long temp; | |
6094 | long * _arg3; | |
6095 | long temp0; | |
6096 | long * _arg4; | |
6097 | long temp1; | |
6098 | long * _arg5; | |
6099 | long temp2; | |
6100 | wxFont * _arg6 = (wxFont *) NULL; | |
6101 | PyObject * _argo0 = 0; | |
6102 | PyObject * _obj1 = 0; | |
6103 | PyObject * _argo6 = 0; | |
6104 | char *_kwnames[] = { "self","string","font", NULL }; | |
6105 | ||
6106 | self = self; | |
6107 | { | |
6108 | _arg2 = &temp; | |
6109 | } | |
6110 | { | |
6111 | _arg3 = &temp0; | |
6112 | } | |
6113 | { | |
6114 | _arg4 = &temp1; | |
6115 | } | |
6116 | { | |
6117 | _arg5 = &temp2; | |
6118 | } | |
6119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
6120 | return NULL; | |
6121 | if (_argo0) { | |
6122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); | |
6125 | return NULL; | |
6126 | } | |
6127 | } | |
6128 | { | |
6824d4f9 RD |
6129 | _arg1 = wxString_in_helper(_obj1); |
6130 | if (_arg1 == NULL) | |
e6056257 | 6131 | return NULL; |
e6056257 RD |
6132 | } |
6133 | if (_argo6) { | |
6134 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6135 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
6136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); | |
6137 | return NULL; | |
6138 | } | |
6139 | } | |
6140 | { | |
0e2ff151 | 6141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6142 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 6143 | |
0e2ff151 | 6144 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6145 | if (PyErr_Occurred()) return NULL; |
6146 | } Py_INCREF(Py_None); | |
6147 | _resultobj = Py_None; | |
6148 | { | |
6149 | PyObject *o; | |
6150 | o = PyInt_FromLong((long) (*_arg2)); | |
6151 | _resultobj = t_output_helper(_resultobj, o); | |
6152 | } | |
6153 | { | |
6154 | PyObject *o; | |
6155 | o = PyInt_FromLong((long) (*_arg3)); | |
6156 | _resultobj = t_output_helper(_resultobj, o); | |
6157 | } | |
6158 | { | |
6159 | PyObject *o; | |
6160 | o = PyInt_FromLong((long) (*_arg4)); | |
6161 | _resultobj = t_output_helper(_resultobj, o); | |
6162 | } | |
6163 | { | |
6164 | PyObject *o; | |
6165 | o = PyInt_FromLong((long) (*_arg5)); | |
6166 | _resultobj = t_output_helper(_resultobj, o); | |
6167 | } | |
6168 | { | |
6169 | if (_obj1) | |
6170 | delete _arg1; | |
6171 | } | |
6172 | return _resultobj; | |
6173 | } | |
6174 | ||
6175 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
6176 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6177 | PyObject * _resultobj; | |
6178 | wxColour * _result; | |
6179 | wxDC * _arg0; | |
6180 | PyObject * _argo0 = 0; | |
6181 | char *_kwnames[] = { "self", NULL }; | |
6182 | char _ptemp[128]; | |
6183 | ||
6184 | self = self; | |
6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
6186 | return NULL; | |
6187 | if (_argo0) { | |
6188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
6191 | return NULL; | |
6192 | } | |
6193 | } | |
6194 | { | |
0e2ff151 | 6195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6196 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
e6056257 | 6197 | |
0e2ff151 | 6198 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6199 | if (PyErr_Occurred()) return NULL; |
6200 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6201 | _resultobj = Py_BuildValue("s",_ptemp); | |
6202 | return _resultobj; | |
6203 | } | |
6204 | ||
6205 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
6206 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6207 | PyObject * _resultobj; | |
6208 | wxDC * _arg0; | |
6209 | double * _arg1; | |
6210 | double temp; | |
6211 | double * _arg2; | |
6212 | double temp0; | |
6213 | PyObject * _argo0 = 0; | |
6214 | char *_kwnames[] = { "self", NULL }; | |
6215 | ||
6216 | self = self; | |
6217 | { | |
6218 | _arg1 = &temp; | |
6219 | } | |
6220 | { | |
6221 | _arg2 = &temp0; | |
6222 | } | |
6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
6224 | return NULL; | |
6225 | if (_argo0) { | |
6226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
6229 | return NULL; | |
6230 | } | |
6231 | } | |
6232 | { | |
0e2ff151 | 6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6234 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
e6056257 | 6235 | |
0e2ff151 | 6236 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6237 | if (PyErr_Occurred()) return NULL; |
6238 | } Py_INCREF(Py_None); | |
6239 | _resultobj = Py_None; | |
6240 | { | |
6241 | PyObject *o; | |
6242 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6243 | _resultobj = t_output_helper(_resultobj, o); | |
6244 | } | |
6245 | { | |
6246 | PyObject *o; | |
6247 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6248 | _resultobj = t_output_helper(_resultobj, o); | |
6249 | } | |
6250 | return _resultobj; | |
6251 | } | |
6252 | ||
6253 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
6254 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6255 | PyObject * _resultobj; | |
6256 | long _result; | |
6257 | wxDC * _arg0; | |
6258 | long _arg1; | |
6259 | PyObject * _argo0 = 0; | |
6260 | char *_kwnames[] = { "self","x", NULL }; | |
6261 | ||
6262 | self = self; | |
6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) | |
6264 | return NULL; | |
6265 | if (_argo0) { | |
6266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
6269 | return NULL; | |
6270 | } | |
6271 | } | |
6272 | { | |
0e2ff151 | 6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6274 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
e6056257 | 6275 | |
0e2ff151 | 6276 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6277 | if (PyErr_Occurred()) return NULL; |
6278 | } _resultobj = Py_BuildValue("l",_result); | |
6279 | return _resultobj; | |
6280 | } | |
6281 | ||
6282 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
6283 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6284 | PyObject * _resultobj; | |
6285 | long _result; | |
6286 | wxDC * _arg0; | |
6287 | long _arg1; | |
6288 | PyObject * _argo0 = 0; | |
6289 | char *_kwnames[] = { "self","x", NULL }; | |
6290 | ||
6291 | self = self; | |
6292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) | |
6293 | return NULL; | |
6294 | if (_argo0) { | |
6295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
6298 | return NULL; | |
6299 | } | |
6300 | } | |
6301 | { | |
0e2ff151 | 6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6303 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
e6056257 | 6304 | |
0e2ff151 | 6305 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6306 | if (PyErr_Occurred()) return NULL; |
6307 | } _resultobj = Py_BuildValue("l",_result); | |
6308 | return _resultobj; | |
6309 | } | |
6310 | ||
6311 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
6312 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6313 | PyObject * _resultobj; | |
6314 | long _result; | |
6315 | wxDC * _arg0; | |
6316 | long _arg1; | |
6317 | PyObject * _argo0 = 0; | |
6318 | char *_kwnames[] = { "self","y", NULL }; | |
6319 | ||
6320 | self = self; | |
6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) | |
6322 | return NULL; | |
6323 | if (_argo0) { | |
6324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); | |
6327 | return NULL; | |
6328 | } | |
6329 | } | |
6330 | { | |
0e2ff151 | 6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6332 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
e6056257 | 6333 | |
0e2ff151 | 6334 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6335 | if (PyErr_Occurred()) return NULL; |
6336 | } _resultobj = Py_BuildValue("l",_result); | |
6337 | return _resultobj; | |
6338 | } | |
6339 | ||
6340 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
6341 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6342 | PyObject * _resultobj; | |
6343 | long _result; | |
6344 | wxDC * _arg0; | |
6345 | long _arg1; | |
6346 | PyObject * _argo0 = 0; | |
6347 | char *_kwnames[] = { "self","y", NULL }; | |
6348 | ||
6349 | self = self; | |
6350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) | |
6351 | return NULL; | |
6352 | if (_argo0) { | |
6353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
6356 | return NULL; | |
6357 | } | |
6358 | } | |
6359 | { | |
0e2ff151 | 6360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6361 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
e6056257 | 6362 | |
0e2ff151 | 6363 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6364 | if (PyErr_Occurred()) return NULL; |
6365 | } _resultobj = Py_BuildValue("l",_result); | |
6366 | return _resultobj; | |
6367 | } | |
6368 | ||
6369 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
6370 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6371 | PyObject * _resultobj; | |
6372 | long _result; | |
6373 | wxDC * _arg0; | |
6374 | PyObject * _argo0 = 0; | |
6375 | char *_kwnames[] = { "self", NULL }; | |
6376 | ||
6377 | self = self; | |
6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) | |
6379 | return NULL; | |
6380 | if (_argo0) { | |
6381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
6384 | return NULL; | |
6385 | } | |
6386 | } | |
6387 | { | |
0e2ff151 | 6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6389 | _result = (long )wxDC_MaxX(_arg0); |
e6056257 | 6390 | |
0e2ff151 | 6391 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6392 | if (PyErr_Occurred()) return NULL; |
6393 | } _resultobj = Py_BuildValue("l",_result); | |
6394 | return _resultobj; | |
6395 | } | |
6396 | ||
6397 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
6398 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject * _resultobj; | |
6400 | long _result; | |
6401 | wxDC * _arg0; | |
6402 | PyObject * _argo0 = 0; | |
6403 | char *_kwnames[] = { "self", NULL }; | |
6404 | ||
6405 | self = self; | |
6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) | |
6407 | return NULL; | |
6408 | if (_argo0) { | |
6409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
6412 | return NULL; | |
6413 | } | |
6414 | } | |
6415 | { | |
0e2ff151 | 6416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6417 | _result = (long )wxDC_MaxY(_arg0); |
e6056257 | 6418 | |
0e2ff151 | 6419 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6420 | if (PyErr_Occurred()) return NULL; |
6421 | } _resultobj = Py_BuildValue("l",_result); | |
6422 | return _resultobj; | |
6423 | } | |
6424 | ||
6425 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
6426 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6427 | PyObject * _resultobj; | |
6428 | long _result; | |
6429 | wxDC * _arg0; | |
6430 | PyObject * _argo0 = 0; | |
6431 | char *_kwnames[] = { "self", NULL }; | |
6432 | ||
6433 | self = self; | |
6434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) | |
6435 | return NULL; | |
6436 | if (_argo0) { | |
6437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
6440 | return NULL; | |
6441 | } | |
6442 | } | |
6443 | { | |
0e2ff151 | 6444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6445 | _result = (long )wxDC_MinX(_arg0); |
e6056257 | 6446 | |
0e2ff151 | 6447 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6448 | if (PyErr_Occurred()) return NULL; |
6449 | } _resultobj = Py_BuildValue("l",_result); | |
6450 | return _resultobj; | |
6451 | } | |
6452 | ||
6453 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
6454 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6455 | PyObject * _resultobj; | |
6456 | long _result; | |
6457 | wxDC * _arg0; | |
6458 | PyObject * _argo0 = 0; | |
6459 | char *_kwnames[] = { "self", NULL }; | |
6460 | ||
6461 | self = self; | |
6462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) | |
6463 | return NULL; | |
6464 | if (_argo0) { | |
6465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
6468 | return NULL; | |
6469 | } | |
6470 | } | |
6471 | { | |
0e2ff151 | 6472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6473 | _result = (long )wxDC_MinY(_arg0); |
e6056257 | 6474 | |
0e2ff151 | 6475 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6476 | if (PyErr_Occurred()) return NULL; |
6477 | } _resultobj = Py_BuildValue("l",_result); | |
6478 | return _resultobj; | |
6479 | } | |
6480 | ||
6481 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
6482 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6483 | PyObject * _resultobj; | |
6484 | bool _result; | |
6485 | wxDC * _arg0; | |
6486 | PyObject * _argo0 = 0; | |
6487 | char *_kwnames[] = { "self", NULL }; | |
6488 | ||
6489 | self = self; | |
6490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) | |
6491 | return NULL; | |
6492 | if (_argo0) { | |
6493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
6496 | return NULL; | |
6497 | } | |
6498 | } | |
6499 | { | |
0e2ff151 | 6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6501 | _result = (bool )wxDC_Ok(_arg0); |
e6056257 | 6502 | |
0e2ff151 | 6503 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6504 | if (PyErr_Occurred()) return NULL; |
6505 | } _resultobj = Py_BuildValue("i",_result); | |
6506 | return _resultobj; | |
6507 | } | |
6508 | ||
6509 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
6510 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6511 | PyObject * _resultobj; | |
6512 | wxDC * _arg0; | |
6513 | long _arg1; | |
6514 | long _arg2; | |
6515 | PyObject * _argo0 = 0; | |
6516 | char *_kwnames[] = { "self","x","y", NULL }; | |
6517 | ||
6518 | self = self; | |
6519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6520 | return NULL; | |
6521 | if (_argo0) { | |
6522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
6525 | return NULL; | |
6526 | } | |
6527 | } | |
6528 | { | |
0e2ff151 | 6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6530 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
e6056257 | 6531 | |
0e2ff151 | 6532 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6533 | if (PyErr_Occurred()) return NULL; |
6534 | } Py_INCREF(Py_None); | |
6535 | _resultobj = Py_None; | |
6536 | return _resultobj; | |
6537 | } | |
6538 | ||
6539 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
6540 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject * _resultobj; | |
6542 | wxDC * _arg0; | |
6543 | wxBrush * _arg1; | |
6544 | PyObject * _argo0 = 0; | |
6545 | PyObject * _argo1 = 0; | |
6546 | char *_kwnames[] = { "self","brush", NULL }; | |
6547 | ||
6548 | self = self; | |
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) | |
6550 | return NULL; | |
6551 | if (_argo0) { | |
6552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
6555 | return NULL; | |
6556 | } | |
6557 | } | |
6558 | if (_argo1) { | |
6559 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6560 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
6562 | return NULL; | |
6563 | } | |
6564 | } | |
6565 | { | |
0e2ff151 | 6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6567 | wxDC_SetBackground(_arg0,*_arg1); |
e6056257 | 6568 | |
0e2ff151 | 6569 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6570 | if (PyErr_Occurred()) return NULL; |
6571 | } Py_INCREF(Py_None); | |
6572 | _resultobj = Py_None; | |
6573 | return _resultobj; | |
6574 | } | |
6575 | ||
6576 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
6577 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6578 | PyObject * _resultobj; | |
6579 | wxDC * _arg0; | |
6580 | int _arg1; | |
6581 | PyObject * _argo0 = 0; | |
6582 | char *_kwnames[] = { "self","mode", NULL }; | |
6583 | ||
6584 | self = self; | |
6585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) | |
6586 | return NULL; | |
6587 | if (_argo0) { | |
6588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
6591 | return NULL; | |
6592 | } | |
6593 | } | |
6594 | { | |
0e2ff151 | 6595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6596 | wxDC_SetBackgroundMode(_arg0,_arg1); |
e6056257 | 6597 | |
0e2ff151 | 6598 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6599 | if (PyErr_Occurred()) return NULL; |
6600 | } Py_INCREF(Py_None); | |
6601 | _resultobj = Py_None; | |
6602 | return _resultobj; | |
6603 | } | |
6604 | ||
6605 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6606 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject * _resultobj; | |
6608 | wxDC * _arg0; | |
6609 | long _arg1; | |
6610 | long _arg2; | |
6611 | long _arg3; | |
6612 | long _arg4; | |
6613 | PyObject * _argo0 = 0; | |
6614 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
6615 | ||
6616 | self = self; | |
6617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6618 | return NULL; | |
6619 | if (_argo0) { | |
6620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
6623 | return NULL; | |
6624 | } | |
6625 | } | |
6626 | { | |
0e2ff151 | 6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6628 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 6629 | |
0e2ff151 | 6630 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6631 | if (PyErr_Occurred()) return NULL; |
6632 | } Py_INCREF(Py_None); | |
6633 | _resultobj = Py_None; | |
6634 | return _resultobj; | |
6635 | } | |
6636 | ||
6637 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) | |
6638 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6639 | PyObject * _resultobj; | |
6640 | wxDC * _arg0; | |
6641 | wxRegion * _arg1; | |
6642 | PyObject * _argo0 = 0; | |
6643 | PyObject * _argo1 = 0; | |
6644 | char *_kwnames[] = { "self","region", NULL }; | |
6645 | ||
6646 | self = self; | |
6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
6648 | return NULL; | |
6649 | if (_argo0) { | |
6650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
6653 | return NULL; | |
6654 | } | |
6655 | } | |
6656 | if (_argo1) { | |
6657 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6658 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
6659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
6660 | return NULL; | |
6661 | } | |
6662 | } | |
6663 | { | |
0e2ff151 | 6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6665 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
e6056257 | 6666 | |
0e2ff151 | 6667 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6668 | if (PyErr_Occurred()) return NULL; |
6669 | } Py_INCREF(Py_None); | |
6670 | _resultobj = Py_None; | |
6671 | return _resultobj; | |
6672 | } | |
6673 | ||
383ea3d0 RD |
6674 | #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
6675 | static PyObject *_wrap_wxDC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6676 | PyObject * _resultobj; | |
6677 | wxDC * _arg0; | |
6678 | wxRect * _arg1; | |
6679 | PyObject * _argo0 = 0; | |
6680 | wxRect temp; | |
6681 | PyObject * _obj1 = 0; | |
6682 | char *_kwnames[] = { "self","rect", NULL }; | |
6683 | ||
6684 | self = self; | |
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRect",_kwnames,&_argo0,&_obj1)) | |
6686 | return NULL; | |
6687 | if (_argo0) { | |
6688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p."); | |
6691 | return NULL; | |
6692 | } | |
6693 | } | |
6694 | { | |
6695 | _arg1 = &temp; | |
6696 | if (! wxRect_helper(_obj1, &_arg1)) | |
6697 | return NULL; | |
6698 | } | |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | wxDC_SetClippingRect(_arg0,*_arg1); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) return NULL; | |
6705 | } Py_INCREF(Py_None); | |
6706 | _resultobj = Py_None; | |
6707 | return _resultobj; | |
6708 | } | |
6709 | ||
e6056257 RD |
6710 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
6711 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6712 | PyObject * _resultobj; | |
6713 | wxDC * _arg0; | |
6714 | wxPalette * _arg1; | |
6715 | PyObject * _argo0 = 0; | |
6716 | PyObject * _argo1 = 0; | |
6717 | char *_kwnames[] = { "self","colourMap", NULL }; | |
6718 | ||
6719 | self = self; | |
6720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) | |
6721 | return NULL; | |
6722 | if (_argo0) { | |
6723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
6726 | return NULL; | |
6727 | } | |
6728 | } | |
6729 | if (_argo1) { | |
6730 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6731 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
6732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
6733 | return NULL; | |
6734 | } | |
6735 | } | |
6736 | { | |
0e2ff151 | 6737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6738 | wxDC_SetPalette(_arg0,*_arg1); |
e6056257 | 6739 | |
0e2ff151 | 6740 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6741 | if (PyErr_Occurred()) return NULL; |
6742 | } Py_INCREF(Py_None); | |
6743 | _resultobj = Py_None; | |
6744 | return _resultobj; | |
6745 | } | |
6746 | ||
6747 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
6748 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6749 | PyObject * _resultobj; | |
6750 | wxDC * _arg0; | |
6751 | wxBrush * _arg1; | |
6752 | PyObject * _argo0 = 0; | |
6753 | PyObject * _argo1 = 0; | |
6754 | char *_kwnames[] = { "self","brush", NULL }; | |
6755 | ||
6756 | self = self; | |
6757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) | |
6758 | return NULL; | |
6759 | if (_argo0) { | |
6760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
6763 | return NULL; | |
6764 | } | |
6765 | } | |
6766 | if (_argo1) { | |
6767 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6768 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
6770 | return NULL; | |
6771 | } | |
6772 | } | |
6773 | { | |
0e2ff151 | 6774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6775 | wxDC_SetBrush(_arg0,*_arg1); |
e6056257 | 6776 | |
0e2ff151 | 6777 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6778 | if (PyErr_Occurred()) return NULL; |
6779 | } Py_INCREF(Py_None); | |
6780 | _resultobj = Py_None; | |
6781 | return _resultobj; | |
6782 | } | |
6783 | ||
6784 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
6785 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6786 | PyObject * _resultobj; | |
6787 | wxDC * _arg0; | |
6788 | wxFont * _arg1; | |
6789 | PyObject * _argo0 = 0; | |
6790 | PyObject * _argo1 = 0; | |
6791 | char *_kwnames[] = { "self","font", NULL }; | |
6792 | ||
6793 | self = self; | |
6794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) | |
6795 | return NULL; | |
6796 | if (_argo0) { | |
6797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
6800 | return NULL; | |
6801 | } | |
6802 | } | |
6803 | if (_argo1) { | |
6804 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6805 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
6806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
6807 | return NULL; | |
6808 | } | |
6809 | } | |
6810 | { | |
0e2ff151 | 6811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6812 | wxDC_SetFont(_arg0,*_arg1); |
e6056257 | 6813 | |
0e2ff151 | 6814 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6815 | if (PyErr_Occurred()) return NULL; |
6816 | } Py_INCREF(Py_None); | |
6817 | _resultobj = Py_None; | |
6818 | return _resultobj; | |
6819 | } | |
6820 | ||
6821 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
6822 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6823 | PyObject * _resultobj; | |
6824 | wxDC * _arg0; | |
6825 | int _arg1; | |
6826 | PyObject * _argo0 = 0; | |
6827 | char *_kwnames[] = { "self","function", NULL }; | |
6828 | ||
6829 | self = self; | |
6830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) | |
6831 | return NULL; | |
6832 | if (_argo0) { | |
6833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
6836 | return NULL; | |
6837 | } | |
6838 | } | |
6839 | { | |
0e2ff151 | 6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6841 | wxDC_SetLogicalFunction(_arg0,_arg1); |
e6056257 | 6842 | |
0e2ff151 | 6843 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6844 | if (PyErr_Occurred()) return NULL; |
6845 | } Py_INCREF(Py_None); | |
6846 | _resultobj = Py_None; | |
6847 | return _resultobj; | |
6848 | } | |
6849 | ||
6850 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) | |
6851 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6852 | PyObject * _resultobj; | |
6853 | wxDC * _arg0; | |
6854 | double _arg1; | |
6855 | double _arg2; | |
6856 | PyObject * _argo0 = 0; | |
6857 | char *_kwnames[] = { "self","x","y", NULL }; | |
6858 | ||
6859 | self = self; | |
6860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6861 | return NULL; | |
6862 | if (_argo0) { | |
6863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
6866 | return NULL; | |
6867 | } | |
6868 | } | |
6869 | { | |
0e2ff151 | 6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6871 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
e6056257 | 6872 | |
0e2ff151 | 6873 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6874 | if (PyErr_Occurred()) return NULL; |
6875 | } Py_INCREF(Py_None); | |
6876 | _resultobj = Py_None; | |
6877 | return _resultobj; | |
6878 | } | |
6879 | ||
6880 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
6881 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6882 | PyObject * _resultobj; | |
6883 | wxDC * _arg0; | |
6884 | int _arg1; | |
6885 | PyObject * _argo0 = 0; | |
6886 | char *_kwnames[] = { "self","mode", NULL }; | |
6887 | ||
6888 | self = self; | |
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) | |
6890 | return NULL; | |
6891 | if (_argo0) { | |
6892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); | |
6895 | return NULL; | |
6896 | } | |
6897 | } | |
6898 | { | |
0e2ff151 | 6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6900 | wxDC_SetMapMode(_arg0,_arg1); |
e6056257 | 6901 | |
0e2ff151 | 6902 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6903 | if (PyErr_Occurred()) return NULL; |
6904 | } Py_INCREF(Py_None); | |
6905 | _resultobj = Py_None; | |
6906 | return _resultobj; | |
6907 | } | |
6908 | ||
6909 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
6910 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6911 | PyObject * _resultobj; | |
6912 | wxDC * _arg0; | |
6913 | bool _arg1; | |
6914 | PyObject * _argo0 = 0; | |
6915 | int tempbool1; | |
6916 | char *_kwnames[] = { "self","optimize", NULL }; | |
6917 | ||
6918 | self = self; | |
6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) | |
6920 | return NULL; | |
6921 | if (_argo0) { | |
6922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
6925 | return NULL; | |
6926 | } | |
6927 | } | |
6928 | _arg1 = (bool ) tempbool1; | |
6929 | { | |
0e2ff151 | 6930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6931 | wxDC_SetOptimization(_arg0,_arg1); |
e6056257 | 6932 | |
0e2ff151 | 6933 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6934 | if (PyErr_Occurred()) return NULL; |
6935 | } Py_INCREF(Py_None); | |
6936 | _resultobj = Py_None; | |
6937 | return _resultobj; | |
6938 | } | |
6939 | ||
6940 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
6941 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6942 | PyObject * _resultobj; | |
6943 | wxDC * _arg0; | |
6944 | wxPen * _arg1; | |
6945 | PyObject * _argo0 = 0; | |
6946 | PyObject * _argo1 = 0; | |
6947 | char *_kwnames[] = { "self","pen", NULL }; | |
6948 | ||
6949 | self = self; | |
6950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) | |
6951 | return NULL; | |
6952 | if (_argo0) { | |
6953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
6956 | return NULL; | |
6957 | } | |
6958 | } | |
6959 | if (_argo1) { | |
6960 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6961 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
6963 | return NULL; | |
6964 | } | |
6965 | } | |
6966 | { | |
0e2ff151 | 6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6968 | wxDC_SetPen(_arg0,*_arg1); |
e6056257 | 6969 | |
0e2ff151 | 6970 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6971 | if (PyErr_Occurred()) return NULL; |
6972 | } Py_INCREF(Py_None); | |
6973 | _resultobj = Py_None; | |
6974 | return _resultobj; | |
6975 | } | |
6976 | ||
6977 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
6978 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6979 | PyObject * _resultobj; | |
6980 | wxDC * _arg0; | |
6981 | wxColour * _arg1; | |
6982 | PyObject * _argo0 = 0; | |
6983 | wxColour temp; | |
6984 | PyObject * _obj1 = 0; | |
6985 | char *_kwnames[] = { "self","colour", NULL }; | |
6986 | ||
6987 | self = self; | |
6988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) | |
6989 | return NULL; | |
6990 | if (_argo0) { | |
6991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
6994 | return NULL; | |
6995 | } | |
6996 | } | |
6997 | { | |
6998 | _arg1 = &temp; | |
6999 | if (! wxColour_helper(_obj1, &_arg1)) | |
7000 | return NULL; | |
7001 | } | |
7002 | { | |
0e2ff151 | 7003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7004 | wxDC_SetTextBackground(_arg0,*_arg1); |
e6056257 | 7005 | |
0e2ff151 | 7006 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7007 | if (PyErr_Occurred()) return NULL; |
7008 | } Py_INCREF(Py_None); | |
7009 | _resultobj = Py_None; | |
7010 | return _resultobj; | |
7011 | } | |
7012 | ||
7013 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
7014 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7015 | PyObject * _resultobj; | |
7016 | wxDC * _arg0; | |
7017 | wxColour * _arg1; | |
7018 | PyObject * _argo0 = 0; | |
7019 | wxColour temp; | |
7020 | PyObject * _obj1 = 0; | |
7021 | char *_kwnames[] = { "self","colour", NULL }; | |
7022 | ||
7023 | self = self; | |
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) | |
7025 | return NULL; | |
7026 | if (_argo0) { | |
7027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
7030 | return NULL; | |
7031 | } | |
7032 | } | |
7033 | { | |
7034 | _arg1 = &temp; | |
7035 | if (! wxColour_helper(_obj1, &_arg1)) | |
7036 | return NULL; | |
7037 | } | |
7038 | { | |
0e2ff151 | 7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7040 | wxDC_SetTextForeground(_arg0,*_arg1); |
e6056257 | 7041 | |
0e2ff151 | 7042 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7043 | if (PyErr_Occurred()) return NULL; |
7044 | } Py_INCREF(Py_None); | |
7045 | _resultobj = Py_None; | |
7046 | return _resultobj; | |
7047 | } | |
7048 | ||
7049 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
7050 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7051 | PyObject * _resultobj; | |
7052 | wxDC * _arg0; | |
7053 | double _arg1; | |
7054 | double _arg2; | |
7055 | PyObject * _argo0 = 0; | |
7056 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; | |
7057 | ||
7058 | self = self; | |
7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
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_SetUserScale. Expected _wxDC_p."); | |
7065 | return NULL; | |
7066 | } | |
7067 | } | |
7068 | { | |
0e2ff151 | 7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7070 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
e6056257 | 7071 | |
0e2ff151 | 7072 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7073 | if (PyErr_Occurred()) return NULL; |
7074 | } Py_INCREF(Py_None); | |
7075 | _resultobj = Py_None; | |
7076 | return _resultobj; | |
7077 | } | |
7078 | ||
7079 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
7080 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7081 | PyObject * _resultobj; | |
7082 | bool _result; | |
7083 | wxDC * _arg0; | |
7084 | wxString * _arg1; | |
7085 | PyObject * _argo0 = 0; | |
7086 | PyObject * _obj1 = 0; | |
7087 | char *_kwnames[] = { "self","message", NULL }; | |
7088 | ||
7089 | self = self; | |
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) | |
7091 | return NULL; | |
7092 | if (_argo0) { | |
7093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
7096 | return NULL; | |
7097 | } | |
7098 | } | |
7099 | { | |
6824d4f9 RD |
7100 | _arg1 = wxString_in_helper(_obj1); |
7101 | if (_arg1 == NULL) | |
e6056257 | 7102 | return NULL; |
e6056257 RD |
7103 | } |
7104 | { | |
0e2ff151 | 7105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7106 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
e6056257 | 7107 | |
0e2ff151 | 7108 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7109 | if (PyErr_Occurred()) return NULL; |
7110 | } _resultobj = Py_BuildValue("i",_result); | |
7111 | { | |
7112 | if (_obj1) | |
7113 | delete _arg1; | |
7114 | } | |
7115 | return _resultobj; | |
7116 | } | |
7117 | ||
7118 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
7119 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7120 | PyObject * _resultobj; | |
7121 | wxDC * _arg0; | |
7122 | PyObject * _argo0 = 0; | |
7123 | char *_kwnames[] = { "self", NULL }; | |
7124 | ||
7125 | self = self; | |
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) | |
7127 | return NULL; | |
7128 | if (_argo0) { | |
7129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); | |
7132 | return NULL; | |
7133 | } | |
7134 | } | |
7135 | { | |
0e2ff151 | 7136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7137 | wxDC_StartPage(_arg0); |
e6056257 | 7138 | |
0e2ff151 | 7139 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7140 | if (PyErr_Occurred()) return NULL; |
7141 | } Py_INCREF(Py_None); | |
7142 | _resultobj = Py_None; | |
7143 | return _resultobj; | |
7144 | } | |
7145 | ||
7146 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7147 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7148 | PyObject * _resultobj; | |
7149 | wxDC * _arg0; | |
7150 | wxBitmap * _arg1; | |
7151 | long _arg2; | |
7152 | long _arg3; | |
7153 | int _arg4 = (int ) FALSE; | |
7154 | PyObject * _argo0 = 0; | |
7155 | PyObject * _argo1 = 0; | |
7156 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; | |
7157 | ||
7158 | self = self; | |
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) | |
7160 | return NULL; | |
7161 | if (_argo0) { | |
7162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
7165 | return NULL; | |
7166 | } | |
7167 | } | |
7168 | if (_argo1) { | |
7169 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7170 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
7172 | return NULL; | |
7173 | } | |
7174 | } | |
7175 | { | |
0e2ff151 | 7176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7177 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
e6056257 | 7178 | |
0e2ff151 | 7179 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7180 | if (PyErr_Occurred()) return NULL; |
7181 | } Py_INCREF(Py_None); | |
7182 | _resultobj = Py_None; | |
7183 | return _resultobj; | |
7184 | } | |
7185 | ||
7186 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) | |
7187 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7188 | PyObject * _resultobj; | |
7189 | bool _result; | |
7190 | wxDC * _arg0; | |
7191 | PyObject * _argo0 = 0; | |
7192 | char *_kwnames[] = { "self", NULL }; | |
7193 | ||
7194 | self = self; | |
7195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
7196 | return NULL; | |
7197 | if (_argo0) { | |
7198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
7201 | return NULL; | |
7202 | } | |
7203 | } | |
7204 | { | |
0e2ff151 | 7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7206 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
e6056257 | 7207 | |
0e2ff151 | 7208 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7209 | if (PyErr_Occurred()) return NULL; |
7210 | } _resultobj = Py_BuildValue("i",_result); | |
7211 | return _resultobj; | |
7212 | } | |
7213 | ||
7214 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
7215 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7216 | PyObject * _resultobj; | |
7217 | bool _result; | |
7218 | wxDC * _arg0; | |
7219 | PyObject * _argo0 = 0; | |
7220 | char *_kwnames[] = { "self", NULL }; | |
7221 | ||
7222 | self = self; | |
7223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
7224 | return NULL; | |
7225 | if (_argo0) { | |
7226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
7229 | return NULL; | |
7230 | } | |
7231 | } | |
7232 | { | |
0e2ff151 | 7233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7234 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
e6056257 | 7235 | |
0e2ff151 | 7236 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7237 | if (PyErr_Occurred()) return NULL; |
7238 | } _resultobj = Py_BuildValue("i",_result); | |
7239 | return _resultobj; | |
7240 | } | |
7241 | ||
7242 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
7243 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject * _resultobj; | |
7245 | int _result; | |
7246 | wxDC * _arg0; | |
7247 | PyObject * _argo0 = 0; | |
7248 | char *_kwnames[] = { "self", NULL }; | |
7249 | ||
7250 | self = self; | |
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
7252 | return NULL; | |
7253 | if (_argo0) { | |
7254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
7257 | return NULL; | |
7258 | } | |
7259 | } | |
7260 | { | |
0e2ff151 | 7261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7262 | _result = (int )wxDC_GetDepth(_arg0); |
e6056257 | 7263 | |
0e2ff151 | 7264 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7265 | if (PyErr_Occurred()) return NULL; |
7266 | } _resultobj = Py_BuildValue("i",_result); | |
7267 | return _resultobj; | |
7268 | } | |
7269 | ||
7270 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
7271 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7272 | PyObject * _resultobj; | |
7273 | wxSize * _result; | |
7274 | wxDC * _arg0; | |
7275 | PyObject * _argo0 = 0; | |
7276 | char *_kwnames[] = { "self", NULL }; | |
7277 | char _ptemp[128]; | |
7278 | ||
7279 | self = self; | |
7280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
7281 | return NULL; | |
7282 | if (_argo0) { | |
7283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
7286 | return NULL; | |
7287 | } | |
7288 | } | |
7289 | { | |
0e2ff151 | 7290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7291 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
e6056257 | 7292 | |
0e2ff151 | 7293 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7294 | if (PyErr_Occurred()) return NULL; |
7295 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7296 | _resultobj = Py_BuildValue("s",_ptemp); | |
7297 | return _resultobj; | |
7298 | } | |
7299 | ||
7300 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
7301 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7302 | PyObject * _resultobj; | |
7303 | wxDC * _arg0; | |
7304 | int * _arg1; | |
7305 | int temp; | |
7306 | int * _arg2; | |
7307 | int temp0; | |
7308 | PyObject * _argo0 = 0; | |
7309 | char *_kwnames[] = { "self", NULL }; | |
7310 | ||
7311 | self = self; | |
7312 | { | |
7313 | _arg1 = &temp; | |
7314 | } | |
7315 | { | |
7316 | _arg2 = &temp0; | |
7317 | } | |
7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
7319 | return NULL; | |
7320 | if (_argo0) { | |
7321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
7324 | return NULL; | |
7325 | } | |
7326 | } | |
7327 | { | |
0e2ff151 | 7328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7329 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
e6056257 | 7330 | |
0e2ff151 | 7331 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7332 | if (PyErr_Occurred()) return NULL; |
7333 | } Py_INCREF(Py_None); | |
7334 | _resultobj = Py_None; | |
7335 | { | |
7336 | PyObject *o; | |
7337 | o = PyInt_FromLong((long) (*_arg1)); | |
7338 | _resultobj = t_output_helper(_resultobj, o); | |
7339 | } | |
7340 | { | |
7341 | PyObject *o; | |
7342 | o = PyInt_FromLong((long) (*_arg2)); | |
7343 | _resultobj = t_output_helper(_resultobj, o); | |
7344 | } | |
7345 | return _resultobj; | |
7346 | } | |
7347 | ||
7348 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
7349 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7350 | PyObject * _resultobj; | |
7351 | wxDC * _arg0; | |
7352 | int _arg1; | |
7353 | int _arg2; | |
7354 | PyObject * _argo0 = 0; | |
7355 | char *_kwnames[] = { "self","x","y", NULL }; | |
7356 | ||
7357 | self = self; | |
7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7359 | return NULL; | |
7360 | if (_argo0) { | |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
7367 | { | |
0e2ff151 | 7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7369 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
e6056257 | 7370 | |
0e2ff151 | 7371 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7372 | if (PyErr_Occurred()) return NULL; |
7373 | } Py_INCREF(Py_None); | |
7374 | _resultobj = Py_None; | |
7375 | return _resultobj; | |
7376 | } | |
7377 | ||
7378 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
7379 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7380 | PyObject * _resultobj; | |
7381 | wxDC * _arg0; | |
7382 | int * _arg1; | |
7383 | int temp; | |
7384 | int * _arg2; | |
7385 | int temp0; | |
7386 | PyObject * _argo0 = 0; | |
7387 | char *_kwnames[] = { "self", NULL }; | |
7388 | ||
7389 | self = self; | |
7390 | { | |
7391 | _arg1 = &temp; | |
7392 | } | |
7393 | { | |
7394 | _arg2 = &temp0; | |
7395 | } | |
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
7397 | return NULL; | |
7398 | if (_argo0) { | |
7399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
7402 | return NULL; | |
7403 | } | |
7404 | } | |
7405 | { | |
0e2ff151 | 7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7407 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
e6056257 | 7408 | |
0e2ff151 | 7409 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7410 | if (PyErr_Occurred()) return NULL; |
7411 | } Py_INCREF(Py_None); | |
7412 | _resultobj = Py_None; | |
7413 | { | |
7414 | PyObject *o; | |
7415 | o = PyInt_FromLong((long) (*_arg1)); | |
7416 | _resultobj = t_output_helper(_resultobj, o); | |
7417 | } | |
7418 | { | |
7419 | PyObject *o; | |
7420 | o = PyInt_FromLong((long) (*_arg2)); | |
7421 | _resultobj = t_output_helper(_resultobj, o); | |
7422 | } | |
7423 | return _resultobj; | |
7424 | } | |
7425 | ||
7426 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
7427 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7428 | PyObject * _resultobj; | |
7429 | wxDC * _arg0; | |
7430 | bool _arg1; | |
7431 | bool _arg2; | |
7432 | PyObject * _argo0 = 0; | |
7433 | int tempbool1; | |
7434 | int tempbool2; | |
7435 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
7436 | ||
7437 | self = self; | |
7438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7439 | return NULL; | |
7440 | if (_argo0) { | |
7441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
7444 | return NULL; | |
7445 | } | |
7446 | } | |
7447 | _arg1 = (bool ) tempbool1; | |
7448 | _arg2 = (bool ) tempbool2; | |
7449 | { | |
0e2ff151 | 7450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7451 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
e6056257 | 7452 | |
0e2ff151 | 7453 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7454 | if (PyErr_Occurred()) return NULL; |
7455 | } Py_INCREF(Py_None); | |
7456 | _resultobj = Py_None; | |
7457 | return _resultobj; | |
7458 | } | |
7459 | ||
7460 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) | |
7461 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7462 | PyObject * _resultobj; | |
7463 | wxDC * _arg0; | |
7464 | int _arg1; | |
7465 | int _arg2; | |
7466 | PyObject * _argo0 = 0; | |
7467 | char *_kwnames[] = { "self","x","y", NULL }; | |
7468 | ||
7469 | self = self; | |
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7471 | return NULL; | |
7472 | if (_argo0) { | |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
7479 | { | |
0e2ff151 | 7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7481 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
e6056257 | 7482 | |
0e2ff151 | 7483 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7484 | if (PyErr_Occurred()) return NULL; |
7485 | } Py_INCREF(Py_None); | |
7486 | _resultobj = Py_None; | |
7487 | return _resultobj; | |
7488 | } | |
7489 | ||
7490 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
7491 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7492 | PyObject * _resultobj; | |
7493 | wxDC * _arg0; | |
7494 | PyObject * _argo0 = 0; | |
7495 | char *_kwnames[] = { "self", NULL }; | |
7496 | ||
7497 | self = self; | |
7498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
7499 | return NULL; | |
7500 | if (_argo0) { | |
7501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
7504 | return NULL; | |
7505 | } | |
7506 | } | |
7507 | { | |
0e2ff151 | 7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7509 | wxDC_ResetBoundingBox(_arg0); |
e6056257 | 7510 | |
0e2ff151 | 7511 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7512 | if (PyErr_Occurred()) return NULL; |
7513 | } Py_INCREF(Py_None); | |
7514 | _resultobj = Py_None; | |
7515 | return _resultobj; | |
7516 | } | |
7517 | ||
7518 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7519 | PyObject * _resultobj; | |
7520 | wxDC * _arg0; | |
7521 | int * _arg1; | |
7522 | int temp; | |
7523 | int * _arg2; | |
7524 | int temp0; | |
7525 | int * _arg3; | |
7526 | int temp1; | |
7527 | int * _arg4; | |
7528 | int temp2; | |
7529 | PyObject * _argo0 = 0; | |
7530 | char *_kwnames[] = { "self", NULL }; | |
7531 | ||
7532 | self = self; | |
7533 | { | |
7534 | _arg1 = &temp; | |
7535 | } | |
7536 | { | |
7537 | _arg2 = &temp0; | |
7538 | } | |
7539 | { | |
7540 | _arg3 = &temp1; | |
7541 | } | |
7542 | { | |
7543 | _arg4 = &temp2; | |
7544 | } | |
7545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
7546 | return NULL; | |
7547 | if (_argo0) { | |
7548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
7551 | return NULL; | |
7552 | } | |
7553 | } | |
7554 | { | |
0e2ff151 | 7555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7556 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 7557 | |
0e2ff151 | 7558 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7559 | if (PyErr_Occurred()) return NULL; |
7560 | } Py_INCREF(Py_None); | |
7561 | _resultobj = Py_None; | |
7562 | { | |
7563 | PyObject *o; | |
7564 | o = PyInt_FromLong((long) (*_arg1)); | |
7565 | _resultobj = t_output_helper(_resultobj, o); | |
7566 | } | |
7567 | { | |
7568 | PyObject *o; | |
7569 | o = PyInt_FromLong((long) (*_arg2)); | |
7570 | _resultobj = t_output_helper(_resultobj, o); | |
7571 | } | |
7572 | { | |
7573 | PyObject *o; | |
7574 | o = PyInt_FromLong((long) (*_arg3)); | |
7575 | _resultobj = t_output_helper(_resultobj, o); | |
7576 | } | |
7577 | { | |
7578 | PyObject *o; | |
7579 | o = PyInt_FromLong((long) (*_arg4)); | |
7580 | _resultobj = t_output_helper(_resultobj, o); | |
7581 | } | |
7582 | return _resultobj; | |
7583 | } | |
7584 | ||
7585 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
7586 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
7587 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
7588 | int numObjs = 0; | |
7589 | int numPens = 0; | |
7590 | wxPen* pen; | |
7591 | PyObject* obj; | |
7592 | int x1, y1; | |
7593 | int i = 0; | |
7594 | ||
7595 | if (!PySequence_Check(pyPoints)) { | |
7596 | goto err0; | |
7597 | } | |
7598 | if (!PySequence_Check(pyPens)) { | |
7599 | goto err1; | |
7600 | } | |
7601 | numObjs = PySequence_Length(pyPoints); | |
7602 | numPens = PySequence_Length(pyPens); | |
7603 | ||
7604 | for (i = 0; i < numObjs; i++) { | |
7605 | // Use a new pen? | |
7606 | if (i < numPens) { | |
7607 | if (isFastPens) { | |
7608 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
7609 | } | |
7610 | else { | |
7611 | obj = PySequence_GetItem(pyPens, i); | |
7612 | } | |
7613 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
7614 | if (!isFastPens) | |
7615 | Py_DECREF(obj); | |
7616 | goto err1; | |
7617 | } | |
7618 | ||
7619 | self->SetPen(*pen); | |
7620 | if (!isFastPens) | |
7621 | Py_DECREF(obj); | |
7622 | } | |
7623 | ||
7624 | // Get the point coordinants | |
7625 | if (isFastSeq) { | |
7626 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
7627 | } | |
7628 | else { | |
7629 | obj = PySequence_GetItem(pyPoints, i); | |
7630 | } | |
7631 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
7632 | if (!isFastPens) | |
7633 | Py_DECREF(obj); | |
7634 | goto err0; | |
7635 | } | |
7636 | ||
7637 | // Now draw the point | |
7638 | self->DrawPoint(x1, y1); | |
7639 | ||
7640 | if (!isFastSeq) | |
7641 | Py_DECREF(obj); | |
7642 | } | |
7643 | ||
7644 | Py_INCREF(Py_None); | |
7645 | return Py_None; | |
7646 | ||
7647 | err1: | |
7648 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
7649 | return NULL; | |
7650 | err0: | |
7651 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
7652 | return NULL; | |
7653 | } | |
7654 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject * _resultobj; | |
7656 | PyObject * _result; | |
7657 | wxDC * _arg0; | |
7658 | PyObject * _arg1; | |
7659 | PyObject * _arg2; | |
7660 | PyObject * _argo0 = 0; | |
7661 | PyObject * _obj1 = 0; | |
7662 | PyObject * _obj2 = 0; | |
7663 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
7664 | ||
7665 | self = self; | |
7666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7667 | return NULL; | |
7668 | if (_argo0) { | |
7669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
7672 | return NULL; | |
7673 | } | |
7674 | } | |
7675 | { | |
7676 | _arg1 = _obj1; | |
7677 | } | |
7678 | { | |
7679 | _arg2 = _obj2; | |
7680 | } | |
7681 | { | |
0e2ff151 | 7682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7683 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
e6056257 | 7684 | |
0e2ff151 | 7685 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7686 | if (PyErr_Occurred()) return NULL; |
7687 | }{ | |
7688 | _resultobj = _result; | |
7689 | } | |
7690 | return _resultobj; | |
7691 | } | |
7692 | ||
7693 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
7694 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
7695 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
7696 | int numObjs = 0; | |
7697 | int numPens = 0; | |
7698 | wxPen* pen; | |
7699 | PyObject* obj; | |
7700 | int x1, y1, x2, y2; | |
7701 | int i = 0; | |
7702 | ||
7703 | if (!PySequence_Check(pyLines)) { | |
7704 | goto err0; | |
7705 | } | |
7706 | if (!PySequence_Check(pyPens)) { | |
7707 | goto err1; | |
7708 | } | |
7709 | numObjs = PySequence_Length(pyLines); | |
7710 | numPens = PySequence_Length(pyPens); | |
7711 | ||
7712 | for (i = 0; i < numObjs; i++) { | |
7713 | // Use a new pen? | |
7714 | if (i < numPens) { | |
7715 | if (isFastPens) { | |
7716 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
7717 | } | |
7718 | else { | |
7719 | obj = PySequence_GetItem(pyPens, i); | |
7720 | } | |
7721 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
7722 | if (!isFastPens) | |
7723 | Py_DECREF(obj); | |
7724 | goto err1; | |
7725 | } | |
7726 | ||
7727 | self->SetPen(*pen); | |
7728 | if (!isFastPens) | |
7729 | Py_DECREF(obj); | |
7730 | } | |
7731 | ||
7732 | // Get the line coordinants | |
7733 | if (isFastSeq) { | |
7734 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
7735 | } | |
7736 | else { | |
7737 | obj = PySequence_GetItem(pyLines, i); | |
7738 | } | |
7739 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
7740 | if (!isFastPens) | |
7741 | Py_DECREF(obj); | |
7742 | goto err0; | |
7743 | } | |
7744 | ||
7745 | // Now draw the line | |
7746 | self->DrawLine(x1, y1, x2, y2); | |
7747 | ||
7748 | if (!isFastSeq) | |
7749 | Py_DECREF(obj); | |
7750 | } | |
7751 | ||
7752 | Py_INCREF(Py_None); | |
7753 | return Py_None; | |
7754 | ||
7755 | err1: | |
7756 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
7757 | return NULL; | |
7758 | err0: | |
7759 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
7760 | return NULL; | |
7761 | } | |
7762 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7763 | PyObject * _resultobj; | |
7764 | PyObject * _result; | |
7765 | wxDC * _arg0; | |
7766 | PyObject * _arg1; | |
7767 | PyObject * _arg2; | |
7768 | PyObject * _argo0 = 0; | |
7769 | PyObject * _obj1 = 0; | |
7770 | PyObject * _obj2 = 0; | |
7771 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
7772 | ||
7773 | self = self; | |
7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7775 | return NULL; | |
7776 | if (_argo0) { | |
7777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
7780 | return NULL; | |
7781 | } | |
7782 | } | |
7783 | { | |
7784 | _arg1 = _obj1; | |
7785 | } | |
7786 | { | |
7787 | _arg2 = _obj2; | |
7788 | } | |
7789 | { | |
0e2ff151 | 7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7791 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
e6056257 | 7792 | |
0e2ff151 | 7793 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7794 | if (PyErr_Occurred()) return NULL; |
7795 | }{ | |
7796 | _resultobj = _result; | |
7797 | } | |
7798 | return _resultobj; | |
7799 | } | |
7800 | ||
7801 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
7802 | wxMemoryDC *src; | |
7803 | wxDC *dest; | |
7804 | src = (wxMemoryDC *) ptr; | |
7805 | dest = (wxDC *) src; | |
7806 | return (void *) dest; | |
7807 | } | |
7808 | ||
7809 | static void *SwigwxMemoryDCTowxObject(void *ptr) { | |
7810 | wxMemoryDC *src; | |
7811 | wxObject *dest; | |
7812 | src = (wxMemoryDC *) ptr; | |
7813 | dest = (wxObject *) src; | |
7814 | return (void *) dest; | |
7815 | } | |
7816 | ||
7817 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
7818 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7819 | PyObject * _resultobj; | |
7820 | wxMemoryDC * _result; | |
7821 | char *_kwnames[] = { NULL }; | |
7822 | char _ptemp[128]; | |
7823 | ||
7824 | self = self; | |
7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) | |
7826 | return NULL; | |
7827 | { | |
0e2ff151 | 7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7829 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
e6056257 | 7830 | |
0e2ff151 | 7831 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7832 | if (PyErr_Occurred()) return NULL; |
7833 | } if (_result) { | |
7834 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
7835 | _resultobj = Py_BuildValue("s",_ptemp); | |
7836 | } else { | |
7837 | Py_INCREF(Py_None); | |
7838 | _resultobj = Py_None; | |
7839 | } | |
7840 | return _resultobj; | |
7841 | } | |
7842 | ||
7843 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
7844 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7845 | PyObject * _resultobj; | |
7846 | wxMemoryDC * _arg0; | |
7847 | wxBitmap * _arg1; | |
7848 | PyObject * _argo0 = 0; | |
7849 | PyObject * _argo1 = 0; | |
7850 | char *_kwnames[] = { "self","bitmap", NULL }; | |
7851 | ||
7852 | self = self; | |
7853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) | |
7854 | return NULL; | |
7855 | if (_argo0) { | |
7856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
7858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
7859 | return NULL; | |
7860 | } | |
7861 | } | |
7862 | if (_argo1) { | |
7863 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7864 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
7866 | return NULL; | |
7867 | } | |
7868 | } | |
7869 | { | |
0e2ff151 | 7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7871 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
e6056257 | 7872 | |
0e2ff151 | 7873 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7874 | if (PyErr_Occurred()) return NULL; |
7875 | } Py_INCREF(Py_None); | |
7876 | _resultobj = Py_None; | |
7877 | return _resultobj; | |
7878 | } | |
7879 | ||
c3bfa1cb RD |
7880 | static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) { |
7881 | wxBufferedDC *src; | |
7882 | wxMemoryDC *dest; | |
7883 | src = (wxBufferedDC *) ptr; | |
7884 | dest = (wxMemoryDC *) src; | |
7885 | return (void *) dest; | |
7886 | } | |
7887 | ||
7888 | static void *SwigwxBufferedDCTowxDC(void *ptr) { | |
7889 | wxBufferedDC *src; | |
7890 | wxDC *dest; | |
7891 | src = (wxBufferedDC *) ptr; | |
7892 | dest = (wxDC *) src; | |
7893 | return (void *) dest; | |
7894 | } | |
7895 | ||
7896 | static void *SwigwxBufferedDCTowxObject(void *ptr) { | |
7897 | wxBufferedDC *src; | |
7898 | wxObject *dest; | |
7899 | src = (wxBufferedDC *) ptr; | |
7900 | dest = (wxObject *) src; | |
7901 | return (void *) dest; | |
7902 | } | |
7903 | ||
7904 | #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
7905 | static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7906 | PyObject * _resultobj; | |
7907 | wxBufferedDC * _result; | |
7908 | wxDC * _arg0; | |
7909 | wxBitmap * _arg1; | |
7910 | PyObject * _argo0 = 0; | |
7911 | PyObject * _argo1 = 0; | |
7912 | char *_kwnames[] = { "dc","buffer", NULL }; | |
7913 | char _ptemp[128]; | |
7914 | ||
7915 | self = self; | |
7916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1)) | |
7917 | return NULL; | |
7918 | if (_argo0) { | |
7919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p."); | |
7922 | return NULL; | |
7923 | } | |
7924 | } | |
7925 | if (_argo1) { | |
7926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p."); | |
7929 | return NULL; | |
7930 | } | |
7931 | } | |
7932 | { | |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) return NULL; | |
7938 | } if (_result) { | |
7939 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
7940 | _resultobj = Py_BuildValue("s",_ptemp); | |
7941 | } else { | |
7942 | Py_INCREF(Py_None); | |
7943 | _resultobj = Py_None; | |
7944 | } | |
7945 | return _resultobj; | |
7946 | } | |
7947 | ||
7948 | #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
7949 | static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7950 | PyObject * _resultobj; | |
7951 | wxBufferedDC * _result; | |
7952 | wxDC * _arg0; | |
7953 | wxSize * _arg1; | |
7954 | PyObject * _argo0 = 0; | |
7955 | wxSize temp; | |
7956 | PyObject * _obj1 = 0; | |
7957 | char *_kwnames[] = { "dc","area", NULL }; | |
7958 | char _ptemp[128]; | |
7959 | ||
7960 | self = self; | |
7961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1)) | |
7962 | return NULL; | |
7963 | if (_argo0) { | |
7964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p."); | |
7967 | return NULL; | |
7968 | } | |
7969 | } | |
7970 | { | |
7971 | _arg1 = &temp; | |
7972 | if (! wxSize_helper(_obj1, &_arg1)) | |
7973 | return NULL; | |
7974 | } | |
7975 | { | |
7976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7977 | _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1); | |
7978 | ||
7979 | wxPyEndAllowThreads(__tstate); | |
7980 | if (PyErr_Occurred()) return NULL; | |
7981 | } if (_result) { | |
7982 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
7983 | _resultobj = Py_BuildValue("s",_ptemp); | |
7984 | } else { | |
7985 | Py_INCREF(Py_None); | |
7986 | _resultobj = Py_None; | |
7987 | } | |
7988 | return _resultobj; | |
7989 | } | |
7990 | ||
59988cd0 RD |
7991 | #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask()) |
7992 | static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7993 | PyObject * _resultobj; | |
7994 | wxBufferedDC * _arg0; | |
7995 | PyObject * _argo0 = 0; | |
7996 | char *_kwnames[] = { "self", NULL }; | |
7997 | ||
7998 | self = self; | |
7999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0)) | |
8000 | return NULL; | |
8001 | if (_argo0) { | |
8002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) { | |
8004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p."); | |
8005 | return NULL; | |
8006 | } | |
8007 | } | |
8008 | { | |
8009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8010 | wxBufferedDC_UnMask(_arg0); | |
8011 | ||
8012 | wxPyEndAllowThreads(__tstate); | |
8013 | if (PyErr_Occurred()) return NULL; | |
8014 | } Py_INCREF(Py_None); | |
8015 | _resultobj = Py_None; | |
8016 | return _resultobj; | |
8017 | } | |
8018 | ||
c3bfa1cb RD |
8019 | static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) { |
8020 | wxBufferedPaintDC *src; | |
8021 | wxBufferedDC *dest; | |
8022 | src = (wxBufferedPaintDC *) ptr; | |
8023 | dest = (wxBufferedDC *) src; | |
8024 | return (void *) dest; | |
8025 | } | |
8026 | ||
8027 | static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) { | |
8028 | wxBufferedPaintDC *src; | |
8029 | wxMemoryDC *dest; | |
8030 | src = (wxBufferedPaintDC *) ptr; | |
8031 | dest = (wxMemoryDC *) src; | |
8032 | return (void *) dest; | |
8033 | } | |
8034 | ||
8035 | static void *SwigwxBufferedPaintDCTowxDC(void *ptr) { | |
8036 | wxBufferedPaintDC *src; | |
8037 | wxDC *dest; | |
8038 | src = (wxBufferedPaintDC *) ptr; | |
8039 | dest = (wxDC *) src; | |
8040 | return (void *) dest; | |
8041 | } | |
8042 | ||
8043 | static void *SwigwxBufferedPaintDCTowxObject(void *ptr) { | |
8044 | wxBufferedPaintDC *src; | |
8045 | wxObject *dest; | |
8046 | src = (wxBufferedPaintDC *) ptr; | |
8047 | dest = (wxObject *) src; | |
8048 | return (void *) dest; | |
8049 | } | |
8050 | ||
8051 | #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1)) | |
8052 | static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8053 | PyObject * _resultobj; | |
8054 | wxBufferedPaintDC * _result; | |
8055 | wxWindow * _arg0; | |
8056 | wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap; | |
8057 | PyObject * _argo0 = 0; | |
8058 | PyObject * _argo1 = 0; | |
8059 | char *_kwnames[] = { "window","buffer", NULL }; | |
8060 | char _ptemp[128]; | |
8061 | ||
8062 | self = self; | |
8063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1)) | |
8064 | return NULL; | |
8065 | if (_argo0) { | |
8066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p."); | |
8069 | return NULL; | |
8070 | } | |
8071 | } | |
8072 | if (_argo1) { | |
8073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p."); | |
8076 | return NULL; | |
8077 | } | |
8078 | } | |
8079 | { | |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) return NULL; | |
8085 | } if (_result) { | |
8086 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p"); | |
8087 | _resultobj = Py_BuildValue("s",_ptemp); | |
8088 | } else { | |
8089 | Py_INCREF(Py_None); | |
8090 | _resultobj = Py_None; | |
8091 | } | |
8092 | return _resultobj; | |
8093 | } | |
8094 | ||
e6056257 RD |
8095 | static void *SwigwxScreenDCTowxDC(void *ptr) { |
8096 | wxScreenDC *src; | |
8097 | wxDC *dest; | |
8098 | src = (wxScreenDC *) ptr; | |
8099 | dest = (wxDC *) src; | |
8100 | return (void *) dest; | |
8101 | } | |
8102 | ||
8103 | static void *SwigwxScreenDCTowxObject(void *ptr) { | |
8104 | wxScreenDC *src; | |
8105 | wxObject *dest; | |
8106 | src = (wxScreenDC *) ptr; | |
8107 | dest = (wxObject *) src; | |
8108 | return (void *) dest; | |
8109 | } | |
8110 | ||
8111 | #define new_wxScreenDC() (new wxScreenDC()) | |
8112 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8113 | PyObject * _resultobj; | |
8114 | wxScreenDC * _result; | |
8115 | char *_kwnames[] = { NULL }; | |
8116 | char _ptemp[128]; | |
8117 | ||
8118 | self = self; | |
8119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) | |
8120 | return NULL; | |
8121 | { | |
0e2ff151 | 8122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8123 | _result = (wxScreenDC *)new_wxScreenDC(); |
e6056257 | 8124 | |
0e2ff151 | 8125 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8126 | if (PyErr_Occurred()) return NULL; |
8127 | } if (_result) { | |
8128 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
8129 | _resultobj = Py_BuildValue("s",_ptemp); | |
8130 | } else { | |
8131 | Py_INCREF(Py_None); | |
8132 | _resultobj = Py_None; | |
8133 | } | |
8134 | return _resultobj; | |
8135 | } | |
8136 | ||
8137 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
8138 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8139 | PyObject * _resultobj; | |
8140 | bool _result; | |
8141 | wxScreenDC * _arg0; | |
8142 | wxWindow * _arg1; | |
8143 | PyObject * _argo0 = 0; | |
8144 | PyObject * _argo1 = 0; | |
8145 | char *_kwnames[] = { "self","window", NULL }; | |
8146 | ||
8147 | self = self; | |
8148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) | |
8149 | return NULL; | |
8150 | if (_argo0) { | |
8151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); | |
8154 | return NULL; | |
8155 | } | |
8156 | } | |
8157 | if (_argo1) { | |
8158 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8159 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); | |
8161 | return NULL; | |
8162 | } | |
8163 | } | |
8164 | { | |
0e2ff151 | 8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8166 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
e6056257 | 8167 | |
0e2ff151 | 8168 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8169 | if (PyErr_Occurred()) return NULL; |
8170 | } _resultobj = Py_BuildValue("i",_result); | |
8171 | return _resultobj; | |
8172 | } | |
8173 | ||
8174 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
8175 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8176 | PyObject * _resultobj; | |
8177 | bool _result; | |
8178 | wxScreenDC * _arg0; | |
8179 | wxRect * _arg1 = (wxRect *) NULL; | |
8180 | PyObject * _argo0 = 0; | |
8181 | wxRect temp; | |
8182 | PyObject * _obj1 = 0; | |
8183 | char *_kwnames[] = { "self","rect", NULL }; | |
8184 | ||
8185 | self = self; | |
8186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) | |
8187 | return NULL; | |
8188 | if (_argo0) { | |
8189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
8192 | return NULL; | |
8193 | } | |
8194 | } | |
8195 | if (_obj1) | |
8196 | { | |
8197 | _arg1 = &temp; | |
8198 | if (! wxRect_helper(_obj1, &_arg1)) | |
8199 | return NULL; | |
8200 | } | |
8201 | { | |
0e2ff151 | 8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8203 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
e6056257 | 8204 | |
0e2ff151 | 8205 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8206 | if (PyErr_Occurred()) return NULL; |
8207 | } _resultobj = Py_BuildValue("i",_result); | |
8208 | return _resultobj; | |
8209 | } | |
8210 | ||
8211 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
8212 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8213 | PyObject * _resultobj; | |
8214 | bool _result; | |
8215 | wxScreenDC * _arg0; | |
8216 | PyObject * _argo0 = 0; | |
8217 | char *_kwnames[] = { "self", NULL }; | |
8218 | ||
8219 | self = self; | |
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) | |
8221 | return NULL; | |
8222 | if (_argo0) { | |
8223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
8226 | return NULL; | |
8227 | } | |
8228 | } | |
8229 | { | |
0e2ff151 | 8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8231 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
e6056257 | 8232 | |
0e2ff151 | 8233 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8234 | if (PyErr_Occurred()) return NULL; |
8235 | } _resultobj = Py_BuildValue("i",_result); | |
8236 | return _resultobj; | |
8237 | } | |
8238 | ||
8239 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
8240 | wxClientDC *src; | |
8241 | wxDC *dest; | |
8242 | src = (wxClientDC *) ptr; | |
8243 | dest = (wxDC *) src; | |
8244 | return (void *) dest; | |
8245 | } | |
8246 | ||
8247 | static void *SwigwxClientDCTowxObject(void *ptr) { | |
8248 | wxClientDC *src; | |
8249 | wxObject *dest; | |
8250 | src = (wxClientDC *) ptr; | |
8251 | dest = (wxObject *) src; | |
8252 | return (void *) dest; | |
8253 | } | |
8254 | ||
8255 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
8256 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8257 | PyObject * _resultobj; | |
8258 | wxClientDC * _result; | |
8259 | wxWindow * _arg0; | |
8260 | PyObject * _argo0 = 0; | |
8261 | char *_kwnames[] = { "win", NULL }; | |
8262 | char _ptemp[128]; | |
8263 | ||
8264 | self = self; | |
8265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) | |
8266 | return NULL; | |
8267 | if (_argo0) { | |
8268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
8271 | return NULL; | |
8272 | } | |
8273 | } | |
8274 | { | |
0e2ff151 | 8275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8276 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
e6056257 | 8277 | |
0e2ff151 | 8278 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8279 | if (PyErr_Occurred()) return NULL; |
8280 | } if (_result) { | |
8281 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
8282 | _resultobj = Py_BuildValue("s",_ptemp); | |
8283 | } else { | |
8284 | Py_INCREF(Py_None); | |
8285 | _resultobj = Py_None; | |
8286 | } | |
8287 | return _resultobj; | |
8288 | } | |
8289 | ||
8290 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
8291 | wxPaintDC *src; | |
8292 | wxDC *dest; | |
8293 | src = (wxPaintDC *) ptr; | |
8294 | dest = (wxDC *) src; | |
8295 | return (void *) dest; | |
8296 | } | |
8297 | ||
8298 | static void *SwigwxPaintDCTowxObject(void *ptr) { | |
8299 | wxPaintDC *src; | |
8300 | wxObject *dest; | |
8301 | src = (wxPaintDC *) ptr; | |
8302 | dest = (wxObject *) src; | |
8303 | return (void *) dest; | |
8304 | } | |
8305 | ||
8306 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
8307 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8308 | PyObject * _resultobj; | |
8309 | wxPaintDC * _result; | |
8310 | wxWindow * _arg0; | |
8311 | PyObject * _argo0 = 0; | |
8312 | char *_kwnames[] = { "win", NULL }; | |
8313 | char _ptemp[128]; | |
8314 | ||
8315 | self = self; | |
8316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) | |
8317 | return NULL; | |
8318 | if (_argo0) { | |
8319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
8322 | return NULL; | |
8323 | } | |
8324 | } | |
8325 | { | |
0e2ff151 | 8326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8327 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
e6056257 | 8328 | |
0e2ff151 | 8329 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8330 | if (PyErr_Occurred()) return NULL; |
8331 | } if (_result) { | |
8332 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
8333 | _resultobj = Py_BuildValue("s",_ptemp); | |
8334 | } else { | |
8335 | Py_INCREF(Py_None); | |
8336 | _resultobj = Py_None; | |
8337 | } | |
8338 | return _resultobj; | |
8339 | } | |
8340 | ||
8341 | static void *SwigwxWindowDCTowxDC(void *ptr) { | |
8342 | wxWindowDC *src; | |
8343 | wxDC *dest; | |
8344 | src = (wxWindowDC *) ptr; | |
8345 | dest = (wxDC *) src; | |
8346 | return (void *) dest; | |
8347 | } | |
8348 | ||
8349 | static void *SwigwxWindowDCTowxObject(void *ptr) { | |
8350 | wxWindowDC *src; | |
8351 | wxObject *dest; | |
8352 | src = (wxWindowDC *) ptr; | |
8353 | dest = (wxObject *) src; | |
8354 | return (void *) dest; | |
8355 | } | |
8356 | ||
8357 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
8358 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8359 | PyObject * _resultobj; | |
8360 | wxWindowDC * _result; | |
8361 | wxWindow * _arg0; | |
8362 | PyObject * _argo0 = 0; | |
8363 | char *_kwnames[] = { "win", NULL }; | |
8364 | char _ptemp[128]; | |
8365 | ||
8366 | self = self; | |
8367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) | |
8368 | return NULL; | |
8369 | if (_argo0) { | |
8370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
8373 | return NULL; | |
8374 | } | |
8375 | } | |
8376 | { | |
0e2ff151 | 8377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8378 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
e6056257 | 8379 | |
0e2ff151 | 8380 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8381 | if (PyErr_Occurred()) return NULL; |
8382 | } if (_result) { | |
8383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
8384 | _resultobj = Py_BuildValue("s",_ptemp); | |
8385 | } else { | |
8386 | Py_INCREF(Py_None); | |
8387 | _resultobj = Py_None; | |
8388 | } | |
8389 | return _resultobj; | |
8390 | } | |
8391 | ||
e6056257 RD |
8392 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
8393 | wxPalette *src; | |
8394 | wxGDIObject *dest; | |
8395 | src = (wxPalette *) ptr; | |
8396 | dest = (wxGDIObject *) src; | |
8397 | return (void *) dest; | |
8398 | } | |
8399 | ||
8400 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
8401 | wxPalette *src; | |
8402 | wxObject *dest; | |
8403 | src = (wxPalette *) ptr; | |
8404 | dest = (wxObject *) src; | |
8405 | return (void *) dest; | |
8406 | } | |
8407 | ||
8408 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8409 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8410 | PyObject * _resultobj; | |
8411 | wxPalette * _result; | |
8412 | int _arg0; | |
8413 | byte * _arg1; | |
8414 | byte * _arg2; | |
8415 | byte * _arg3; | |
8416 | PyObject * _obj1 = 0; | |
8417 | PyObject * _obj2 = 0; | |
8418 | PyObject * _obj3 = 0; | |
8419 | char *_kwnames[] = { "choices","choices","choices", NULL }; | |
8420 | char _ptemp[128]; | |
8421 | ||
8422 | self = self; | |
8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) | |
8424 | return NULL; | |
8425 | { | |
8426 | _arg1 = byte_LIST_helper(_obj1); | |
8427 | if (_arg1 == NULL) { | |
8428 | return NULL; | |
8429 | } | |
8430 | } | |
8431 | { | |
8432 | _arg2 = byte_LIST_helper(_obj2); | |
8433 | if (_arg2 == NULL) { | |
8434 | return NULL; | |
8435 | } | |
8436 | } | |
8437 | if (_obj3) | |
8438 | { | |
8439 | _arg3 = byte_LIST_helper(_obj3); | |
8440 | if (_arg3 == NULL) { | |
8441 | return NULL; | |
8442 | } | |
8443 | } | |
8444 | { | |
8445 | if (_obj1) { | |
8446 | _arg0 = PyList_Size(_obj1); | |
8447 | } | |
8448 | else { | |
8449 | _arg0 = 0; | |
8450 | } | |
8451 | } | |
8452 | { | |
0e2ff151 | 8453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8454 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 8455 | |
0e2ff151 | 8456 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8457 | if (PyErr_Occurred()) return NULL; |
8458 | } if (_result) { | |
8459 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
8460 | _resultobj = Py_BuildValue("s",_ptemp); | |
8461 | } else { | |
8462 | Py_INCREF(Py_None); | |
8463 | _resultobj = Py_None; | |
8464 | } | |
8465 | { | |
8466 | delete [] _arg1; | |
8467 | } | |
8468 | { | |
8469 | delete [] _arg2; | |
8470 | } | |
8471 | { | |
8472 | delete [] _arg3; | |
8473 | } | |
8474 | return _resultobj; | |
8475 | } | |
8476 | ||
8477 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
8478 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8479 | PyObject * _resultobj; | |
8480 | wxPalette * _arg0; | |
8481 | PyObject * _argo0 = 0; | |
8482 | char *_kwnames[] = { "self", NULL }; | |
8483 | ||
8484 | self = self; | |
8485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) | |
8486 | return NULL; | |
8487 | if (_argo0) { | |
8488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
8491 | return NULL; | |
8492 | } | |
8493 | } | |
8494 | { | |
0e2ff151 | 8495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8496 | delete_wxPalette(_arg0); |
e6056257 | 8497 | |
0e2ff151 | 8498 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8499 | if (PyErr_Occurred()) return NULL; |
8500 | } Py_INCREF(Py_None); | |
8501 | _resultobj = Py_None; | |
8502 | return _resultobj; | |
8503 | } | |
8504 | ||
8505 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
8506 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8507 | PyObject * _resultobj; | |
8508 | int _result; | |
8509 | wxPalette * _arg0; | |
8510 | byte _arg1; | |
8511 | byte _arg2; | |
8512 | byte _arg3; | |
8513 | PyObject * _argo0 = 0; | |
8514 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
8515 | ||
8516 | self = self; | |
8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
8518 | return NULL; | |
8519 | if (_argo0) { | |
8520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
8523 | return NULL; | |
8524 | } | |
8525 | } | |
8526 | { | |
0e2ff151 | 8527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8528 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 8529 | |
0e2ff151 | 8530 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8531 | if (PyErr_Occurred()) return NULL; |
8532 | } _resultobj = Py_BuildValue("i",_result); | |
8533 | return _resultobj; | |
8534 | } | |
8535 | ||
8536 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8537 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8538 | PyObject * _resultobj; | |
8539 | bool _result; | |
8540 | wxPalette * _arg0; | |
8541 | int _arg1; | |
8542 | byte * _arg2; | |
a341e32e | 8543 | int temp; |
e6056257 | 8544 | byte * _arg3; |
a341e32e | 8545 | int temp0; |
e6056257 | 8546 | byte * _arg4; |
a341e32e | 8547 | int temp1; |
e6056257 | 8548 | PyObject * _argo0 = 0; |
a341e32e | 8549 | char *_kwnames[] = { "self","pixel", NULL }; |
e6056257 RD |
8550 | |
8551 | self = self; | |
a341e32e RD |
8552 | { |
8553 | _arg2 = (byte*)&temp; | |
8554 | } | |
8555 | { | |
8556 | _arg3 = (byte*)&temp0; | |
8557 | } | |
8558 | { | |
8559 | _arg4 = (byte*)&temp1; | |
8560 | } | |
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
e6056257 RD |
8562 | return NULL; |
8563 | if (_argo0) { | |
8564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
8567 | return NULL; | |
8568 | } | |
8569 | } | |
e6056257 | 8570 | { |
0e2ff151 | 8571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8572 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 8573 | |
0e2ff151 | 8574 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8575 | if (PyErr_Occurred()) return NULL; |
8576 | } _resultobj = Py_BuildValue("i",_result); | |
a341e32e RD |
8577 | { |
8578 | PyObject *o; | |
8579 | o = PyInt_FromLong((long) (*_arg2)); | |
8580 | _resultobj = t_output_helper(_resultobj, o); | |
8581 | } | |
8582 | { | |
8583 | PyObject *o; | |
8584 | o = PyInt_FromLong((long) (*_arg3)); | |
8585 | _resultobj = t_output_helper(_resultobj, o); | |
8586 | } | |
8587 | { | |
8588 | PyObject *o; | |
8589 | o = PyInt_FromLong((long) (*_arg4)); | |
8590 | _resultobj = t_output_helper(_resultobj, o); | |
8591 | } | |
e6056257 RD |
8592 | return _resultobj; |
8593 | } | |
8594 | ||
8595 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
8596 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8597 | PyObject * _resultobj; | |
8598 | bool _result; | |
8599 | wxPalette * _arg0; | |
8600 | PyObject * _argo0 = 0; | |
8601 | char *_kwnames[] = { "self", NULL }; | |
8602 | ||
8603 | self = self; | |
8604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) | |
8605 | return NULL; | |
8606 | if (_argo0) { | |
8607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
8609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
8610 | return NULL; | |
8611 | } | |
8612 | } | |
8613 | { | |
0e2ff151 | 8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8615 | _result = (bool )wxPalette_Ok(_arg0); |
e6056257 | 8616 | |
0e2ff151 | 8617 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8618 | if (PyErr_Occurred()) return NULL; |
8619 | } _resultobj = Py_BuildValue("i",_result); | |
8620 | return _resultobj; | |
8621 | } | |
8622 | ||
8623 | static void *SwigwxImageListTowxObject(void *ptr) { | |
8624 | wxImageList *src; | |
8625 | wxObject *dest; | |
8626 | src = (wxImageList *) ptr; | |
8627 | dest = (wxObject *) src; | |
8628 | return (void *) dest; | |
8629 | } | |
8630 | ||
8631 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8632 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8633 | PyObject * _resultobj; | |
8634 | wxImageList * _result; | |
8635 | int _arg0; | |
8636 | int _arg1; | |
8637 | int _arg2 = (int ) TRUE; | |
8638 | int _arg3 = (int ) 1; | |
8639 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; | |
8640 | char _ptemp[128]; | |
8641 | ||
8642 | self = self; | |
8643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
8644 | return NULL; | |
8645 | { | |
0e2ff151 | 8646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8647 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 8648 | |
0e2ff151 | 8649 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8650 | if (PyErr_Occurred()) return NULL; |
8651 | } if (_result) { | |
8652 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
8653 | _resultobj = Py_BuildValue("s",_ptemp); | |
8654 | } else { | |
8655 | Py_INCREF(Py_None); | |
8656 | _resultobj = Py_None; | |
8657 | } | |
8658 | return _resultobj; | |
8659 | } | |
8660 | ||
8661 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
8662 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject * _resultobj; | |
8664 | wxImageList * _arg0; | |
8665 | PyObject * _argo0 = 0; | |
8666 | char *_kwnames[] = { "self", NULL }; | |
8667 | ||
8668 | self = self; | |
8669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) | |
8670 | return NULL; | |
8671 | if (_argo0) { | |
8672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); | |
8675 | return NULL; | |
8676 | } | |
8677 | } | |
8678 | { | |
0e2ff151 | 8679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8680 | delete_wxImageList(_arg0); |
e6056257 | 8681 | |
0e2ff151 | 8682 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8683 | if (PyErr_Occurred()) return NULL; |
8684 | } Py_INCREF(Py_None); | |
8685 | _resultobj = Py_None; | |
8686 | return _resultobj; | |
8687 | } | |
8688 | ||
8689 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
8690 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8691 | PyObject * _resultobj; | |
8692 | int _result; | |
8693 | wxImageList * _arg0; | |
8694 | wxBitmap * _arg1; | |
8695 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
8696 | PyObject * _argo0 = 0; | |
8697 | PyObject * _argo1 = 0; | |
8698 | PyObject * _argo2 = 0; | |
8699 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
8700 | ||
8701 | self = self; | |
8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) | |
8703 | return NULL; | |
8704 | if (_argo0) { | |
8705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); | |
8708 | return NULL; | |
8709 | } | |
8710 | } | |
8711 | if (_argo1) { | |
8712 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8713 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); | |
8715 | return NULL; | |
8716 | } | |
8717 | } | |
8718 | if (_argo2) { | |
8719 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8720 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
8722 | return NULL; | |
8723 | } | |
8724 | } | |
8725 | { | |
0e2ff151 | 8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8727 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
e6056257 | 8728 | |
0e2ff151 | 8729 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8730 | if (PyErr_Occurred()) return NULL; |
8731 | } _resultobj = Py_BuildValue("i",_result); | |
8732 | return _resultobj; | |
8733 | } | |
8734 | ||
8735 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
8736 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8737 | PyObject * _resultobj; | |
8738 | int _result; | |
8739 | wxImageList * _arg0; | |
8740 | wxBitmap * _arg1; | |
8741 | wxColour * _arg2; | |
8742 | PyObject * _argo0 = 0; | |
8743 | PyObject * _argo1 = 0; | |
8744 | wxColour temp; | |
8745 | PyObject * _obj2 = 0; | |
8746 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
8747 | ||
8748 | self = self; | |
8749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
8750 | return NULL; | |
8751 | if (_argo0) { | |
8752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
8755 | return NULL; | |
8756 | } | |
8757 | } | |
8758 | if (_argo1) { | |
8759 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8760 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
8762 | return NULL; | |
8763 | } | |
8764 | } | |
8765 | { | |
8766 | _arg2 = &temp; | |
8767 | if (! wxColour_helper(_obj2, &_arg2)) | |
8768 | return NULL; | |
8769 | } | |
8770 | { | |
0e2ff151 | 8771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8772 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
e6056257 | 8773 | |
0e2ff151 | 8774 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8775 | if (PyErr_Occurred()) return NULL; |
8776 | } _resultobj = Py_BuildValue("i",_result); | |
8777 | return _resultobj; | |
8778 | } | |
8779 | ||
8780 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
8781 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8782 | PyObject * _resultobj; | |
8783 | int _result; | |
8784 | wxImageList * _arg0; | |
8785 | wxIcon * _arg1; | |
8786 | PyObject * _argo0 = 0; | |
8787 | PyObject * _argo1 = 0; | |
8788 | char *_kwnames[] = { "self","icon", NULL }; | |
8789 | ||
8790 | self = self; | |
8791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
8792 | return NULL; | |
8793 | if (_argo0) { | |
8794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
8797 | return NULL; | |
8798 | } | |
8799 | } | |
8800 | if (_argo1) { | |
8801 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8802 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
8804 | return NULL; | |
8805 | } | |
8806 | } | |
8807 | { | |
0e2ff151 | 8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8809 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
e6056257 | 8810 | |
0e2ff151 | 8811 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8812 | if (PyErr_Occurred()) return NULL; |
8813 | } _resultobj = Py_BuildValue("i",_result); | |
8814 | return _resultobj; | |
8815 | } | |
8816 | ||
8817 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
8818 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8819 | PyObject * _resultobj; | |
8820 | bool _result; | |
8821 | wxImageList * _arg0; | |
8822 | int _arg1; | |
8823 | wxBitmap * _arg2; | |
8824 | PyObject * _argo0 = 0; | |
8825 | PyObject * _argo2 = 0; | |
8826 | char *_kwnames[] = { "self","index","bitmap", NULL }; | |
8827 | ||
8828 | self = self; | |
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) | |
8830 | return NULL; | |
8831 | if (_argo0) { | |
8832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); | |
8835 | return NULL; | |
8836 | } | |
8837 | } | |
8838 | if (_argo2) { | |
8839 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8840 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); | |
8842 | return NULL; | |
8843 | } | |
8844 | } | |
8845 | { | |
0e2ff151 | 8846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8847 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); |
e6056257 | 8848 | |
0e2ff151 | 8849 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8850 | if (PyErr_Occurred()) return NULL; |
8851 | } _resultobj = Py_BuildValue("i",_result); | |
8852 | return _resultobj; | |
8853 | } | |
8854 | ||
8855 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8856 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8857 | PyObject * _resultobj; | |
8858 | bool _result; | |
8859 | wxImageList * _arg0; | |
8860 | int _arg1; | |
8861 | wxDC * _arg2; | |
8862 | int _arg3; | |
8863 | int _arg4; | |
8864 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); | |
8865 | bool _arg6 = (bool ) FALSE; | |
8866 | PyObject * _argo0 = 0; | |
8867 | PyObject * _argo2 = 0; | |
8868 | int tempbool6 = (int) FALSE; | |
8869 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; | |
8870 | ||
8871 | self = self; | |
8872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
8873 | return NULL; | |
8874 | if (_argo0) { | |
8875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); | |
8878 | return NULL; | |
8879 | } | |
8880 | } | |
8881 | if (_argo2) { | |
8882 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8883 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
8884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); | |
8885 | return NULL; | |
8886 | } | |
8887 | } | |
8888 | _arg6 = (bool ) tempbool6; | |
8889 | { | |
0e2ff151 | 8890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8891 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 8892 | |
0e2ff151 | 8893 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8894 | if (PyErr_Occurred()) return NULL; |
8895 | } _resultobj = Py_BuildValue("i",_result); | |
8896 | return _resultobj; | |
8897 | } | |
8898 | ||
8899 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
8900 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8901 | PyObject * _resultobj; | |
8902 | int _result; | |
8903 | wxImageList * _arg0; | |
8904 | PyObject * _argo0 = 0; | |
8905 | char *_kwnames[] = { "self", NULL }; | |
8906 | ||
8907 | self = self; | |
8908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) | |
8909 | return NULL; | |
8910 | if (_argo0) { | |
8911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); | |
8914 | return NULL; | |
8915 | } | |
8916 | } | |
8917 | { | |
0e2ff151 | 8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8919 | _result = (int )wxImageList_GetImageCount(_arg0); |
e6056257 | 8920 | |
0e2ff151 | 8921 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8922 | if (PyErr_Occurred()) return NULL; |
8923 | } _resultobj = Py_BuildValue("i",_result); | |
8924 | return _resultobj; | |
8925 | } | |
8926 | ||
8927 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8928 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8929 | PyObject * _resultobj; | |
8930 | bool _result; | |
8931 | wxImageList * _arg0; | |
8932 | int _arg1; | |
8933 | PyObject * _argo0 = 0; | |
8934 | char *_kwnames[] = { "self","index", NULL }; | |
8935 | ||
8936 | self = self; | |
8937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) | |
8938 | return NULL; | |
8939 | if (_argo0) { | |
8940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); | |
8943 | return NULL; | |
8944 | } | |
8945 | } | |
8946 | { | |
0e2ff151 | 8947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8948 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
e6056257 | 8949 | |
0e2ff151 | 8950 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8951 | if (PyErr_Occurred()) return NULL; |
8952 | } _resultobj = Py_BuildValue("i",_result); | |
8953 | return _resultobj; | |
8954 | } | |
8955 | ||
8956 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
8957 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8958 | PyObject * _resultobj; | |
8959 | bool _result; | |
8960 | wxImageList * _arg0; | |
8961 | PyObject * _argo0 = 0; | |
8962 | char *_kwnames[] = { "self", NULL }; | |
8963 | ||
8964 | self = self; | |
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) | |
8966 | return NULL; | |
8967 | if (_argo0) { | |
8968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); | |
8971 | return NULL; | |
8972 | } | |
8973 | } | |
8974 | { | |
0e2ff151 | 8975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8976 | _result = (bool )wxImageList_RemoveAll(_arg0); |
e6056257 | 8977 | |
0e2ff151 | 8978 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8979 | if (PyErr_Occurred()) return NULL; |
8980 | } _resultobj = Py_BuildValue("i",_result); | |
8981 | return _resultobj; | |
8982 | } | |
8983 | ||
8984 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) | |
8985 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8986 | PyObject * _resultobj; | |
8987 | wxImageList * _arg0; | |
8988 | int _arg1; | |
8989 | int * _arg2; | |
8990 | int temp; | |
8991 | int * _arg3; | |
8992 | int temp0; | |
8993 | PyObject * _argo0 = 0; | |
8994 | char *_kwnames[] = { "self","index", NULL }; | |
8995 | ||
8996 | self = self; | |
8997 | { | |
8998 | _arg2 = &temp; | |
8999 | } | |
9000 | { | |
9001 | _arg3 = &temp0; | |
9002 | } | |
9003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
9004 | return NULL; | |
9005 | if (_argo0) { | |
9006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
9009 | return NULL; | |
9010 | } | |
9011 | } | |
9012 | { | |
0e2ff151 | 9013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9014 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
e6056257 | 9015 | |
0e2ff151 | 9016 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9017 | if (PyErr_Occurred()) return NULL; |
9018 | } Py_INCREF(Py_None); | |
9019 | _resultobj = Py_None; | |
9020 | { | |
9021 | PyObject *o; | |
9022 | o = PyInt_FromLong((long) (*_arg2)); | |
9023 | _resultobj = t_output_helper(_resultobj, o); | |
9024 | } | |
9025 | { | |
9026 | PyObject *o; | |
9027 | o = PyInt_FromLong((long) (*_arg3)); | |
9028 | _resultobj = t_output_helper(_resultobj, o); | |
9029 | } | |
9030 | return _resultobj; | |
9031 | } | |
9032 | ||
9033 | static void *SwigwxRegionTowxGDIObject(void *ptr) { | |
9034 | wxRegion *src; | |
9035 | wxGDIObject *dest; | |
9036 | src = (wxRegion *) ptr; | |
9037 | dest = (wxGDIObject *) src; | |
9038 | return (void *) dest; | |
9039 | } | |
9040 | ||
9041 | static void *SwigwxRegionTowxObject(void *ptr) { | |
9042 | wxRegion *src; | |
9043 | wxObject *dest; | |
9044 | src = (wxRegion *) ptr; | |
9045 | dest = (wxObject *) src; | |
9046 | return (void *) dest; | |
9047 | } | |
9048 | ||
9049 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9050 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9051 | PyObject * _resultobj; | |
9052 | wxRegion * _result; | |
9053 | long _arg0 = (long ) 0; | |
9054 | long _arg1 = (long ) 0; | |
9055 | long _arg2 = (long ) 0; | |
9056 | long _arg3 = (long ) 0; | |
9057 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
9058 | char _ptemp[128]; | |
9059 | ||
9060 | self = self; | |
9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9062 | return NULL; | |
9063 | { | |
0e2ff151 | 9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9065 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 9066 | |
0e2ff151 | 9067 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9068 | if (PyErr_Occurred()) return NULL; |
9069 | } if (_result) { | |
9070 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
9071 | _resultobj = Py_BuildValue("s",_ptemp); | |
9072 | } else { | |
9073 | Py_INCREF(Py_None); | |
9074 | _resultobj = Py_None; | |
9075 | } | |
9076 | return _resultobj; | |
9077 | } | |
9078 | ||
9079 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
9080 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9081 | PyObject * _resultobj; | |
9082 | wxRegion * _arg0; | |
9083 | PyObject * _argo0 = 0; | |
9084 | char *_kwnames[] = { "self", NULL }; | |
9085 | ||
9086 | self = self; | |
9087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
9088 | return NULL; | |
9089 | if (_argo0) { | |
9090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
9093 | return NULL; | |
9094 | } | |
9095 | } | |
9096 | { | |
0e2ff151 | 9097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9098 | delete_wxRegion(_arg0); |
e6056257 | 9099 | |
0e2ff151 | 9100 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9101 | if (PyErr_Occurred()) return NULL; |
9102 | } Py_INCREF(Py_None); | |
9103 | _resultobj = Py_None; | |
9104 | return _resultobj; | |
9105 | } | |
9106 | ||
9107 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
9108 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9109 | PyObject * _resultobj; | |
9110 | wxRegion * _arg0; | |
9111 | PyObject * _argo0 = 0; | |
9112 | char *_kwnames[] = { "self", NULL }; | |
9113 | ||
9114 | self = self; | |
9115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
9116 | return NULL; | |
9117 | if (_argo0) { | |
9118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
9121 | return NULL; | |
9122 | } | |
9123 | } | |
9124 | { | |
0e2ff151 | 9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9126 | wxRegion_Clear(_arg0); |
e6056257 | 9127 | |
0e2ff151 | 9128 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9129 | if (PyErr_Occurred()) return NULL; |
9130 | } Py_INCREF(Py_None); | |
9131 | _resultobj = Py_None; | |
9132 | return _resultobj; | |
9133 | } | |
9134 | ||
9135 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
9136 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9137 | PyObject * _resultobj; | |
9138 | wxRegionContain _result; | |
9139 | wxRegion * _arg0; | |
9140 | long _arg1; | |
9141 | long _arg2; | |
9142 | PyObject * _argo0 = 0; | |
9143 | char *_kwnames[] = { "self","x","y", NULL }; | |
9144 | ||
9145 | self = self; | |
9146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9147 | return NULL; | |
9148 | if (_argo0) { | |
9149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
9152 | return NULL; | |
9153 | } | |
9154 | } | |
9155 | { | |
0e2ff151 | 9156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9157 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
e6056257 | 9158 | |
0e2ff151 | 9159 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9160 | if (PyErr_Occurred()) return NULL; |
9161 | } _resultobj = Py_BuildValue("i",_result); | |
9162 | return _resultobj; | |
9163 | } | |
9164 | ||
9165 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9166 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9167 | PyObject * _resultobj; | |
9168 | wxRegionContain _result; | |
9169 | wxRegion * _arg0; | |
9170 | wxPoint * _arg1; | |
9171 | PyObject * _argo0 = 0; | |
9172 | wxPoint temp; | |
9173 | PyObject * _obj1 = 0; | |
9174 | char *_kwnames[] = { "self","pt", NULL }; | |
9175 | ||
9176 | self = self; | |
9177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
9178 | return NULL; | |
9179 | if (_argo0) { | |
9180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
9183 | return NULL; | |
9184 | } | |
9185 | } | |
9186 | { | |
9187 | _arg1 = &temp; | |
9188 | if (! wxPoint_helper(_obj1, &_arg1)) | |
9189 | return NULL; | |
9190 | } | |
9191 | { | |
0e2ff151 | 9192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9193 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
e6056257 | 9194 | |
0e2ff151 | 9195 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9196 | if (PyErr_Occurred()) return NULL; |
9197 | } _resultobj = Py_BuildValue("i",_result); | |
9198 | return _resultobj; | |
9199 | } | |
9200 | ||
9201 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9202 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9203 | PyObject * _resultobj; | |
9204 | wxRegionContain _result; | |
9205 | wxRegion * _arg0; | |
9206 | wxRect * _arg1; | |
9207 | PyObject * _argo0 = 0; | |
9208 | wxRect temp; | |
9209 | PyObject * _obj1 = 0; | |
9210 | char *_kwnames[] = { "self","rect", NULL }; | |
9211 | ||
9212 | self = self; | |
9213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
9214 | return NULL; | |
9215 | if (_argo0) { | |
9216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
9219 | return NULL; | |
9220 | } | |
9221 | } | |
9222 | { | |
9223 | _arg1 = &temp; | |
9224 | if (! wxRect_helper(_obj1, &_arg1)) | |
9225 | return NULL; | |
9226 | } | |
9227 | { | |
0e2ff151 | 9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9229 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
e6056257 | 9230 | |
0e2ff151 | 9231 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9232 | if (PyErr_Occurred()) return NULL; |
9233 | } _resultobj = Py_BuildValue("i",_result); | |
9234 | return _resultobj; | |
9235 | } | |
9236 | ||
9237 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9238 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9239 | PyObject * _resultobj; | |
9240 | wxRegionContain _result; | |
9241 | wxRegion * _arg0; | |
9242 | long _arg1; | |
9243 | long _arg2; | |
9244 | long _arg3; | |
9245 | long _arg4; | |
9246 | PyObject * _argo0 = 0; | |
9247 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
9248 | ||
9249 | self = self; | |
9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9251 | return NULL; | |
9252 | if (_argo0) { | |
9253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
9256 | return NULL; | |
9257 | } | |
9258 | } | |
9259 | { | |
0e2ff151 | 9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9261 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 9262 | |
0e2ff151 | 9263 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9264 | if (PyErr_Occurred()) return NULL; |
9265 | } _resultobj = Py_BuildValue("i",_result); | |
9266 | return _resultobj; | |
9267 | } | |
9268 | ||
9269 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
9270 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9271 | PyObject * _resultobj; | |
9272 | wxRect * _result; | |
9273 | wxRegion * _arg0; | |
9274 | PyObject * _argo0 = 0; | |
9275 | char *_kwnames[] = { "self", NULL }; | |
9276 | char _ptemp[128]; | |
9277 | ||
9278 | self = self; | |
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
9280 | return NULL; | |
9281 | if (_argo0) { | |
9282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
9285 | return NULL; | |
9286 | } | |
9287 | } | |
9288 | { | |
0e2ff151 | 9289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9290 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
e6056257 | 9291 | |
0e2ff151 | 9292 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9293 | if (PyErr_Occurred()) return NULL; |
9294 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
9295 | _resultobj = Py_BuildValue("s",_ptemp); | |
9296 | return _resultobj; | |
9297 | } | |
9298 | ||
9299 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9300 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9301 | PyObject * _resultobj; | |
9302 | bool _result; | |
9303 | wxRegion * _arg0; | |
9304 | long _arg1; | |
9305 | long _arg2; | |
9306 | long _arg3; | |
9307 | long _arg4; | |
9308 | PyObject * _argo0 = 0; | |
9309 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9310 | ||
9311 | self = self; | |
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9313 | return NULL; | |
9314 | if (_argo0) { | |
9315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
9318 | return NULL; | |
9319 | } | |
9320 | } | |
9321 | { | |
0e2ff151 | 9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9323 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 9324 | |
0e2ff151 | 9325 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9326 | if (PyErr_Occurred()) return NULL; |
9327 | } _resultobj = Py_BuildValue("i",_result); | |
9328 | return _resultobj; | |
9329 | } | |
9330 | ||
9331 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9332 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9333 | PyObject * _resultobj; | |
9334 | bool _result; | |
9335 | wxRegion * _arg0; | |
9336 | wxRect * _arg1; | |
9337 | PyObject * _argo0 = 0; | |
9338 | wxRect temp; | |
9339 | PyObject * _obj1 = 0; | |
9340 | char *_kwnames[] = { "self","rect", NULL }; | |
9341 | ||
9342 | self = self; | |
9343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
9344 | return NULL; | |
9345 | if (_argo0) { | |
9346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
9349 | return NULL; | |
9350 | } | |
9351 | } | |
9352 | { | |
9353 | _arg1 = &temp; | |
9354 | if (! wxRect_helper(_obj1, &_arg1)) | |
9355 | return NULL; | |
9356 | } | |
9357 | { | |
0e2ff151 | 9358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9359 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
e6056257 | 9360 | |
0e2ff151 | 9361 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9362 | if (PyErr_Occurred()) return NULL; |
9363 | } _resultobj = Py_BuildValue("i",_result); | |
9364 | return _resultobj; | |
9365 | } | |
9366 | ||
9367 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9368 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9369 | PyObject * _resultobj; | |
9370 | bool _result; | |
9371 | wxRegion * _arg0; | |
9372 | wxRegion * _arg1; | |
9373 | PyObject * _argo0 = 0; | |
9374 | PyObject * _argo1 = 0; | |
9375 | char *_kwnames[] = { "self","region", NULL }; | |
9376 | ||
9377 | self = self; | |
9378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
9379 | return NULL; | |
9380 | if (_argo0) { | |
9381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9384 | return NULL; | |
9385 | } | |
9386 | } | |
9387 | if (_argo1) { | |
9388 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9389 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9391 | return NULL; | |
9392 | } | |
9393 | } | |
9394 | { | |
0e2ff151 | 9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9396 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
e6056257 | 9397 | |
0e2ff151 | 9398 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9399 | if (PyErr_Occurred()) return NULL; |
9400 | } _resultobj = Py_BuildValue("i",_result); | |
9401 | return _resultobj; | |
9402 | } | |
9403 | ||
9404 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
9405 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9406 | PyObject * _resultobj; | |
9407 | bool _result; | |
9408 | wxRegion * _arg0; | |
9409 | PyObject * _argo0 = 0; | |
9410 | char *_kwnames[] = { "self", NULL }; | |
9411 | ||
9412 | self = self; | |
9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
9414 | return NULL; | |
9415 | if (_argo0) { | |
9416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
9419 | return NULL; | |
9420 | } | |
9421 | } | |
9422 | { | |
0e2ff151 | 9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9424 | _result = (bool )wxRegion_IsEmpty(_arg0); |
e6056257 | 9425 | |
0e2ff151 | 9426 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9427 | if (PyErr_Occurred()) return NULL; |
9428 | } _resultobj = Py_BuildValue("i",_result); | |
9429 | return _resultobj; | |
9430 | } | |
9431 | ||
9432 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9433 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9434 | PyObject * _resultobj; | |
9435 | bool _result; | |
9436 | wxRegion * _arg0; | |
9437 | long _arg1; | |
9438 | long _arg2; | |
9439 | long _arg3; | |
9440 | long _arg4; | |
9441 | PyObject * _argo0 = 0; | |
9442 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9443 | ||
9444 | self = self; | |
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9446 | return NULL; | |
9447 | if (_argo0) { | |
9448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
9451 | return NULL; | |
9452 | } | |
9453 | } | |
9454 | { | |
0e2ff151 | 9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9456 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 9457 | |
0e2ff151 | 9458 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9459 | if (PyErr_Occurred()) return NULL; |
9460 | } _resultobj = Py_BuildValue("i",_result); | |
9461 | return _resultobj; | |
9462 | } | |
9463 | ||
9464 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
9465 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9466 | PyObject * _resultobj; | |
9467 | bool _result; | |
9468 | wxRegion * _arg0; | |
9469 | wxRect * _arg1; | |
9470 | PyObject * _argo0 = 0; | |
9471 | wxRect temp; | |
9472 | PyObject * _obj1 = 0; | |
9473 | char *_kwnames[] = { "self","rect", NULL }; | |
9474 | ||
9475 | self = self; | |
9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
9477 | return NULL; | |
9478 | if (_argo0) { | |
9479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
9482 | return NULL; | |
9483 | } | |
9484 | } | |
9485 | { | |
9486 | _arg1 = &temp; | |
9487 | if (! wxRect_helper(_obj1, &_arg1)) | |
9488 | return NULL; | |
9489 | } | |
9490 | { | |
0e2ff151 | 9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9492 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
e6056257 | 9493 | |
0e2ff151 | 9494 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9495 | if (PyErr_Occurred()) return NULL; |
9496 | } _resultobj = Py_BuildValue("i",_result); | |
9497 | return _resultobj; | |
9498 | } | |
9499 | ||
9500 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
9501 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9502 | PyObject * _resultobj; | |
9503 | bool _result; | |
9504 | wxRegion * _arg0; | |
9505 | wxRegion * _arg1; | |
9506 | PyObject * _argo0 = 0; | |
9507 | PyObject * _argo1 = 0; | |
9508 | char *_kwnames[] = { "self","region", NULL }; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | if (_argo1) { | |
9521 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9522 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
9524 | return NULL; | |
9525 | } | |
9526 | } | |
9527 | { | |
0e2ff151 | 9528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9529 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
e6056257 | 9530 | |
0e2ff151 | 9531 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9532 | if (PyErr_Occurred()) return NULL; |
9533 | } _resultobj = Py_BuildValue("i",_result); | |
9534 | return _resultobj; | |
9535 | } | |
9536 | ||
9537 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9538 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9539 | PyObject * _resultobj; | |
9540 | bool _result; | |
9541 | wxRegion * _arg0; | |
9542 | long _arg1; | |
9543 | long _arg2; | |
9544 | long _arg3; | |
9545 | long _arg4; | |
9546 | PyObject * _argo0 = 0; | |
9547 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9548 | ||
9549 | self = self; | |
9550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9551 | return NULL; | |
9552 | if (_argo0) { | |
9553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
9556 | return NULL; | |
9557 | } | |
9558 | } | |
9559 | { | |
0e2ff151 | 9560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9561 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 9562 | |
0e2ff151 | 9563 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9564 | if (PyErr_Occurred()) return NULL; |
9565 | } _resultobj = Py_BuildValue("i",_result); | |
9566 | return _resultobj; | |
9567 | } | |
9568 | ||
9569 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
9570 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9571 | PyObject * _resultobj; | |
9572 | bool _result; | |
9573 | wxRegion * _arg0; | |
9574 | wxRect * _arg1; | |
9575 | PyObject * _argo0 = 0; | |
9576 | wxRect temp; | |
9577 | PyObject * _obj1 = 0; | |
9578 | char *_kwnames[] = { "self","rect", NULL }; | |
9579 | ||
9580 | self = self; | |
9581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
9582 | return NULL; | |
9583 | if (_argo0) { | |
9584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
9587 | return NULL; | |
9588 | } | |
9589 | } | |
9590 | { | |
9591 | _arg1 = &temp; | |
9592 | if (! wxRect_helper(_obj1, &_arg1)) | |
9593 | return NULL; | |
9594 | } | |
9595 | { | |
0e2ff151 | 9596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9597 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
e6056257 | 9598 | |
0e2ff151 | 9599 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9600 | if (PyErr_Occurred()) return NULL; |
9601 | } _resultobj = Py_BuildValue("i",_result); | |
9602 | return _resultobj; | |
9603 | } | |
9604 | ||
9605 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
9606 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9607 | PyObject * _resultobj; | |
9608 | bool _result; | |
9609 | wxRegion * _arg0; | |
9610 | wxRegion * _arg1; | |
9611 | PyObject * _argo0 = 0; | |
9612 | PyObject * _argo1 = 0; | |
9613 | char *_kwnames[] = { "self","region", NULL }; | |
9614 | ||
9615 | self = self; | |
9616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
9617 | return NULL; | |
9618 | if (_argo0) { | |
9619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
9622 | return NULL; | |
9623 | } | |
9624 | } | |
9625 | if (_argo1) { | |
9626 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9627 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
9629 | return NULL; | |
9630 | } | |
9631 | } | |
9632 | { | |
0e2ff151 | 9633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9634 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
e6056257 | 9635 | |
0e2ff151 | 9636 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9637 | if (PyErr_Occurred()) return NULL; |
9638 | } _resultobj = Py_BuildValue("i",_result); | |
9639 | return _resultobj; | |
9640 | } | |
9641 | ||
9642 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9643 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9644 | PyObject * _resultobj; | |
9645 | bool _result; | |
9646 | wxRegion * _arg0; | |
9647 | long _arg1; | |
9648 | long _arg2; | |
9649 | long _arg3; | |
9650 | long _arg4; | |
9651 | PyObject * _argo0 = 0; | |
9652 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9653 | ||
9654 | self = self; | |
9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9656 | return NULL; | |
9657 | if (_argo0) { | |
9658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
9661 | return NULL; | |
9662 | } | |
9663 | } | |
9664 | { | |
0e2ff151 | 9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9666 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 9667 | |
0e2ff151 | 9668 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9669 | if (PyErr_Occurred()) return NULL; |
9670 | } _resultobj = Py_BuildValue("i",_result); | |
9671 | return _resultobj; | |
9672 | } | |
9673 | ||
9674 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
9675 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9676 | PyObject * _resultobj; | |
9677 | bool _result; | |
9678 | wxRegion * _arg0; | |
9679 | wxRect * _arg1; | |
9680 | PyObject * _argo0 = 0; | |
9681 | wxRect temp; | |
9682 | PyObject * _obj1 = 0; | |
9683 | char *_kwnames[] = { "self","rect", NULL }; | |
9684 | ||
9685 | self = self; | |
9686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
9687 | return NULL; | |
9688 | if (_argo0) { | |
9689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
9692 | return NULL; | |
9693 | } | |
9694 | } | |
9695 | { | |
9696 | _arg1 = &temp; | |
9697 | if (! wxRect_helper(_obj1, &_arg1)) | |
9698 | return NULL; | |
9699 | } | |
9700 | { | |
0e2ff151 | 9701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9702 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
e6056257 | 9703 | |
0e2ff151 | 9704 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9705 | if (PyErr_Occurred()) return NULL; |
9706 | } _resultobj = Py_BuildValue("i",_result); | |
9707 | return _resultobj; | |
9708 | } | |
9709 | ||
9710 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
9711 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject * _resultobj; | |
9713 | bool _result; | |
9714 | wxRegion * _arg0; | |
9715 | wxRegion * _arg1; | |
9716 | PyObject * _argo0 = 0; | |
9717 | PyObject * _argo1 = 0; | |
9718 | char *_kwnames[] = { "self","region", NULL }; | |
9719 | ||
9720 | self = self; | |
9721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
9722 | return NULL; | |
9723 | if (_argo0) { | |
9724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
9727 | return NULL; | |
9728 | } | |
9729 | } | |
9730 | if (_argo1) { | |
9731 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9732 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
9734 | return NULL; | |
9735 | } | |
9736 | } | |
9737 | { | |
0e2ff151 | 9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9739 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
e6056257 | 9740 | |
0e2ff151 | 9741 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9742 | if (PyErr_Occurred()) return NULL; |
9743 | } _resultobj = Py_BuildValue("i",_result); | |
9744 | return _resultobj; | |
9745 | } | |
9746 | ||
9747 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
9748 | wxRegionIterator *src; | |
9749 | wxObject *dest; | |
9750 | src = (wxRegionIterator *) ptr; | |
9751 | dest = (wxObject *) src; | |
9752 | return (void *) dest; | |
9753 | } | |
9754 | ||
9755 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
9756 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9757 | PyObject * _resultobj; | |
9758 | wxRegionIterator * _result; | |
9759 | wxRegion * _arg0; | |
9760 | PyObject * _argo0 = 0; | |
9761 | char *_kwnames[] = { "region", NULL }; | |
9762 | char _ptemp[128]; | |
9763 | ||
9764 | self = self; | |
9765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
9766 | return NULL; | |
9767 | if (_argo0) { | |
9768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
9771 | return NULL; | |
9772 | } | |
9773 | } | |
9774 | { | |
0e2ff151 | 9775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9776 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
e6056257 | 9777 | |
0e2ff151 | 9778 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9779 | if (PyErr_Occurred()) return NULL; |
9780 | } if (_result) { | |
9781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
9782 | _resultobj = Py_BuildValue("s",_ptemp); | |
9783 | } else { | |
9784 | Py_INCREF(Py_None); | |
9785 | _resultobj = Py_None; | |
9786 | } | |
9787 | return _resultobj; | |
9788 | } | |
9789 | ||
9790 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
9791 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9792 | PyObject * _resultobj; | |
9793 | wxRegionIterator * _arg0; | |
9794 | PyObject * _argo0 = 0; | |
9795 | char *_kwnames[] = { "self", NULL }; | |
9796 | ||
9797 | self = self; | |
9798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
9799 | return NULL; | |
9800 | if (_argo0) { | |
9801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
9804 | return NULL; | |
9805 | } | |
9806 | } | |
9807 | { | |
0e2ff151 | 9808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9809 | delete_wxRegionIterator(_arg0); |
e6056257 | 9810 | |
0e2ff151 | 9811 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9812 | if (PyErr_Occurred()) return NULL; |
9813 | } Py_INCREF(Py_None); | |
9814 | _resultobj = Py_None; | |
9815 | return _resultobj; | |
9816 | } | |
9817 | ||
9818 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
9819 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9820 | PyObject * _resultobj; | |
9821 | long _result; | |
9822 | wxRegionIterator * _arg0; | |
9823 | PyObject * _argo0 = 0; | |
9824 | char *_kwnames[] = { "self", NULL }; | |
9825 | ||
9826 | self = self; | |
9827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
9828 | return NULL; | |
9829 | if (_argo0) { | |
9830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
9833 | return NULL; | |
9834 | } | |
9835 | } | |
9836 | { | |
0e2ff151 | 9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9838 | _result = (long )wxRegionIterator_GetX(_arg0); |
e6056257 | 9839 | |
0e2ff151 | 9840 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9841 | if (PyErr_Occurred()) return NULL; |
9842 | } _resultobj = Py_BuildValue("l",_result); | |
9843 | return _resultobj; | |
9844 | } | |
9845 | ||
9846 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
9847 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9848 | PyObject * _resultobj; | |
9849 | long _result; | |
9850 | wxRegionIterator * _arg0; | |
9851 | PyObject * _argo0 = 0; | |
9852 | char *_kwnames[] = { "self", NULL }; | |
9853 | ||
9854 | self = self; | |
9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
9856 | return NULL; | |
9857 | if (_argo0) { | |
9858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
9861 | return NULL; | |
9862 | } | |
9863 | } | |
9864 | { | |
0e2ff151 | 9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9866 | _result = (long )wxRegionIterator_GetY(_arg0); |
e6056257 | 9867 | |
0e2ff151 | 9868 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9869 | if (PyErr_Occurred()) return NULL; |
9870 | } _resultobj = Py_BuildValue("l",_result); | |
9871 | return _resultobj; | |
9872 | } | |
9873 | ||
9874 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
9875 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9876 | PyObject * _resultobj; | |
9877 | long _result; | |
9878 | wxRegionIterator * _arg0; | |
9879 | PyObject * _argo0 = 0; | |
9880 | char *_kwnames[] = { "self", NULL }; | |
9881 | ||
9882 | self = self; | |
9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
9884 | return NULL; | |
9885 | if (_argo0) { | |
9886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
9889 | return NULL; | |
9890 | } | |
9891 | } | |
9892 | { | |
0e2ff151 | 9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9894 | _result = (long )wxRegionIterator_GetW(_arg0); |
e6056257 | 9895 | |
0e2ff151 | 9896 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9897 | if (PyErr_Occurred()) return NULL; |
9898 | } _resultobj = Py_BuildValue("l",_result); | |
9899 | return _resultobj; | |
9900 | } | |
9901 | ||
9902 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
9903 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9904 | PyObject * _resultobj; | |
9905 | long _result; | |
9906 | wxRegionIterator * _arg0; | |
9907 | PyObject * _argo0 = 0; | |
9908 | char *_kwnames[] = { "self", NULL }; | |
9909 | ||
9910 | self = self; | |
9911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
9912 | return NULL; | |
9913 | if (_argo0) { | |
9914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
9917 | return NULL; | |
9918 | } | |
9919 | } | |
9920 | { | |
0e2ff151 | 9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9922 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
e6056257 | 9923 | |
0e2ff151 | 9924 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9925 | if (PyErr_Occurred()) return NULL; |
9926 | } _resultobj = Py_BuildValue("l",_result); | |
9927 | return _resultobj; | |
9928 | } | |
9929 | ||
9930 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
9931 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9932 | PyObject * _resultobj; | |
9933 | long _result; | |
9934 | wxRegionIterator * _arg0; | |
9935 | PyObject * _argo0 = 0; | |
9936 | char *_kwnames[] = { "self", NULL }; | |
9937 | ||
9938 | self = self; | |
9939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
9940 | return NULL; | |
9941 | if (_argo0) { | |
9942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
9945 | return NULL; | |
9946 | } | |
9947 | } | |
9948 | { | |
0e2ff151 | 9949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9950 | _result = (long )wxRegionIterator_GetH(_arg0); |
e6056257 | 9951 | |
0e2ff151 | 9952 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9953 | if (PyErr_Occurred()) return NULL; |
9954 | } _resultobj = Py_BuildValue("l",_result); | |
9955 | return _resultobj; | |
9956 | } | |
9957 | ||
9958 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
9959 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9960 | PyObject * _resultobj; | |
9961 | long _result; | |
9962 | wxRegionIterator * _arg0; | |
9963 | PyObject * _argo0 = 0; | |
9964 | char *_kwnames[] = { "self", NULL }; | |
9965 | ||
9966 | self = self; | |
9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
9968 | return NULL; | |
9969 | if (_argo0) { | |
9970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
9973 | return NULL; | |
9974 | } | |
9975 | } | |
9976 | { | |
0e2ff151 | 9977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9978 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
e6056257 | 9979 | |
0e2ff151 | 9980 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9981 | if (PyErr_Occurred()) return NULL; |
9982 | } _resultobj = Py_BuildValue("l",_result); | |
9983 | return _resultobj; | |
9984 | } | |
9985 | ||
9986 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
9987 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9988 | PyObject * _resultobj; | |
9989 | wxRect * _result; | |
9990 | wxRegionIterator * _arg0; | |
9991 | PyObject * _argo0 = 0; | |
9992 | char *_kwnames[] = { "self", NULL }; | |
9993 | char _ptemp[128]; | |
9994 | ||
9995 | self = self; | |
9996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
9997 | return NULL; | |
9998 | if (_argo0) { | |
9999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
10002 | return NULL; | |
10003 | } | |
10004 | } | |
10005 | { | |
0e2ff151 | 10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10007 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
e6056257 | 10008 | |
0e2ff151 | 10009 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10010 | if (PyErr_Occurred()) return NULL; |
10011 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
10012 | _resultobj = Py_BuildValue("s",_ptemp); | |
10013 | return _resultobj; | |
10014 | } | |
10015 | ||
10016 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
10017 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject * _resultobj; | |
10019 | bool _result; | |
10020 | wxRegionIterator * _arg0; | |
10021 | PyObject * _argo0 = 0; | |
10022 | char *_kwnames[] = { "self", NULL }; | |
10023 | ||
10024 | self = self; | |
10025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
10026 | return NULL; | |
10027 | if (_argo0) { | |
10028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
10031 | return NULL; | |
10032 | } | |
10033 | } | |
10034 | { | |
0e2ff151 | 10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10036 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
e6056257 | 10037 | |
0e2ff151 | 10038 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10039 | if (PyErr_Occurred()) return NULL; |
10040 | } _resultobj = Py_BuildValue("i",_result); | |
10041 | return _resultobj; | |
10042 | } | |
10043 | ||
10044 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
10045 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10046 | PyObject * _resultobj; | |
10047 | wxRegionIterator * _arg0; | |
10048 | PyObject * _argo0 = 0; | |
10049 | char *_kwnames[] = { "self", NULL }; | |
10050 | ||
10051 | self = self; | |
10052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
10053 | return NULL; | |
10054 | if (_argo0) { | |
10055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
10058 | return NULL; | |
10059 | } | |
10060 | } | |
10061 | { | |
0e2ff151 | 10062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10063 | wxRegionIterator_Reset(_arg0); |
e6056257 | 10064 | |
0e2ff151 | 10065 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10066 | if (PyErr_Occurred()) return NULL; |
10067 | } Py_INCREF(Py_None); | |
10068 | _resultobj = Py_None; | |
10069 | return _resultobj; | |
10070 | } | |
10071 | ||
10072 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
10073 | (*self) ++; | |
10074 | } | |
10075 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10076 | PyObject * _resultobj; | |
10077 | wxRegionIterator * _arg0; | |
10078 | PyObject * _argo0 = 0; | |
10079 | char *_kwnames[] = { "self", NULL }; | |
10080 | ||
10081 | self = self; | |
10082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
10083 | return NULL; | |
10084 | if (_argo0) { | |
10085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
10088 | return NULL; | |
10089 | } | |
10090 | } | |
10091 | { | |
0e2ff151 | 10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10093 | wxRegionIterator_Next(_arg0); |
e6056257 | 10094 | |
0e2ff151 | 10095 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10096 | if (PyErr_Occurred()) return NULL; |
10097 | } Py_INCREF(Py_None); | |
10098 | _resultobj = Py_None; | |
10099 | return _resultobj; | |
10100 | } | |
10101 | ||
10102 | static PyMethodDef gdicMethods[] = { | |
10103 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
10104 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
10105 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
10106 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10107 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10108 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
10109 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10110 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
10111 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
10112 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
10113 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10114 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10115 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
10116 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
10117 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
10118 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
10119 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
10120 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
10121 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
10122 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
10123 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
10124 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
10125 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
10126 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
10127 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
10128 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
10129 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
10130 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
10131 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
10132 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
10133 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10134 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
10135 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
10136 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10137 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
10138 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10139 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
10140 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
10141 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10142 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
10143 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
10144 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
10145 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10146 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10147 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10148 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
10149 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10150 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
10151 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10152 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
10153 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
10154 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
10155 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
10156 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
10157 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
10158 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
c3bfa1cb | 10159 | { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
59988cd0 | 10160 | { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
c3bfa1cb RD |
10161 | { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, |
10162 | { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10163 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, |
10164 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
10165 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
10166 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
10167 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
10168 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
10169 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
10170 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
10171 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10172 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10173 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10174 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
10175 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10176 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10177 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10178 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10179 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
10180 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
10181 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
10182 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
10183 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
10184 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
10185 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10186 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
10187 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
10188 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
10189 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10190 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10191 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
383ea3d0 | 10192 | { "wxDC_SetClippingRect", (PyCFunction) _wrap_wxDC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10193 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
10194 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
10195 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
10196 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10197 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10198 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10199 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
10200 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
10201 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
10202 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
10203 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
10204 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
10205 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
10206 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
10207 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
10208 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
10209 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10210 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10211 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
10212 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10213 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10214 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10215 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10216 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
10217 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10218 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
10219 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
10220 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
10221 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10222 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
10223 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10224 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
10225 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10226 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10227 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
10228 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
10229 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10230 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
10231 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
10232 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
10233 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
10234 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
383ea3d0 | 10235 | { "wxDC_DrawRectangleRect", (PyCFunction) _wrap_wxDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10236 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
10237 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
10240 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e RD |
10241 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
10242 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10243 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
10244 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
10245 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
10246 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
10247 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
10248 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
10249 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
10250 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
10251 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
10252 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
10253 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
10254 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10255 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
10256 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10257 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 10258 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10259 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
10260 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
10261 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
10262 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10263 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10264 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10265 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10266 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10267 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10268 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10269 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
10270 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 10271 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10272 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
10273 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
10274 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
10275 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
10276 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
10277 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
70b76c7c | 10278 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10279 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
10280 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10281 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10282 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10283 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10284 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
10285 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10286 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10287 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10288 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10289 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10290 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
10292 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
10293 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
10294 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
10295 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
10296 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
10297 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
10302 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
10303 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10304 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
10305 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
40699168 RD |
10306 | { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, |
10307 | { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
10308 | { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
10309 | { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
10310 | { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
10311 | { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
10312 | { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10313 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
10314 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10315 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10316 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10317 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10318 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10319 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10320 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10321 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
10322 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
10323 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10324 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, | |
10325 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
10326 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10327 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10328 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10329 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10330 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10331 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10332 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10333 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10334 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
10335 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
10336 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
10337 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10341 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
10342 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10343 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10344 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
10345 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
10346 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
10347 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
10348 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
da0ddbd6 | 10349 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10350 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
10351 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10357 | { NULL, NULL } | |
10358 | }; | |
10359 | #ifdef __cplusplus | |
10360 | } | |
10361 | #endif | |
10362 | /* | |
10363 | * This table is used by the pointer type-checker | |
10364 | */ | |
10365 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
10366 | { "_signed_long","_long",0}, | |
10367 | { "_wxPrintQuality","_wxCoord",0}, | |
10368 | { "_wxPrintQuality","_int",0}, | |
10369 | { "_wxPrintQuality","_signed_int",0}, | |
10370 | { "_wxPrintQuality","_unsigned_int",0}, | |
10371 | { "_wxPrintQuality","_wxWindowID",0}, | |
10372 | { "_wxPrintQuality","_uint",0}, | |
10373 | { "_wxPrintQuality","_EBool",0}, | |
10374 | { "_wxPrintQuality","_size_t",0}, | |
10375 | { "_wxPrintQuality","_time_t",0}, | |
10376 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, | |
10377 | { "_byte","_unsigned_char",0}, | |
10378 | { "_long","_unsigned_long",0}, | |
10379 | { "_long","_signed_long",0}, | |
10380 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
10381 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
10382 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
10383 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, | |
10384 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
e6056257 RD |
10385 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
10386 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
10387 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
e6056257 RD |
10388 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
10389 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
10390 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
10391 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
c3bfa1cb RD |
10392 | { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC}, |
10393 | { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC}, | |
e6056257 RD |
10394 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
10395 | { "_size_t","_wxCoord",0}, | |
10396 | { "_size_t","_wxPrintQuality",0}, | |
10397 | { "_size_t","_time_t",0}, | |
10398 | { "_size_t","_unsigned_int",0}, | |
10399 | { "_size_t","_int",0}, | |
10400 | { "_size_t","_wxWindowID",0}, | |
10401 | { "_size_t","_uint",0}, | |
10402 | { "_uint","_wxCoord",0}, | |
10403 | { "_uint","_wxPrintQuality",0}, | |
10404 | { "_uint","_time_t",0}, | |
10405 | { "_uint","_size_t",0}, | |
10406 | { "_uint","_unsigned_int",0}, | |
10407 | { "_uint","_int",0}, | |
10408 | { "_uint","_wxWindowID",0}, | |
10409 | { "_wxChar","_char",0}, | |
10410 | { "_char","_wxChar",0}, | |
c3bfa1cb | 10411 | { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC}, |
e6056257 RD |
10412 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
10413 | { "_EBool","_wxCoord",0}, | |
10414 | { "_EBool","_wxPrintQuality",0}, | |
10415 | { "_EBool","_signed_int",0}, | |
10416 | { "_EBool","_int",0}, | |
10417 | { "_EBool","_wxWindowID",0}, | |
10418 | { "_unsigned_long","_long",0}, | |
10419 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
10420 | { "_signed_int","_wxCoord",0}, | |
10421 | { "_signed_int","_wxPrintQuality",0}, | |
10422 | { "_signed_int","_EBool",0}, | |
10423 | { "_signed_int","_wxWindowID",0}, | |
10424 | { "_signed_int","_int",0}, | |
10425 | { "_WXTYPE","_short",0}, | |
10426 | { "_WXTYPE","_signed_short",0}, | |
10427 | { "_WXTYPE","_unsigned_short",0}, | |
10428 | { "_unsigned_short","_WXTYPE",0}, | |
10429 | { "_unsigned_short","_short",0}, | |
10430 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
10431 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
10432 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
10433 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
e6056257 RD |
10434 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
10435 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
10436 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
10437 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
c3bfa1cb RD |
10438 | { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject}, |
10439 | { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject}, | |
e6056257 RD |
10440 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
10441 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
10442 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, | |
10443 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
10444 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
10445 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, | |
10446 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
10447 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
10448 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
e6056257 RD |
10449 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
10450 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
10451 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
10452 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
10453 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
10454 | { "_signed_short","_WXTYPE",0}, | |
10455 | { "_signed_short","_short",0}, | |
c3bfa1cb RD |
10456 | { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC}, |
10457 | { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC}, | |
e6056257 RD |
10458 | { "_unsigned_char","_byte",0}, |
10459 | { "_unsigned_int","_wxCoord",0}, | |
10460 | { "_unsigned_int","_wxPrintQuality",0}, | |
10461 | { "_unsigned_int","_time_t",0}, | |
10462 | { "_unsigned_int","_size_t",0}, | |
10463 | { "_unsigned_int","_uint",0}, | |
10464 | { "_unsigned_int","_wxWindowID",0}, | |
10465 | { "_unsigned_int","_int",0}, | |
10466 | { "_short","_WXTYPE",0}, | |
10467 | { "_short","_unsigned_short",0}, | |
10468 | { "_short","_signed_short",0}, | |
10469 | { "_wxWindowID","_wxCoord",0}, | |
10470 | { "_wxWindowID","_wxPrintQuality",0}, | |
10471 | { "_wxWindowID","_time_t",0}, | |
10472 | { "_wxWindowID","_size_t",0}, | |
10473 | { "_wxWindowID","_EBool",0}, | |
10474 | { "_wxWindowID","_uint",0}, | |
10475 | { "_wxWindowID","_int",0}, | |
10476 | { "_wxWindowID","_signed_int",0}, | |
10477 | { "_wxWindowID","_unsigned_int",0}, | |
10478 | { "_int","_wxCoord",0}, | |
10479 | { "_int","_wxPrintQuality",0}, | |
10480 | { "_int","_time_t",0}, | |
10481 | { "_int","_size_t",0}, | |
10482 | { "_int","_EBool",0}, | |
10483 | { "_int","_uint",0}, | |
10484 | { "_int","_wxWindowID",0}, | |
10485 | { "_int","_unsigned_int",0}, | |
10486 | { "_int","_signed_int",0}, | |
10487 | { "_time_t","_wxCoord",0}, | |
10488 | { "_time_t","_wxPrintQuality",0}, | |
10489 | { "_time_t","_unsigned_int",0}, | |
10490 | { "_time_t","_int",0}, | |
10491 | { "_time_t","_wxWindowID",0}, | |
10492 | { "_time_t","_uint",0}, | |
10493 | { "_time_t","_size_t",0}, | |
10494 | { "_wxCoord","_int",0}, | |
10495 | { "_wxCoord","_signed_int",0}, | |
10496 | { "_wxCoord","_unsigned_int",0}, | |
10497 | { "_wxCoord","_wxWindowID",0}, | |
10498 | { "_wxCoord","_uint",0}, | |
10499 | { "_wxCoord","_EBool",0}, | |
10500 | { "_wxCoord","_size_t",0}, | |
10501 | { "_wxCoord","_time_t",0}, | |
10502 | { "_wxCoord","_wxPrintQuality",0}, | |
10503 | {0,0,0}}; | |
10504 | ||
10505 | static PyObject *SWIG_globals; | |
10506 | #ifdef __cplusplus | |
10507 | extern "C" | |
10508 | #endif | |
10509 | SWIGEXPORT(void) initgdic() { | |
10510 | PyObject *m, *d; | |
10511 | SWIG_globals = SWIG_newvarlink(); | |
10512 | m = Py_InitModule("gdic", gdicMethods); | |
10513 | d = PyModule_GetDict(m); | |
00360d46 RD |
10514 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
10515 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
10516 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
10517 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
10518 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
10519 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
10520 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
10521 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
10522 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
10523 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
e6056257 RD |
10524 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
10525 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
10526 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
10527 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
10528 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
10529 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
10530 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
10531 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
10532 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
10533 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
10534 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
10535 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
10536 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
10537 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
10538 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
10539 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
10540 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
10541 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
10542 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
10543 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
10544 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
10545 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
10546 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
10547 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
10548 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
10549 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
10550 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
10551 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
10552 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
10553 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
10554 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
10555 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
10556 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
10557 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
10558 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
10559 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
10560 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
10561 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
10562 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
10563 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
10564 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
10565 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
10566 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
10567 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); | |
10568 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
10569 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
10570 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
e6056257 RD |
10571 | { |
10572 | int i; | |
10573 | for (i = 0; _swig_mapping[i].n1; i++) | |
10574 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10575 | } | |
10576 | } |