]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/gdi.cpp |
70551f47 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
70551f47 RD |
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) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
70551f47 RD |
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 *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
70551f47 RD |
54 | #define SWIG_init initgdic |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
21f8d7ea | 59 | #include <wx/imaglist.h> |
059a841c RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
a884bee5 | 64 | #include <wx/dcbuffer.h> |
a323d3bd | 65 | #include <wx/iconbndl.h> |
70551f47 | 66 | |
70551f47 RD |
67 | |
68 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
69 | PyObject* o2; | |
70 | PyObject* o3; | |
71 | ||
3bcd5e1c | 72 | if (!target) { |
70551f47 | 73 | target = o; |
3bcd5e1c | 74 | } else if (target == Py_None) { |
70551f47 RD |
75 | Py_DECREF(Py_None); |
76 | target = o; | |
3bcd5e1c | 77 | } else { |
70551f47 RD |
78 | if (!PyTuple_Check(target)) { |
79 | o2 = target; | |
80 | target = PyTuple_New(1); | |
81 | PyTuple_SetItem(target, 0, o2); | |
82 | } | |
3bcd5e1c RD |
83 | o3 = PyTuple_New(1); |
84 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
85 | |
86 | o2 = target; | |
3bcd5e1c RD |
87 | target = PySequence_Concat(o2, o3); |
88 | Py_DECREF(o2); | |
70551f47 RD |
89 | Py_DECREF(o3); |
90 | } | |
91 | return target; | |
92 | } | |
9a74fcaf RD |
93 | |
94 | // Put some wx default wxChar* values into wxStrings. | |
95 | static const wxString wxPyEmptyString(wxT("")); | |
fbcadfca RD |
96 | // Implementations of some alternate "constructors" |
97 | ||
70551f47 RD |
98 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
99 | return new wxBitmap(width, height, depth); | |
100 | } | |
101 | ||
fbcadfca RD |
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 | ||
9d6da64a | 120 | |
fbcadfca RD |
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 | ||
9d6da64a RD |
139 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
140 | return new wxBitmap(bits, width, height, depth); | |
141 | } | |
9e689c06 | 142 | |
7ff49f0c | 143 | |
9d6da64a RD |
144 | // #ifdef __WXMSW__ |
145 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
146 | // int width, int height, int depth = 1) { | |
147 | // if (! PyString_Check(data)) { | |
148 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
149 | // return NULL; | |
150 | // } | |
151 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
152 | // } | |
153 | // #endif | |
8bf5d46e | 154 | |
70551f47 RD |
155 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
156 | return new wxMask(bitmap, colour); | |
fbcadfca RD |
157 | } |
158 | // Implementations of some alternate "constructors" | |
159 | wxIcon* wxEmptyIcon() { | |
160 | return new wxIcon(); | |
161 | } | |
162 | ||
163 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
164 | char** cArray = NULL; | |
165 | wxIcon* icon; | |
166 | ||
167 | cArray = ConvertListOfStrings(listOfStrings); | |
168 | if (! cArray) | |
169 | return NULL; | |
170 | icon = new wxIcon(cArray); | |
171 | delete [] cArray; | |
172 | return icon; | |
70551f47 | 173 | } |
4be61064 RD |
174 | |
175 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
176 | wxIcon* icon = new wxIcon(); | |
177 | icon->CopyFromBitmap(bmp); | |
178 | return icon; | |
179 | } | |
70551f47 | 180 | // Alternate 'constructor' |
b26e2dc4 | 181 | wxCursor* wxPyStockCursor(int id) { |
70551f47 RD |
182 | return new wxCursor(id); |
183 | } | |
184 | // Alternate 'constructor' | |
185 | wxColour* wxNamedColour(const wxString& colorName) { | |
186 | return new wxColour(colorName); | |
187 | } | |
65191ae8 RD |
188 | |
189 | class wxPyPen : public wxPen { | |
190 | public: | |
191 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
192 | : wxPen(colour, width, style) | |
193 | { m_dash = NULL; } | |
194 | ~wxPyPen() { | |
195 | if (m_dash) | |
05f30eec | 196 | delete [] m_dash; |
65191ae8 RD |
197 | } |
198 | ||
199 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
05f30eec RD |
200 | if (m_dash) |
201 | delete [] m_dash; | |
65191ae8 | 202 | m_dash = new wxDash[nb_dashes]; |
05f30eec | 203 | for (int i=0; i<nb_dashes; i++) { |
65191ae8 | 204 | m_dash[i] = dash[i]; |
05f30eec | 205 | } |
65191ae8 RD |
206 | wxPen::SetDashes(nb_dashes, m_dash); |
207 | } | |
208 | ||
209 | private: | |
210 | wxDash* m_dash; | |
211 | }; | |
3bcd5e1c RD |
212 | |
213 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
214 | *x1 = dc->MinX(); | |
215 | *y1 = dc->MinY(); | |
216 | *x2 = dc->MaxX(); | |
217 | *y2 = dc->MaxY(); | |
218 | } | |
70551f47 RD |
219 | // Alternate 'constructor' |
220 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
221 | return new wxMemoryDC(oldDC); | |
222 | } | |
21f8d7ea RD |
223 | |
224 | #if 0 | |
70551f47 RD |
225 | extern wxFont * wxNORMAL_FONT; |
226 | extern wxFont * wxSMALL_FONT; | |
227 | extern wxFont * wxITALIC_FONT; | |
228 | extern wxFont * wxSWISS_FONT; | |
229 | extern wxPen * wxRED_PEN; | |
230 | extern wxPen * wxCYAN_PEN; | |
231 | extern wxPen * wxGREEN_PEN; | |
232 | extern wxPen * wxBLACK_PEN; | |
233 | extern wxPen * wxWHITE_PEN; | |
234 | extern wxPen * wxTRANSPARENT_PEN; | |
235 | extern wxPen * wxBLACK_DASHED_PEN; | |
236 | extern wxPen * wxGREY_PEN; | |
237 | extern wxPen * wxMEDIUM_GREY_PEN; | |
238 | extern wxPen * wxLIGHT_GREY_PEN; | |
239 | extern wxBrush * wxBLUE_BRUSH; | |
240 | extern wxBrush * wxGREEN_BRUSH; | |
241 | extern wxBrush * wxWHITE_BRUSH; | |
242 | extern wxBrush * wxBLACK_BRUSH; | |
243 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
244 | extern wxBrush * wxCYAN_BRUSH; | |
245 | extern wxBrush * wxRED_BRUSH; | |
246 | extern wxBrush * wxGREY_BRUSH; | |
247 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
248 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
249 | extern wxColour * wxBLACK; | |
250 | extern wxColour * wxWHITE; | |
251 | extern wxColour * wxRED; | |
252 | extern wxColour * wxBLUE; | |
253 | extern wxColour * wxGREEN; | |
254 | extern wxColour * wxCYAN; | |
255 | extern wxColour * wxLIGHT_GREY; | |
256 | extern wxCursor * wxSTANDARD_CURSOR; | |
257 | extern wxCursor * wxHOURGLASS_CURSOR; | |
258 | extern wxCursor * wxCROSS_CURSOR; | |
259 | extern wxBitmap wxNullBitmap; | |
260 | extern wxIcon wxNullIcon; | |
261 | extern wxCursor wxNullCursor; | |
262 | extern wxPen wxNullPen; | |
263 | extern wxBrush wxNullBrush; | |
264 | extern wxPalette wxNullPalette; | |
265 | extern wxFont wxNullFont; | |
266 | extern wxColour wxNullColour; | |
5e40f9dd RD |
267 | extern wxFontList * wxTheFontList; |
268 | extern wxPenList * wxThePenList; | |
65191ae8 | 269 | extern wxBrushList * wxTheBrushList; |
5e40f9dd | 270 | extern wxColourDatabase * wxTheColourDatabase; |
21f8d7ea | 271 | |
2d091820 RD |
272 | #endif |
273 | #ifdef __cplusplus | |
274 | extern "C" { | |
21f8d7ea | 275 | #endif |
107e4716 | 276 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
277 | PyObject * _resultobj; |
278 | wxBitmap * _result; | |
279 | int _arg0; | |
280 | int _arg1; | |
2d091820 | 281 | int _arg2 = (int ) -1; |
107e4716 | 282 | char *_kwnames[] = { "width","height","depth", NULL }; |
70551f47 RD |
283 | char _ptemp[128]; |
284 | ||
285 | self = self; | |
107e4716 | 286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 287 | return NULL; |
ab9bc19b | 288 | { |
474c48f9 | 289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 290 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
ab9bc19b | 291 | |
474c48f9 | 292 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 293 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
294 | } if (_result) { |
295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
296 | _resultobj = Py_BuildValue("s",_ptemp); | |
297 | } else { | |
298 | Py_INCREF(Py_None); | |
299 | _resultobj = Py_None; | |
300 | } | |
70551f47 RD |
301 | return _resultobj; |
302 | } | |
303 | ||
fbcadfca RD |
304 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
305 | PyObject * _resultobj; | |
306 | wxBitmap * _result; | |
307 | PyObject * _arg0; | |
308 | PyObject * _obj0 = 0; | |
309 | char *_kwnames[] = { "listOfStrings", NULL }; | |
310 | char _ptemp[128]; | |
311 | ||
312 | self = self; | |
313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
314 | return NULL; | |
315 | { | |
316 | _arg0 = _obj0; | |
317 | } | |
318 | { | |
474c48f9 | 319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 320 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
fbcadfca | 321 | |
474c48f9 | 322 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 323 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
324 | } if (_result) { |
325 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
326 | _resultobj = Py_BuildValue("s",_ptemp); | |
327 | } else { | |
328 | Py_INCREF(Py_None); | |
329 | _resultobj = Py_None; | |
330 | } | |
331 | return _resultobj; | |
332 | } | |
333 | ||
334 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
335 | PyObject * _resultobj; | |
336 | wxBitmap * _result; | |
337 | wxIcon * _arg0; | |
338 | PyObject * _argo0 = 0; | |
339 | char *_kwnames[] = { "icon", NULL }; | |
340 | char _ptemp[128]; | |
341 | ||
342 | self = self; | |
343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
344 | return NULL; | |
345 | if (_argo0) { | |
346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
349 | return NULL; | |
350 | } | |
351 | } | |
352 | { | |
474c48f9 | 353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 354 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
fbcadfca | 355 | |
474c48f9 | 356 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 357 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
358 | } if (_result) { |
359 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
360 | _resultobj = Py_BuildValue("s",_ptemp); | |
361 | } else { | |
362 | Py_INCREF(Py_None); | |
363 | _resultobj = Py_None; | |
364 | } | |
365 | return _resultobj; | |
366 | } | |
367 | ||
9d6da64a RD |
368 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
369 | PyObject * _resultobj; | |
370 | wxBitmap * _result; | |
371 | char * _arg0; | |
372 | int _arg1; | |
373 | int _arg2; | |
374 | int _arg3 = (int ) 1; | |
375 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
376 | char _ptemp[128]; | |
377 | ||
378 | self = self; | |
379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
380 | return NULL; | |
381 | { | |
474c48f9 | 382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 383 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
9d6da64a | 384 | |
474c48f9 | 385 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
386 | if (PyErr_Occurred()) return NULL; |
387 | } if (_result) { | |
388 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
389 | _resultobj = Py_BuildValue("s",_ptemp); | |
390 | } else { | |
391 | Py_INCREF(Py_None); | |
392 | _resultobj = Py_None; | |
393 | } | |
394 | return _resultobj; | |
395 | } | |
396 | ||
107e4716 | 397 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
398 | PyObject * _resultobj; |
399 | wxMask * _result; | |
400 | wxBitmap * _arg0; | |
401 | wxColour * _arg1; | |
2d091820 | 402 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
403 | wxColour temp; |
404 | PyObject * _obj1 = 0; | |
107e4716 | 405 | char *_kwnames[] = { "bitmap","colour", NULL }; |
70551f47 RD |
406 | char _ptemp[128]; |
407 | ||
408 | self = self; | |
f6bcfd97 | 409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 410 | return NULL; |
2d091820 RD |
411 | if (_argo0) { |
412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
415 | return NULL; | |
416 | } | |
417 | } | |
f6bcfd97 BP |
418 | { |
419 | _arg1 = &temp; | |
420 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 421 | return NULL; |
f6bcfd97 | 422 | } |
ab9bc19b | 423 | { |
474c48f9 | 424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 425 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
ab9bc19b | 426 | |
474c48f9 | 427 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 428 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
429 | } if (_result) { |
430 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
431 | _resultobj = Py_BuildValue("s",_ptemp); | |
432 | } else { | |
433 | Py_INCREF(Py_None); | |
434 | _resultobj = Py_None; | |
435 | } | |
70551f47 RD |
436 | return _resultobj; |
437 | } | |
438 | ||
fbcadfca RD |
439 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
440 | PyObject * _resultobj; | |
441 | wxIcon * _result; | |
442 | char *_kwnames[] = { NULL }; | |
443 | char _ptemp[128]; | |
444 | ||
445 | self = self; | |
446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
447 | return NULL; | |
448 | { | |
474c48f9 | 449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 450 | _result = (wxIcon *)wxEmptyIcon(); |
fbcadfca | 451 | |
474c48f9 | 452 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 453 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
454 | } if (_result) { |
455 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
456 | _resultobj = Py_BuildValue("s",_ptemp); | |
457 | } else { | |
458 | Py_INCREF(Py_None); | |
459 | _resultobj = Py_None; | |
460 | } | |
461 | return _resultobj; | |
462 | } | |
463 | ||
464 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
465 | PyObject * _resultobj; | |
466 | wxIcon * _result; | |
467 | PyObject * _arg0; | |
468 | PyObject * _obj0 = 0; | |
469 | char *_kwnames[] = { "listOfStrings", NULL }; | |
470 | char _ptemp[128]; | |
471 | ||
472 | self = self; | |
473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
474 | return NULL; | |
475 | { | |
476 | _arg0 = _obj0; | |
477 | } | |
478 | { | |
474c48f9 | 479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 480 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
fbcadfca | 481 | |
474c48f9 | 482 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 483 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
484 | } if (_result) { |
485 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
486 | _resultobj = Py_BuildValue("s",_ptemp); | |
487 | } else { | |
488 | Py_INCREF(Py_None); | |
489 | _resultobj = Py_None; | |
490 | } | |
491 | return _resultobj; | |
492 | } | |
493 | ||
4be61064 RD |
494 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
495 | PyObject * _resultobj; | |
496 | wxIcon * _result; | |
497 | wxBitmap * _arg0; | |
498 | PyObject * _argo0 = 0; | |
499 | char *_kwnames[] = { "bmp", NULL }; | |
500 | char _ptemp[128]; | |
501 | ||
502 | self = self; | |
503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
504 | return NULL; | |
505 | if (_argo0) { | |
506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
509 | return NULL; | |
510 | } | |
511 | } | |
512 | { | |
513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 514 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); |
4be61064 RD |
515 | |
516 | wxPyEndAllowThreads(__tstate); | |
517 | if (PyErr_Occurred()) return NULL; | |
518 | } if (_result) { | |
519 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
520 | _resultobj = Py_BuildValue("s",_ptemp); | |
521 | } else { | |
522 | Py_INCREF(Py_None); | |
523 | _resultobj = Py_None; | |
524 | } | |
525 | return _resultobj; | |
526 | } | |
527 | ||
107e4716 | 528 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
529 | PyObject * _resultobj; |
530 | wxCursor * _result; | |
531 | int _arg0; | |
107e4716 | 532 | char *_kwnames[] = { "id", NULL }; |
70551f47 RD |
533 | char _ptemp[128]; |
534 | ||
535 | self = self; | |
107e4716 | 536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
70551f47 | 537 | return NULL; |
ab9bc19b | 538 | { |
474c48f9 | 539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 540 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
ab9bc19b | 541 | |
474c48f9 | 542 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 543 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
544 | } if (_result) { |
545 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
546 | _resultobj = Py_BuildValue("s",_ptemp); | |
547 | } else { | |
548 | Py_INCREF(Py_None); | |
549 | _resultobj = Py_None; | |
550 | } | |
70551f47 RD |
551 | return _resultobj; |
552 | } | |
553 | ||
107e4716 | 554 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
555 | PyObject * _resultobj; |
556 | wxColour * _result; | |
557 | wxString * _arg0; | |
558 | PyObject * _obj0 = 0; | |
107e4716 | 559 | char *_kwnames[] = { "colorName", NULL }; |
70551f47 RD |
560 | char _ptemp[128]; |
561 | ||
562 | self = self; | |
107e4716 | 563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
70551f47 RD |
564 | return NULL; |
565 | { | |
c8bc7bb8 RD |
566 | _arg0 = wxString_in_helper(_obj0); |
567 | if (_arg0 == NULL) | |
70551f47 | 568 | return NULL; |
70551f47 | 569 | } |
ab9bc19b | 570 | { |
474c48f9 | 571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 572 | _result = (wxColour *)wxNamedColour(*_arg0); |
ab9bc19b | 573 | |
474c48f9 | 574 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 575 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
576 | } if (_result) { |
577 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
578 | _resultobj = Py_BuildValue("s",_ptemp); | |
579 | } else { | |
580 | Py_INCREF(Py_None); | |
581 | _resultobj = Py_None; | |
582 | } | |
70551f47 RD |
583 | { |
584 | if (_obj0) | |
585 | delete _arg0; | |
586 | } | |
587 | return _resultobj; | |
588 | } | |
589 | ||
107e4716 | 590 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
591 | PyObject * _resultobj; |
592 | wxMemoryDC * _result; | |
593 | wxDC * _arg0; | |
2d091820 | 594 | PyObject * _argo0 = 0; |
107e4716 | 595 | char *_kwnames[] = { "oldDC", NULL }; |
70551f47 RD |
596 | char _ptemp[128]; |
597 | ||
598 | self = self; | |
107e4716 | 599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
70551f47 | 600 | return NULL; |
2d091820 RD |
601 | if (_argo0) { |
602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
605 | return NULL; | |
606 | } | |
607 | } | |
ab9bc19b | 608 | { |
474c48f9 | 609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 610 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
ab9bc19b | 611 | |
474c48f9 | 612 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 613 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
614 | } if (_result) { |
615 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
616 | _resultobj = Py_BuildValue("s",_ptemp); | |
617 | } else { | |
618 | Py_INCREF(Py_None); | |
619 | _resultobj = Py_None; | |
620 | } | |
70551f47 RD |
621 | return _resultobj; |
622 | } | |
623 | ||
624 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
625 | ||
626 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
627 | return 1; | |
628 | } | |
629 | ||
630 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
631 | PyObject * pyobj; | |
632 | char ptemp[128]; | |
633 | ||
634 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
635 | pyobj = PyString_FromString(ptemp); | |
636 | return pyobj; | |
637 | } | |
638 | ||
639 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
640 | ||
641 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
642 | return 1; | |
643 | } | |
644 | ||
645 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
646 | PyObject * pyobj; | |
647 | char ptemp[128]; | |
648 | ||
649 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
650 | pyobj = PyString_FromString(ptemp); | |
651 | return pyobj; | |
652 | } | |
653 | ||
654 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
655 | ||
656 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
657 | return 1; | |
658 | } | |
659 | ||
660 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
661 | PyObject * pyobj; | |
662 | char ptemp[128]; | |
663 | ||
664 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
665 | pyobj = PyString_FromString(ptemp); | |
666 | return pyobj; | |
667 | } | |
668 | ||
669 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
670 | ||
671 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
672 | return 1; | |
673 | } | |
674 | ||
675 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
676 | PyObject * pyobj; | |
677 | char ptemp[128]; | |
678 | ||
679 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
680 | pyobj = PyString_FromString(ptemp); | |
681 | return pyobj; | |
682 | } | |
683 | ||
684 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
685 | ||
686 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
687 | return 1; | |
688 | } | |
689 | ||
690 | static PyObject *_wrap_wxRED_PEN_get() { | |
691 | PyObject * pyobj; | |
692 | char ptemp[128]; | |
693 | ||
694 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
695 | pyobj = PyString_FromString(ptemp); | |
696 | return pyobj; | |
697 | } | |
698 | ||
699 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
700 | ||
701 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
702 | return 1; | |
703 | } | |
704 | ||
705 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
706 | PyObject * pyobj; | |
707 | char ptemp[128]; | |
708 | ||
709 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
710 | pyobj = PyString_FromString(ptemp); | |
711 | return pyobj; | |
712 | } | |
713 | ||
714 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
715 | ||
716 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
717 | return 1; | |
718 | } | |
719 | ||
720 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
721 | PyObject * pyobj; | |
722 | char ptemp[128]; | |
723 | ||
724 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
725 | pyobj = PyString_FromString(ptemp); | |
726 | return pyobj; | |
727 | } | |
728 | ||
729 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
730 | ||
731 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
732 | return 1; | |
733 | } | |
734 | ||
735 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
736 | PyObject * pyobj; | |
737 | char ptemp[128]; | |
738 | ||
739 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
740 | pyobj = PyString_FromString(ptemp); | |
741 | return pyobj; | |
742 | } | |
743 | ||
744 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
745 | ||
746 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
747 | return 1; | |
748 | } | |
749 | ||
750 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
751 | PyObject * pyobj; | |
752 | char ptemp[128]; | |
753 | ||
754 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
755 | pyobj = PyString_FromString(ptemp); | |
756 | return pyobj; | |
757 | } | |
758 | ||
759 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
760 | ||
761 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
762 | return 1; | |
763 | } | |
764 | ||
765 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
766 | PyObject * pyobj; | |
767 | char ptemp[128]; | |
768 | ||
769 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
770 | pyobj = PyString_FromString(ptemp); | |
771 | return pyobj; | |
772 | } | |
773 | ||
774 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
775 | ||
776 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
777 | return 1; | |
778 | } | |
779 | ||
780 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
781 | PyObject * pyobj; | |
782 | char ptemp[128]; | |
783 | ||
784 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
785 | pyobj = PyString_FromString(ptemp); | |
786 | return pyobj; | |
787 | } | |
788 | ||
789 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
790 | ||
791 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
792 | return 1; | |
793 | } | |
794 | ||
795 | static PyObject *_wrap_wxGREY_PEN_get() { | |
796 | PyObject * pyobj; | |
797 | char ptemp[128]; | |
798 | ||
799 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
800 | pyobj = PyString_FromString(ptemp); | |
801 | return pyobj; | |
802 | } | |
803 | ||
804 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
805 | ||
806 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
807 | return 1; | |
808 | } | |
809 | ||
810 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
811 | PyObject * pyobj; | |
812 | char ptemp[128]; | |
813 | ||
814 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
815 | pyobj = PyString_FromString(ptemp); | |
816 | return pyobj; | |
817 | } | |
818 | ||
819 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
820 | ||
821 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
822 | return 1; | |
823 | } | |
824 | ||
825 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
826 | PyObject * pyobj; | |
827 | char ptemp[128]; | |
828 | ||
829 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
830 | pyobj = PyString_FromString(ptemp); | |
831 | return pyobj; | |
832 | } | |
833 | ||
834 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
835 | ||
836 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
837 | return 1; | |
838 | } | |
839 | ||
840 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
841 | PyObject * pyobj; | |
842 | char ptemp[128]; | |
843 | ||
844 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
845 | pyobj = PyString_FromString(ptemp); | |
846 | return pyobj; | |
847 | } | |
848 | ||
849 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
850 | ||
851 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
852 | return 1; | |
853 | } | |
854 | ||
855 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
856 | PyObject * pyobj; | |
857 | char ptemp[128]; | |
858 | ||
859 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
860 | pyobj = PyString_FromString(ptemp); | |
861 | return pyobj; | |
862 | } | |
863 | ||
864 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
865 | ||
866 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
867 | return 1; | |
868 | } | |
869 | ||
870 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
871 | PyObject * pyobj; | |
872 | char ptemp[128]; | |
873 | ||
874 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
875 | pyobj = PyString_FromString(ptemp); | |
876 | return pyobj; | |
877 | } | |
878 | ||
879 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
880 | ||
881 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
882 | return 1; | |
883 | } | |
884 | ||
885 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
886 | PyObject * pyobj; | |
887 | char ptemp[128]; | |
888 | ||
889 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
890 | pyobj = PyString_FromString(ptemp); | |
891 | return pyobj; | |
892 | } | |
893 | ||
894 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
895 | ||
896 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
897 | return 1; | |
898 | } | |
899 | ||
900 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
901 | PyObject * pyobj; | |
902 | char ptemp[128]; | |
903 | ||
904 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
905 | pyobj = PyString_FromString(ptemp); | |
906 | return pyobj; | |
907 | } | |
908 | ||
909 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
910 | ||
911 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
912 | return 1; | |
913 | } | |
914 | ||
915 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
916 | PyObject * pyobj; | |
917 | char ptemp[128]; | |
918 | ||
919 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
920 | pyobj = PyString_FromString(ptemp); | |
921 | return pyobj; | |
922 | } | |
923 | ||
924 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
925 | ||
926 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
927 | return 1; | |
928 | } | |
929 | ||
930 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
931 | PyObject * pyobj; | |
932 | char ptemp[128]; | |
933 | ||
934 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
935 | pyobj = PyString_FromString(ptemp); | |
936 | return pyobj; | |
937 | } | |
938 | ||
939 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
940 | ||
941 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
942 | return 1; | |
943 | } | |
944 | ||
945 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
946 | PyObject * pyobj; | |
947 | char ptemp[128]; | |
948 | ||
949 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
950 | pyobj = PyString_FromString(ptemp); | |
951 | return pyobj; | |
952 | } | |
953 | ||
954 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
955 | ||
956 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
957 | return 1; | |
958 | } | |
959 | ||
960 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
961 | PyObject * pyobj; | |
962 | char ptemp[128]; | |
963 | ||
964 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
965 | pyobj = PyString_FromString(ptemp); | |
966 | return pyobj; | |
967 | } | |
968 | ||
969 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
970 | ||
971 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
972 | return 1; | |
973 | } | |
974 | ||
975 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
976 | PyObject * pyobj; | |
977 | char ptemp[128]; | |
978 | ||
979 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
980 | pyobj = PyString_FromString(ptemp); | |
981 | return pyobj; | |
982 | } | |
983 | ||
984 | static int _wrap_wxBLACK_set(PyObject *val) { | |
985 | ||
986 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
987 | return 1; | |
988 | } | |
989 | ||
990 | static PyObject *_wrap_wxBLACK_get() { | |
991 | PyObject * pyobj; | |
992 | char ptemp[128]; | |
993 | ||
994 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
995 | pyobj = PyString_FromString(ptemp); | |
996 | return pyobj; | |
997 | } | |
998 | ||
999 | static int _wrap_wxWHITE_set(PyObject *val) { | |
1000 | ||
1001 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
1002 | return 1; | |
1003 | } | |
1004 | ||
1005 | static PyObject *_wrap_wxWHITE_get() { | |
1006 | PyObject * pyobj; | |
1007 | char ptemp[128]; | |
1008 | ||
1009 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1010 | pyobj = PyString_FromString(ptemp); | |
1011 | return pyobj; | |
1012 | } | |
1013 | ||
1014 | static int _wrap_wxRED_set(PyObject *val) { | |
1015 | ||
1016 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1017 | return 1; | |
1018 | } | |
1019 | ||
1020 | static PyObject *_wrap_wxRED_get() { | |
1021 | PyObject * pyobj; | |
1022 | char ptemp[128]; | |
1023 | ||
1024 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1025 | pyobj = PyString_FromString(ptemp); | |
1026 | return pyobj; | |
1027 | } | |
1028 | ||
1029 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1030 | ||
1031 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1032 | return 1; | |
1033 | } | |
1034 | ||
1035 | static PyObject *_wrap_wxBLUE_get() { | |
1036 | PyObject * pyobj; | |
1037 | char ptemp[128]; | |
1038 | ||
1039 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1040 | pyobj = PyString_FromString(ptemp); | |
1041 | return pyobj; | |
1042 | } | |
1043 | ||
1044 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1045 | ||
1046 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1047 | return 1; | |
1048 | } | |
1049 | ||
1050 | static PyObject *_wrap_wxGREEN_get() { | |
1051 | PyObject * pyobj; | |
1052 | char ptemp[128]; | |
1053 | ||
1054 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1055 | pyobj = PyString_FromString(ptemp); | |
1056 | return pyobj; | |
1057 | } | |
1058 | ||
1059 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1060 | ||
1061 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1062 | return 1; | |
1063 | } | |
1064 | ||
1065 | static PyObject *_wrap_wxCYAN_get() { | |
1066 | PyObject * pyobj; | |
1067 | char ptemp[128]; | |
1068 | ||
1069 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1070 | pyobj = PyString_FromString(ptemp); | |
1071 | return pyobj; | |
1072 | } | |
1073 | ||
1074 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1075 | ||
1076 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1077 | return 1; | |
1078 | } | |
1079 | ||
1080 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1081 | PyObject * pyobj; | |
1082 | char ptemp[128]; | |
1083 | ||
1084 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1085 | pyobj = PyString_FromString(ptemp); | |
1086 | return pyobj; | |
1087 | } | |
1088 | ||
1089 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1090 | ||
1091 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1092 | return 1; | |
1093 | } | |
1094 | ||
1095 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1096 | PyObject * pyobj; | |
1097 | char ptemp[128]; | |
1098 | ||
1099 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1100 | pyobj = PyString_FromString(ptemp); | |
1101 | return pyobj; | |
1102 | } | |
1103 | ||
1104 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1105 | ||
1106 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1107 | return 1; | |
1108 | } | |
1109 | ||
1110 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1111 | PyObject * pyobj; | |
1112 | char ptemp[128]; | |
1113 | ||
1114 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1115 | pyobj = PyString_FromString(ptemp); | |
1116 | return pyobj; | |
1117 | } | |
1118 | ||
1119 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1120 | ||
1121 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1122 | return 1; | |
1123 | } | |
1124 | ||
1125 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1126 | PyObject * pyobj; | |
1127 | char ptemp[128]; | |
1128 | ||
1129 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1130 | pyobj = PyString_FromString(ptemp); | |
1131 | return pyobj; | |
1132 | } | |
1133 | ||
1134 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1135 | ||
1136 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1137 | return 1; | |
1138 | } | |
1139 | ||
1140 | static PyObject *_wrap_wxNullBitmap_get() { | |
1141 | PyObject * pyobj; | |
1142 | char ptemp[128]; | |
1143 | ||
1144 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1145 | pyobj = PyString_FromString(ptemp); | |
1146 | return pyobj; | |
1147 | } | |
1148 | ||
1149 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1150 | ||
1151 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1152 | return 1; | |
1153 | } | |
1154 | ||
1155 | static PyObject *_wrap_wxNullIcon_get() { | |
1156 | PyObject * pyobj; | |
1157 | char ptemp[128]; | |
1158 | ||
1159 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1160 | pyobj = PyString_FromString(ptemp); | |
1161 | return pyobj; | |
1162 | } | |
1163 | ||
1164 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1165 | ||
1166 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1167 | return 1; | |
1168 | } | |
1169 | ||
1170 | static PyObject *_wrap_wxNullCursor_get() { | |
1171 | PyObject * pyobj; | |
1172 | char ptemp[128]; | |
1173 | ||
1174 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1175 | pyobj = PyString_FromString(ptemp); | |
1176 | return pyobj; | |
1177 | } | |
1178 | ||
1179 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1180 | ||
1181 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1182 | return 1; | |
1183 | } | |
1184 | ||
1185 | static PyObject *_wrap_wxNullPen_get() { | |
1186 | PyObject * pyobj; | |
1187 | char ptemp[128]; | |
1188 | ||
1189 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1190 | pyobj = PyString_FromString(ptemp); | |
1191 | return pyobj; | |
1192 | } | |
1193 | ||
1194 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1195 | ||
1196 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1197 | return 1; | |
1198 | } | |
1199 | ||
1200 | static PyObject *_wrap_wxNullBrush_get() { | |
1201 | PyObject * pyobj; | |
1202 | char ptemp[128]; | |
1203 | ||
1204 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1205 | pyobj = PyString_FromString(ptemp); | |
1206 | return pyobj; | |
1207 | } | |
1208 | ||
1209 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1210 | ||
1211 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1212 | return 1; | |
1213 | } | |
1214 | ||
1215 | static PyObject *_wrap_wxNullPalette_get() { | |
1216 | PyObject * pyobj; | |
1217 | char ptemp[128]; | |
1218 | ||
1219 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1220 | pyobj = PyString_FromString(ptemp); | |
1221 | return pyobj; | |
1222 | } | |
1223 | ||
1224 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1225 | ||
1226 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1227 | return 1; | |
1228 | } | |
1229 | ||
1230 | static PyObject *_wrap_wxNullFont_get() { | |
1231 | PyObject * pyobj; | |
1232 | char ptemp[128]; | |
1233 | ||
1234 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1235 | pyobj = PyString_FromString(ptemp); | |
1236 | return pyobj; | |
1237 | } | |
1238 | ||
1239 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1240 | ||
1241 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1242 | return 1; | |
1243 | } | |
1244 | ||
1245 | static PyObject *_wrap_wxNullColour_get() { | |
1246 | PyObject * pyobj; | |
1247 | char ptemp[128]; | |
1248 | ||
1249 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1250 | pyobj = PyString_FromString(ptemp); | |
1251 | return pyobj; | |
1252 | } | |
1253 | ||
5e40f9dd RD |
1254 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1255 | ||
1256 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1257 | return 1; | |
1258 | } | |
1259 | ||
1260 | static PyObject *_wrap_wxTheFontList_get() { | |
1261 | PyObject * pyobj; | |
1262 | char ptemp[128]; | |
1263 | ||
1264 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1265 | pyobj = PyString_FromString(ptemp); | |
1266 | return pyobj; | |
1267 | } | |
1268 | ||
1269 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1270 | ||
1271 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1272 | return 1; | |
1273 | } | |
1274 | ||
1275 | static PyObject *_wrap_wxThePenList_get() { | |
1276 | PyObject * pyobj; | |
1277 | char ptemp[128]; | |
1278 | ||
1279 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1280 | pyobj = PyString_FromString(ptemp); | |
1281 | return pyobj; | |
1282 | } | |
1283 | ||
1284 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1285 | ||
1286 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1287 | return 1; | |
1288 | } | |
1289 | ||
1290 | static PyObject *_wrap_wxTheBrushList_get() { | |
1291 | PyObject * pyobj; | |
1292 | char ptemp[128]; | |
1293 | ||
65191ae8 | 1294 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
5e40f9dd RD |
1295 | pyobj = PyString_FromString(ptemp); |
1296 | return pyobj; | |
1297 | } | |
1298 | ||
1299 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1300 | ||
1301 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1302 | return 1; | |
1303 | } | |
1304 | ||
1305 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1306 | PyObject * pyobj; | |
1307 | char ptemp[128]; | |
1308 | ||
1309 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1310 | pyobj = PyString_FromString(ptemp); | |
1311 | return pyobj; | |
1312 | } | |
1313 | ||
9df61a29 RD |
1314 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1315 | wxGDIObject *src; | |
1316 | wxObject *dest; | |
1317 | src = (wxGDIObject *) ptr; | |
1318 | dest = (wxObject *) src; | |
1319 | return (void *) dest; | |
1320 | } | |
1321 | ||
1322 | #define new_wxGDIObject() (new wxGDIObject()) | |
1323 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1324 | PyObject * _resultobj; | |
1325 | wxGDIObject * _result; | |
1326 | char *_kwnames[] = { NULL }; | |
1327 | char _ptemp[128]; | |
1328 | ||
1329 | self = self; | |
1330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1331 | return NULL; | |
1332 | { | |
474c48f9 | 1333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1334 | _result = (wxGDIObject *)new_wxGDIObject(); |
9df61a29 | 1335 | |
474c48f9 | 1336 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1337 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1338 | } if (_result) { |
1339 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1340 | _resultobj = Py_BuildValue("s",_ptemp); | |
1341 | } else { | |
1342 | Py_INCREF(Py_None); | |
1343 | _resultobj = Py_None; | |
1344 | } | |
1345 | return _resultobj; | |
1346 | } | |
1347 | ||
1348 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1349 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1350 | PyObject * _resultobj; | |
1351 | wxGDIObject * _arg0; | |
1352 | PyObject * _argo0 = 0; | |
1353 | char *_kwnames[] = { "self", NULL }; | |
1354 | ||
1355 | self = self; | |
1356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1357 | return NULL; | |
1358 | if (_argo0) { | |
1359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1362 | return NULL; | |
1363 | } | |
1364 | } | |
1365 | { | |
474c48f9 | 1366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1367 | delete_wxGDIObject(_arg0); |
9df61a29 | 1368 | |
474c48f9 | 1369 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1370 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1371 | } Py_INCREF(Py_None); |
1372 | _resultobj = Py_None; | |
1373 | return _resultobj; | |
1374 | } | |
1375 | ||
1376 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1377 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | bool _result; | |
1380 | wxGDIObject * _arg0; | |
1381 | PyObject * _argo0 = 0; | |
1382 | char *_kwnames[] = { "self", NULL }; | |
1383 | ||
1384 | self = self; | |
1385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1386 | return NULL; | |
1387 | if (_argo0) { | |
1388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1391 | return NULL; | |
1392 | } | |
1393 | } | |
1394 | { | |
474c48f9 | 1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1396 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
9df61a29 | 1397 | |
474c48f9 | 1398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1399 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1400 | } _resultobj = Py_BuildValue("i",_result); |
1401 | return _resultobj; | |
1402 | } | |
1403 | ||
1404 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1405 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1406 | PyObject * _resultobj; | |
1407 | wxGDIObject * _arg0; | |
1408 | bool _arg1; | |
1409 | PyObject * _argo0 = 0; | |
1410 | int tempbool1; | |
1411 | char *_kwnames[] = { "self","visible", NULL }; | |
1412 | ||
1413 | self = self; | |
1414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1415 | return NULL; | |
1416 | if (_argo0) { | |
1417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1420 | return NULL; | |
1421 | } | |
1422 | } | |
1423 | _arg1 = (bool ) tempbool1; | |
1424 | { | |
474c48f9 | 1425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1426 | wxGDIObject_SetVisible(_arg0,_arg1); |
9df61a29 | 1427 | |
474c48f9 | 1428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1429 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1430 | } Py_INCREF(Py_None); |
1431 | _resultobj = Py_None; | |
1432 | return _resultobj; | |
1433 | } | |
1434 | ||
1435 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1436 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1437 | PyObject * _resultobj; | |
1438 | bool _result; | |
1439 | wxGDIObject * _arg0; | |
1440 | PyObject * _argo0 = 0; | |
1441 | char *_kwnames[] = { "self", NULL }; | |
1442 | ||
1443 | self = self; | |
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1445 | return NULL; | |
1446 | if (_argo0) { | |
1447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1450 | return NULL; | |
1451 | } | |
1452 | } | |
1453 | { | |
474c48f9 | 1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1455 | _result = (bool )wxGDIObject_IsNull(_arg0); |
9df61a29 | 1456 | |
474c48f9 | 1457 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1458 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1459 | } _resultobj = Py_BuildValue("i",_result); |
1460 | return _resultobj; | |
1461 | } | |
1462 | ||
1463 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1464 | wxBitmap *src; | |
1465 | wxGDIObject *dest; | |
1466 | src = (wxBitmap *) ptr; | |
1467 | dest = (wxGDIObject *) src; | |
1468 | return (void *) dest; | |
1469 | } | |
1470 | ||
1471 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1472 | wxBitmap *src; | |
1473 | wxObject *dest; | |
1474 | src = (wxBitmap *) ptr; | |
1475 | dest = (wxObject *) src; | |
1476 | return (void *) dest; | |
1477 | } | |
1478 | ||
70551f47 | 1479 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
107e4716 | 1480 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1481 | PyObject * _resultobj; |
1482 | wxBitmap * _result; | |
1483 | wxString * _arg0; | |
f0972d1e | 1484 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
70551f47 | 1485 | PyObject * _obj0 = 0; |
107e4716 | 1486 | char *_kwnames[] = { "name","type", NULL }; |
70551f47 RD |
1487 | char _ptemp[128]; |
1488 | ||
1489 | self = self; | |
5c0282d5 | 1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
70551f47 RD |
1491 | return NULL; |
1492 | { | |
c8bc7bb8 RD |
1493 | _arg0 = wxString_in_helper(_obj0); |
1494 | if (_arg0 == NULL) | |
70551f47 | 1495 | return NULL; |
70551f47 | 1496 | } |
ab9bc19b | 1497 | { |
474c48f9 | 1498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1499 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
ab9bc19b | 1500 | |
474c48f9 | 1501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1502 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1503 | } if (_result) { |
1504 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1505 | _resultobj = Py_BuildValue("s",_ptemp); | |
1506 | } else { | |
1507 | Py_INCREF(Py_None); | |
1508 | _resultobj = Py_None; | |
1509 | } | |
70551f47 RD |
1510 | { |
1511 | if (_obj0) | |
1512 | delete _arg0; | |
1513 | } | |
1514 | return _resultobj; | |
1515 | } | |
1516 | ||
1517 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
107e4716 | 1518 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1519 | PyObject * _resultobj; |
1520 | wxBitmap * _arg0; | |
2d091820 | 1521 | PyObject * _argo0 = 0; |
107e4716 | 1522 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1523 | |
1524 | self = self; | |
107e4716 | 1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
70551f47 | 1526 | return NULL; |
2d091820 RD |
1527 | if (_argo0) { |
1528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
1531 | return NULL; | |
1532 | } | |
1533 | } | |
ab9bc19b | 1534 | { |
474c48f9 | 1535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1536 | delete_wxBitmap(_arg0); |
ab9bc19b | 1537 | |
474c48f9 | 1538 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1539 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1540 | } Py_INCREF(Py_None); |
70551f47 RD |
1541 | _resultobj = Py_None; |
1542 | return _resultobj; | |
1543 | } | |
1544 | ||
70551f47 | 1545 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
107e4716 | 1546 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1547 | PyObject * _resultobj; |
1548 | wxPalette * _result; | |
1549 | wxBitmap * _arg0; | |
2d091820 | 1550 | PyObject * _argo0 = 0; |
107e4716 | 1551 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1552 | char _ptemp[128]; |
1553 | ||
1554 | self = self; | |
107e4716 | 1555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
70551f47 | 1556 | return NULL; |
2d091820 RD |
1557 | if (_argo0) { |
1558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
1561 | return NULL; | |
1562 | } | |
1563 | } | |
ab9bc19b | 1564 | { |
474c48f9 | 1565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1566 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
ab9bc19b | 1567 | |
474c48f9 | 1568 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1569 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1570 | } if (_result) { |
1571 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1572 | _resultobj = Py_BuildValue("s",_ptemp); | |
1573 | } else { | |
1574 | Py_INCREF(Py_None); | |
1575 | _resultobj = Py_None; | |
1576 | } | |
70551f47 RD |
1577 | return _resultobj; |
1578 | } | |
1579 | ||
1580 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
107e4716 | 1581 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1582 | PyObject * _resultobj; |
1583 | wxMask * _result; | |
1584 | wxBitmap * _arg0; | |
2d091820 | 1585 | PyObject * _argo0 = 0; |
107e4716 | 1586 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1587 | char _ptemp[128]; |
1588 | ||
1589 | self = self; | |
107e4716 | 1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
70551f47 | 1591 | return NULL; |
2d091820 RD |
1592 | if (_argo0) { |
1593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
1596 | return NULL; | |
1597 | } | |
1598 | } | |
ab9bc19b | 1599 | { |
474c48f9 | 1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1601 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
ab9bc19b | 1602 | |
474c48f9 | 1603 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1604 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1605 | } if (_result) { |
1606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1607 | _resultobj = Py_BuildValue("s",_ptemp); | |
1608 | } else { | |
1609 | Py_INCREF(Py_None); | |
1610 | _resultobj = Py_None; | |
1611 | } | |
70551f47 RD |
1612 | return _resultobj; |
1613 | } | |
1614 | ||
56f5d962 RD |
1615 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1616 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1617 | PyObject * _resultobj; |
56f5d962 | 1618 | bool _result; |
70551f47 | 1619 | wxBitmap * _arg0; |
56f5d962 | 1620 | wxString * _arg1; |
f0972d1e | 1621 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
2d091820 | 1622 | PyObject * _argo0 = 0; |
56f5d962 | 1623 | PyObject * _obj1 = 0; |
5c0282d5 | 1624 | char *_kwnames[] = { "self","name","type", NULL }; |
70551f47 RD |
1625 | |
1626 | self = self; | |
5c0282d5 | 1627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1628 | return NULL; |
2d091820 RD |
1629 | if (_argo0) { |
1630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); |
70551f47 RD |
1633 | return NULL; |
1634 | } | |
1635 | } | |
56f5d962 | 1636 | { |
c8bc7bb8 RD |
1637 | _arg1 = wxString_in_helper(_obj1); |
1638 | if (_arg1 == NULL) | |
56f5d962 | 1639 | return NULL; |
56f5d962 | 1640 | } |
ab9bc19b | 1641 | { |
474c48f9 | 1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1643 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b | 1644 | |
474c48f9 | 1645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1646 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1647 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
1648 | { |
1649 | if (_obj1) | |
1650 | delete _arg1; | |
1651 | } | |
70551f47 RD |
1652 | return _resultobj; |
1653 | } | |
1654 | ||
56f5d962 RD |
1655 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1656 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1657 | PyObject * _resultobj; |
1658 | bool _result; | |
1659 | wxBitmap * _arg0; | |
1660 | wxString * _arg1; | |
5c0282d5 | 1661 | wxBitmapType _arg2; |
56f5d962 | 1662 | wxPalette * _arg3 = (wxPalette *) NULL; |
2d091820 | 1663 | PyObject * _argo0 = 0; |
70551f47 | 1664 | PyObject * _obj1 = 0; |
56f5d962 RD |
1665 | PyObject * _argo3 = 0; |
1666 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
70551f47 RD |
1667 | |
1668 | self = self; | |
56f5d962 | 1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
70551f47 | 1670 | return NULL; |
2d091820 RD |
1671 | if (_argo0) { |
1672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); |
70551f47 RD |
1675 | return NULL; |
1676 | } | |
1677 | } | |
1678 | { | |
c8bc7bb8 RD |
1679 | _arg1 = wxString_in_helper(_obj1); |
1680 | if (_arg1 == NULL) | |
2cd2fac8 | 1681 | return NULL; |
70551f47 | 1682 | } |
56f5d962 RD |
1683 | if (_argo3) { |
1684 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
ab9bc19b | 1690 | { |
474c48f9 | 1691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1692 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 1693 | |
474c48f9 | 1694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1695 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1696 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1697 | { |
1698 | if (_obj1) | |
1699 | delete _arg1; | |
1700 | } | |
1701 | return _resultobj; | |
1702 | } | |
1703 | ||
56f5d962 RD |
1704 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1705 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1706 | PyObject * _resultobj; | |
1707 | wxBitmap * _arg0; | |
1708 | wxMask * _arg1; | |
1709 | PyObject * _argo0 = 0; | |
1710 | PyObject * _argo1 = 0; | |
1711 | char *_kwnames[] = { "self","mask", NULL }; | |
1712 | ||
1713 | self = self; | |
1714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1715 | return NULL; | |
1716 | if (_argo0) { | |
1717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1720 | return NULL; | |
1721 | } | |
1722 | } | |
1723 | if (_argo1) { | |
1724 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1725 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1727 | return NULL; | |
1728 | } | |
1729 | } | |
1730 | { | |
474c48f9 | 1731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1732 | wxBitmap_SetMask(_arg0,_arg1); |
56f5d962 | 1733 | |
474c48f9 | 1734 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1735 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1736 | } Py_INCREF(Py_None); |
1737 | _resultobj = Py_None; | |
1738 | return _resultobj; | |
1739 | } | |
1740 | ||
70551f47 | 1741 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) |
107e4716 | 1742 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1743 | PyObject * _resultobj; |
1744 | bool _result; | |
1745 | wxBitmap * _arg0; | |
2d091820 | 1746 | PyObject * _argo0 = 0; |
107e4716 | 1747 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1748 | |
1749 | self = self; | |
107e4716 | 1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) |
70551f47 | 1751 | return NULL; |
2d091820 RD |
1752 | if (_argo0) { |
1753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); |
1756 | return NULL; | |
1757 | } | |
1758 | } | |
ab9bc19b | 1759 | { |
474c48f9 | 1760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1761 | _result = (bool )wxBitmap_Ok(_arg0); |
ab9bc19b | 1762 | |
474c48f9 | 1763 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1764 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1765 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1766 | return _resultobj; |
1767 | } | |
1768 | ||
56f5d962 RD |
1769 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) |
1770 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1771 | PyObject * _resultobj; |
56f5d962 | 1772 | int _result; |
70551f47 | 1773 | wxBitmap * _arg0; |
2d091820 | 1774 | PyObject * _argo0 = 0; |
56f5d962 | 1775 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1776 | |
1777 | self = self; | |
56f5d962 | 1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) |
70551f47 | 1779 | return NULL; |
2d091820 RD |
1780 | if (_argo0) { |
1781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1784 | return NULL; |
1785 | } | |
1786 | } | |
1787 | { | |
474c48f9 | 1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1789 | _result = (int )wxBitmap_GetWidth(_arg0); |
56f5d962 | 1790 | |
474c48f9 | 1791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1792 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1793 | } _resultobj = Py_BuildValue("i",_result); |
1794 | return _resultobj; | |
70551f47 | 1795 | } |
56f5d962 RD |
1796 | |
1797 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1798 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1799 | PyObject * _resultobj; | |
1800 | int _result; | |
1801 | wxBitmap * _arg0; | |
1802 | PyObject * _argo0 = 0; | |
1803 | char *_kwnames[] = { "self", NULL }; | |
1804 | ||
1805 | self = self; | |
1806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1807 | return NULL; | |
1808 | if (_argo0) { | |
1809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
70551f47 RD |
1812 | return NULL; |
1813 | } | |
1814 | } | |
ab9bc19b | 1815 | { |
474c48f9 | 1816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1817 | _result = (int )wxBitmap_GetHeight(_arg0); |
ab9bc19b | 1818 | |
474c48f9 | 1819 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1820 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1821 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1822 | return _resultobj; |
1823 | } | |
1824 | ||
56f5d962 RD |
1825 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1826 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1827 | PyObject * _resultobj; |
56f5d962 | 1828 | int _result; |
70551f47 | 1829 | wxBitmap * _arg0; |
2d091820 | 1830 | PyObject * _argo0 = 0; |
56f5d962 | 1831 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1832 | |
1833 | self = self; | |
56f5d962 | 1834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
70551f47 | 1835 | return NULL; |
2d091820 RD |
1836 | if (_argo0) { |
1837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1840 | return NULL; |
1841 | } | |
1842 | } | |
ab9bc19b | 1843 | { |
474c48f9 | 1844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1845 | _result = (int )wxBitmap_GetDepth(_arg0); |
ab9bc19b | 1846 | |
474c48f9 | 1847 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1848 | if (PyErr_Occurred()) return NULL; |
56f5d962 | 1849 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1850 | return _resultobj; |
1851 | } | |
1852 | ||
56f5d962 RD |
1853 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
1854 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1855 | PyObject * _resultobj; |
1856 | wxBitmap * _arg0; | |
1857 | int _arg1; | |
2d091820 | 1858 | PyObject * _argo0 = 0; |
56f5d962 | 1859 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
1860 | |
1861 | self = self; | |
56f5d962 | 1862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1863 | return NULL; |
2d091820 RD |
1864 | if (_argo0) { |
1865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1868 | return NULL; |
1869 | } | |
1870 | } | |
ab9bc19b | 1871 | { |
474c48f9 | 1872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1873 | wxBitmap_SetWidth(_arg0,_arg1); |
ab9bc19b | 1874 | |
474c48f9 | 1875 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1876 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1877 | } Py_INCREF(Py_None); |
70551f47 RD |
1878 | _resultobj = Py_None; |
1879 | return _resultobj; | |
1880 | } | |
1881 | ||
56f5d962 RD |
1882 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1883 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1884 | PyObject * _resultobj; |
1885 | wxBitmap * _arg0; | |
56f5d962 | 1886 | int _arg1; |
2d091820 | 1887 | PyObject * _argo0 = 0; |
56f5d962 | 1888 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
1889 | |
1890 | self = self; | |
56f5d962 | 1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1892 | return NULL; |
2d091820 RD |
1893 | if (_argo0) { |
1894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); |
70551f47 RD |
1897 | return NULL; |
1898 | } | |
1899 | } | |
ab9bc19b | 1900 | { |
474c48f9 | 1901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1902 | wxBitmap_SetHeight(_arg0,_arg1); |
ab9bc19b | 1903 | |
474c48f9 | 1904 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1905 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1906 | } Py_INCREF(Py_None); |
70551f47 RD |
1907 | _resultobj = Py_None; |
1908 | return _resultobj; | |
1909 | } | |
1910 | ||
56f5d962 RD |
1911 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
1912 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1913 | PyObject * _resultobj; |
1914 | wxBitmap * _arg0; | |
1915 | int _arg1; | |
2d091820 | 1916 | PyObject * _argo0 = 0; |
56f5d962 | 1917 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
1918 | |
1919 | self = self; | |
56f5d962 | 1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1921 | return NULL; |
2d091820 RD |
1922 | if (_argo0) { |
1923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1926 | return NULL; |
1927 | } | |
1928 | } | |
ab9bc19b | 1929 | { |
474c48f9 | 1930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1931 | wxBitmap_SetDepth(_arg0,_arg1); |
ab9bc19b | 1932 | |
474c48f9 | 1933 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1934 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1935 | } Py_INCREF(Py_None); |
70551f47 RD |
1936 | _resultobj = Py_None; |
1937 | return _resultobj; | |
1938 | } | |
1939 | ||
f6bcfd97 BP |
1940 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
1941 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1942 | PyObject * _resultobj; | |
1943 | wxBitmap * _result; | |
1944 | wxBitmap * _arg0; | |
1945 | wxRect * _arg1; | |
1946 | PyObject * _argo0 = 0; | |
1947 | wxRect temp; | |
1948 | PyObject * _obj1 = 0; | |
1949 | char *_kwnames[] = { "self","rect", NULL }; | |
1950 | char _ptemp[128]; | |
1951 | ||
1952 | self = self; | |
1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1954 | return NULL; | |
1955 | if (_argo0) { | |
1956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1959 | return NULL; | |
1960 | } | |
1961 | } | |
1962 | { | |
1963 | _arg1 = &temp; | |
1964 | if (! wxRect_helper(_obj1, &_arg1)) | |
1965 | return NULL; | |
1966 | } | |
1967 | { | |
474c48f9 | 1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1969 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
f6bcfd97 | 1970 | |
474c48f9 | 1971 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1972 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1973 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1974 | _resultobj = Py_BuildValue("s",_ptemp); | |
1975 | return _resultobj; | |
1976 | } | |
1977 | ||
65191ae8 RD |
1978 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) |
1979 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1980 | PyObject * _resultobj; | |
1981 | bool _result; | |
1982 | wxBitmap * _arg0; | |
1983 | wxIcon * _arg1; | |
1984 | PyObject * _argo0 = 0; | |
1985 | PyObject * _argo1 = 0; | |
1986 | char *_kwnames[] = { "self","icon", NULL }; | |
1987 | ||
1988 | self = self; | |
1989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
1990 | return NULL; | |
1991 | if (_argo0) { | |
1992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
1995 | return NULL; | |
1996 | } | |
1997 | } | |
1998 | if (_argo1) { | |
1999 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2000 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2002 | return NULL; | |
2003 | } | |
2004 | } | |
2005 | { | |
474c48f9 | 2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2007 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
65191ae8 | 2008 | |
474c48f9 | 2009 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
2010 | if (PyErr_Occurred()) return NULL; |
2011 | } _resultobj = Py_BuildValue("i",_result); | |
2012 | return _resultobj; | |
2013 | } | |
2014 | ||
9df61a29 RD |
2015 | static void *SwigwxMaskTowxObject(void *ptr) { |
2016 | wxMask *src; | |
2017 | wxObject *dest; | |
2018 | src = (wxMask *) ptr; | |
2019 | dest = (wxObject *) src; | |
2020 | return (void *) dest; | |
2021 | } | |
2022 | ||
70551f47 | 2023 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
107e4716 | 2024 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2025 | PyObject * _resultobj; |
2026 | wxMask * _result; | |
2027 | wxBitmap * _arg0; | |
2d091820 | 2028 | PyObject * _argo0 = 0; |
107e4716 | 2029 | char *_kwnames[] = { "bitmap", NULL }; |
70551f47 RD |
2030 | char _ptemp[128]; |
2031 | ||
2032 | self = self; | |
107e4716 | 2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) |
70551f47 | 2034 | return NULL; |
2d091820 RD |
2035 | if (_argo0) { |
2036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
2038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); |
2039 | return NULL; | |
2040 | } | |
2041 | } | |
ab9bc19b | 2042 | { |
474c48f9 | 2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2044 | _result = (wxMask *)new_wxMask(*_arg0); |
ab9bc19b | 2045 | |
474c48f9 | 2046 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2047 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2048 | } if (_result) { |
2049 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2050 | _resultobj = Py_BuildValue("s",_ptemp); | |
2051 | } else { | |
2052 | Py_INCREF(Py_None); | |
2053 | _resultobj = Py_None; | |
2054 | } | |
70551f47 RD |
2055 | return _resultobj; |
2056 | } | |
2057 | ||
fbcadfca RD |
2058 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2059 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2060 | PyObject * _resultobj; | |
2061 | wxMask * _arg0; | |
2062 | PyObject * _argo0 = 0; | |
2063 | char *_kwnames[] = { "self", NULL }; | |
2064 | ||
2065 | self = self; | |
2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2067 | return NULL; | |
2068 | if (_argo0) { | |
2069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2072 | return NULL; | |
2073 | } | |
2074 | } | |
2075 | { | |
474c48f9 | 2076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2077 | wxMask_Destroy(_arg0); |
fbcadfca | 2078 | |
474c48f9 | 2079 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2080 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2081 | } Py_INCREF(Py_None); |
2082 | _resultobj = Py_None; | |
2083 | return _resultobj; | |
2084 | } | |
2085 | ||
9df61a29 RD |
2086 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2087 | wxIcon *src; | |
2088 | wxGDIObject *dest; | |
2089 | src = (wxIcon *) ptr; | |
2090 | dest = (wxGDIObject *) src; | |
2091 | return (void *) dest; | |
2092 | } | |
2093 | ||
2094 | static void *SwigwxIconTowxObject(void *ptr) { | |
2095 | wxIcon *src; | |
2096 | wxObject *dest; | |
2097 | src = (wxIcon *) ptr; | |
2098 | dest = (wxObject *) src; | |
2099 | return (void *) dest; | |
2100 | } | |
2101 | ||
8bf5d46e | 2102 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 2103 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2104 | PyObject * _resultobj; |
2105 | wxIcon * _result; | |
2106 | wxString * _arg0; | |
2107 | long _arg1; | |
2d091820 RD |
2108 | int _arg2 = (int ) -1; |
2109 | int _arg3 = (int ) -1; | |
8bf5d46e | 2110 | PyObject * _obj0 = 0; |
107e4716 | 2111 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8bf5d46e RD |
2112 | char _ptemp[128]; |
2113 | ||
2114 | self = self; | |
107e4716 | 2115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
2116 | return NULL; |
2117 | { | |
c8bc7bb8 RD |
2118 | _arg0 = wxString_in_helper(_obj0); |
2119 | if (_arg0 == NULL) | |
8bf5d46e | 2120 | return NULL; |
8bf5d46e RD |
2121 | } |
2122 | { | |
474c48f9 | 2123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2124 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 2125 | |
474c48f9 | 2126 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2127 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2128 | } if (_result) { |
2129 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2130 | _resultobj = Py_BuildValue("s",_ptemp); | |
2131 | } else { | |
2132 | Py_INCREF(Py_None); | |
2133 | _resultobj = Py_None; | |
2134 | } | |
8bf5d46e RD |
2135 | { |
2136 | if (_obj0) | |
2137 | delete _arg0; | |
2138 | } | |
2139 | return _resultobj; | |
2140 | } | |
2141 | ||
70551f47 | 2142 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
107e4716 | 2143 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2144 | PyObject * _resultobj; |
2145 | wxIcon * _arg0; | |
2d091820 | 2146 | PyObject * _argo0 = 0; |
107e4716 | 2147 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2148 | |
2149 | self = self; | |
107e4716 | 2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
70551f47 | 2151 | return NULL; |
2d091820 RD |
2152 | if (_argo0) { |
2153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); |
2156 | return NULL; | |
2157 | } | |
2158 | } | |
ab9bc19b | 2159 | { |
474c48f9 | 2160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2161 | delete_wxIcon(_arg0); |
ab9bc19b | 2162 | |
474c48f9 | 2163 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2164 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2165 | } Py_INCREF(Py_None); |
70551f47 RD |
2166 | _resultobj = Py_None; |
2167 | return _resultobj; | |
2168 | } | |
2169 | ||
56f5d962 RD |
2170 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
2171 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2172 | PyObject * _resultobj; |
56f5d962 | 2173 | bool _result; |
70551f47 | 2174 | wxIcon * _arg0; |
56f5d962 RD |
2175 | wxString * _arg1; |
2176 | long _arg2; | |
2d091820 | 2177 | PyObject * _argo0 = 0; |
56f5d962 RD |
2178 | PyObject * _obj1 = 0; |
2179 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
2180 | |
2181 | self = self; | |
56f5d962 | 2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 2183 | return NULL; |
2d091820 RD |
2184 | if (_argo0) { |
2185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); |
70551f47 RD |
2188 | return NULL; |
2189 | } | |
2190 | } | |
56f5d962 | 2191 | { |
c8bc7bb8 RD |
2192 | _arg1 = wxString_in_helper(_obj1); |
2193 | if (_arg1 == NULL) | |
2cd2fac8 | 2194 | return NULL; |
56f5d962 | 2195 | } |
ab9bc19b | 2196 | { |
474c48f9 | 2197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2198 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b | 2199 | |
474c48f9 | 2200 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2201 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2202 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
2203 | { |
2204 | if (_obj1) | |
2205 | delete _arg1; | |
2206 | } | |
70551f47 RD |
2207 | return _resultobj; |
2208 | } | |
2209 | ||
56f5d962 RD |
2210 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
2211 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2212 | PyObject * _resultobj; |
56f5d962 | 2213 | bool _result; |
70551f47 | 2214 | wxIcon * _arg0; |
2d091820 | 2215 | PyObject * _argo0 = 0; |
107e4716 | 2216 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2217 | |
2218 | self = self; | |
56f5d962 | 2219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) |
70551f47 | 2220 | return NULL; |
2d091820 RD |
2221 | if (_argo0) { |
2222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); |
70551f47 RD |
2225 | return NULL; |
2226 | } | |
2227 | } | |
ab9bc19b | 2228 | { |
474c48f9 | 2229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2230 | _result = (bool )wxIcon_Ok(_arg0); |
ab9bc19b | 2231 | |
474c48f9 | 2232 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2233 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2234 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2235 | return _resultobj; |
2236 | } | |
2237 | ||
2238 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 2239 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2240 | PyObject * _resultobj; |
2241 | int _result; | |
2242 | wxIcon * _arg0; | |
2d091820 | 2243 | PyObject * _argo0 = 0; |
107e4716 | 2244 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2245 | |
2246 | self = self; | |
107e4716 | 2247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) |
70551f47 | 2248 | return NULL; |
2d091820 RD |
2249 | if (_argo0) { |
2250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); |
2253 | return NULL; | |
2254 | } | |
2255 | } | |
ab9bc19b | 2256 | { |
474c48f9 | 2257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2258 | _result = (int )wxIcon_GetWidth(_arg0); |
ab9bc19b | 2259 | |
474c48f9 | 2260 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2261 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2262 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2263 | return _resultobj; |
2264 | } | |
2265 | ||
56f5d962 RD |
2266 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) |
2267 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2268 | PyObject * _resultobj; |
56f5d962 | 2269 | int _result; |
70551f47 | 2270 | wxIcon * _arg0; |
2d091820 | 2271 | PyObject * _argo0 = 0; |
56f5d962 | 2272 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2273 | |
2274 | self = self; | |
56f5d962 | 2275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) |
70551f47 | 2276 | return NULL; |
2d091820 RD |
2277 | if (_argo0) { |
2278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); |
70551f47 RD |
2281 | return NULL; |
2282 | } | |
2283 | } | |
ab9bc19b | 2284 | { |
474c48f9 | 2285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2286 | _result = (int )wxIcon_GetHeight(_arg0); |
ab9bc19b | 2287 | |
474c48f9 | 2288 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2289 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2290 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2291 | return _resultobj; |
2292 | } | |
2293 | ||
56f5d962 RD |
2294 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) |
2295 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2296 | PyObject * _resultobj; |
56f5d962 | 2297 | int _result; |
70551f47 | 2298 | wxIcon * _arg0; |
2d091820 | 2299 | PyObject * _argo0 = 0; |
107e4716 | 2300 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2301 | |
2302 | self = self; | |
56f5d962 | 2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) |
70551f47 | 2304 | return NULL; |
2d091820 RD |
2305 | if (_argo0) { |
2306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2309 | return NULL; |
2310 | } | |
2311 | } | |
ab9bc19b | 2312 | { |
474c48f9 | 2313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2314 | _result = (int )wxIcon_GetDepth(_arg0); |
ab9bc19b | 2315 | |
474c48f9 | 2316 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2317 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2318 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2319 | return _resultobj; |
2320 | } | |
2321 | ||
56f5d962 RD |
2322 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
2323 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2324 | PyObject * _resultobj; |
2325 | wxIcon * _arg0; | |
2326 | int _arg1; | |
2d091820 | 2327 | PyObject * _argo0 = 0; |
56f5d962 | 2328 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
2329 | |
2330 | self = self; | |
56f5d962 | 2331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2332 | return NULL; |
2d091820 RD |
2333 | if (_argo0) { |
2334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); |
70551f47 RD |
2337 | return NULL; |
2338 | } | |
2339 | } | |
ab9bc19b | 2340 | { |
474c48f9 | 2341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2342 | wxIcon_SetWidth(_arg0,_arg1); |
ab9bc19b | 2343 | |
474c48f9 | 2344 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2345 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2346 | } Py_INCREF(Py_None); |
70551f47 RD |
2347 | _resultobj = Py_None; |
2348 | return _resultobj; | |
2349 | } | |
2350 | ||
2351 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
107e4716 | 2352 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2353 | PyObject * _resultobj; |
2354 | wxIcon * _arg0; | |
2355 | int _arg1; | |
2d091820 | 2356 | PyObject * _argo0 = 0; |
56f5d962 | 2357 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
2358 | |
2359 | self = self; | |
107e4716 | 2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2361 | return NULL; |
2d091820 RD |
2362 | if (_argo0) { |
2363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); |
2366 | return NULL; | |
2367 | } | |
2368 | } | |
ab9bc19b | 2369 | { |
474c48f9 | 2370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2371 | wxIcon_SetHeight(_arg0,_arg1); |
ab9bc19b | 2372 | |
474c48f9 | 2373 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2374 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2375 | } Py_INCREF(Py_None); |
70551f47 RD |
2376 | _resultobj = Py_None; |
2377 | return _resultobj; | |
2378 | } | |
2379 | ||
56f5d962 RD |
2380 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
2381 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2382 | PyObject * _resultobj; |
2383 | wxIcon * _arg0; | |
2384 | int _arg1; | |
2d091820 | 2385 | PyObject * _argo0 = 0; |
56f5d962 | 2386 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
2387 | |
2388 | self = self; | |
56f5d962 | 2389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2390 | return NULL; |
2d091820 RD |
2391 | if (_argo0) { |
2392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2395 | return NULL; |
2396 | } | |
2397 | } | |
ab9bc19b | 2398 | { |
474c48f9 | 2399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2400 | wxIcon_SetDepth(_arg0,_arg1); |
ab9bc19b | 2401 | |
474c48f9 | 2402 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2403 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2404 | } Py_INCREF(Py_None); |
70551f47 RD |
2405 | _resultobj = Py_None; |
2406 | return _resultobj; | |
2407 | } | |
2408 | ||
fbcadfca RD |
2409 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2410 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2411 | PyObject * _resultobj; | |
2412 | wxIcon * _arg0; | |
2413 | wxBitmap * _arg1; | |
2414 | PyObject * _argo0 = 0; | |
2415 | PyObject * _argo1 = 0; | |
2416 | char *_kwnames[] = { "self","bmp", NULL }; | |
2417 | ||
2418 | self = self; | |
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2420 | return NULL; | |
2421 | if (_argo0) { | |
2422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2425 | return NULL; | |
2426 | } | |
2427 | } | |
2428 | if (_argo1) { | |
2429 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2430 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2432 | return NULL; | |
2433 | } | |
2434 | } | |
2435 | { | |
474c48f9 | 2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2437 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
fbcadfca | 2438 | |
474c48f9 | 2439 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2440 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2441 | } Py_INCREF(Py_None); |
2442 | _resultobj = Py_None; | |
2443 | return _resultobj; | |
2444 | } | |
2445 | ||
a323d3bd RD |
2446 | #define new_wxIconBundle() (new wxIconBundle()) |
2447 | static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1893b029 | 2448 | PyObject * _resultobj; |
a323d3bd | 2449 | wxIconBundle * _result; |
1893b029 RD |
2450 | char *_kwnames[] = { NULL }; |
2451 | char _ptemp[128]; | |
2452 | ||
2453 | self = self; | |
a323d3bd | 2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames)) |
1893b029 RD |
2455 | return NULL; |
2456 | { | |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a323d3bd | 2458 | _result = (wxIconBundle *)new_wxIconBundle(); |
1893b029 RD |
2459 | |
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) return NULL; | |
2462 | } if (_result) { | |
a323d3bd | 2463 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); |
1893b029 RD |
2464 | _resultobj = Py_BuildValue("s",_ptemp); |
2465 | } else { | |
2466 | Py_INCREF(Py_None); | |
2467 | _resultobj = Py_None; | |
2468 | } | |
2469 | return _resultobj; | |
2470 | } | |
2471 | ||
a323d3bd RD |
2472 | #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1)) |
2473 | static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 | 2474 | PyObject * _resultobj; |
a323d3bd RD |
2475 | wxIconBundle * _result; |
2476 | wxString * _arg0; | |
2477 | long _arg1; | |
2478 | PyObject * _obj0 = 0; | |
2479 | char *_kwnames[] = { "file","type", NULL }; | |
2480 | char _ptemp[128]; | |
d3b4d113 RR |
2481 | |
2482 | self = self; | |
a323d3bd | 2483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1)) |
d3b4d113 | 2484 | return NULL; |
059a841c | 2485 | { |
a323d3bd RD |
2486 | _arg0 = wxString_in_helper(_obj0); |
2487 | if (_arg0 == NULL) | |
059a841c | 2488 | return NULL; |
059a841c | 2489 | } |
ab9bc19b | 2490 | { |
474c48f9 | 2491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a323d3bd | 2492 | _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1); |
ab9bc19b | 2493 | |
474c48f9 | 2494 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2495 | if (PyErr_Occurred()) return NULL; |
a323d3bd RD |
2496 | } if (_result) { |
2497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2498 | _resultobj = Py_BuildValue("s",_ptemp); | |
2499 | } else { | |
2500 | Py_INCREF(Py_None); | |
2501 | _resultobj = Py_None; | |
2502 | } | |
059a841c | 2503 | { |
a323d3bd RD |
2504 | if (_obj0) |
2505 | delete _arg0; | |
059a841c | 2506 | } |
d3b4d113 RR |
2507 | return _resultobj; |
2508 | } | |
2509 | ||
a323d3bd RD |
2510 | #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0)) |
2511 | static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 | 2512 | PyObject * _resultobj; |
a323d3bd RD |
2513 | wxIconBundle * _result; |
2514 | wxIcon * _arg0; | |
2d091820 | 2515 | PyObject * _argo0 = 0; |
a323d3bd RD |
2516 | char *_kwnames[] = { "icon", NULL }; |
2517 | char _ptemp[128]; | |
d3b4d113 RR |
2518 | |
2519 | self = self; | |
a323d3bd | 2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0)) |
d3b4d113 | 2521 | return NULL; |
2d091820 RD |
2522 | if (_argo0) { |
2523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a323d3bd RD |
2524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p."); | |
d3b4d113 RR |
2526 | return NULL; |
2527 | } | |
2528 | } | |
ab9bc19b | 2529 | { |
474c48f9 | 2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a323d3bd | 2531 | _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0); |
ab9bc19b | 2532 | |
474c48f9 | 2533 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2534 | if (PyErr_Occurred()) return NULL; |
a323d3bd RD |
2535 | } if (_result) { |
2536 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2537 | _resultobj = Py_BuildValue("s",_ptemp); | |
2538 | } else { | |
2539 | Py_INCREF(Py_None); | |
2540 | _resultobj = Py_None; | |
2541 | } | |
d3b4d113 RR |
2542 | return _resultobj; |
2543 | } | |
2544 | ||
a323d3bd RD |
2545 | #define delete_wxIconBundle(_swigobj) (delete _swigobj) |
2546 | static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 | 2547 | PyObject * _resultobj; |
a323d3bd | 2548 | wxIconBundle * _arg0; |
2d091820 | 2549 | PyObject * _argo0 = 0; |
a323d3bd | 2550 | char *_kwnames[] = { "self", NULL }; |
d3b4d113 RR |
2551 | |
2552 | self = self; | |
a323d3bd | 2553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0)) |
d3b4d113 | 2554 | return NULL; |
2d091820 RD |
2555 | if (_argo0) { |
2556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a323d3bd RD |
2557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p."); | |
d3b4d113 RR |
2559 | return NULL; |
2560 | } | |
2561 | } | |
ab9bc19b | 2562 | { |
474c48f9 | 2563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a323d3bd | 2564 | delete_wxIconBundle(_arg0); |
ab9bc19b | 2565 | |
474c48f9 | 2566 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2567 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2568 | } Py_INCREF(Py_None); |
d3b4d113 RR |
2569 | _resultobj = Py_None; |
2570 | return _resultobj; | |
2571 | } | |
2572 | ||
a323d3bd RD |
2573 | #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0)) |
2574 | static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
134d79dc | 2575 | PyObject * _resultobj; |
a323d3bd RD |
2576 | wxIconBundle * _arg0; |
2577 | wxIcon * _arg1; | |
134d79dc | 2578 | PyObject * _argo0 = 0; |
059a841c | 2579 | PyObject * _argo1 = 0; |
a323d3bd | 2580 | char *_kwnames[] = { "self","icon", NULL }; |
134d79dc RD |
2581 | |
2582 | self = self; | |
a323d3bd | 2583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1)) |
134d79dc RD |
2584 | return NULL; |
2585 | if (_argo0) { | |
2586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a323d3bd RD |
2587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p."); | |
059a841c RD |
2589 | return NULL; |
2590 | } | |
2591 | } | |
2592 | if (_argo1) { | |
2593 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
a323d3bd RD |
2594 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { |
2595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p."); | |
134d79dc RD |
2596 | return NULL; |
2597 | } | |
2598 | } | |
2599 | { | |
474c48f9 | 2600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a323d3bd | 2601 | wxIconBundle_AddIcon(_arg0,*_arg1); |
134d79dc | 2602 | |
474c48f9 | 2603 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2604 | if (PyErr_Occurred()) return NULL; |
134d79dc RD |
2605 | } Py_INCREF(Py_None); |
2606 | _resultobj = Py_None; | |
2607 | return _resultobj; | |
2608 | } | |
2609 | ||
a323d3bd RD |
2610 | #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1)) |
2611 | static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1893b029 | 2612 | PyObject * _resultobj; |
a323d3bd | 2613 | wxIconBundle * _arg0; |
1893b029 | 2614 | wxString * _arg1; |
a323d3bd | 2615 | long _arg2; |
1893b029 RD |
2616 | PyObject * _argo0 = 0; |
2617 | PyObject * _obj1 = 0; | |
a323d3bd | 2618 | char *_kwnames[] = { "self","file","type", NULL }; |
1893b029 RD |
2619 | |
2620 | self = self; | |
a323d3bd | 2621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
1893b029 RD |
2622 | return NULL; |
2623 | if (_argo0) { | |
2624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a323d3bd RD |
2625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p."); | |
1893b029 RD |
2627 | return NULL; |
2628 | } | |
2629 | } | |
2630 | { | |
c8bc7bb8 RD |
2631 | _arg1 = wxString_in_helper(_obj1); |
2632 | if (_arg1 == NULL) | |
1893b029 | 2633 | return NULL; |
1893b029 RD |
2634 | } |
2635 | { | |
2636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a323d3bd | 2637 | wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2); |
1893b029 RD |
2638 | |
2639 | wxPyEndAllowThreads(__tstate); | |
2640 | if (PyErr_Occurred()) return NULL; | |
2641 | } Py_INCREF(Py_None); | |
2642 | _resultobj = Py_None; | |
2643 | { | |
2644 | if (_obj1) | |
2645 | delete _arg1; | |
2646 | } | |
2647 | return _resultobj; | |
2648 | } | |
2649 | ||
a323d3bd RD |
2650 | #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0)) |
2651 | static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5e40f9dd | 2652 | PyObject * _resultobj; |
a323d3bd RD |
2653 | wxIcon * _result; |
2654 | wxIconBundle * _arg0; | |
2655 | wxSize * _arg1; | |
5e40f9dd | 2656 | PyObject * _argo0 = 0; |
a323d3bd RD |
2657 | wxSize temp; |
2658 | PyObject * _obj1 = 0; | |
2659 | char *_kwnames[] = { "self","size", NULL }; | |
5e40f9dd RD |
2660 | char _ptemp[128]; |
2661 | ||
2662 | self = self; | |
a323d3bd | 2663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1)) |
5e40f9dd RD |
2664 | return NULL; |
2665 | if (_argo0) { | |
2666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a323d3bd RD |
2667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { |
2668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p."); | |
5e40f9dd RD |
2669 | return NULL; |
2670 | } | |
2671 | } | |
9a74fcaf | 2672 | { |
a323d3bd RD |
2673 | _arg1 = &temp; |
2674 | if (! wxSize_helper(_obj1, &_arg1)) | |
9a74fcaf RD |
2675 | return NULL; |
2676 | } | |
5e40f9dd | 2677 | { |
474c48f9 | 2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a323d3bd RD |
2679 | const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1); |
2680 | _result = (wxIcon *) &_result_ref; | |
5e40f9dd | 2681 | |
474c48f9 | 2682 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2683 | if (PyErr_Occurred()) return NULL; |
5e40f9dd | 2684 | } if (_result) { |
a323d3bd | 2685 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
5e40f9dd RD |
2686 | _resultobj = Py_BuildValue("s",_ptemp); |
2687 | } else { | |
2688 | Py_INCREF(Py_None); | |
2689 | _resultobj = Py_None; | |
2690 | } | |
2691 | return _resultobj; | |
2692 | } | |
2693 | ||
a323d3bd RD |
2694 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2695 | wxCursor *src; | |
2696 | wxGDIObject *dest; | |
2697 | src = (wxCursor *) ptr; | |
2698 | dest = (wxGDIObject *) src; | |
2699 | return (void *) dest; | |
2700 | } | |
2701 | ||
2702 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2703 | wxCursor *src; | |
2704 | wxObject *dest; | |
2705 | src = (wxCursor *) ptr; | |
2706 | dest = (wxObject *) src; | |
2707 | return (void *) dest; | |
2708 | } | |
2709 | ||
2710 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2711 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5e40f9dd | 2712 | PyObject * _resultobj; |
a323d3bd | 2713 | wxCursor * _arg0; |
5e40f9dd | 2714 | PyObject * _argo0 = 0; |
a323d3bd | 2715 | char *_kwnames[] = { "self", NULL }; |
5e40f9dd RD |
2716 | |
2717 | self = self; | |
a323d3bd | 2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) |
5e40f9dd RD |
2719 | return NULL; |
2720 | if (_argo0) { | |
2721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a323d3bd RD |
2722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { |
2723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
5e40f9dd RD |
2724 | return NULL; |
2725 | } | |
2726 | } | |
2727 | { | |
474c48f9 | 2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a323d3bd | 2729 | delete_wxCursor(_arg0); |
5e40f9dd | 2730 | |
474c48f9 | 2731 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2732 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
2733 | } Py_INCREF(Py_None); |
2734 | _resultobj = Py_None; | |
2735 | return _resultobj; | |
2736 | } | |
2737 | ||
a323d3bd RD |
2738 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) |
2739 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a9b33db | 2740 | PyObject * _resultobj; |
a323d3bd RD |
2741 | bool _result; |
2742 | wxCursor * _arg0; | |
7a9b33db RD |
2743 | PyObject * _argo0 = 0; |
2744 | char *_kwnames[] = { "self", NULL }; | |
2745 | ||
2746 | self = self; | |
a323d3bd | 2747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) |
7a9b33db RD |
2748 | return NULL; |
2749 | if (_argo0) { | |
2750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a323d3bd RD |
2751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { |
2752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
7a9b33db RD |
2753 | return NULL; |
2754 | } | |
2755 | } | |
2756 | { | |
474c48f9 | 2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a323d3bd | 2758 | _result = (bool )wxCursor_Ok(_arg0); |
7a9b33db | 2759 | |
474c48f9 | 2760 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
2761 | if (PyErr_Occurred()) return NULL; |
2762 | } _resultobj = Py_BuildValue("i",_result); | |
2763 | return _resultobj; | |
2764 | } | |
2765 | ||
9df61a29 RD |
2766 | static void *SwigwxColourTowxObject(void *ptr) { |
2767 | wxColour *src; | |
2768 | wxObject *dest; | |
2769 | src = (wxColour *) ptr; | |
2770 | dest = (wxObject *) src; | |
2771 | return (void *) dest; | |
2772 | } | |
2773 | ||
70551f47 | 2774 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 2775 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2776 | PyObject * _resultobj; |
2777 | wxColour * _result; | |
2d091820 RD |
2778 | unsigned char _arg0 = (unsigned char ) 0; |
2779 | unsigned char _arg1 = (unsigned char ) 0; | |
2780 | unsigned char _arg2 = (unsigned char ) 0; | |
107e4716 | 2781 | char *_kwnames[] = { "red","green","blue", NULL }; |
70551f47 RD |
2782 | char _ptemp[128]; |
2783 | ||
2784 | self = self; | |
107e4716 | 2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 2786 | return NULL; |
ab9bc19b | 2787 | { |
474c48f9 | 2788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2789 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
ab9bc19b | 2790 | |
474c48f9 | 2791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2792 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2793 | } if (_result) { |
2794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
2795 | _resultobj = Py_BuildValue("s",_ptemp); | |
2796 | } else { | |
2797 | Py_INCREF(Py_None); | |
2798 | _resultobj = Py_None; | |
2799 | } | |
70551f47 RD |
2800 | return _resultobj; |
2801 | } | |
2802 | ||
2803 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
107e4716 | 2804 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2805 | PyObject * _resultobj; |
2806 | wxColour * _arg0; | |
f6bcfd97 BP |
2807 | wxColour temp; |
2808 | PyObject * _obj0 = 0; | |
107e4716 | 2809 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2810 | |
2811 | self = self; | |
f6bcfd97 | 2812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
70551f47 | 2813 | return NULL; |
f6bcfd97 BP |
2814 | { |
2815 | _arg0 = &temp; | |
2816 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2817 | return NULL; |
f6bcfd97 | 2818 | } |
ab9bc19b | 2819 | { |
474c48f9 | 2820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2821 | delete_wxColour(_arg0); |
ab9bc19b | 2822 | |
474c48f9 | 2823 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2824 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2825 | } Py_INCREF(Py_None); |
70551f47 RD |
2826 | _resultobj = Py_None; |
2827 | return _resultobj; | |
2828 | } | |
2829 | ||
2830 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
107e4716 | 2831 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2832 | PyObject * _resultobj; |
2833 | unsigned char _result; | |
2834 | wxColour * _arg0; | |
f6bcfd97 BP |
2835 | wxColour temp; |
2836 | PyObject * _obj0 = 0; | |
107e4716 | 2837 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2838 | |
2839 | self = self; | |
f6bcfd97 | 2840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
70551f47 | 2841 | return NULL; |
f6bcfd97 BP |
2842 | { |
2843 | _arg0 = &temp; | |
2844 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2845 | return NULL; |
f6bcfd97 | 2846 | } |
ab9bc19b | 2847 | { |
474c48f9 | 2848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2849 | _result = (unsigned char )wxColour_Red(_arg0); |
ab9bc19b | 2850 | |
474c48f9 | 2851 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2852 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2853 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
2854 | return _resultobj; |
2855 | } | |
2856 | ||
2857 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
107e4716 | 2858 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2859 | PyObject * _resultobj; |
2860 | unsigned char _result; | |
2861 | wxColour * _arg0; | |
f6bcfd97 BP |
2862 | wxColour temp; |
2863 | PyObject * _obj0 = 0; | |
107e4716 | 2864 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2865 | |
2866 | self = self; | |
f6bcfd97 | 2867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
70551f47 | 2868 | return NULL; |
f6bcfd97 BP |
2869 | { |
2870 | _arg0 = &temp; | |
2871 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2872 | return NULL; |
f6bcfd97 | 2873 | } |
ab9bc19b | 2874 | { |
474c48f9 | 2875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2876 | _result = (unsigned char )wxColour_Green(_arg0); |
ab9bc19b | 2877 | |
474c48f9 | 2878 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2879 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2880 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
2881 | return _resultobj; |
2882 | } | |
2883 | ||
2884 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
107e4716 | 2885 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2886 | PyObject * _resultobj; |
2887 | unsigned char _result; | |
2888 | wxColour * _arg0; | |
f6bcfd97 BP |
2889 | wxColour temp; |
2890 | PyObject * _obj0 = 0; | |
107e4716 | 2891 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2892 | |
2893 | self = self; | |
f6bcfd97 | 2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
70551f47 | 2895 | return NULL; |
f6bcfd97 BP |
2896 | { |
2897 | _arg0 = &temp; | |
2898 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2899 | return NULL; |
f6bcfd97 | 2900 | } |
ab9bc19b | 2901 | { |
474c48f9 | 2902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2903 | _result = (unsigned char )wxColour_Blue(_arg0); |
ab9bc19b | 2904 | |
474c48f9 | 2905 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2906 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2907 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
2908 | return _resultobj; |
2909 | } | |
2910 | ||
2911 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 2912 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2913 | PyObject * _resultobj; |
2914 | bool _result; | |
2915 | wxColour * _arg0; | |
f6bcfd97 BP |
2916 | wxColour temp; |
2917 | PyObject * _obj0 = 0; | |
107e4716 | 2918 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2919 | |
2920 | self = self; | |
f6bcfd97 | 2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
70551f47 | 2922 | return NULL; |
f6bcfd97 BP |
2923 | { |
2924 | _arg0 = &temp; | |
2925 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2926 | return NULL; |
f6bcfd97 | 2927 | } |
ab9bc19b | 2928 | { |
474c48f9 | 2929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2930 | _result = (bool )wxColour_Ok(_arg0); |
ab9bc19b | 2931 | |
474c48f9 | 2932 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2933 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2934 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2935 | return _resultobj; |
2936 | } | |
2937 | ||
2938 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 2939 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2940 | PyObject * _resultobj; |
2941 | wxColour * _arg0; | |
2942 | unsigned char _arg1; | |
2943 | unsigned char _arg2; | |
2944 | unsigned char _arg3; | |
f6bcfd97 BP |
2945 | wxColour temp; |
2946 | PyObject * _obj0 = 0; | |
107e4716 | 2947 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
70551f47 RD |
2948 | |
2949 | self = self; | |
f6bcfd97 | 2950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
70551f47 | 2951 | return NULL; |
f6bcfd97 BP |
2952 | { |
2953 | _arg0 = &temp; | |
2954 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2955 | return NULL; |
f6bcfd97 | 2956 | } |
ab9bc19b | 2957 | { |
474c48f9 | 2958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2959 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 2960 | |
474c48f9 | 2961 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2962 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2963 | } Py_INCREF(Py_None); |
70551f47 RD |
2964 | _resultobj = Py_None; |
2965 | return _resultobj; | |
2966 | } | |
2967 | ||
2968 | static PyObject * wxColour_Get(wxColour *self) { | |
2969 | PyObject* rv = PyTuple_New(3); | |
2970 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
2971 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
2972 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
2973 | return rv; | |
2974 | } | |
107e4716 | 2975 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2976 | PyObject * _resultobj; |
2977 | PyObject * _result; | |
2978 | wxColour * _arg0; | |
f6bcfd97 BP |
2979 | wxColour temp; |
2980 | PyObject * _obj0 = 0; | |
107e4716 | 2981 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2982 | |
2983 | self = self; | |
f6bcfd97 | 2984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
70551f47 | 2985 | return NULL; |
f6bcfd97 BP |
2986 | { |
2987 | _arg0 = &temp; | |
2988 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2989 | return NULL; |
f6bcfd97 | 2990 | } |
70551f47 | 2991 | { |
474c48f9 | 2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2993 | _result = (PyObject *)wxColour_Get(_arg0); |
ab9bc19b | 2994 | |
474c48f9 | 2995 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2996 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2997 | }{ |
70551f47 RD |
2998 | _resultobj = _result; |
2999 | } | |
3000 | return _resultobj; | |
3001 | } | |
3002 | ||
9df61a29 RD |
3003 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
3004 | wxColourDatabase *src; | |
3005 | wxObject *dest; | |
3006 | src = (wxColourDatabase *) ptr; | |
3007 | dest = (wxObject *) src; | |
3008 | return (void *) dest; | |
3009 | } | |
3010 | ||
5e40f9dd RD |
3011 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
3012 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3013 | PyObject * _resultobj; |
5e40f9dd RD |
3014 | wxColour * _result; |
3015 | wxColourDatabase * _arg0; | |
3016 | wxString * _arg1; | |
3017 | PyObject * _argo0 = 0; | |
3018 | PyObject * _obj1 = 0; | |
3019 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
3020 | char _ptemp[128]; |
3021 | ||
3022 | self = self; | |
5e40f9dd RD |
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) |
3024 | return NULL; | |
3025 | if (_argo0) { | |
3026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
70551f47 | 3029 | return NULL; |
5e40f9dd RD |
3030 | } |
3031 | } | |
f6bcfd97 | 3032 | { |
c8bc7bb8 RD |
3033 | _arg1 = wxString_in_helper(_obj1); |
3034 | if (_arg1 == NULL) | |
5e40f9dd | 3035 | return NULL; |
f6bcfd97 | 3036 | } |
ab9bc19b | 3037 | { |
474c48f9 | 3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3039 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
ab9bc19b | 3040 | |
474c48f9 | 3041 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3042 | if (PyErr_Occurred()) return NULL; |
2d091820 | 3043 | } if (_result) { |
5e40f9dd | 3044 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); |
2d091820 RD |
3045 | _resultobj = Py_BuildValue("s",_ptemp); |
3046 | } else { | |
3047 | Py_INCREF(Py_None); | |
3048 | _resultobj = Py_None; | |
3049 | } | |
5e40f9dd RD |
3050 | { |
3051 | if (_obj1) | |
3052 | delete _arg1; | |
3053 | } | |
70551f47 RD |
3054 | return _resultobj; |
3055 | } | |
3056 | ||
5e40f9dd RD |
3057 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) |
3058 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3059 | PyObject * _resultobj; |
5e40f9dd RD |
3060 | wxString * _result; |
3061 | wxColourDatabase * _arg0; | |
3062 | wxColour * _arg1; | |
2d091820 | 3063 | PyObject * _argo0 = 0; |
5e40f9dd RD |
3064 | wxColour temp; |
3065 | PyObject * _obj1 = 0; | |
3066 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
3067 | |
3068 | self = self; | |
5e40f9dd | 3069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3070 | return NULL; |
2d091820 RD |
3071 | if (_argo0) { |
3072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
3073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
3074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
70551f47 RD |
3075 | return NULL; |
3076 | } | |
3077 | } | |
5e40f9dd RD |
3078 | { |
3079 | _arg1 = &temp; | |
3080 | if (! wxColour_helper(_obj1, &_arg1)) | |
3081 | return NULL; | |
3082 | } | |
ab9bc19b | 3083 | { |
474c48f9 | 3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3085 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
ab9bc19b | 3086 | |
474c48f9 | 3087 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3088 | if (PyErr_Occurred()) return NULL; |
5e40f9dd | 3089 | }{ |
c8bc7bb8 RD |
3090 | #if wxUSE_UNICODE |
3091 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3092 | #else | |
5e40f9dd | 3093 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3094 | #endif |
5e40f9dd RD |
3095 | } |
3096 | { | |
3097 | delete _result; | |
3098 | } | |
70551f47 RD |
3099 | return _resultobj; |
3100 | } | |
3101 | ||
5e40f9dd | 3102 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { |
ef2060fa RD |
3103 | // first see if the name is already there |
3104 | wxString cName = name; | |
3105 | cName.MakeUpper(); | |
3106 | wxString cName2 = cName; | |
49df1f52 | 3107 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) |
ef2060fa RD |
3108 | cName2.clear(); |
3109 | ||
3110 | wxNode *node = self->First(); | |
3111 | while ( node ) { | |
3112 | const wxChar *key = node->GetKeyString(); | |
3113 | if ( cName == key || cName2 == key ) { | |
3114 | wxColour* c = (wxColour *)node->Data(); | |
3115 | c->Set(red, green, blue); | |
3116 | return; | |
3117 | } | |
3118 | node = node->Next(); | |
3119 | } | |
3120 | ||
3121 | // otherwise append the new colour | |
5e40f9dd RD |
3122 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
3123 | } | |
3124 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3125 | PyObject * _resultobj; |
5e40f9dd RD |
3126 | wxColourDatabase * _arg0; |
3127 | wxString * _arg1; | |
3128 | int _arg2; | |
3129 | int _arg3; | |
3130 | int _arg4; | |
2d091820 | 3131 | PyObject * _argo0 = 0; |
5e40f9dd RD |
3132 | PyObject * _obj1 = 0; |
3133 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
70551f47 RD |
3134 | |
3135 | self = self; | |
5e40f9dd | 3136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 3137 | return NULL; |
2d091820 RD |
3138 | if (_argo0) { |
3139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
3140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
3141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
70551f47 RD |
3142 | return NULL; |
3143 | } | |
3144 | } | |
ab9bc19b | 3145 | { |
c8bc7bb8 RD |
3146 | _arg1 = wxString_in_helper(_obj1); |
3147 | if (_arg1 == NULL) | |
5e40f9dd | 3148 | return NULL; |
5e40f9dd RD |
3149 | } |
3150 | { | |
474c48f9 | 3151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3152 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
5e40f9dd | 3153 | |
474c48f9 | 3154 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3155 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3156 | } Py_INCREF(Py_None); |
3157 | _resultobj = Py_None; | |
3158 | { | |
3159 | if (_obj1) | |
3160 | delete _arg1; | |
3161 | } | |
3162 | return _resultobj; | |
3163 | } | |
3164 | ||
9df61a29 RD |
3165 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
3166 | wxPen *src; | |
3167 | wxGDIObject *dest; | |
3168 | src = (wxPen *) ptr; | |
3169 | dest = (wxGDIObject *) src; | |
3170 | return (void *) dest; | |
3171 | } | |
3172 | ||
3173 | static void *SwigwxPenTowxObject(void *ptr) { | |
3174 | wxPen *src; | |
3175 | wxObject *dest; | |
3176 | src = (wxPen *) ptr; | |
3177 | dest = (wxObject *) src; | |
3178 | return (void *) dest; | |
3179 | } | |
3180 | ||
5e40f9dd RD |
3181 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
3182 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3183 | PyObject * _resultobj; | |
3184 | wxPen * _result; | |
3185 | wxColour * _arg0; | |
3186 | int _arg1 = (int ) 1; | |
3187 | int _arg2 = (int ) wxSOLID; | |
3188 | wxColour temp; | |
3189 | PyObject * _obj0 = 0; | |
3190 | char *_kwnames[] = { "colour","width","style", NULL }; | |
3191 | char _ptemp[128]; | |
3192 | ||
3193 | self = self; | |
3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
3195 | return NULL; | |
3196 | { | |
3197 | _arg0 = &temp; | |
3198 | if (! wxColour_helper(_obj0, &_arg0)) | |
3199 | return NULL; | |
3200 | } | |
3201 | { | |
474c48f9 | 3202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3203 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
5e40f9dd | 3204 | |
474c48f9 | 3205 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3206 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3207 | } if (_result) { |
3208 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3209 | _resultobj = Py_BuildValue("s",_ptemp); | |
3210 | } else { | |
3211 | Py_INCREF(Py_None); | |
3212 | _resultobj = Py_None; | |
3213 | } | |
3214 | return _resultobj; | |
3215 | } | |
3216 | ||
3217 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
3218 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3219 | PyObject * _resultobj; | |
3220 | wxPen * _arg0; | |
3221 | PyObject * _argo0 = 0; | |
3222 | char *_kwnames[] = { "self", NULL }; | |
3223 | ||
3224 | self = self; | |
3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
3226 | return NULL; | |
3227 | if (_argo0) { | |
3228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
3231 | return NULL; | |
3232 | } | |
3233 | } | |
3234 | { | |
474c48f9 | 3235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3236 | delete_wxPen(_arg0); |
5e40f9dd | 3237 | |
474c48f9 | 3238 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3239 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3240 | } Py_INCREF(Py_None); |
3241 | _resultobj = Py_None; | |
3242 | return _resultobj; | |
3243 | } | |
3244 | ||
3245 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
3246 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject * _resultobj; | |
3248 | int _result; | |
3249 | wxPen * _arg0; | |
3250 | PyObject * _argo0 = 0; | |
3251 | char *_kwnames[] = { "self", NULL }; | |
3252 | ||
3253 | self = self; | |
3254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
3255 | return NULL; | |
3256 | if (_argo0) { | |
3257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
3260 | return NULL; | |
3261 | } | |
3262 | } | |
3263 | { | |
474c48f9 | 3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3265 | _result = (int )wxPen_GetCap(_arg0); |
5e40f9dd | 3266 | |
474c48f9 | 3267 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3268 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3269 | } _resultobj = Py_BuildValue("i",_result); |
3270 | return _resultobj; | |
3271 | } | |
3272 | ||
3273 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
3274 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3275 | PyObject * _resultobj; | |
3276 | wxColour * _result; | |
3277 | wxPen * _arg0; | |
3278 | PyObject * _argo0 = 0; | |
3279 | char *_kwnames[] = { "self", NULL }; | |
3280 | char _ptemp[128]; | |
3281 | ||
3282 | self = self; | |
3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
3284 | return NULL; | |
3285 | if (_argo0) { | |
3286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
3292 | { | |
474c48f9 | 3293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3294 | _result = new wxColour (wxPen_GetColour(_arg0)); |
5e40f9dd | 3295 | |
474c48f9 | 3296 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3297 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
3298 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3299 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
3300 | return _resultobj; |
3301 | } | |
3302 | ||
3303 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
107e4716 | 3304 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3305 | PyObject * _resultobj; |
3306 | int _result; | |
3307 | wxPen * _arg0; | |
2d091820 | 3308 | PyObject * _argo0 = 0; |
107e4716 | 3309 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3310 | |
3311 | self = self; | |
107e4716 | 3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
70551f47 | 3313 | return NULL; |
2d091820 RD |
3314 | if (_argo0) { |
3315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
3318 | return NULL; | |
3319 | } | |
3320 | } | |
ab9bc19b | 3321 | { |
474c48f9 | 3322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3323 | _result = (int )wxPen_GetJoin(_arg0); |
ab9bc19b | 3324 | |
474c48f9 | 3325 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3326 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3327 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3328 | return _resultobj; |
3329 | } | |
3330 | ||
3331 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 3332 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3333 | PyObject * _resultobj; |
3334 | int _result; | |
3335 | wxPen * _arg0; | |
2d091820 | 3336 | PyObject * _argo0 = 0; |
107e4716 | 3337 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3338 | |
3339 | self = self; | |
107e4716 | 3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
70551f47 | 3341 | return NULL; |
2d091820 RD |
3342 | if (_argo0) { |
3343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
ab9bc19b | 3349 | { |
474c48f9 | 3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3351 | _result = (int )wxPen_GetStyle(_arg0); |
ab9bc19b | 3352 | |
474c48f9 | 3353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3354 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3355 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3356 | return _resultobj; |
3357 | } | |
3358 | ||
3359 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 3360 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3361 | PyObject * _resultobj; |
3362 | int _result; | |
3363 | wxPen * _arg0; | |
2d091820 | 3364 | PyObject * _argo0 = 0; |
107e4716 | 3365 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3366 | |
3367 | self = self; | |
107e4716 | 3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
70551f47 | 3369 | return NULL; |
2d091820 RD |
3370 | if (_argo0) { |
3371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
3374 | return NULL; | |
3375 | } | |
3376 | } | |
ab9bc19b | 3377 | { |
474c48f9 | 3378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3379 | _result = (int )wxPen_GetWidth(_arg0); |
ab9bc19b | 3380 | |
474c48f9 | 3381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3382 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3383 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3384 | return _resultobj; |
3385 | } | |
3386 | ||
3387 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 3388 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3389 | PyObject * _resultobj; |
3390 | bool _result; | |
3391 | wxPen * _arg0; | |
2d091820 | 3392 | PyObject * _argo0 = 0; |
107e4716 | 3393 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3394 | |
3395 | self = self; | |
107e4716 | 3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
70551f47 | 3397 | return NULL; |
2d091820 RD |
3398 | if (_argo0) { |
3399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
3402 | return NULL; | |
3403 | } | |
3404 | } | |
ab9bc19b | 3405 | { |
474c48f9 | 3406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3407 | _result = (bool )wxPen_Ok(_arg0); |
ab9bc19b | 3408 | |
474c48f9 | 3409 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3410 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3411 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3412 | return _resultobj; |
3413 | } | |
3414 | ||
3415 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
107e4716 | 3416 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3417 | PyObject * _resultobj; |
3418 | wxPen * _arg0; | |
3419 | int _arg1; | |
2d091820 | 3420 | PyObject * _argo0 = 0; |
107e4716 | 3421 | char *_kwnames[] = { "self","cap_style", NULL }; |
70551f47 RD |
3422 | |
3423 | self = self; | |
107e4716 | 3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3425 | return NULL; |
2d091820 RD |
3426 | if (_argo0) { |
3427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
3430 | return NULL; | |
3431 | } | |
3432 | } | |
ab9bc19b | 3433 | { |
474c48f9 | 3434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3435 | wxPen_SetCap(_arg0,_arg1); |
ab9bc19b | 3436 | |
474c48f9 | 3437 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3438 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3439 | } Py_INCREF(Py_None); |
70551f47 RD |
3440 | _resultobj = Py_None; |
3441 | return _resultobj; | |
3442 | } | |
3443 | ||
3444 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 3445 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3446 | PyObject * _resultobj; |
3447 | wxPen * _arg0; | |
3448 | wxColour * _arg1; | |
2d091820 | 3449 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3450 | wxColour temp; |
3451 | PyObject * _obj1 = 0; | |
107e4716 | 3452 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
3453 | |
3454 | self = self; | |
f6bcfd97 | 3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3456 | return NULL; |
2d091820 RD |
3457 | if (_argo0) { |
3458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
3461 | return NULL; | |
3462 | } | |
3463 | } | |
f6bcfd97 BP |
3464 | { |
3465 | _arg1 = &temp; | |
3466 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 3467 | return NULL; |
f6bcfd97 | 3468 | } |
ab9bc19b | 3469 | { |
474c48f9 | 3470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3471 | wxPen_SetColour(_arg0,*_arg1); |
ab9bc19b | 3472 | |
474c48f9 | 3473 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3474 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3475 | } Py_INCREF(Py_None); |
70551f47 RD |
3476 | _resultobj = Py_None; |
3477 | return _resultobj; | |
3478 | } | |
3479 | ||
3480 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
107e4716 | 3481 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3482 | PyObject * _resultobj; |
3483 | wxPen * _arg0; | |
3484 | int _arg1; | |
2d091820 | 3485 | PyObject * _argo0 = 0; |
107e4716 | 3486 | char *_kwnames[] = { "self","join_style", NULL }; |
70551f47 RD |
3487 | |
3488 | self = self; | |
107e4716 | 3489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3490 | return NULL; |
2d091820 RD |
3491 | if (_argo0) { |
3492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
3495 | return NULL; | |
3496 | } | |
3497 | } | |
ab9bc19b | 3498 | { |
474c48f9 | 3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3500 | wxPen_SetJoin(_arg0,_arg1); |
ab9bc19b | 3501 | |
474c48f9 | 3502 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3503 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3504 | } Py_INCREF(Py_None); |
70551f47 RD |
3505 | _resultobj = Py_None; |
3506 | return _resultobj; | |
3507 | } | |
3508 | ||
3509 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 3510 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3511 | PyObject * _resultobj; |
3512 | wxPen * _arg0; | |
3513 | int _arg1; | |
2d091820 | 3514 | PyObject * _argo0 = 0; |
107e4716 | 3515 | char *_kwnames[] = { "self","style", NULL }; |
70551f47 RD |
3516 | |
3517 | self = self; | |
107e4716 | 3518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3519 | return NULL; |
2d091820 RD |
3520 | if (_argo0) { |
3521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
3524 | return NULL; | |
3525 | } | |
3526 | } | |
ab9bc19b | 3527 | { |
474c48f9 | 3528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3529 | wxPen_SetStyle(_arg0,_arg1); |
ab9bc19b | 3530 | |
474c48f9 | 3531 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3532 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3533 | } Py_INCREF(Py_None); |
70551f47 RD |
3534 | _resultobj = Py_None; |
3535 | return _resultobj; | |
3536 | } | |
3537 | ||
3538 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
107e4716 | 3539 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3540 | PyObject * _resultobj; |
3541 | wxPen * _arg0; | |
3542 | int _arg1; | |
2d091820 | 3543 | PyObject * _argo0 = 0; |
107e4716 | 3544 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
3545 | |
3546 | self = self; | |
107e4716 | 3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3548 | return NULL; |
2d091820 RD |
3549 | if (_argo0) { |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
ab9bc19b | 3556 | { |
474c48f9 | 3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3558 | wxPen_SetWidth(_arg0,_arg1); |
ab9bc19b | 3559 | |
474c48f9 | 3560 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3561 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3562 | } Py_INCREF(Py_None); |
70551f47 RD |
3563 | _resultobj = Py_None; |
3564 | return _resultobj; | |
3565 | } | |
3566 | ||
65191ae8 RD |
3567 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
3568 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 3569 | PyObject * _resultobj; |
56f5d962 | 3570 | wxPen * _arg0; |
65191ae8 RD |
3571 | int _arg1; |
3572 | wxDash * _arg2; | |
56f5d962 | 3573 | PyObject * _argo0 = 0; |
65191ae8 RD |
3574 | PyObject * _obj2 = 0; |
3575 | char *_kwnames[] = { "self","choices", NULL }; | |
56f5d962 RD |
3576 | |
3577 | self = self; | |
65191ae8 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
56f5d962 RD |
3579 | return NULL; |
3580 | if (_argo0) { | |
3581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
65191ae8 | 3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
56f5d962 RD |
3584 | return NULL; |
3585 | } | |
3586 | } | |
65191ae8 RD |
3587 | if (_obj2) |
3588 | { | |
3589 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
3590 | if (_arg2 == NULL) { | |
3591 | return NULL; | |
3592 | } | |
3593 | } | |
3594 | { | |
3595 | if (_obj2) { | |
3596 | _arg1 = PyList_Size(_obj2); | |
3597 | } | |
3598 | else { | |
3599 | _arg1 = 0; | |
3600 | } | |
3601 | } | |
3602 | { | |
474c48f9 | 3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3604 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
65191ae8 | 3605 | |
474c48f9 | 3606 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
3607 | if (PyErr_Occurred()) return NULL; |
3608 | } Py_INCREF(Py_None); | |
3609 | _resultobj = Py_None; | |
3610 | { | |
3611 | delete [] _arg2; | |
3612 | } | |
3613 | return _resultobj; | |
3614 | } | |
3615 | ||
298ae144 RD |
3616 | static PyObject * wxPen_GetDashes(wxPen *self) { |
3617 | wxDash* dashes; | |
3618 | int count = self->GetDashes(&dashes); | |
3619 | wxPyBeginBlockThreads(); | |
3620 | PyObject* retval = PyList_New(0); | |
3621 | for (int x=0; x<count; x++) | |
3622 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
3623 | wxPyEndBlockThreads(); | |
3624 | return retval; | |
3625 | } | |
3626 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3627 | PyObject * _resultobj; | |
3628 | PyObject * _result; | |
3629 | wxPen * _arg0; | |
3630 | PyObject * _argo0 = 0; | |
3631 | char *_kwnames[] = { "self", NULL }; | |
3632 | ||
3633 | self = self; | |
3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0)) | |
3635 | return NULL; | |
3636 | if (_argo0) { | |
3637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
3640 | return NULL; | |
3641 | } | |
3642 | } | |
3643 | { | |
3644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3645 | _result = (PyObject *)wxPen_GetDashes(_arg0); | |
3646 | ||
3647 | wxPyEndAllowThreads(__tstate); | |
3648 | if (PyErr_Occurred()) return NULL; | |
3649 | }{ | |
3650 | _resultobj = _result; | |
3651 | } | |
3652 | return _resultobj; | |
3653 | } | |
3654 | ||
65191ae8 RD |
3655 | static void *SwigwxPyPenTowxPen(void *ptr) { |
3656 | wxPyPen *src; | |
3657 | wxPen *dest; | |
3658 | src = (wxPyPen *) ptr; | |
3659 | dest = (wxPen *) src; | |
3660 | return (void *) dest; | |
3661 | } | |
3662 | ||
3663 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
3664 | wxPyPen *src; | |
3665 | wxGDIObject *dest; | |
3666 | src = (wxPyPen *) ptr; | |
3667 | dest = (wxGDIObject *) src; | |
3668 | return (void *) dest; | |
3669 | } | |
3670 | ||
3671 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
3672 | wxPyPen *src; | |
3673 | wxObject *dest; | |
3674 | src = (wxPyPen *) ptr; | |
3675 | dest = (wxObject *) src; | |
3676 | return (void *) dest; | |
3677 | } | |
3678 | ||
3679 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
3680 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3681 | PyObject * _resultobj; | |
3682 | wxPyPen * _result; | |
3683 | wxColour * _arg0; | |
3684 | int _arg1 = (int ) 1; | |
3685 | int _arg2 = (int ) wxSOLID; | |
3686 | wxColour temp; | |
3687 | PyObject * _obj0 = 0; | |
3688 | char *_kwnames[] = { "colour","width","style", NULL }; | |
3689 | char _ptemp[128]; | |
3690 | ||
3691 | self = self; | |
3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
3693 | return NULL; | |
3694 | { | |
3695 | _arg0 = &temp; | |
3696 | if (! wxColour_helper(_obj0, &_arg0)) | |
3697 | return NULL; | |
3698 | } | |
3699 | { | |
474c48f9 | 3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3701 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
65191ae8 | 3702 | |
474c48f9 | 3703 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
3704 | if (PyErr_Occurred()) return NULL; |
3705 | } if (_result) { | |
3706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
3707 | _resultobj = Py_BuildValue("s",_ptemp); | |
3708 | } else { | |
3709 | Py_INCREF(Py_None); | |
3710 | _resultobj = Py_None; | |
3711 | } | |
3712 | return _resultobj; | |
3713 | } | |
3714 | ||
3715 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
3716 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject * _resultobj; | |
3718 | wxPyPen * _arg0; | |
3719 | PyObject * _argo0 = 0; | |
3720 | char *_kwnames[] = { "self", NULL }; | |
3721 | ||
3722 | self = self; | |
3723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
3724 | return NULL; | |
3725 | if (_argo0) { | |
3726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
3728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
56f5d962 RD |
3729 | return NULL; |
3730 | } | |
3731 | } | |
3732 | { | |
474c48f9 | 3733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3734 | delete_wxPyPen(_arg0); |
56f5d962 | 3735 | |
474c48f9 | 3736 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3737 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
3738 | } Py_INCREF(Py_None); |
3739 | _resultobj = Py_None; | |
56f5d962 RD |
3740 | return _resultobj; |
3741 | } | |
3742 | ||
65191ae8 RD |
3743 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
3744 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 3745 | PyObject * _resultobj; |
65191ae8 | 3746 | wxPyPen * _arg0; |
56f5d962 RD |
3747 | int _arg1; |
3748 | wxDash * _arg2; | |
3749 | PyObject * _argo0 = 0; | |
3750 | PyObject * _obj2 = 0; | |
e02c03a4 | 3751 | char *_kwnames[] = { "self","choices", NULL }; |
56f5d962 RD |
3752 | |
3753 | self = self; | |
65191ae8 | 3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
56f5d962 RD |
3755 | return NULL; |
3756 | if (_argo0) { | |
3757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
3758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { |
3759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
56f5d962 RD |
3760 | return NULL; |
3761 | } | |
3762 | } | |
3763 | if (_obj2) | |
3764 | { | |
41073357 | 3765 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
56f5d962 RD |
3766 | if (_arg2 == NULL) { |
3767 | return NULL; | |
3768 | } | |
3769 | } | |
3770 | { | |
3771 | if (_obj2) { | |
3772 | _arg1 = PyList_Size(_obj2); | |
3773 | } | |
3774 | else { | |
3775 | _arg1 = 0; | |
3776 | } | |
3777 | } | |
3778 | { | |
474c48f9 | 3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3780 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
56f5d962 | 3781 | |
474c48f9 | 3782 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3783 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
3784 | } Py_INCREF(Py_None); |
3785 | _resultobj = Py_None; | |
3786 | { | |
3787 | delete [] _arg2; | |
3788 | } | |
3789 | return _resultobj; | |
3790 | } | |
3791 | ||
9df61a29 RD |
3792 | static void *SwigwxPenListTowxObject(void *ptr) { |
3793 | wxPenList *src; | |
3794 | wxObject *dest; | |
3795 | src = (wxPenList *) ptr; | |
3796 | dest = (wxObject *) src; | |
3797 | return (void *) dest; | |
3798 | } | |
3799 | ||
5e40f9dd RD |
3800 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
3801 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3802 | PyObject * _resultobj; | |
3803 | wxPenList * _arg0; | |
3804 | wxPen * _arg1; | |
3805 | PyObject * _argo0 = 0; | |
3806 | PyObject * _argo1 = 0; | |
3807 | char *_kwnames[] = { "self","pen", NULL }; | |
3808 | ||
3809 | self = self; | |
3810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
3811 | return NULL; | |
3812 | if (_argo0) { | |
3813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
3816 | return NULL; | |
70551f47 | 3817 | } |
5e40f9dd RD |
3818 | } |
3819 | if (_argo1) { | |
3820 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3821 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
3822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
3823 | return NULL; | |
3824 | } | |
3825 | } | |
3826 | { | |
474c48f9 | 3827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3828 | wxPenList_AddPen(_arg0,_arg1); |
70551f47 | 3829 | |
474c48f9 | 3830 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3831 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3832 | } Py_INCREF(Py_None); |
3833 | _resultobj = Py_None; | |
3834 | return _resultobj; | |
3835 | } | |
3836 | ||
3837 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
3838 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3839 | PyObject * _resultobj; | |
3840 | wxPen * _result; | |
3841 | wxPenList * _arg0; | |
3842 | wxColour * _arg1; | |
3843 | int _arg2; | |
3844 | int _arg3; | |
3845 | PyObject * _argo0 = 0; | |
3846 | wxColour temp; | |
3847 | PyObject * _obj1 = 0; | |
3848 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
3849 | char _ptemp[128]; | |
3850 | ||
3851 | self = self; | |
3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
3853 | return NULL; | |
3854 | if (_argo0) { | |
3855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
3858 | return NULL; | |
3859 | } | |
3860 | } | |
3861 | { | |
3862 | _arg1 = &temp; | |
3863 | if (! wxColour_helper(_obj1, &_arg1)) | |
3864 | return NULL; | |
3865 | } | |
3866 | { | |
474c48f9 | 3867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3868 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
5e40f9dd | 3869 | |
474c48f9 | 3870 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3871 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3872 | } if (_result) { |
3873 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3874 | _resultobj = Py_BuildValue("s",_ptemp); | |
3875 | } else { | |
3876 | Py_INCREF(Py_None); | |
3877 | _resultobj = Py_None; | |
3878 | } | |
3879 | return _resultobj; | |
3880 | } | |
3881 | ||
3882 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
3883 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3884 | PyObject * _resultobj; | |
3885 | wxPenList * _arg0; | |
3886 | wxPen * _arg1; | |
3887 | PyObject * _argo0 = 0; | |
3888 | PyObject * _argo1 = 0; | |
3889 | char *_kwnames[] = { "self","pen", NULL }; | |
3890 | ||
3891 | self = self; | |
3892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
3893 | return NULL; | |
3894 | if (_argo0) { | |
3895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
3898 | return NULL; | |
3899 | } | |
3900 | } | |
3901 | if (_argo1) { | |
3902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
3904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
3905 | return NULL; | |
3906 | } | |
3907 | } | |
3908 | { | |
474c48f9 | 3909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3910 | wxPenList_RemovePen(_arg0,_arg1); |
5e40f9dd | 3911 | |
474c48f9 | 3912 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3913 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3914 | } Py_INCREF(Py_None); |
3915 | _resultobj = Py_None; | |
3916 | return _resultobj; | |
3917 | } | |
3918 | ||
7a9b33db RD |
3919 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
3920 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3921 | PyObject * _resultobj; | |
3922 | int _result; | |
3923 | wxPenList * _arg0; | |
3924 | PyObject * _argo0 = 0; | |
3925 | char *_kwnames[] = { "self", NULL }; | |
3926 | ||
3927 | self = self; | |
3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
3929 | return NULL; | |
3930 | if (_argo0) { | |
3931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
3934 | return NULL; | |
3935 | } | |
3936 | } | |
3937 | { | |
474c48f9 | 3938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3939 | _result = (int )wxPenList_GetCount(_arg0); |
7a9b33db | 3940 | |
474c48f9 | 3941 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
3942 | if (PyErr_Occurred()) return NULL; |
3943 | } _resultobj = Py_BuildValue("i",_result); | |
3944 | return _resultobj; | |
3945 | } | |
3946 | ||
9df61a29 RD |
3947 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
3948 | wxBrush *src; | |
3949 | wxGDIObject *dest; | |
3950 | src = (wxBrush *) ptr; | |
3951 | dest = (wxGDIObject *) src; | |
3952 | return (void *) dest; | |
3953 | } | |
3954 | ||
3955 | static void *SwigwxBrushTowxObject(void *ptr) { | |
3956 | wxBrush *src; | |
3957 | wxObject *dest; | |
3958 | src = (wxBrush *) ptr; | |
3959 | dest = (wxObject *) src; | |
3960 | return (void *) dest; | |
3961 | } | |
3962 | ||
5e40f9dd | 3963 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
107e4716 | 3964 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3965 | PyObject * _resultobj; |
3966 | wxBrush * _result; | |
3967 | wxColour * _arg0; | |
2d091820 | 3968 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
3969 | wxColour temp; |
3970 | PyObject * _obj0 = 0; | |
107e4716 | 3971 | char *_kwnames[] = { "colour","style", NULL }; |
70551f47 RD |
3972 | char _ptemp[128]; |
3973 | ||
3974 | self = self; | |
f6bcfd97 | 3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
70551f47 | 3976 | return NULL; |
f6bcfd97 BP |
3977 | { |
3978 | _arg0 = &temp; | |
3979 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3980 | return NULL; |
f6bcfd97 | 3981 | } |
ab9bc19b | 3982 | { |
474c48f9 | 3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3984 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
ab9bc19b | 3985 | |
474c48f9 | 3986 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3987 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3988 | } if (_result) { |
3989 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
3990 | _resultobj = Py_BuildValue("s",_ptemp); | |
3991 | } else { | |
3992 | Py_INCREF(Py_None); | |
3993 | _resultobj = Py_None; | |
3994 | } | |
70551f47 RD |
3995 | return _resultobj; |
3996 | } | |
3997 | ||
5e40f9dd RD |
3998 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
3999 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4000 | PyObject * _resultobj; | |
4001 | wxBrush * _arg0; | |
4002 | PyObject * _argo0 = 0; | |
4003 | char *_kwnames[] = { "self", NULL }; | |
4004 | ||
4005 | self = self; | |
4006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
4007 | return NULL; | |
4008 | if (_argo0) { | |
4009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
4012 | return NULL; | |
4013 | } | |
4014 | } | |
4015 | { | |
474c48f9 | 4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4017 | delete_wxBrush(_arg0); |
5e40f9dd | 4018 | |
474c48f9 | 4019 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4020 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4021 | } Py_INCREF(Py_None); |
4022 | _resultobj = Py_None; | |
4023 | return _resultobj; | |
4024 | } | |
4025 | ||
70551f47 | 4026 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
107e4716 | 4027 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4028 | PyObject * _resultobj; |
4029 | wxColour * _result; | |
4030 | wxBrush * _arg0; | |
2d091820 | 4031 | PyObject * _argo0 = 0; |
107e4716 | 4032 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4033 | char _ptemp[128]; |
4034 | ||
4035 | self = self; | |
107e4716 | 4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
70551f47 | 4037 | return NULL; |
2d091820 RD |
4038 | if (_argo0) { |
4039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
4042 | return NULL; | |
4043 | } | |
4044 | } | |
ab9bc19b | 4045 | { |
474c48f9 | 4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4047 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
ab9bc19b | 4048 | |
474c48f9 | 4049 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4050 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
4051 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4052 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
4053 | return _resultobj; |
4054 | } | |
4055 | ||
4056 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
107e4716 | 4057 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4058 | PyObject * _resultobj; |
4059 | wxBitmap * _result; | |
4060 | wxBrush * _arg0; | |
2d091820 | 4061 | PyObject * _argo0 = 0; |
107e4716 | 4062 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4063 | char _ptemp[128]; |
4064 | ||
4065 | self = self; | |
107e4716 | 4066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
70551f47 | 4067 | return NULL; |
2d091820 RD |
4068 | if (_argo0) { |
4069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
4072 | return NULL; | |
4073 | } | |
4074 | } | |
ab9bc19b | 4075 | { |
474c48f9 | 4076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4077 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
ab9bc19b | 4078 | |
474c48f9 | 4079 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4080 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4081 | } if (_result) { |
4082 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4083 | _resultobj = Py_BuildValue("s",_ptemp); | |
4084 | } else { | |
4085 | Py_INCREF(Py_None); | |
4086 | _resultobj = Py_None; | |
4087 | } | |
70551f47 RD |
4088 | return _resultobj; |
4089 | } | |
4090 | ||
4091 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 4092 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4093 | PyObject * _resultobj; |
4094 | int _result; | |
4095 | wxBrush * _arg0; | |
2d091820 | 4096 | PyObject * _argo0 = 0; |
107e4716 | 4097 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4098 | |
4099 | self = self; | |
107e4716 | 4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
70551f47 | 4101 | return NULL; |
2d091820 RD |
4102 | if (_argo0) { |
4103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
4106 | return NULL; | |
4107 | } | |
4108 | } | |
ab9bc19b | 4109 | { |
474c48f9 | 4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4111 | _result = (int )wxBrush_GetStyle(_arg0); |
ab9bc19b | 4112 | |
474c48f9 | 4113 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4114 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4115 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4116 | return _resultobj; |
4117 | } | |
4118 | ||
4119 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 4120 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4121 | PyObject * _resultobj; |
4122 | bool _result; | |
4123 | wxBrush * _arg0; | |
2d091820 | 4124 | PyObject * _argo0 = 0; |
107e4716 | 4125 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4126 | |
4127 | self = self; | |
107e4716 | 4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
70551f47 | 4129 | return NULL; |
2d091820 RD |
4130 | if (_argo0) { |
4131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
4134 | return NULL; | |
4135 | } | |
4136 | } | |
ab9bc19b | 4137 | { |
474c48f9 | 4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4139 | _result = (bool )wxBrush_Ok(_arg0); |
ab9bc19b | 4140 | |
474c48f9 | 4141 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4142 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4143 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4144 | return _resultobj; |
4145 | } | |
4146 | ||
c95e68d8 | 4147 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) |
107e4716 | 4148 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4149 | PyObject * _resultobj; |
4150 | wxBrush * _arg0; | |
4151 | wxColour * _arg1; | |
2d091820 | 4152 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4153 | wxColour temp; |
4154 | PyObject * _obj1 = 0; | |
107e4716 | 4155 | char *_kwnames[] = { "self","colour", NULL }; |
c95e68d8 RD |
4156 | |
4157 | self = self; | |
f6bcfd97 | 4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 4159 | return NULL; |
2d091820 RD |
4160 | if (_argo0) { |
4161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
4163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
4164 | return NULL; | |
4165 | } | |
4166 | } | |
f6bcfd97 BP |
4167 | { |
4168 | _arg1 = &temp; | |
4169 | if (! wxColour_helper(_obj1, &_arg1)) | |
c95e68d8 | 4170 | return NULL; |
f6bcfd97 | 4171 | } |
ab9bc19b | 4172 | { |
474c48f9 | 4173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4174 | wxBrush_SetColour(_arg0,*_arg1); |
ab9bc19b | 4175 | |
474c48f9 | 4176 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4177 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4178 | } Py_INCREF(Py_None); |
c95e68d8 RD |
4179 | _resultobj = Py_None; |
4180 | return _resultobj; | |
4181 | } | |
4182 | ||
4183 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
107e4716 | 4184 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4185 | PyObject * _resultobj; |
4186 | wxBrush * _arg0; | |
4187 | wxBitmap * _arg1; | |
2d091820 RD |
4188 | PyObject * _argo0 = 0; |
4189 | PyObject * _argo1 = 0; | |
107e4716 | 4190 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
4191 | |
4192 | self = self; | |
107e4716 | 4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 4194 | return NULL; |
2d091820 RD |
4195 | if (_argo0) { |
4196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
4198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
4199 | return NULL; | |
4200 | } | |
4201 | } | |
2d091820 RD |
4202 | if (_argo1) { |
4203 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4204 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
4205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
4206 | return NULL; | |
4207 | } | |
4208 | } | |
ab9bc19b | 4209 | { |
474c48f9 | 4210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4211 | wxBrush_SetStipple(_arg0,*_arg1); |
ab9bc19b | 4212 | |
474c48f9 | 4213 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4214 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4215 | } Py_INCREF(Py_None); |
c95e68d8 RD |
4216 | _resultobj = Py_None; |
4217 | return _resultobj; | |
4218 | } | |
4219 | ||
4220 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 4221 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4222 | PyObject * _resultobj; |
4223 | wxBrush * _arg0; | |
4224 | int _arg1; | |
2d091820 | 4225 | PyObject * _argo0 = 0; |
107e4716 | 4226 | char *_kwnames[] = { "self","style", NULL }; |
c95e68d8 RD |
4227 | |
4228 | self = self; | |
107e4716 | 4229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 4230 | return NULL; |
2d091820 RD |
4231 | if (_argo0) { |
4232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
4234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
4235 | return NULL; | |
4236 | } | |
4237 | } | |
ab9bc19b | 4238 | { |
474c48f9 | 4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4240 | wxBrush_SetStyle(_arg0,_arg1); |
ab9bc19b | 4241 | |
474c48f9 | 4242 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4243 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4244 | } Py_INCREF(Py_None); |
c95e68d8 RD |
4245 | _resultobj = Py_None; |
4246 | return _resultobj; | |
4247 | } | |
4248 | ||
65191ae8 RD |
4249 | static void *SwigwxBrushListTowxObject(void *ptr) { |
4250 | wxBrushList *src; | |
4251 | wxObject *dest; | |
4252 | src = (wxBrushList *) ptr; | |
4253 | dest = (wxObject *) src; | |
4254 | return (void *) dest; | |
4255 | } | |
4256 | ||
5e40f9dd RD |
4257 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
4258 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4259 | PyObject * _resultobj; | |
4260 | wxBrushList * _arg0; | |
4261 | wxBrush * _arg1; | |
4262 | PyObject * _argo0 = 0; | |
4263 | PyObject * _argo1 = 0; | |
4264 | char *_kwnames[] = { "self","brush", NULL }; | |
4265 | ||
4266 | self = self; | |
4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
4268 | return NULL; | |
4269 | if (_argo0) { | |
4270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
4273 | return NULL; | |
4274 | } | |
4275 | } | |
4276 | if (_argo1) { | |
4277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
4280 | return NULL; | |
4281 | } | |
4282 | } | |
4283 | { | |
474c48f9 | 4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4285 | wxBrushList_AddBrush(_arg0,_arg1); |
5e40f9dd | 4286 | |
474c48f9 | 4287 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4288 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4289 | } Py_INCREF(Py_None); |
4290 | _resultobj = Py_None; | |
4291 | return _resultobj; | |
4292 | } | |
4293 | ||
4294 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
4295 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4296 | PyObject * _resultobj; | |
4297 | wxBrush * _result; | |
4298 | wxBrushList * _arg0; | |
4299 | wxColour * _arg1; | |
4300 | int _arg2; | |
4301 | PyObject * _argo0 = 0; | |
4302 | wxColour temp; | |
4303 | PyObject * _obj1 = 0; | |
4304 | char *_kwnames[] = { "self","colour","style", NULL }; | |
4305 | char _ptemp[128]; | |
4306 | ||
4307 | self = self; | |
4308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4309 | return NULL; | |
4310 | if (_argo0) { | |
4311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
4314 | return NULL; | |
4315 | } | |
4316 | } | |
4317 | { | |
4318 | _arg1 = &temp; | |
4319 | if (! wxColour_helper(_obj1, &_arg1)) | |
4320 | return NULL; | |
4321 | } | |
4322 | { | |
474c48f9 | 4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4324 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
5e40f9dd | 4325 | |
474c48f9 | 4326 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4327 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4328 | } if (_result) { |
4329 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4330 | _resultobj = Py_BuildValue("s",_ptemp); | |
4331 | } else { | |
4332 | Py_INCREF(Py_None); | |
4333 | _resultobj = Py_None; | |
4334 | } | |
4335 | return _resultobj; | |
4336 | } | |
4337 | ||
4338 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
4339 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4340 | PyObject * _resultobj; | |
4341 | wxBrushList * _arg0; | |
4342 | wxBrush * _arg1; | |
4343 | PyObject * _argo0 = 0; | |
4344 | PyObject * _argo1 = 0; | |
4345 | char *_kwnames[] = { "self","brush", NULL }; | |
4346 | ||
4347 | self = self; | |
4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
4349 | return NULL; | |
4350 | if (_argo0) { | |
4351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
4354 | return NULL; | |
4355 | } | |
4356 | } | |
4357 | if (_argo1) { | |
4358 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4359 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
4361 | return NULL; | |
4362 | } | |
4363 | } | |
4364 | { | |
474c48f9 | 4365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4366 | wxBrushList_RemoveBrush(_arg0,_arg1); |
5e40f9dd | 4367 | |
474c48f9 | 4368 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4369 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4370 | } Py_INCREF(Py_None); |
4371 | _resultobj = Py_None; | |
4372 | return _resultobj; | |
4373 | } | |
4374 | ||
7a9b33db RD |
4375 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
4376 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4377 | PyObject * _resultobj; | |
4378 | int _result; | |
4379 | wxBrushList * _arg0; | |
4380 | PyObject * _argo0 = 0; | |
4381 | char *_kwnames[] = { "self", NULL }; | |
4382 | ||
4383 | self = self; | |
4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
4385 | return NULL; | |
4386 | if (_argo0) { | |
4387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
4390 | return NULL; | |
4391 | } | |
4392 | } | |
4393 | { | |
474c48f9 | 4394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4395 | _result = (int )wxBrushList_GetCount(_arg0); |
7a9b33db | 4396 | |
474c48f9 | 4397 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
4398 | if (PyErr_Occurred()) return NULL; |
4399 | } _resultobj = Py_BuildValue("i",_result); | |
4400 | return _resultobj; | |
4401 | } | |
4402 | ||
9df61a29 RD |
4403 | static void *SwigwxDCTowxObject(void *ptr) { |
4404 | wxDC *src; | |
4405 | wxObject *dest; | |
4406 | src = (wxDC *) ptr; | |
4407 | dest = (wxObject *) src; | |
4408 | return (void *) dest; | |
4409 | } | |
4410 | ||
70551f47 | 4411 | #define delete_wxDC(_swigobj) (delete _swigobj) |
107e4716 | 4412 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4413 | PyObject * _resultobj; |
4414 | wxDC * _arg0; | |
2d091820 | 4415 | PyObject * _argo0 = 0; |
107e4716 | 4416 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4417 | |
4418 | self = self; | |
107e4716 | 4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
70551f47 | 4420 | return NULL; |
2d091820 RD |
4421 | if (_argo0) { |
4422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
4425 | return NULL; | |
4426 | } | |
4427 | } | |
ab9bc19b | 4428 | { |
474c48f9 | 4429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4430 | delete_wxDC(_arg0); |
ab9bc19b | 4431 | |
474c48f9 | 4432 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4433 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4434 | } Py_INCREF(Py_None); |
70551f47 RD |
4435 | _resultobj = Py_None; |
4436 | return _resultobj; | |
4437 | } | |
4438 | ||
4439 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
107e4716 | 4440 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4441 | PyObject * _resultobj; |
4442 | wxDC * _arg0; | |
2d091820 | 4443 | PyObject * _argo0 = 0; |
107e4716 | 4444 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4445 | |
4446 | self = self; | |
107e4716 | 4447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
70551f47 | 4448 | return NULL; |
2d091820 RD |
4449 | if (_argo0) { |
4450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
4453 | return NULL; | |
4454 | } | |
4455 | } | |
ab9bc19b | 4456 | { |
474c48f9 | 4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4458 | wxDC_BeginDrawing(_arg0); |
ab9bc19b | 4459 | |
474c48f9 | 4460 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4461 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4462 | } Py_INCREF(Py_None); |
70551f47 RD |
4463 | _resultobj = Py_None; |
4464 | return _resultobj; | |
4465 | } | |
4466 | ||
107e4716 RD |
4467 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4468 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
4469 | PyObject * _resultobj; |
4470 | bool _result; | |
4471 | wxDC * _arg0; | |
4472 | long _arg1; | |
4473 | long _arg2; | |
4474 | long _arg3; | |
4475 | long _arg4; | |
4476 | wxDC * _arg5; | |
4477 | long _arg6; | |
4478 | long _arg7; | |
107e4716 RD |
4479 | int _arg8 = (int ) wxCOPY; |
4480 | int _arg9 = (int ) FALSE; | |
2d091820 RD |
4481 | PyObject * _argo0 = 0; |
4482 | PyObject * _argo5 = 0; | |
107e4716 | 4483 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
70551f47 RD |
4484 | |
4485 | self = self; | |
107e4716 | 4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
70551f47 | 4487 | return NULL; |
2d091820 RD |
4488 | if (_argo0) { |
4489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
2d091820 RD |
4495 | if (_argo5) { |
4496 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
4497 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
70551f47 RD |
4498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
4499 | return NULL; | |
4500 | } | |
4501 | } | |
ab9bc19b | 4502 | { |
474c48f9 | 4503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4504 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
ab9bc19b | 4505 | |
474c48f9 | 4506 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4507 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4508 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4509 | return _resultobj; |
4510 | } | |
4511 | ||
4512 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 4513 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4514 | PyObject * _resultobj; |
4515 | wxDC * _arg0; | |
2d091820 | 4516 | PyObject * _argo0 = 0; |
107e4716 | 4517 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4518 | |
4519 | self = self; | |
107e4716 | 4520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
70551f47 | 4521 | return NULL; |
2d091820 RD |
4522 | if (_argo0) { |
4523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
4526 | return NULL; | |
4527 | } | |
4528 | } | |
ab9bc19b | 4529 | { |
474c48f9 | 4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4531 | wxDC_Clear(_arg0); |
ab9bc19b | 4532 | |
474c48f9 | 4533 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4534 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4535 | } Py_INCREF(Py_None); |
70551f47 RD |
4536 | _resultobj = Py_None; |
4537 | return _resultobj; | |
4538 | } | |
4539 | ||
4540 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
107e4716 | 4541 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4542 | PyObject * _resultobj; |
4543 | wxDC * _arg0; | |
4544 | long _arg1; | |
4545 | long _arg2; | |
2d091820 | 4546 | PyObject * _argo0 = 0; |
107e4716 | 4547 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
4548 | |
4549 | self = self; | |
107e4716 | 4550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 4551 | return NULL; |
2d091820 RD |
4552 | if (_argo0) { |
4553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
4556 | return NULL; | |
4557 | } | |
4558 | } | |
ab9bc19b | 4559 | { |
474c48f9 | 4560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4561 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
ab9bc19b | 4562 | |
474c48f9 | 4563 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4564 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4565 | } Py_INCREF(Py_None); |
70551f47 RD |
4566 | _resultobj = Py_None; |
4567 | return _resultobj; | |
4568 | } | |
4569 | ||
4570 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
107e4716 | 4571 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4572 | PyObject * _resultobj; |
4573 | wxDC * _arg0; | |
2d091820 | 4574 | PyObject * _argo0 = 0; |
107e4716 | 4575 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4576 | |
4577 | self = self; | |
107e4716 | 4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
70551f47 | 4579 | return NULL; |
2d091820 RD |
4580 | if (_argo0) { |
4581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
4584 | return NULL; | |
4585 | } | |
4586 | } | |
ab9bc19b | 4587 | { |
474c48f9 | 4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4589 | wxDC_DestroyClippingRegion(_arg0); |
ab9bc19b | 4590 | |
474c48f9 | 4591 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4592 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4593 | } Py_INCREF(Py_None); |
70551f47 RD |
4594 | _resultobj = Py_None; |
4595 | return _resultobj; | |
4596 | } | |
4597 | ||
4598 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
107e4716 | 4599 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4600 | PyObject * _resultobj; |
4601 | long _result; | |
4602 | wxDC * _arg0; | |
4603 | long _arg1; | |
2d091820 | 4604 | PyObject * _argo0 = 0; |
107e4716 | 4605 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
4606 | |
4607 | self = self; | |
107e4716 | 4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4609 | return NULL; |
2d091820 RD |
4610 | if (_argo0) { |
4611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
4614 | return NULL; | |
4615 | } | |
4616 | } | |
ab9bc19b | 4617 | { |
474c48f9 | 4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4619 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
ab9bc19b | 4620 | |
474c48f9 | 4621 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4622 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4623 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
4624 | return _resultobj; |
4625 | } | |
4626 | ||
4627 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
107e4716 | 4628 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4629 | PyObject * _resultobj; |
4630 | long _result; | |
4631 | wxDC * _arg0; | |
4632 | long _arg1; | |
2d091820 | 4633 | PyObject * _argo0 = 0; |
107e4716 | 4634 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
4635 | |
4636 | self = self; | |
107e4716 | 4637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4638 | return NULL; |
2d091820 RD |
4639 | if (_argo0) { |
4640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
4643 | return NULL; | |
4644 | } | |
4645 | } | |
ab9bc19b | 4646 | { |
474c48f9 | 4647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4648 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
ab9bc19b | 4649 | |
474c48f9 | 4650 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4651 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4652 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
4653 | return _resultobj; |
4654 | } | |
4655 | ||
4656 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
107e4716 | 4657 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4658 | PyObject * _resultobj; |
4659 | long _result; | |
4660 | wxDC * _arg0; | |
4661 | long _arg1; | |
2d091820 | 4662 | PyObject * _argo0 = 0; |
107e4716 | 4663 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
4664 | |
4665 | self = self; | |
107e4716 | 4666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4667 | return NULL; |
2d091820 RD |
4668 | if (_argo0) { |
4669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
4672 | return NULL; | |
4673 | } | |
4674 | } | |
ab9bc19b | 4675 | { |
474c48f9 | 4676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4677 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
ab9bc19b | 4678 | |
474c48f9 | 4679 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4680 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4681 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
4682 | return _resultobj; |
4683 | } | |
4684 | ||
4685 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
107e4716 | 4686 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4687 | PyObject * _resultobj; |
4688 | long _result; | |
4689 | wxDC * _arg0; | |
4690 | long _arg1; | |
2d091820 | 4691 | PyObject * _argo0 = 0; |
107e4716 | 4692 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
4693 | |
4694 | self = self; | |
107e4716 | 4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4696 | return NULL; |
2d091820 RD |
4697 | if (_argo0) { |
4698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
4701 | return NULL; | |
4702 | } | |
4703 | } | |
ab9bc19b | 4704 | { |
474c48f9 | 4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4706 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
ab9bc19b | 4707 | |
474c48f9 | 4708 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4709 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4710 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
4711 | return _resultobj; |
4712 | } | |
4713 | ||
4714 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 4715 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4716 | PyObject * _resultobj; |
4717 | wxDC * _arg0; | |
4718 | long _arg1; | |
4719 | long _arg2; | |
4720 | long _arg3; | |
4721 | long _arg4; | |
4722 | long _arg5; | |
4723 | long _arg6; | |
2d091820 | 4724 | PyObject * _argo0 = 0; |
107e4716 | 4725 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
70551f47 RD |
4726 | |
4727 | self = self; | |
107e4716 | 4728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 4729 | return NULL; |
2d091820 RD |
4730 | if (_argo0) { |
4731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
4734 | return NULL; | |
4735 | } | |
4736 | } | |
ab9bc19b | 4737 | { |
474c48f9 | 4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4739 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 4740 | |
474c48f9 | 4741 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4742 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4743 | } Py_INCREF(Py_None); |
70551f47 RD |
4744 | _resultobj = Py_None; |
4745 | return _resultobj; | |
4746 | } | |
4747 | ||
d24a34bb | 4748 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 4749 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4750 | PyObject * _resultobj; |
4751 | wxDC * _arg0; | |
4752 | long _arg1; | |
4753 | long _arg2; | |
4754 | long _arg3; | |
2d091820 | 4755 | PyObject * _argo0 = 0; |
107e4716 | 4756 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
d24a34bb RD |
4757 | |
4758 | self = self; | |
107e4716 | 4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
d24a34bb | 4760 | return NULL; |
2d091820 RD |
4761 | if (_argo0) { |
4762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
4764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
4765 | return NULL; | |
4766 | } | |
4767 | } | |
4768 | { | |
474c48f9 | 4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4770 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
d24a34bb | 4771 | |
474c48f9 | 4772 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4773 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
4774 | } Py_INCREF(Py_None); |
4775 | _resultobj = Py_None; | |
4776 | return _resultobj; | |
4777 | } | |
4778 | ||
70551f47 | 4779 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 4780 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4781 | PyObject * _resultobj; |
4782 | wxDC * _arg0; | |
4783 | long _arg1; | |
4784 | long _arg2; | |
4785 | long _arg3; | |
4786 | long _arg4; | |
2d091820 | 4787 | PyObject * _argo0 = 0; |
107e4716 | 4788 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
4789 | |
4790 | self = self; | |
107e4716 | 4791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4792 | return NULL; |
2d091820 RD |
4793 | if (_argo0) { |
4794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
4797 | return NULL; | |
4798 | } | |
4799 | } | |
ab9bc19b | 4800 | { |
474c48f9 | 4801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4802 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 4803 | |
474c48f9 | 4804 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4805 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4806 | } Py_INCREF(Py_None); |
70551f47 RD |
4807 | _resultobj = Py_None; |
4808 | return _resultobj; | |
4809 | } | |
4810 | ||
4811 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 4812 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4813 | PyObject * _resultobj; |
4814 | wxDC * _arg0; | |
4815 | long _arg1; | |
4816 | long _arg2; | |
4817 | long _arg3; | |
4818 | long _arg4; | |
4819 | long _arg5; | |
4820 | long _arg6; | |
2d091820 | 4821 | PyObject * _argo0 = 0; |
107e4716 | 4822 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
70551f47 RD |
4823 | |
4824 | self = self; | |
107e4716 | 4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 4826 | return NULL; |
2d091820 RD |
4827 | if (_argo0) { |
4828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
4831 | return NULL; | |
4832 | } | |
4833 | } | |
ab9bc19b | 4834 | { |
474c48f9 | 4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4836 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 4837 | |
474c48f9 | 4838 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4839 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4840 | } Py_INCREF(Py_None); |
70551f47 RD |
4841 | _resultobj = Py_None; |
4842 | return _resultobj; | |
4843 | } | |
4844 | ||
4845 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 4846 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4847 | PyObject * _resultobj; |
4848 | wxDC * _arg0; | |
4849 | wxIcon * _arg1; | |
4850 | long _arg2; | |
4851 | long _arg3; | |
2d091820 RD |
4852 | PyObject * _argo0 = 0; |
4853 | PyObject * _argo1 = 0; | |
107e4716 | 4854 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
70551f47 RD |
4855 | |
4856 | self = self; | |
107e4716 | 4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
70551f47 | 4858 | return NULL; |
2d091820 RD |
4859 | if (_argo0) { |
4860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
4863 | return NULL; | |
4864 | } | |
4865 | } | |
2d091820 RD |
4866 | if (_argo1) { |
4867 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4868 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
70551f47 RD |
4869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
4870 | return NULL; | |
4871 | } | |
4872 | } | |
ab9bc19b | 4873 | { |
474c48f9 | 4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4875 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 4876 | |
474c48f9 | 4877 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4878 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4879 | } Py_INCREF(Py_None); |
70551f47 RD |
4880 | _resultobj = Py_None; |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
8cb49012 RD |
4884 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4885 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject * _resultobj; | |
4887 | wxDC * _arg0; | |
4888 | wxString * _arg1; | |
4889 | wxRect * _arg2; | |
4890 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
4891 | int _arg4 = (int ) -1; | |
4892 | PyObject * _argo0 = 0; | |
4893 | PyObject * _obj1 = 0; | |
4894 | wxRect temp; | |
4895 | PyObject * _obj2 = 0; | |
4896 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
4897 | ||
4898 | self = self; | |
4899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
4900 | return NULL; | |
4901 | if (_argo0) { | |
4902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
4905 | return NULL; | |
4906 | } | |
4907 | } | |
4908 | { | |
c8bc7bb8 RD |
4909 | _arg1 = wxString_in_helper(_obj1); |
4910 | if (_arg1 == NULL) | |
8cb49012 | 4911 | return NULL; |
8cb49012 RD |
4912 | } |
4913 | { | |
4914 | _arg2 = &temp; | |
4915 | if (! wxRect_helper(_obj2, &_arg2)) | |
4916 | return NULL; | |
4917 | } | |
4918 | { | |
4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4920 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
8cb49012 RD |
4921 | |
4922 | wxPyEndAllowThreads(__tstate); | |
4923 | if (PyErr_Occurred()) return NULL; | |
4924 | } Py_INCREF(Py_None); | |
4925 | _resultobj = Py_None; | |
4926 | { | |
4927 | if (_obj1) | |
4928 | delete _arg1; | |
4929 | } | |
4930 | return _resultobj; | |
4931 | } | |
4932 | ||
4933 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
4934 | wxRect rv; | |
4935 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
4936 | return rv; | |
4937 | } | |
4938 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4939 | PyObject * _resultobj; | |
4940 | wxRect * _result; | |
4941 | wxDC * _arg0; | |
4942 | wxString * _arg1; | |
4943 | wxBitmap * _arg2; | |
4944 | wxRect * _arg3; | |
4945 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
4946 | int _arg5 = (int ) -1; | |
4947 | PyObject * _argo0 = 0; | |
4948 | PyObject * _obj1 = 0; | |
4949 | PyObject * _argo2 = 0; | |
4950 | wxRect temp; | |
4951 | PyObject * _obj3 = 0; | |
4952 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
4953 | char _ptemp[128]; | |
4954 | ||
4955 | self = self; | |
4956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
4957 | return NULL; | |
4958 | if (_argo0) { | |
4959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
4962 | return NULL; | |
4963 | } | |
4964 | } | |
4965 | { | |
c8bc7bb8 RD |
4966 | _arg1 = wxString_in_helper(_obj1); |
4967 | if (_arg1 == NULL) | |
8cb49012 | 4968 | return NULL; |
8cb49012 RD |
4969 | } |
4970 | if (_argo2) { | |
4971 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4972 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
4973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
4974 | return NULL; | |
4975 | } | |
4976 | } | |
4977 | { | |
4978 | _arg3 = &temp; | |
4979 | if (! wxRect_helper(_obj3, &_arg3)) | |
4980 | return NULL; | |
4981 | } | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4984 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); |
8cb49012 RD |
4985 | |
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) return NULL; | |
4988 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
4989 | _resultobj = Py_BuildValue("s",_ptemp); | |
4990 | { | |
4991 | if (_obj1) | |
4992 | delete _arg1; | |
4993 | } | |
4994 | return _resultobj; | |
4995 | } | |
4996 | ||
70551f47 | 4997 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 4998 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4999 | PyObject * _resultobj; |
5000 | wxDC * _arg0; | |
5001 | long _arg1; | |
5002 | long _arg2; | |
5003 | long _arg3; | |
5004 | long _arg4; | |
2d091820 | 5005 | PyObject * _argo0 = 0; |
107e4716 | 5006 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
70551f47 RD |
5007 | |
5008 | self = self; | |
107e4716 | 5009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 5010 | return NULL; |
2d091820 RD |
5011 | if (_argo0) { |
5012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
5015 | return NULL; | |
5016 | } | |
5017 | } | |
ab9bc19b | 5018 | { |
474c48f9 | 5019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5020 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 5021 | |
474c48f9 | 5022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5023 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5024 | } Py_INCREF(Py_None); |
70551f47 RD |
5025 | _resultobj = Py_None; |
5026 | return _resultobj; | |
5027 | } | |
5028 | ||
5029 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5030 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5031 | PyObject * _resultobj; |
5032 | wxDC * _arg0; | |
5033 | int _arg1; | |
5034 | wxPoint * _arg2; | |
2d091820 RD |
5035 | long _arg3 = (long ) 0; |
5036 | long _arg4 = (long ) 0; | |
5037 | PyObject * _argo0 = 0; | |
1c09ae54 | 5038 | int NPOINTS; |
70551f47 | 5039 | PyObject * _obj2 = 0; |
e02c03a4 | 5040 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
70551f47 RD |
5041 | |
5042 | self = self; | |
107e4716 | 5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
70551f47 | 5044 | return NULL; |
2d091820 RD |
5045 | if (_argo0) { |
5046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
5049 | return NULL; | |
5050 | } | |
5051 | } | |
5052 | if (_obj2) | |
5053 | { | |
1c09ae54 RD |
5054 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
5055 | if (_arg2 == NULL) { | |
5056 | return NULL; | |
5057 | } | |
70551f47 RD |
5058 | } |
5059 | { | |
1c09ae54 | 5060 | _arg1 = NPOINTS; |
70551f47 | 5061 | } |
ab9bc19b | 5062 | { |
474c48f9 | 5063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5064 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 5065 | |
474c48f9 | 5066 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5067 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5068 | } Py_INCREF(Py_None); |
70551f47 RD |
5069 | _resultobj = Py_None; |
5070 | { | |
5071 | delete [] _arg2; | |
5072 | } | |
5073 | return _resultobj; | |
5074 | } | |
5075 | ||
5076 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 5077 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5078 | PyObject * _resultobj; |
5079 | wxDC * _arg0; | |
5080 | int _arg1; | |
5081 | wxPoint * _arg2; | |
2d091820 RD |
5082 | long _arg3 = (long ) 0; |
5083 | long _arg4 = (long ) 0; | |
5084 | int _arg5 = (int ) wxODDEVEN_RULE; | |
5085 | PyObject * _argo0 = 0; | |
1c09ae54 | 5086 | int NPOINTS; |
70551f47 | 5087 | PyObject * _obj2 = 0; |
e02c03a4 | 5088 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
70551f47 RD |
5089 | |
5090 | self = self; | |
107e4716 | 5091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 5092 | return NULL; |
2d091820 RD |
5093 | if (_argo0) { |
5094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
5097 | return NULL; | |
5098 | } | |
5099 | } | |
5100 | if (_obj2) | |
5101 | { | |
1c09ae54 RD |
5102 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
5103 | if (_arg2 == NULL) { | |
5104 | return NULL; | |
5105 | } | |
70551f47 RD |
5106 | } |
5107 | { | |
1c09ae54 | 5108 | _arg1 = NPOINTS; |
70551f47 | 5109 | } |
ab9bc19b | 5110 | { |
474c48f9 | 5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5112 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
ab9bc19b | 5113 | |
474c48f9 | 5114 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5115 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5116 | } Py_INCREF(Py_None); |
70551f47 RD |
5117 | _resultobj = Py_None; |
5118 | { | |
5119 | delete [] _arg2; | |
5120 | } | |
5121 | return _resultobj; | |
5122 | } | |
5123 | ||
5124 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
107e4716 | 5125 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5126 | PyObject * _resultobj; |
5127 | wxDC * _arg0; | |
5128 | long _arg1; | |
5129 | long _arg2; | |
2d091820 | 5130 | PyObject * _argo0 = 0; |
107e4716 | 5131 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
5132 | |
5133 | self = self; | |
107e4716 | 5134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5135 | return NULL; |
2d091820 RD |
5136 | if (_argo0) { |
5137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
5140 | return NULL; | |
5141 | } | |
5142 | } | |
ab9bc19b | 5143 | { |
474c48f9 | 5144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5145 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
ab9bc19b | 5146 | |
474c48f9 | 5147 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5148 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5149 | } Py_INCREF(Py_None); |
70551f47 RD |
5150 | _resultobj = Py_None; |
5151 | return _resultobj; | |
5152 | } | |
5153 | ||
5154 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5155 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5156 | PyObject * _resultobj; |
5157 | wxDC * _arg0; | |
5158 | long _arg1; | |
5159 | long _arg2; | |
5160 | long _arg3; | |
5161 | long _arg4; | |
2d091820 | 5162 | PyObject * _argo0 = 0; |
107e4716 | 5163 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
5164 | |
5165 | self = self; | |
107e4716 | 5166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 5167 | return NULL; |
2d091820 RD |
5168 | if (_argo0) { |
5169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
5172 | return NULL; | |
5173 | } | |
5174 | } | |
ab9bc19b | 5175 | { |
474c48f9 | 5176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5177 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 5178 | |
474c48f9 | 5179 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5180 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5181 | } Py_INCREF(Py_None); |
70551f47 RD |
5182 | _resultobj = Py_None; |
5183 | return _resultobj; | |
5184 | } | |
5185 | ||
56f5d962 RD |
5186 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5187 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject * _resultobj; | |
5189 | wxDC * _arg0; | |
5190 | wxString * _arg1; | |
5191 | wxCoord _arg2; | |
5192 | wxCoord _arg3; | |
5193 | double _arg4; | |
5194 | PyObject * _argo0 = 0; | |
5195 | PyObject * _obj1 = 0; | |
5196 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
5197 | ||
5198 | self = self; | |
5199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5200 | return NULL; | |
5201 | if (_argo0) { | |
5202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
5205 | return NULL; | |
5206 | } | |
5207 | } | |
5208 | { | |
c8bc7bb8 RD |
5209 | _arg1 = wxString_in_helper(_obj1); |
5210 | if (_arg1 == NULL) | |
2cd2fac8 | 5211 | return NULL; |
56f5d962 RD |
5212 | } |
5213 | { | |
474c48f9 | 5214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5215 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
56f5d962 | 5216 | |
474c48f9 | 5217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5218 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
5219 | } Py_INCREF(Py_None); |
5220 | _resultobj = Py_None; | |
5221 | { | |
5222 | if (_obj1) | |
5223 | delete _arg1; | |
5224 | } | |
5225 | return _resultobj; | |
5226 | } | |
5227 | ||
70551f47 | 5228 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 5229 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5230 | PyObject * _resultobj; |
5231 | wxDC * _arg0; | |
5232 | long _arg1; | |
5233 | long _arg2; | |
5234 | long _arg3; | |
5235 | long _arg4; | |
2d091820 RD |
5236 | long _arg5 = (long ) 20; |
5237 | PyObject * _argo0 = 0; | |
107e4716 | 5238 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
70551f47 RD |
5239 | |
5240 | self = self; | |
107e4716 | 5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 5242 | return NULL; |
2d091820 RD |
5243 | if (_argo0) { |
5244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
5247 | return NULL; | |
5248 | } | |
5249 | } | |
ab9bc19b | 5250 | { |
474c48f9 | 5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5252 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
ab9bc19b | 5253 | |
474c48f9 | 5254 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5255 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5256 | } Py_INCREF(Py_None); |
70551f47 RD |
5257 | _resultobj = Py_None; |
5258 | return _resultobj; | |
5259 | } | |
5260 | ||
5261 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
107e4716 | 5262 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5263 | PyObject * _resultobj; |
5264 | wxDC * _arg0; | |
5265 | int _arg1; | |
5266 | wxPoint * _arg2; | |
2d091820 | 5267 | PyObject * _argo0 = 0; |
1c09ae54 | 5268 | int NPOINTS; |
70551f47 | 5269 | PyObject * _obj2 = 0; |
e02c03a4 | 5270 | char *_kwnames[] = { "self","points", NULL }; |
70551f47 RD |
5271 | |
5272 | self = self; | |
107e4716 | 5273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
70551f47 | 5274 | return NULL; |
2d091820 RD |
5275 | if (_argo0) { |
5276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
5279 | return NULL; | |
5280 | } | |
5281 | } | |
5282 | if (_obj2) | |
5283 | { | |
1c09ae54 RD |
5284 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
5285 | if (_arg2 == NULL) { | |
5286 | return NULL; | |
5287 | } | |
70551f47 RD |
5288 | } |
5289 | { | |
1c09ae54 | 5290 | _arg1 = NPOINTS; |
70551f47 | 5291 | } |
ab9bc19b | 5292 | { |
474c48f9 | 5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5294 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
ab9bc19b | 5295 | |
474c48f9 | 5296 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5297 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5298 | } Py_INCREF(Py_None); |
70551f47 RD |
5299 | _resultobj = Py_None; |
5300 | { | |
5301 | delete [] _arg2; | |
5302 | } | |
5303 | return _resultobj; | |
5304 | } | |
5305 | ||
5306 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 5307 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5308 | PyObject * _resultobj; |
5309 | wxDC * _arg0; | |
5310 | wxString * _arg1; | |
5311 | long _arg2; | |
5312 | long _arg3; | |
2d091820 | 5313 | PyObject * _argo0 = 0; |
70551f47 | 5314 | PyObject * _obj1 = 0; |
107e4716 | 5315 | char *_kwnames[] = { "self","text","x","y", NULL }; |
70551f47 RD |
5316 | |
5317 | self = self; | |
107e4716 | 5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
70551f47 | 5319 | return NULL; |
2d091820 RD |
5320 | if (_argo0) { |
5321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
5324 | return NULL; | |
5325 | } | |
5326 | } | |
5327 | { | |
c8bc7bb8 RD |
5328 | _arg1 = wxString_in_helper(_obj1); |
5329 | if (_arg1 == NULL) | |
70551f47 | 5330 | return NULL; |
70551f47 | 5331 | } |
ab9bc19b | 5332 | { |
474c48f9 | 5333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5334 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 5335 | |
474c48f9 | 5336 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5337 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5338 | } Py_INCREF(Py_None); |
70551f47 RD |
5339 | _resultobj = Py_None; |
5340 | { | |
5341 | if (_obj1) | |
5342 | delete _arg1; | |
5343 | } | |
5344 | return _resultobj; | |
5345 | } | |
5346 | ||
5347 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
107e4716 | 5348 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5349 | PyObject * _resultobj; |
5350 | wxDC * _arg0; | |
2d091820 | 5351 | PyObject * _argo0 = 0; |
107e4716 | 5352 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5353 | |
5354 | self = self; | |
107e4716 | 5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
70551f47 | 5356 | return NULL; |
2d091820 RD |
5357 | if (_argo0) { |
5358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
5361 | return NULL; | |
5362 | } | |
5363 | } | |
ab9bc19b | 5364 | { |
474c48f9 | 5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5366 | wxDC_EndDoc(_arg0); |
ab9bc19b | 5367 | |
474c48f9 | 5368 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5369 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5370 | } Py_INCREF(Py_None); |
70551f47 RD |
5371 | _resultobj = Py_None; |
5372 | return _resultobj; | |
5373 | } | |
5374 | ||
5375 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
107e4716 | 5376 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5377 | PyObject * _resultobj; |
5378 | wxDC * _arg0; | |
2d091820 | 5379 | PyObject * _argo0 = 0; |
107e4716 | 5380 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5381 | |
5382 | self = self; | |
107e4716 | 5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
70551f47 | 5384 | return NULL; |
2d091820 RD |
5385 | if (_argo0) { |
5386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
5389 | return NULL; | |
5390 | } | |
5391 | } | |
ab9bc19b | 5392 | { |
474c48f9 | 5393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5394 | wxDC_EndDrawing(_arg0); |
ab9bc19b | 5395 | |
474c48f9 | 5396 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5397 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5398 | } Py_INCREF(Py_None); |
70551f47 RD |
5399 | _resultobj = Py_None; |
5400 | return _resultobj; | |
5401 | } | |
5402 | ||
5403 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
107e4716 | 5404 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5405 | PyObject * _resultobj; |
5406 | wxDC * _arg0; | |
2d091820 | 5407 | PyObject * _argo0 = 0; |
107e4716 | 5408 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5409 | |
5410 | self = self; | |
107e4716 | 5411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
70551f47 | 5412 | return NULL; |
2d091820 RD |
5413 | if (_argo0) { |
5414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
5417 | return NULL; | |
5418 | } | |
5419 | } | |
ab9bc19b | 5420 | { |
474c48f9 | 5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5422 | wxDC_EndPage(_arg0); |
ab9bc19b | 5423 | |
474c48f9 | 5424 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5425 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5426 | } Py_INCREF(Py_None); |
70551f47 RD |
5427 | _resultobj = Py_None; |
5428 | return _resultobj; | |
5429 | } | |
5430 | ||
5431 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5432 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 | 5433 | PyObject * _resultobj; |
b98a5dfc | 5434 | bool _result; |
70551f47 RD |
5435 | wxDC * _arg0; |
5436 | long _arg1; | |
5437 | long _arg2; | |
5438 | wxColour * _arg3; | |
2d091820 RD |
5439 | int _arg4 = (int ) wxFLOOD_SURFACE; |
5440 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
5441 | wxColour temp; |
5442 | PyObject * _obj3 = 0; | |
107e4716 | 5443 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
70551f47 RD |
5444 | |
5445 | self = self; | |
f6bcfd97 | 5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
70551f47 | 5447 | return NULL; |
2d091820 RD |
5448 | if (_argo0) { |
5449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
5452 | return NULL; | |
5453 | } | |
5454 | } | |
f6bcfd97 BP |
5455 | { |
5456 | _arg3 = &temp; | |
5457 | if (! wxColour_helper(_obj3, &_arg3)) | |
70551f47 | 5458 | return NULL; |
f6bcfd97 | 5459 | } |
ab9bc19b | 5460 | { |
474c48f9 | 5461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b98a5dfc | 5462 | _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
ab9bc19b | 5463 | |
474c48f9 | 5464 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5465 | if (PyErr_Occurred()) return NULL; |
b98a5dfc | 5466 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5467 | return _resultobj; |
5468 | } | |
5469 | ||
5470 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
107e4716 | 5471 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5472 | PyObject * _resultobj; |
5473 | wxBrush * _result; | |
5474 | wxDC * _arg0; | |
2d091820 | 5475 | PyObject * _argo0 = 0; |
107e4716 | 5476 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5477 | char _ptemp[128]; |
5478 | ||
5479 | self = self; | |
107e4716 | 5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
70551f47 | 5481 | return NULL; |
2d091820 RD |
5482 | if (_argo0) { |
5483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
5486 | return NULL; | |
5487 | } | |
5488 | } | |
ab9bc19b | 5489 | { |
474c48f9 | 5490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5491 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
ab9bc19b | 5492 | |
474c48f9 | 5493 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5494 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5495 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
5496 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5497 | return _resultobj; |
5498 | } | |
5499 | ||
5500 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
107e4716 | 5501 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5502 | PyObject * _resultobj; |
5503 | wxBrush * _result; | |
5504 | wxDC * _arg0; | |
2d091820 | 5505 | PyObject * _argo0 = 0; |
107e4716 | 5506 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5507 | char _ptemp[128]; |
5508 | ||
5509 | self = self; | |
107e4716 | 5510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
70551f47 | 5511 | return NULL; |
2d091820 RD |
5512 | if (_argo0) { |
5513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
5516 | return NULL; | |
5517 | } | |
5518 | } | |
ab9bc19b | 5519 | { |
474c48f9 | 5520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5521 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
ab9bc19b | 5522 | |
474c48f9 | 5523 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5524 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5525 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
5526 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5527 | return _resultobj; |
5528 | } | |
5529 | ||
5530 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
107e4716 | 5531 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5532 | PyObject * _resultobj; |
5533 | long _result; | |
5534 | wxDC * _arg0; | |
2d091820 | 5535 | PyObject * _argo0 = 0; |
107e4716 | 5536 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5537 | |
5538 | self = self; | |
107e4716 | 5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
70551f47 | 5540 | return NULL; |
2d091820 RD |
5541 | if (_argo0) { |
5542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
5545 | return NULL; | |
5546 | } | |
5547 | } | |
ab9bc19b | 5548 | { |
474c48f9 | 5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5550 | _result = (long )wxDC_GetCharHeight(_arg0); |
ab9bc19b | 5551 | |
474c48f9 | 5552 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5553 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5554 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5555 | return _resultobj; |
5556 | } | |
5557 | ||
5558 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
107e4716 | 5559 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5560 | PyObject * _resultobj; |
5561 | long _result; | |
5562 | wxDC * _arg0; | |
2d091820 | 5563 | PyObject * _argo0 = 0; |
107e4716 | 5564 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5565 | |
5566 | self = self; | |
107e4716 | 5567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
70551f47 | 5568 | return NULL; |
2d091820 RD |
5569 | if (_argo0) { |
5570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
5573 | return NULL; | |
5574 | } | |
5575 | } | |
ab9bc19b | 5576 | { |
474c48f9 | 5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5578 | _result = (long )wxDC_GetCharWidth(_arg0); |
ab9bc19b | 5579 | |
474c48f9 | 5580 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5581 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5582 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5583 | return _resultobj; |
5584 | } | |
5585 | ||
5586 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5587 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5588 | PyObject * _resultobj; |
5589 | wxDC * _arg0; | |
5590 | long * _arg1; | |
5591 | long temp; | |
5592 | long * _arg2; | |
5593 | long temp0; | |
5594 | long * _arg3; | |
5595 | long temp1; | |
5596 | long * _arg4; | |
5597 | long temp2; | |
2d091820 | 5598 | PyObject * _argo0 = 0; |
107e4716 | 5599 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5600 | |
5601 | self = self; | |
5602 | { | |
5603 | _arg1 = &temp; | |
5604 | } | |
5605 | { | |
5606 | _arg2 = &temp0; | |
5607 | } | |
5608 | { | |
5609 | _arg3 = &temp1; | |
5610 | } | |
5611 | { | |
5612 | _arg4 = &temp2; | |
5613 | } | |
107e4716 | 5614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
70551f47 | 5615 | return NULL; |
2d091820 RD |
5616 | if (_argo0) { |
5617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
5620 | return NULL; | |
5621 | } | |
5622 | } | |
ab9bc19b | 5623 | { |
474c48f9 | 5624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5625 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 5626 | |
474c48f9 | 5627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5628 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5629 | } Py_INCREF(Py_None); |
70551f47 RD |
5630 | _resultobj = Py_None; |
5631 | { | |
5632 | PyObject *o; | |
5633 | o = PyInt_FromLong((long) (*_arg1)); | |
5634 | _resultobj = t_output_helper(_resultobj, o); | |
5635 | } | |
5636 | { | |
5637 | PyObject *o; | |
5638 | o = PyInt_FromLong((long) (*_arg2)); | |
5639 | _resultobj = t_output_helper(_resultobj, o); | |
5640 | } | |
5641 | { | |
5642 | PyObject *o; | |
5643 | o = PyInt_FromLong((long) (*_arg3)); | |
5644 | _resultobj = t_output_helper(_resultobj, o); | |
5645 | } | |
5646 | { | |
5647 | PyObject *o; | |
5648 | o = PyInt_FromLong((long) (*_arg4)); | |
5649 | _resultobj = t_output_helper(_resultobj, o); | |
5650 | } | |
5651 | return _resultobj; | |
5652 | } | |
5653 | ||
5654 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
107e4716 | 5655 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5656 | PyObject * _resultobj; |
5657 | wxFont * _result; | |
5658 | wxDC * _arg0; | |
2d091820 | 5659 | PyObject * _argo0 = 0; |
107e4716 | 5660 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5661 | char _ptemp[128]; |
5662 | ||
5663 | self = self; | |
107e4716 | 5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
70551f47 | 5665 | return NULL; |
2d091820 RD |
5666 | if (_argo0) { |
5667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
5670 | return NULL; | |
5671 | } | |
5672 | } | |
ab9bc19b | 5673 | { |
474c48f9 | 5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5675 | _result = new wxFont (wxDC_GetFont(_arg0)); |
ab9bc19b | 5676 | |
474c48f9 | 5677 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5678 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5679 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5680 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5681 | return _resultobj; |
5682 | } | |
5683 | ||
5684 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
107e4716 | 5685 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5686 | PyObject * _resultobj; |
5687 | int _result; | |
5688 | wxDC * _arg0; | |
2d091820 | 5689 | PyObject * _argo0 = 0; |
107e4716 | 5690 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5691 | |
5692 | self = self; | |
107e4716 | 5693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
70551f47 | 5694 | return NULL; |
2d091820 RD |
5695 | if (_argo0) { |
5696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
5699 | return NULL; | |
5700 | } | |
5701 | } | |
ab9bc19b | 5702 | { |
474c48f9 | 5703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5704 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
ab9bc19b | 5705 | |
474c48f9 | 5706 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5707 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5708 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5709 | return _resultobj; |
5710 | } | |
5711 | ||
e02c03a4 RD |
5712 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
5713 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5714 | PyObject * _resultobj; | |
5715 | wxDC * _arg0; | |
5716 | double * _arg1; | |
5717 | double temp; | |
5718 | double * _arg2; | |
5719 | double temp0; | |
5720 | PyObject * _argo0 = 0; | |
5721 | char *_kwnames[] = { "self", NULL }; | |
5722 | ||
5723 | self = self; | |
5724 | { | |
5725 | _arg1 = &temp; | |
5726 | } | |
5727 | { | |
5728 | _arg2 = &temp0; | |
5729 | } | |
5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
5731 | return NULL; | |
5732 | if (_argo0) { | |
5733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
5736 | return NULL; | |
5737 | } | |
5738 | } | |
5739 | { | |
474c48f9 | 5740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5741 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
e02c03a4 | 5742 | |
474c48f9 | 5743 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5744 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
5745 | } Py_INCREF(Py_None); |
5746 | _resultobj = Py_None; | |
5747 | { | |
5748 | PyObject *o; | |
5749 | o = PyFloat_FromDouble((double) (*_arg1)); | |
5750 | _resultobj = t_output_helper(_resultobj, o); | |
5751 | } | |
5752 | { | |
5753 | PyObject *o; | |
5754 | o = PyFloat_FromDouble((double) (*_arg2)); | |
5755 | _resultobj = t_output_helper(_resultobj, o); | |
5756 | } | |
5757 | return _resultobj; | |
5758 | } | |
5759 | ||
70551f47 | 5760 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
107e4716 | 5761 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5762 | PyObject * _resultobj; |
5763 | int _result; | |
5764 | wxDC * _arg0; | |
2d091820 | 5765 | PyObject * _argo0 = 0; |
107e4716 | 5766 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5767 | |
5768 | self = self; | |
107e4716 | 5769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
70551f47 | 5770 | return NULL; |
2d091820 RD |
5771 | if (_argo0) { |
5772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
5775 | return NULL; | |
5776 | } | |
5777 | } | |
ab9bc19b | 5778 | { |
474c48f9 | 5779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5780 | _result = (int )wxDC_GetMapMode(_arg0); |
ab9bc19b | 5781 | |
474c48f9 | 5782 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5783 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5784 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5785 | return _resultobj; |
5786 | } | |
5787 | ||
5788 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
107e4716 | 5789 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5790 | PyObject * _resultobj; |
5791 | bool _result; | |
5792 | wxDC * _arg0; | |
2d091820 | 5793 | PyObject * _argo0 = 0; |
107e4716 | 5794 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5795 | |
5796 | self = self; | |
107e4716 | 5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
70551f47 | 5798 | return NULL; |
2d091820 RD |
5799 | if (_argo0) { |
5800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
5803 | return NULL; | |
5804 | } | |
5805 | } | |
ab9bc19b | 5806 | { |
474c48f9 | 5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5808 | _result = (bool )wxDC_GetOptimization(_arg0); |
ab9bc19b | 5809 | |
474c48f9 | 5810 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5811 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5812 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5813 | return _resultobj; |
5814 | } | |
5815 | ||
5816 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
107e4716 | 5817 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5818 | PyObject * _resultobj; |
5819 | wxPen * _result; | |
5820 | wxDC * _arg0; | |
2d091820 | 5821 | PyObject * _argo0 = 0; |
107e4716 | 5822 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5823 | char _ptemp[128]; |
5824 | ||
5825 | self = self; | |
107e4716 | 5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
70551f47 | 5827 | return NULL; |
2d091820 RD |
5828 | if (_argo0) { |
5829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
5832 | return NULL; | |
5833 | } | |
5834 | } | |
ab9bc19b | 5835 | { |
474c48f9 | 5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5837 | _result = new wxPen (wxDC_GetPen(_arg0)); |
ab9bc19b | 5838 | |
474c48f9 | 5839 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5840 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5841 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
5842 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5843 | return _resultobj; |
5844 | } | |
5845 | ||
5846 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
5847 | wxColour* wc = new wxColour(); | |
5848 | self->GetPixel(x, y, wc); | |
5849 | return wc; | |
5850 | } | |
107e4716 | 5851 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5852 | PyObject * _resultobj; |
5853 | wxColour * _result; | |
5854 | wxDC * _arg0; | |
5855 | long _arg1; | |
5856 | long _arg2; | |
2d091820 | 5857 | PyObject * _argo0 = 0; |
107e4716 | 5858 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
5859 | char _ptemp[128]; |
5860 | ||
5861 | self = self; | |
107e4716 | 5862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5863 | return NULL; |
2d091820 RD |
5864 | if (_argo0) { |
5865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
5868 | return NULL; | |
5869 | } | |
5870 | } | |
ab9bc19b | 5871 | { |
474c48f9 | 5872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5873 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
ab9bc19b | 5874 | |
474c48f9 | 5875 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5876 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5877 | } if (_result) { |
5878 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5879 | _resultobj = Py_BuildValue("s",_ptemp); | |
5880 | } else { | |
5881 | Py_INCREF(Py_None); | |
5882 | _resultobj = Py_None; | |
5883 | } | |
70551f47 RD |
5884 | return _resultobj; |
5885 | } | |
5886 | ||
d24a34bb | 5887 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
107e4716 | 5888 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5889 | PyObject * _resultobj; |
5890 | wxDC * _arg0; | |
5891 | int * _arg1; | |
5892 | int temp; | |
5893 | int * _arg2; | |
5894 | int temp0; | |
2d091820 | 5895 | PyObject * _argo0 = 0; |
107e4716 | 5896 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5897 | |
5898 | self = self; | |
5899 | { | |
5900 | _arg1 = &temp; | |
5901 | } | |
5902 | { | |
5903 | _arg2 = &temp0; | |
5904 | } | |
107e4716 | 5905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
70551f47 | 5906 | return NULL; |
2d091820 RD |
5907 | if (_argo0) { |
5908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb | 5910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
70551f47 RD |
5911 | return NULL; |
5912 | } | |
5913 | } | |
ab9bc19b | 5914 | { |
474c48f9 | 5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5916 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
ab9bc19b | 5917 | |
474c48f9 | 5918 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5919 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5920 | } Py_INCREF(Py_None); |
70551f47 RD |
5921 | _resultobj = Py_None; |
5922 | { | |
5923 | PyObject *o; | |
5924 | o = PyInt_FromLong((long) (*_arg1)); | |
5925 | _resultobj = t_output_helper(_resultobj, o); | |
5926 | } | |
5927 | { | |
5928 | PyObject *o; | |
5929 | o = PyInt_FromLong((long) (*_arg2)); | |
5930 | _resultobj = t_output_helper(_resultobj, o); | |
5931 | } | |
5932 | return _resultobj; | |
5933 | } | |
5934 | ||
d24a34bb | 5935 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
107e4716 | 5936 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
5937 | PyObject * _resultobj; |
5938 | wxSize * _result; | |
5939 | wxDC * _arg0; | |
2d091820 | 5940 | PyObject * _argo0 = 0; |
107e4716 | 5941 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5942 | char _ptemp[128]; |
5943 | ||
5944 | self = self; | |
107e4716 | 5945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
d24a34bb | 5946 | return NULL; |
2d091820 RD |
5947 | if (_argo0) { |
5948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
5950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
5951 | return NULL; | |
5952 | } | |
5953 | } | |
5954 | { | |
474c48f9 | 5955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5956 | _result = new wxSize (wxDC_GetSize(_arg0)); |
d24a34bb | 5957 | |
474c48f9 | 5958 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5959 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
5960 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5961 | _resultobj = Py_BuildValue("s",_ptemp); | |
5962 | return _resultobj; | |
5963 | } | |
5964 | ||
e02c03a4 RD |
5965 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
5966 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject * _resultobj; | |
5968 | wxSize * _result; | |
5969 | wxDC * _arg0; | |
5970 | PyObject * _argo0 = 0; | |
5971 | char *_kwnames[] = { "self", NULL }; | |
5972 | char _ptemp[128]; | |
5973 | ||
5974 | self = self; | |
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
5976 | return NULL; | |
5977 | if (_argo0) { | |
5978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
5981 | return NULL; | |
5982 | } | |
5983 | } | |
5984 | { | |
474c48f9 | 5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5986 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
e02c03a4 | 5987 | |
474c48f9 | 5988 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5989 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
5990 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5991 | _resultobj = Py_BuildValue("s",_ptemp); | |
5992 | return _resultobj; | |
5993 | } | |
5994 | ||
70551f47 | 5995 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
107e4716 | 5996 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5997 | PyObject * _resultobj; |
5998 | wxColour * _result; | |
5999 | wxDC * _arg0; | |
2d091820 | 6000 | PyObject * _argo0 = 0; |
107e4716 | 6001 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6002 | char _ptemp[128]; |
6003 | ||
6004 | self = self; | |
107e4716 | 6005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
70551f47 | 6006 | return NULL; |
2d091820 RD |
6007 | if (_argo0) { |
6008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
6011 | return NULL; | |
6012 | } | |
6013 | } | |
ab9bc19b | 6014 | { |
474c48f9 | 6015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6016 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
ab9bc19b | 6017 | |
474c48f9 | 6018 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6019 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
6020 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6021 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
6022 | return _resultobj; |
6023 | } | |
6024 | ||
21f8d7ea | 6025 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 6026 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
6027 | PyObject * _resultobj; |
6028 | wxDC * _arg0; | |
6029 | wxString * _arg1; | |
6030 | long * _arg2; | |
6031 | long temp; | |
6032 | long * _arg3; | |
6033 | long temp0; | |
2d091820 | 6034 | PyObject * _argo0 = 0; |
21f8d7ea | 6035 | PyObject * _obj1 = 0; |
107e4716 | 6036 | char *_kwnames[] = { "self","string", NULL }; |
21f8d7ea RD |
6037 | |
6038 | self = self; | |
6039 | { | |
6040 | _arg2 = &temp; | |
6041 | } | |
6042 | { | |
6043 | _arg3 = &temp0; | |
6044 | } | |
107e4716 | 6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 6046 | return NULL; |
2d091820 RD |
6047 | if (_argo0) { |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea RD |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
c8bc7bb8 RD |
6055 | _arg1 = wxString_in_helper(_obj1); |
6056 | if (_arg1 == NULL) | |
21f8d7ea | 6057 | return NULL; |
21f8d7ea | 6058 | } |
ab9bc19b | 6059 | { |
474c48f9 | 6060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6061 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 6062 | |
474c48f9 | 6063 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6064 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6065 | } Py_INCREF(Py_None); |
21f8d7ea RD |
6066 | _resultobj = Py_None; |
6067 | { | |
6068 | PyObject *o; | |
6069 | o = PyInt_FromLong((long) (*_arg2)); | |
6070 | _resultobj = t_output_helper(_resultobj, o); | |
6071 | } | |
6072 | { | |
6073 | PyObject *o; | |
6074 | o = PyInt_FromLong((long) (*_arg3)); | |
6075 | _resultobj = t_output_helper(_resultobj, o); | |
6076 | } | |
6077 | { | |
6078 | if (_obj1) | |
6079 | delete _arg1; | |
6080 | } | |
6081 | return _resultobj; | |
6082 | } | |
6083 | ||
6084 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 6085 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6086 | PyObject * _resultobj; |
6087 | wxDC * _arg0; | |
6088 | wxString * _arg1; | |
6089 | long * _arg2; | |
6090 | long temp; | |
6091 | long * _arg3; | |
6092 | long temp0; | |
6093 | long * _arg4; | |
6094 | long temp1; | |
6095 | long * _arg5; | |
6096 | long temp2; | |
2d091820 RD |
6097 | wxFont * _arg6 = (wxFont *) NULL; |
6098 | PyObject * _argo0 = 0; | |
70551f47 | 6099 | PyObject * _obj1 = 0; |
2d091820 | 6100 | PyObject * _argo6 = 0; |
107e4716 | 6101 | char *_kwnames[] = { "self","string","font", NULL }; |
70551f47 RD |
6102 | |
6103 | self = self; | |
6104 | { | |
6105 | _arg2 = &temp; | |
6106 | } | |
6107 | { | |
6108 | _arg3 = &temp0; | |
6109 | } | |
6110 | { | |
6111 | _arg4 = &temp1; | |
6112 | } | |
6113 | { | |
6114 | _arg5 = &temp2; | |
6115 | } | |
107e4716 | 6116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
70551f47 | 6117 | return NULL; |
2d091820 RD |
6118 | if (_argo0) { |
6119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea | 6121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
70551f47 RD |
6122 | return NULL; |
6123 | } | |
6124 | } | |
6125 | { | |
c8bc7bb8 RD |
6126 | _arg1 = wxString_in_helper(_obj1); |
6127 | if (_arg1 == NULL) | |
2cd2fac8 | 6128 | return NULL; |
70551f47 | 6129 | } |
2d091820 RD |
6130 | if (_argo6) { |
6131 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6132 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
21f8d7ea RD |
6133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
6134 | return NULL; | |
6135 | } | |
6136 | } | |
ab9bc19b | 6137 | { |
474c48f9 | 6138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6139 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 6140 | |
474c48f9 | 6141 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6142 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6143 | } Py_INCREF(Py_None); |
70551f47 RD |
6144 | _resultobj = Py_None; |
6145 | { | |
6146 | PyObject *o; | |
6147 | o = PyInt_FromLong((long) (*_arg2)); | |
6148 | _resultobj = t_output_helper(_resultobj, o); | |
6149 | } | |
6150 | { | |
6151 | PyObject *o; | |
6152 | o = PyInt_FromLong((long) (*_arg3)); | |
6153 | _resultobj = t_output_helper(_resultobj, o); | |
6154 | } | |
6155 | { | |
6156 | PyObject *o; | |
6157 | o = PyInt_FromLong((long) (*_arg4)); | |
6158 | _resultobj = t_output_helper(_resultobj, o); | |
6159 | } | |
6160 | { | |
6161 | PyObject *o; | |
6162 | o = PyInt_FromLong((long) (*_arg5)); | |
6163 | _resultobj = t_output_helper(_resultobj, o); | |
6164 | } | |
6165 | { | |
6166 | if (_obj1) | |
6167 | delete _arg1; | |
6168 | } | |
6169 | return _resultobj; | |
6170 | } | |
6171 | ||
6172 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
107e4716 | 6173 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6174 | PyObject * _resultobj; |
6175 | wxColour * _result; | |
6176 | wxDC * _arg0; | |
2d091820 | 6177 | PyObject * _argo0 = 0; |
107e4716 | 6178 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6179 | char _ptemp[128]; |
6180 | ||
6181 | self = self; | |
107e4716 | 6182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
70551f47 | 6183 | return NULL; |
2d091820 RD |
6184 | if (_argo0) { |
6185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
6188 | return NULL; | |
6189 | } | |
6190 | } | |
ab9bc19b | 6191 | { |
474c48f9 | 6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6193 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
ab9bc19b | 6194 | |
474c48f9 | 6195 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6196 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
6197 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6198 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
6199 | return _resultobj; |
6200 | } | |
6201 | ||
e02c03a4 RD |
6202 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
6203 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6204 | PyObject * _resultobj; | |
6205 | wxDC * _arg0; | |
6206 | double * _arg1; | |
6207 | double temp; | |
6208 | double * _arg2; | |
6209 | double temp0; | |
6210 | PyObject * _argo0 = 0; | |
6211 | char *_kwnames[] = { "self", NULL }; | |
6212 | ||
6213 | self = self; | |
6214 | { | |
6215 | _arg1 = &temp; | |
6216 | } | |
6217 | { | |
6218 | _arg2 = &temp0; | |
6219 | } | |
6220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
6221 | return NULL; | |
6222 | if (_argo0) { | |
6223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
6226 | return NULL; | |
6227 | } | |
6228 | } | |
6229 | { | |
474c48f9 | 6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6231 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
e02c03a4 | 6232 | |
474c48f9 | 6233 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6234 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
6235 | } Py_INCREF(Py_None); |
6236 | _resultobj = Py_None; | |
6237 | { | |
6238 | PyObject *o; | |
6239 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6240 | _resultobj = t_output_helper(_resultobj, o); | |
6241 | } | |
6242 | { | |
6243 | PyObject *o; | |
6244 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6245 | _resultobj = t_output_helper(_resultobj, o); | |
6246 | } | |
6247 | return _resultobj; | |
6248 | } | |
6249 | ||
70551f47 | 6250 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
107e4716 | 6251 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6252 | PyObject * _resultobj; |
6253 | long _result; | |
6254 | wxDC * _arg0; | |
6255 | long _arg1; | |
2d091820 | 6256 | PyObject * _argo0 = 0; |
107e4716 | 6257 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6258 | |
6259 | self = self; | |
107e4716 | 6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6261 | return NULL; |
2d091820 RD |
6262 | if (_argo0) { |
6263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
6266 | return NULL; | |
6267 | } | |
6268 | } | |
ab9bc19b | 6269 | { |
474c48f9 | 6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6271 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
ab9bc19b | 6272 | |
474c48f9 | 6273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6274 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6275 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6276 | return _resultobj; |
6277 | } | |
6278 | ||
6279 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
107e4716 | 6280 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6281 | PyObject * _resultobj; |
6282 | long _result; | |
6283 | wxDC * _arg0; | |
6284 | long _arg1; | |
2d091820 | 6285 | PyObject * _argo0 = 0; |
107e4716 | 6286 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6287 | |
6288 | self = self; | |
107e4716 | 6289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6290 | return NULL; |
2d091820 RD |
6291 | if (_argo0) { |
6292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
6295 | return NULL; | |
6296 | } | |
6297 | } | |
ab9bc19b | 6298 | { |
474c48f9 | 6299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6300 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
ab9bc19b | 6301 | |
474c48f9 | 6302 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6303 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6304 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6305 | return _resultobj; |
6306 | } | |
6307 | ||
6308 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
107e4716 | 6309 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6310 | PyObject * _resultobj; |
6311 | long _result; | |
6312 | wxDC * _arg0; | |
6313 | long _arg1; | |
2d091820 | 6314 | PyObject * _argo0 = 0; |
107e4716 | 6315 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6316 | |
6317 | self = self; | |
107e4716 | 6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6319 | return NULL; |
2d091820 RD |
6320 | if (_argo0) { |
6321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
6324 | return NULL; | |
6325 | } | |
6326 | } | |
ab9bc19b | 6327 | { |
474c48f9 | 6328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6329 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
ab9bc19b | 6330 | |
474c48f9 | 6331 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6332 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6333 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6334 | return _resultobj; |
6335 | } | |
6336 | ||
6337 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
107e4716 | 6338 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6339 | PyObject * _resultobj; |
6340 | long _result; | |
6341 | wxDC * _arg0; | |
6342 | long _arg1; | |
2d091820 | 6343 | PyObject * _argo0 = 0; |
107e4716 | 6344 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6345 | |
6346 | self = self; | |
107e4716 | 6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6348 | return NULL; |
2d091820 RD |
6349 | if (_argo0) { |
6350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
6353 | return NULL; | |
6354 | } | |
6355 | } | |
ab9bc19b | 6356 | { |
474c48f9 | 6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6358 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
ab9bc19b | 6359 | |
474c48f9 | 6360 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6361 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6362 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6363 | return _resultobj; |
6364 | } | |
6365 | ||
6366 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
107e4716 | 6367 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6368 | PyObject * _resultobj; |
6369 | long _result; | |
6370 | wxDC * _arg0; | |
2d091820 | 6371 | PyObject * _argo0 = 0; |
107e4716 | 6372 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6373 | |
6374 | self = self; | |
107e4716 | 6375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
70551f47 | 6376 | return NULL; |
2d091820 RD |
6377 | if (_argo0) { |
6378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
6381 | return NULL; | |
6382 | } | |
6383 | } | |
ab9bc19b | 6384 | { |
474c48f9 | 6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6386 | _result = (long )wxDC_MaxX(_arg0); |
ab9bc19b | 6387 | |
474c48f9 | 6388 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6389 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6390 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6391 | return _resultobj; |
6392 | } | |
6393 | ||
6394 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
107e4716 | 6395 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6396 | PyObject * _resultobj; |
6397 | long _result; | |
6398 | wxDC * _arg0; | |
2d091820 | 6399 | PyObject * _argo0 = 0; |
107e4716 | 6400 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6401 | |
6402 | self = self; | |
107e4716 | 6403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
70551f47 | 6404 | return NULL; |
2d091820 RD |
6405 | if (_argo0) { |
6406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
6409 | return NULL; | |
6410 | } | |
6411 | } | |
ab9bc19b | 6412 | { |
474c48f9 | 6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6414 | _result = (long )wxDC_MaxY(_arg0); |
ab9bc19b | 6415 | |
474c48f9 | 6416 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6417 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6418 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6419 | return _resultobj; |
6420 | } | |
6421 | ||
6422 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
107e4716 | 6423 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6424 | PyObject * _resultobj; |
6425 | long _result; | |
6426 | wxDC * _arg0; | |
2d091820 | 6427 | PyObject * _argo0 = 0; |
107e4716 | 6428 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6429 | |
6430 | self = self; | |
107e4716 | 6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
70551f47 | 6432 | return NULL; |
2d091820 RD |
6433 | if (_argo0) { |
6434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
6437 | return NULL; | |
6438 | } | |
6439 | } | |
ab9bc19b | 6440 | { |
474c48f9 | 6441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6442 | _result = (long )wxDC_MinX(_arg0); |
ab9bc19b | 6443 | |
474c48f9 | 6444 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6445 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6446 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6447 | return _resultobj; |
6448 | } | |
6449 | ||
6450 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
107e4716 | 6451 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6452 | PyObject * _resultobj; |
6453 | long _result; | |
6454 | wxDC * _arg0; | |
2d091820 | 6455 | PyObject * _argo0 = 0; |
107e4716 | 6456 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6457 | |
6458 | self = self; | |
107e4716 | 6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
70551f47 | 6460 | return NULL; |
2d091820 RD |
6461 | if (_argo0) { |
6462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
6465 | return NULL; | |
6466 | } | |
6467 | } | |
ab9bc19b | 6468 | { |
474c48f9 | 6469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6470 | _result = (long )wxDC_MinY(_arg0); |
ab9bc19b | 6471 | |
474c48f9 | 6472 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6473 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6474 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6475 | return _resultobj; |
6476 | } | |
6477 | ||
6478 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 6479 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6480 | PyObject * _resultobj; |
6481 | bool _result; | |
6482 | wxDC * _arg0; | |
2d091820 | 6483 | PyObject * _argo0 = 0; |
107e4716 | 6484 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6485 | |
6486 | self = self; | |
107e4716 | 6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
70551f47 | 6488 | return NULL; |
2d091820 RD |
6489 | if (_argo0) { |
6490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
6493 | return NULL; | |
6494 | } | |
6495 | } | |
ab9bc19b | 6496 | { |
474c48f9 | 6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6498 | _result = (bool )wxDC_Ok(_arg0); |
ab9bc19b | 6499 | |
474c48f9 | 6500 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6501 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6502 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6503 | return _resultobj; |
6504 | } | |
6505 | ||
6506 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
107e4716 | 6507 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6508 | PyObject * _resultobj; |
6509 | wxDC * _arg0; | |
6510 | long _arg1; | |
6511 | long _arg2; | |
2d091820 | 6512 | PyObject * _argo0 = 0; |
107e4716 | 6513 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6514 | |
6515 | self = self; | |
107e4716 | 6516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6517 | return NULL; |
2d091820 RD |
6518 | if (_argo0) { |
6519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
6522 | return NULL; | |
6523 | } | |
6524 | } | |
ab9bc19b | 6525 | { |
474c48f9 | 6526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6527 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
ab9bc19b | 6528 | |
474c48f9 | 6529 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6530 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6531 | } Py_INCREF(Py_None); |
70551f47 RD |
6532 | _resultobj = Py_None; |
6533 | return _resultobj; | |
6534 | } | |
6535 | ||
6536 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
107e4716 | 6537 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6538 | PyObject * _resultobj; |
6539 | wxDC * _arg0; | |
6540 | wxBrush * _arg1; | |
2d091820 RD |
6541 | PyObject * _argo0 = 0; |
6542 | PyObject * _argo1 = 0; | |
107e4716 | 6543 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
6544 | |
6545 | self = self; | |
107e4716 | 6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6547 | return NULL; |
2d091820 RD |
6548 | if (_argo0) { |
6549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
6552 | return NULL; | |
6553 | } | |
6554 | } | |
2d091820 RD |
6555 | if (_argo1) { |
6556 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6557 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
6558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
6559 | return NULL; | |
6560 | } | |
6561 | } | |
ab9bc19b | 6562 | { |
474c48f9 | 6563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6564 | wxDC_SetBackground(_arg0,*_arg1); |
ab9bc19b | 6565 | |
474c48f9 | 6566 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6567 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6568 | } Py_INCREF(Py_None); |
70551f47 RD |
6569 | _resultobj = Py_None; |
6570 | return _resultobj; | |
6571 | } | |
6572 | ||
6573 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
107e4716 | 6574 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6575 | PyObject * _resultobj; |
6576 | wxDC * _arg0; | |
6577 | int _arg1; | |
2d091820 | 6578 | PyObject * _argo0 = 0; |
107e4716 | 6579 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
6580 | |
6581 | self = self; | |
107e4716 | 6582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6583 | return NULL; |
2d091820 RD |
6584 | if (_argo0) { |
6585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
6588 | return NULL; | |
6589 | } | |
6590 | } | |
ab9bc19b | 6591 | { |
474c48f9 | 6592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6593 | wxDC_SetBackgroundMode(_arg0,_arg1); |
ab9bc19b | 6594 | |
474c48f9 | 6595 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6596 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6597 | } Py_INCREF(Py_None); |
70551f47 RD |
6598 | _resultobj = Py_None; |
6599 | return _resultobj; | |
6600 | } | |
6601 | ||
6602 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6603 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6604 | PyObject * _resultobj; |
6605 | wxDC * _arg0; | |
6606 | long _arg1; | |
6607 | long _arg2; | |
6608 | long _arg3; | |
6609 | long _arg4; | |
2d091820 | 6610 | PyObject * _argo0 = 0; |
107e4716 | 6611 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
6612 | |
6613 | self = self; | |
107e4716 | 6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6615 | return NULL; |
2d091820 RD |
6616 | if (_argo0) { |
6617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
6620 | return NULL; | |
6621 | } | |
6622 | } | |
ab9bc19b | 6623 | { |
474c48f9 | 6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6625 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 6626 | |
474c48f9 | 6627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6628 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6629 | } Py_INCREF(Py_None); |
70551f47 RD |
6630 | _resultobj = Py_None; |
6631 | return _resultobj; | |
6632 | } | |
6633 | ||
059a841c RD |
6634 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
6635 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6636 | PyObject * _resultobj; | |
6637 | wxDC * _arg0; | |
6638 | wxRegion * _arg1; | |
6639 | PyObject * _argo0 = 0; | |
6640 | PyObject * _argo1 = 0; | |
6641 | char *_kwnames[] = { "self","region", NULL }; | |
6642 | ||
6643 | self = self; | |
6644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
6645 | return NULL; | |
6646 | if (_argo0) { | |
6647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
6650 | return NULL; | |
6651 | } | |
6652 | } | |
6653 | if (_argo1) { | |
6654 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6655 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
6656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
6657 | return NULL; | |
6658 | } | |
6659 | } | |
6660 | { | |
474c48f9 | 6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6662 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
059a841c | 6663 | |
474c48f9 | 6664 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
6665 | if (PyErr_Occurred()) return NULL; |
6666 | } Py_INCREF(Py_None); | |
6667 | _resultobj = Py_None; | |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
70551f47 | 6671 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
107e4716 | 6672 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6673 | PyObject * _resultobj; |
6674 | wxDC * _arg0; | |
6675 | wxPalette * _arg1; | |
2d091820 RD |
6676 | PyObject * _argo0 = 0; |
6677 | PyObject * _argo1 = 0; | |
107e4716 | 6678 | char *_kwnames[] = { "self","colourMap", NULL }; |
70551f47 RD |
6679 | |
6680 | self = self; | |
107e4716 | 6681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6682 | return NULL; |
2d091820 RD |
6683 | if (_argo0) { |
6684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
6687 | return NULL; | |
6688 | } | |
6689 | } | |
2d091820 RD |
6690 | if (_argo1) { |
6691 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6692 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
70551f47 RD |
6693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
6694 | return NULL; | |
6695 | } | |
6696 | } | |
ab9bc19b | 6697 | { |
474c48f9 | 6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6699 | wxDC_SetPalette(_arg0,*_arg1); |
ab9bc19b | 6700 | |
474c48f9 | 6701 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6702 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6703 | } Py_INCREF(Py_None); |
70551f47 RD |
6704 | _resultobj = Py_None; |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
6708 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
107e4716 | 6709 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6710 | PyObject * _resultobj; |
6711 | wxDC * _arg0; | |
6712 | wxBrush * _arg1; | |
2d091820 RD |
6713 | PyObject * _argo0 = 0; |
6714 | PyObject * _argo1 = 0; | |
107e4716 | 6715 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
6716 | |
6717 | self = self; | |
107e4716 | 6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6719 | return NULL; |
2d091820 RD |
6720 | if (_argo0) { |
6721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
6724 | return NULL; | |
6725 | } | |
6726 | } | |
2d091820 RD |
6727 | if (_argo1) { |
6728 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6729 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
6730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
6731 | return NULL; | |
6732 | } | |
6733 | } | |
ab9bc19b | 6734 | { |
474c48f9 | 6735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6736 | wxDC_SetBrush(_arg0,*_arg1); |
ab9bc19b | 6737 | |
474c48f9 | 6738 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6739 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6740 | } Py_INCREF(Py_None); |
70551f47 RD |
6741 | _resultobj = Py_None; |
6742 | return _resultobj; | |
6743 | } | |
6744 | ||
6745 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
107e4716 | 6746 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6747 | PyObject * _resultobj; |
6748 | wxDC * _arg0; | |
6749 | wxFont * _arg1; | |
2d091820 RD |
6750 | PyObject * _argo0 = 0; |
6751 | PyObject * _argo1 = 0; | |
107e4716 | 6752 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
6753 | |
6754 | self = self; | |
107e4716 | 6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6756 | return NULL; |
2d091820 RD |
6757 | if (_argo0) { |
6758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
6761 | return NULL; | |
6762 | } | |
6763 | } | |
2d091820 RD |
6764 | if (_argo1) { |
6765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
6767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
6768 | return NULL; | |
6769 | } | |
6770 | } | |
ab9bc19b | 6771 | { |
474c48f9 | 6772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6773 | wxDC_SetFont(_arg0,*_arg1); |
ab9bc19b | 6774 | |
474c48f9 | 6775 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6776 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6777 | } Py_INCREF(Py_None); |
70551f47 RD |
6778 | _resultobj = Py_None; |
6779 | return _resultobj; | |
6780 | } | |
6781 | ||
6782 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
107e4716 | 6783 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6784 | PyObject * _resultobj; |
6785 | wxDC * _arg0; | |
6786 | int _arg1; | |
2d091820 | 6787 | PyObject * _argo0 = 0; |
107e4716 | 6788 | char *_kwnames[] = { "self","function", NULL }; |
70551f47 RD |
6789 | |
6790 | self = self; | |
107e4716 | 6791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6792 | return NULL; |
2d091820 RD |
6793 | if (_argo0) { |
6794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
6797 | return NULL; | |
6798 | } | |
6799 | } | |
ab9bc19b | 6800 | { |
474c48f9 | 6801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6802 | wxDC_SetLogicalFunction(_arg0,_arg1); |
ab9bc19b | 6803 | |
474c48f9 | 6804 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6805 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6806 | } Py_INCREF(Py_None); |
70551f47 RD |
6807 | _resultobj = Py_None; |
6808 | return _resultobj; | |
6809 | } | |
6810 | ||
e02c03a4 RD |
6811 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
6812 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6813 | PyObject * _resultobj; | |
6814 | wxDC * _arg0; | |
6815 | double _arg1; | |
6816 | double _arg2; | |
6817 | PyObject * _argo0 = 0; | |
6818 | char *_kwnames[] = { "self","x","y", NULL }; | |
6819 | ||
6820 | self = self; | |
6821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6822 | return NULL; | |
6823 | if (_argo0) { | |
6824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
6827 | return NULL; | |
6828 | } | |
6829 | } | |
6830 | { | |
474c48f9 | 6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6832 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
e02c03a4 | 6833 | |
474c48f9 | 6834 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6835 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
6836 | } Py_INCREF(Py_None); |
6837 | _resultobj = Py_None; | |
6838 | return _resultobj; | |
6839 | } | |
6840 | ||
70551f47 | 6841 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
107e4716 | 6842 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6843 | PyObject * _resultobj; |
6844 | wxDC * _arg0; | |
6845 | int _arg1; | |
2d091820 | 6846 | PyObject * _argo0 = 0; |
107e4716 | 6847 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
6848 | |
6849 | self = self; | |
107e4716 | 6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6851 | return NULL; |
2d091820 RD |
6852 | if (_argo0) { |
6853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
6856 | return NULL; | |
6857 | } | |
6858 | } | |
ab9bc19b | 6859 | { |
474c48f9 | 6860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6861 | wxDC_SetMapMode(_arg0,_arg1); |
ab9bc19b | 6862 | |
474c48f9 | 6863 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6864 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6865 | } Py_INCREF(Py_None); |
70551f47 RD |
6866 | _resultobj = Py_None; |
6867 | return _resultobj; | |
6868 | } | |
6869 | ||
6870 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
107e4716 | 6871 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6872 | PyObject * _resultobj; |
6873 | wxDC * _arg0; | |
6874 | bool _arg1; | |
2d091820 | 6875 | PyObject * _argo0 = 0; |
70551f47 | 6876 | int tempbool1; |
107e4716 | 6877 | char *_kwnames[] = { "self","optimize", NULL }; |
70551f47 RD |
6878 | |
6879 | self = self; | |
107e4716 | 6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 6881 | return NULL; |
2d091820 RD |
6882 | if (_argo0) { |
6883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
6886 | return NULL; | |
6887 | } | |
6888 | } | |
6889 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 6890 | { |
474c48f9 | 6891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6892 | wxDC_SetOptimization(_arg0,_arg1); |
ab9bc19b | 6893 | |
474c48f9 | 6894 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6895 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6896 | } Py_INCREF(Py_None); |
70551f47 RD |
6897 | _resultobj = Py_None; |
6898 | return _resultobj; | |
6899 | } | |
6900 | ||
6901 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
107e4716 | 6902 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6903 | PyObject * _resultobj; |
6904 | wxDC * _arg0; | |
6905 | wxPen * _arg1; | |
2d091820 RD |
6906 | PyObject * _argo0 = 0; |
6907 | PyObject * _argo1 = 0; | |
107e4716 | 6908 | char *_kwnames[] = { "self","pen", NULL }; |
70551f47 RD |
6909 | |
6910 | self = self; | |
107e4716 | 6911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6912 | return NULL; |
2d091820 RD |
6913 | if (_argo0) { |
6914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
6917 | return NULL; | |
6918 | } | |
6919 | } | |
2d091820 RD |
6920 | if (_argo1) { |
6921 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6922 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
70551f47 RD |
6923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
6924 | return NULL; | |
6925 | } | |
6926 | } | |
ab9bc19b | 6927 | { |
474c48f9 | 6928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6929 | wxDC_SetPen(_arg0,*_arg1); |
ab9bc19b | 6930 | |
474c48f9 | 6931 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6932 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6933 | } Py_INCREF(Py_None); |
70551f47 RD |
6934 | _resultobj = Py_None; |
6935 | return _resultobj; | |
6936 | } | |
6937 | ||
6938 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
107e4716 | 6939 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6940 | PyObject * _resultobj; |
6941 | wxDC * _arg0; | |
6942 | wxColour * _arg1; | |
2d091820 | 6943 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6944 | wxColour temp; |
6945 | PyObject * _obj1 = 0; | |
107e4716 | 6946 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
6947 | |
6948 | self = self; | |
f6bcfd97 | 6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6950 | return NULL; |
2d091820 RD |
6951 | if (_argo0) { |
6952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
6955 | return NULL; | |
6956 | } | |
6957 | } | |
f6bcfd97 BP |
6958 | { |
6959 | _arg1 = &temp; | |
6960 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 6961 | return NULL; |
f6bcfd97 | 6962 | } |
ab9bc19b | 6963 | { |
474c48f9 | 6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6965 | wxDC_SetTextBackground(_arg0,*_arg1); |
ab9bc19b | 6966 | |
474c48f9 | 6967 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6968 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6969 | } Py_INCREF(Py_None); |
70551f47 RD |
6970 | _resultobj = Py_None; |
6971 | return _resultobj; | |
6972 | } | |
6973 | ||
6974 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
107e4716 | 6975 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6976 | PyObject * _resultobj; |
6977 | wxDC * _arg0; | |
6978 | wxColour * _arg1; | |
2d091820 | 6979 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6980 | wxColour temp; |
6981 | PyObject * _obj1 = 0; | |
107e4716 | 6982 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
6983 | |
6984 | self = self; | |
f6bcfd97 | 6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6986 | return NULL; |
2d091820 RD |
6987 | if (_argo0) { |
6988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
6991 | return NULL; | |
6992 | } | |
6993 | } | |
f6bcfd97 BP |
6994 | { |
6995 | _arg1 = &temp; | |
6996 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 6997 | return NULL; |
f6bcfd97 | 6998 | } |
ab9bc19b | 6999 | { |
474c48f9 | 7000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7001 | wxDC_SetTextForeground(_arg0,*_arg1); |
ab9bc19b | 7002 | |
474c48f9 | 7003 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7004 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7005 | } Py_INCREF(Py_None); |
70551f47 RD |
7006 | _resultobj = Py_None; |
7007 | return _resultobj; | |
7008 | } | |
7009 | ||
7010 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
107e4716 | 7011 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7012 | PyObject * _resultobj; |
7013 | wxDC * _arg0; | |
7014 | double _arg1; | |
7015 | double _arg2; | |
2d091820 | 7016 | PyObject * _argo0 = 0; |
107e4716 | 7017 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
70551f47 RD |
7018 | |
7019 | self = self; | |
107e4716 | 7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7021 | return NULL; |
2d091820 RD |
7022 | if (_argo0) { |
7023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
7026 | return NULL; | |
7027 | } | |
7028 | } | |
ab9bc19b | 7029 | { |
474c48f9 | 7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7031 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
ab9bc19b | 7032 | |
474c48f9 | 7033 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7034 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7035 | } Py_INCREF(Py_None); |
70551f47 RD |
7036 | _resultobj = Py_None; |
7037 | return _resultobj; | |
7038 | } | |
7039 | ||
7040 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
107e4716 | 7041 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7042 | PyObject * _resultobj; |
7043 | bool _result; | |
7044 | wxDC * _arg0; | |
7045 | wxString * _arg1; | |
2d091820 | 7046 | PyObject * _argo0 = 0; |
70551f47 | 7047 | PyObject * _obj1 = 0; |
107e4716 | 7048 | char *_kwnames[] = { "self","message", NULL }; |
70551f47 RD |
7049 | |
7050 | self = self; | |
107e4716 | 7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7052 | return NULL; |
2d091820 RD |
7053 | if (_argo0) { |
7054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
7057 | return NULL; | |
7058 | } | |
7059 | } | |
7060 | { | |
c8bc7bb8 RD |
7061 | _arg1 = wxString_in_helper(_obj1); |
7062 | if (_arg1 == NULL) | |
2cd2fac8 | 7063 | return NULL; |
70551f47 | 7064 | } |
ab9bc19b | 7065 | { |
474c48f9 | 7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7067 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
ab9bc19b | 7068 | |
474c48f9 | 7069 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7070 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7071 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7072 | { |
7073 | if (_obj1) | |
7074 | delete _arg1; | |
7075 | } | |
7076 | return _resultobj; | |
7077 | } | |
7078 | ||
7079 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
107e4716 | 7080 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7081 | PyObject * _resultobj; |
7082 | wxDC * _arg0; | |
2d091820 | 7083 | PyObject * _argo0 = 0; |
107e4716 | 7084 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7085 | |
7086 | self = self; | |
107e4716 | 7087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
70551f47 | 7088 | return NULL; |
2d091820 RD |
7089 | if (_argo0) { |
7090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
7093 | return NULL; | |
7094 | } | |
7095 | } | |
ab9bc19b | 7096 | { |
474c48f9 | 7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7098 | wxDC_StartPage(_arg0); |
ab9bc19b | 7099 | |
474c48f9 | 7100 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7101 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7102 | } Py_INCREF(Py_None); |
70551f47 RD |
7103 | _resultobj = Py_None; |
7104 | return _resultobj; | |
7105 | } | |
7106 | ||
107e4716 RD |
7107 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7108 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7109 | PyObject * _resultobj; |
7110 | wxDC * _arg0; | |
7111 | wxBitmap * _arg1; | |
7112 | long _arg2; | |
7113 | long _arg3; | |
107e4716 | 7114 | int _arg4 = (int ) FALSE; |
2d091820 RD |
7115 | PyObject * _argo0 = 0; |
7116 | PyObject * _argo1 = 0; | |
107e4716 | 7117 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
70551f47 RD |
7118 | |
7119 | self = self; | |
107e4716 | 7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 7121 | return NULL; |
2d091820 RD |
7122 | if (_argo0) { |
7123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
7126 | return NULL; | |
7127 | } | |
7128 | } | |
2d091820 RD |
7129 | if (_argo1) { |
7130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
7132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
7133 | return NULL; | |
7134 | } | |
7135 | } | |
ab9bc19b | 7136 | { |
474c48f9 | 7137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7138 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 7139 | |
474c48f9 | 7140 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7141 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7142 | } Py_INCREF(Py_None); |
70551f47 RD |
7143 | _resultobj = Py_None; |
7144 | return _resultobj; | |
7145 | } | |
7146 | ||
e02c03a4 RD |
7147 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
7148 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7149 | PyObject * _resultobj; | |
7150 | bool _result; | |
7151 | wxDC * _arg0; | |
7152 | PyObject * _argo0 = 0; | |
7153 | char *_kwnames[] = { "self", NULL }; | |
7154 | ||
7155 | self = self; | |
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
7157 | return NULL; | |
7158 | if (_argo0) { | |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
7165 | { | |
474c48f9 | 7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7167 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
e02c03a4 | 7168 | |
474c48f9 | 7169 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7170 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7171 | } _resultobj = Py_BuildValue("i",_result); |
7172 | return _resultobj; | |
7173 | } | |
7174 | ||
7175 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
7176 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject * _resultobj; | |
7178 | bool _result; | |
7179 | wxDC * _arg0; | |
7180 | PyObject * _argo0 = 0; | |
7181 | char *_kwnames[] = { "self", NULL }; | |
7182 | ||
7183 | self = self; | |
7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
7185 | return NULL; | |
7186 | if (_argo0) { | |
7187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
7190 | return NULL; | |
7191 | } | |
7192 | } | |
7193 | { | |
474c48f9 | 7194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7195 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
e02c03a4 | 7196 | |
474c48f9 | 7197 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7198 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7199 | } _resultobj = Py_BuildValue("i",_result); |
7200 | return _resultobj; | |
7201 | } | |
7202 | ||
7203 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
7204 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7205 | PyObject * _resultobj; | |
7206 | int _result; | |
7207 | wxDC * _arg0; | |
7208 | PyObject * _argo0 = 0; | |
7209 | char *_kwnames[] = { "self", NULL }; | |
7210 | ||
7211 | self = self; | |
7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
7213 | return NULL; | |
7214 | if (_argo0) { | |
7215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
7218 | return NULL; | |
7219 | } | |
7220 | } | |
7221 | { | |
474c48f9 | 7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7223 | _result = (int )wxDC_GetDepth(_arg0); |
e02c03a4 | 7224 | |
474c48f9 | 7225 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7226 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7227 | } _resultobj = Py_BuildValue("i",_result); |
7228 | return _resultobj; | |
7229 | } | |
7230 | ||
7231 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
7232 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7233 | PyObject * _resultobj; | |
7234 | wxSize * _result; | |
7235 | wxDC * _arg0; | |
7236 | PyObject * _argo0 = 0; | |
7237 | char *_kwnames[] = { "self", NULL }; | |
7238 | char _ptemp[128]; | |
7239 | ||
7240 | self = self; | |
7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
7242 | return NULL; | |
7243 | if (_argo0) { | |
7244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
7247 | return NULL; | |
7248 | } | |
7249 | } | |
7250 | { | |
474c48f9 | 7251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7252 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
e02c03a4 | 7253 | |
474c48f9 | 7254 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7255 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7256 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7257 | _resultobj = Py_BuildValue("s",_ptemp); | |
7258 | return _resultobj; | |
7259 | } | |
7260 | ||
7261 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
7262 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7263 | PyObject * _resultobj; | |
7264 | wxDC * _arg0; | |
7265 | int * _arg1; | |
7266 | int temp; | |
7267 | int * _arg2; | |
7268 | int temp0; | |
7269 | PyObject * _argo0 = 0; | |
7270 | char *_kwnames[] = { "self", NULL }; | |
7271 | ||
7272 | self = self; | |
7273 | { | |
7274 | _arg1 = &temp; | |
7275 | } | |
7276 | { | |
7277 | _arg2 = &temp0; | |
7278 | } | |
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
7280 | return NULL; | |
7281 | if (_argo0) { | |
7282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
7285 | return NULL; | |
7286 | } | |
7287 | } | |
7288 | { | |
474c48f9 | 7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7290 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
e02c03a4 | 7291 | |
474c48f9 | 7292 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7293 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7294 | } Py_INCREF(Py_None); |
7295 | _resultobj = Py_None; | |
7296 | { | |
7297 | PyObject *o; | |
7298 | o = PyInt_FromLong((long) (*_arg1)); | |
7299 | _resultobj = t_output_helper(_resultobj, o); | |
7300 | } | |
7301 | { | |
7302 | PyObject *o; | |
7303 | o = PyInt_FromLong((long) (*_arg2)); | |
7304 | _resultobj = t_output_helper(_resultobj, o); | |
7305 | } | |
7306 | return _resultobj; | |
7307 | } | |
7308 | ||
7309 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
7310 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7311 | PyObject * _resultobj; | |
7312 | wxDC * _arg0; | |
7313 | int _arg1; | |
7314 | int _arg2; | |
7315 | PyObject * _argo0 = 0; | |
7316 | char *_kwnames[] = { "self","x","y", NULL }; | |
7317 | ||
7318 | self = self; | |
7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7320 | return NULL; | |
7321 | if (_argo0) { | |
7322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
7325 | return NULL; | |
7326 | } | |
7327 | } | |
7328 | { | |
474c48f9 | 7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7330 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
e02c03a4 | 7331 | |
474c48f9 | 7332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7333 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7334 | } Py_INCREF(Py_None); |
7335 | _resultobj = Py_None; | |
7336 | return _resultobj; | |
7337 | } | |
7338 | ||
7339 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
7340 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject * _resultobj; | |
7342 | wxDC * _arg0; | |
7343 | int * _arg1; | |
7344 | int temp; | |
7345 | int * _arg2; | |
7346 | int temp0; | |
7347 | PyObject * _argo0 = 0; | |
7348 | char *_kwnames[] = { "self", NULL }; | |
7349 | ||
7350 | self = self; | |
7351 | { | |
7352 | _arg1 = &temp; | |
7353 | } | |
7354 | { | |
7355 | _arg2 = &temp0; | |
7356 | } | |
7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
7358 | return NULL; | |
7359 | if (_argo0) { | |
7360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
7363 | return NULL; | |
7364 | } | |
7365 | } | |
7366 | { | |
474c48f9 | 7367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7368 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
e02c03a4 | 7369 | |
474c48f9 | 7370 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7371 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7372 | } Py_INCREF(Py_None); |
7373 | _resultobj = Py_None; | |
7374 | { | |
7375 | PyObject *o; | |
7376 | o = PyInt_FromLong((long) (*_arg1)); | |
7377 | _resultobj = t_output_helper(_resultobj, o); | |
7378 | } | |
7379 | { | |
7380 | PyObject *o; | |
7381 | o = PyInt_FromLong((long) (*_arg2)); | |
7382 | _resultobj = t_output_helper(_resultobj, o); | |
7383 | } | |
7384 | return _resultobj; | |
7385 | } | |
7386 | ||
7387 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
7388 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7389 | PyObject * _resultobj; | |
7390 | wxDC * _arg0; | |
7391 | bool _arg1; | |
7392 | bool _arg2; | |
7393 | PyObject * _argo0 = 0; | |
7394 | int tempbool1; | |
7395 | int tempbool2; | |
7396 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
7397 | ||
7398 | self = self; | |
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7400 | return NULL; | |
7401 | if (_argo0) { | |
7402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
7405 | return NULL; | |
7406 | } | |
7407 | } | |
7408 | _arg1 = (bool ) tempbool1; | |
7409 | _arg2 = (bool ) tempbool2; | |
7410 | { | |
474c48f9 | 7411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7412 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
e02c03a4 | 7413 | |
474c48f9 | 7414 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7415 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7416 | } Py_INCREF(Py_None); |
7417 | _resultobj = Py_None; | |
7418 | return _resultobj; | |
7419 | } | |
7420 | ||
f6bcfd97 BP |
7421 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
7422 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7423 | PyObject * _resultobj; | |
7424 | wxDC * _arg0; | |
7425 | int _arg1; | |
7426 | int _arg2; | |
7427 | PyObject * _argo0 = 0; | |
7428 | char *_kwnames[] = { "self","x","y", NULL }; | |
7429 | ||
7430 | self = self; | |
7431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7432 | return NULL; | |
7433 | if (_argo0) { | |
7434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
7437 | return NULL; | |
7438 | } | |
7439 | } | |
7440 | { | |
474c48f9 | 7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7442 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
f6bcfd97 | 7443 | |
474c48f9 | 7444 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7445 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7446 | } Py_INCREF(Py_None); |
7447 | _resultobj = Py_None; | |
7448 | return _resultobj; | |
7449 | } | |
7450 | ||
7451 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
7452 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7453 | PyObject * _resultobj; | |
7454 | wxDC * _arg0; | |
7455 | PyObject * _argo0 = 0; | |
7456 | char *_kwnames[] = { "self", NULL }; | |
7457 | ||
7458 | self = self; | |
7459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
7460 | return NULL; | |
7461 | if (_argo0) { | |
7462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
7465 | return NULL; | |
7466 | } | |
7467 | } | |
7468 | { | |
474c48f9 | 7469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7470 | wxDC_ResetBoundingBox(_arg0); |
f6bcfd97 | 7471 | |
474c48f9 | 7472 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7473 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7474 | } Py_INCREF(Py_None); |
7475 | _resultobj = Py_None; | |
7476 | return _resultobj; | |
7477 | } | |
7478 | ||
3bcd5e1c RD |
7479 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
7480 | PyObject * _resultobj; | |
7481 | wxDC * _arg0; | |
7482 | int * _arg1; | |
7483 | int temp; | |
7484 | int * _arg2; | |
7485 | int temp0; | |
7486 | int * _arg3; | |
7487 | int temp1; | |
7488 | int * _arg4; | |
7489 | int temp2; | |
7490 | PyObject * _argo0 = 0; | |
7491 | char *_kwnames[] = { "self", NULL }; | |
7492 | ||
7493 | self = self; | |
7494 | { | |
7495 | _arg1 = &temp; | |
7496 | } | |
7497 | { | |
7498 | _arg2 = &temp0; | |
7499 | } | |
7500 | { | |
7501 | _arg3 = &temp1; | |
7502 | } | |
7503 | { | |
7504 | _arg4 = &temp2; | |
7505 | } | |
7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
7507 | return NULL; | |
7508 | if (_argo0) { | |
7509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
7512 | return NULL; | |
7513 | } | |
7514 | } | |
7515 | { | |
474c48f9 | 7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7517 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
3bcd5e1c | 7518 | |
474c48f9 | 7519 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
7520 | if (PyErr_Occurred()) return NULL; |
7521 | } Py_INCREF(Py_None); | |
7522 | _resultobj = Py_None; | |
7523 | { | |
7524 | PyObject *o; | |
7525 | o = PyInt_FromLong((long) (*_arg1)); | |
7526 | _resultobj = t_output_helper(_resultobj, o); | |
7527 | } | |
7528 | { | |
7529 | PyObject *o; | |
7530 | o = PyInt_FromLong((long) (*_arg2)); | |
7531 | _resultobj = t_output_helper(_resultobj, o); | |
7532 | } | |
7533 | { | |
7534 | PyObject *o; | |
7535 | o = PyInt_FromLong((long) (*_arg3)); | |
7536 | _resultobj = t_output_helper(_resultobj, o); | |
7537 | } | |
7538 | { | |
7539 | PyObject *o; | |
7540 | o = PyInt_FromLong((long) (*_arg4)); | |
7541 | _resultobj = t_output_helper(_resultobj, o); | |
7542 | } | |
7543 | return _resultobj; | |
7544 | } | |
7545 | ||
7546 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
7547 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
7548 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
7549 | int numObjs = 0; | |
7550 | int numPens = 0; | |
7551 | wxPen* pen; | |
7552 | PyObject* obj; | |
7553 | int x1, y1; | |
7554 | int i = 0; | |
7555 | ||
7556 | if (!PySequence_Check(pyPoints)) { | |
7557 | goto err0; | |
7558 | } | |
7559 | if (!PySequence_Check(pyPens)) { | |
7560 | goto err1; | |
7561 | } | |
7562 | numObjs = PySequence_Length(pyPoints); | |
7563 | numPens = PySequence_Length(pyPens); | |
7564 | ||
7565 | for (i = 0; i < numObjs; i++) { | |
7566 | // Use a new pen? | |
7567 | if (i < numPens) { | |
7568 | if (isFastPens) { | |
7569 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
7570 | } | |
7571 | else { | |
7572 | obj = PySequence_GetItem(pyPens, i); | |
7573 | } | |
7574 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
7575 | if (!isFastPens) | |
7576 | Py_DECREF(obj); | |
7577 | goto err1; | |
7578 | } | |
7579 | ||
7580 | self->SetPen(*pen); | |
7581 | if (!isFastPens) | |
7582 | Py_DECREF(obj); | |
7583 | } | |
7584 | ||
7585 | // Get the point coordinants | |
7586 | if (isFastSeq) { | |
7587 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
7588 | } | |
7589 | else { | |
7590 | obj = PySequence_GetItem(pyPoints, i); | |
7591 | } | |
7592 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
7593 | if (!isFastPens) | |
7594 | Py_DECREF(obj); | |
7595 | goto err0; | |
7596 | } | |
7597 | ||
7598 | // Now draw the point | |
7599 | self->DrawPoint(x1, y1); | |
7600 | ||
7601 | if (!isFastSeq) | |
7602 | Py_DECREF(obj); | |
7603 | } | |
7604 | ||
7605 | Py_INCREF(Py_None); | |
7606 | return Py_None; | |
7607 | ||
7608 | err1: | |
7609 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
7610 | return NULL; | |
7611 | err0: | |
7612 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
7613 | return NULL; | |
7614 | } | |
7615 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7616 | PyObject * _resultobj; | |
7617 | PyObject * _result; | |
7618 | wxDC * _arg0; | |
7619 | PyObject * _arg1; | |
7620 | PyObject * _arg2; | |
7621 | PyObject * _argo0 = 0; | |
7622 | PyObject * _obj1 = 0; | |
7623 | PyObject * _obj2 = 0; | |
7624 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
7625 | ||
7626 | self = self; | |
7627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7628 | return NULL; | |
7629 | if (_argo0) { | |
7630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
7633 | return NULL; | |
7634 | } | |
7635 | } | |
7636 | { | |
7637 | _arg1 = _obj1; | |
7638 | } | |
7639 | { | |
7640 | _arg2 = _obj2; | |
7641 | } | |
7642 | { | |
474c48f9 | 7643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7644 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
3bcd5e1c | 7645 | |
474c48f9 | 7646 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
7647 | if (PyErr_Occurred()) return NULL; |
7648 | }{ | |
7649 | _resultobj = _result; | |
7650 | } | |
7651 | return _resultobj; | |
7652 | } | |
7653 | ||
7654 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
7655 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
7656 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
7657 | int numObjs = 0; | |
7658 | int numPens = 0; | |
7659 | wxPen* pen; | |
7660 | PyObject* obj; | |
7661 | int x1, y1, x2, y2; | |
7662 | int i = 0; | |
7663 | ||
7664 | if (!PySequence_Check(pyLines)) { | |
7665 | goto err0; | |
7666 | } | |
7667 | if (!PySequence_Check(pyPens)) { | |
7668 | goto err1; | |
7669 | } | |
7670 | numObjs = PySequence_Length(pyLines); | |
7671 | numPens = PySequence_Length(pyPens); | |
7672 | ||
7673 | for (i = 0; i < numObjs; i++) { | |
7674 | // Use a new pen? | |
7675 | if (i < numPens) { | |
7676 | if (isFastPens) { | |
7677 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
7678 | } | |
7679 | else { | |
7680 | obj = PySequence_GetItem(pyPens, i); | |
7681 | } | |
7682 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
7683 | if (!isFastPens) | |
7684 | Py_DECREF(obj); | |
7685 | goto err1; | |
7686 | } | |
7687 | ||
7688 | self->SetPen(*pen); | |
7689 | if (!isFastPens) | |
7690 | Py_DECREF(obj); | |
7691 | } | |
7692 | ||
7693 | // Get the line coordinants | |
7694 | if (isFastSeq) { | |
7695 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
7696 | } | |
7697 | else { | |
7698 | obj = PySequence_GetItem(pyLines, i); | |
7699 | } | |
7700 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
7701 | if (!isFastPens) | |
7702 | Py_DECREF(obj); | |
7703 | goto err0; | |
7704 | } | |
7705 | ||
7706 | // Now draw the line | |
7707 | self->DrawLine(x1, y1, x2, y2); | |
7708 | ||
7709 | if (!isFastSeq) | |
7710 | Py_DECREF(obj); | |
7711 | } | |
7712 | ||
7713 | Py_INCREF(Py_None); | |
7714 | return Py_None; | |
7715 | ||
7716 | err1: | |
7717 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
7718 | return NULL; | |
7719 | err0: | |
7720 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
7721 | return NULL; | |
7722 | } | |
7723 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7724 | PyObject * _resultobj; | |
7725 | PyObject * _result; | |
7726 | wxDC * _arg0; | |
7727 | PyObject * _arg1; | |
7728 | PyObject * _arg2; | |
7729 | PyObject * _argo0 = 0; | |
7730 | PyObject * _obj1 = 0; | |
7731 | PyObject * _obj2 = 0; | |
7732 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
7733 | ||
7734 | self = self; | |
7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7736 | return NULL; | |
7737 | if (_argo0) { | |
7738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
7741 | return NULL; | |
7742 | } | |
7743 | } | |
7744 | { | |
7745 | _arg1 = _obj1; | |
7746 | } | |
7747 | { | |
7748 | _arg2 = _obj2; | |
7749 | } | |
7750 | { | |
474c48f9 | 7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7752 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
3bcd5e1c | 7753 | |
474c48f9 | 7754 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
7755 | if (PyErr_Occurred()) return NULL; |
7756 | }{ | |
7757 | _resultobj = _result; | |
7758 | } | |
7759 | return _resultobj; | |
7760 | } | |
7761 | ||
70551f47 RD |
7762 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
7763 | wxMemoryDC *src; | |
7764 | wxDC *dest; | |
7765 | src = (wxMemoryDC *) ptr; | |
7766 | dest = (wxDC *) src; | |
7767 | return (void *) dest; | |
7768 | } | |
7769 | ||
9df61a29 RD |
7770 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
7771 | wxMemoryDC *src; | |
7772 | wxObject *dest; | |
7773 | src = (wxMemoryDC *) ptr; | |
7774 | dest = (wxObject *) src; | |
7775 | return (void *) dest; | |
7776 | } | |
7777 | ||
70551f47 | 7778 | #define new_wxMemoryDC() (new wxMemoryDC()) |
107e4716 | 7779 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7780 | PyObject * _resultobj; |
7781 | wxMemoryDC * _result; | |
107e4716 | 7782 | char *_kwnames[] = { NULL }; |
70551f47 RD |
7783 | char _ptemp[128]; |
7784 | ||
7785 | self = self; | |
107e4716 | 7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
70551f47 | 7787 | return NULL; |
ab9bc19b | 7788 | { |
474c48f9 | 7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7790 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
ab9bc19b | 7791 | |
474c48f9 | 7792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7793 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7794 | } if (_result) { |
7795 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
7796 | _resultobj = Py_BuildValue("s",_ptemp); | |
7797 | } else { | |
7798 | Py_INCREF(Py_None); | |
7799 | _resultobj = Py_None; | |
7800 | } | |
70551f47 RD |
7801 | return _resultobj; |
7802 | } | |
7803 | ||
7804 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
107e4716 | 7805 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7806 | PyObject * _resultobj; |
7807 | wxMemoryDC * _arg0; | |
7808 | wxBitmap * _arg1; | |
2d091820 RD |
7809 | PyObject * _argo0 = 0; |
7810 | PyObject * _argo1 = 0; | |
107e4716 | 7811 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
7812 | |
7813 | self = self; | |
107e4716 | 7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7815 | return NULL; |
2d091820 RD |
7816 | if (_argo0) { |
7817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
70551f47 RD |
7819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
7820 | return NULL; | |
7821 | } | |
7822 | } | |
2d091820 RD |
7823 | if (_argo1) { |
7824 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7825 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
7826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
7827 | return NULL; | |
7828 | } | |
7829 | } | |
ab9bc19b | 7830 | { |
474c48f9 | 7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7832 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
ab9bc19b | 7833 | |
474c48f9 | 7834 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7835 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7836 | } Py_INCREF(Py_None); |
70551f47 RD |
7837 | _resultobj = Py_None; |
7838 | return _resultobj; | |
7839 | } | |
7840 | ||
a884bee5 RD |
7841 | static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) { |
7842 | wxBufferedDC *src; | |
7843 | wxMemoryDC *dest; | |
7844 | src = (wxBufferedDC *) ptr; | |
7845 | dest = (wxMemoryDC *) src; | |
7846 | return (void *) dest; | |
7847 | } | |
7848 | ||
7849 | static void *SwigwxBufferedDCTowxDC(void *ptr) { | |
7850 | wxBufferedDC *src; | |
7851 | wxDC *dest; | |
7852 | src = (wxBufferedDC *) ptr; | |
7853 | dest = (wxDC *) src; | |
7854 | return (void *) dest; | |
7855 | } | |
7856 | ||
7857 | static void *SwigwxBufferedDCTowxObject(void *ptr) { | |
7858 | wxBufferedDC *src; | |
7859 | wxObject *dest; | |
7860 | src = (wxBufferedDC *) ptr; | |
7861 | dest = (wxObject *) src; | |
7862 | return (void *) dest; | |
7863 | } | |
7864 | ||
7865 | #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
7866 | static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7867 | PyObject * _resultobj; | |
7868 | wxBufferedDC * _result; | |
7869 | wxDC * _arg0; | |
7870 | wxBitmap * _arg1; | |
7871 | PyObject * _argo0 = 0; | |
7872 | PyObject * _argo1 = 0; | |
7873 | char *_kwnames[] = { "dc","buffer", NULL }; | |
7874 | char _ptemp[128]; | |
7875 | ||
7876 | self = self; | |
7877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1)) | |
7878 | return NULL; | |
7879 | if (_argo0) { | |
7880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p."); | |
7883 | return NULL; | |
7884 | } | |
7885 | } | |
7886 | if (_argo1) { | |
7887 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7888 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p."); | |
7890 | return NULL; | |
7891 | } | |
7892 | } | |
7893 | { | |
7894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7895 | _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1); | |
7896 | ||
7897 | wxPyEndAllowThreads(__tstate); | |
7898 | if (PyErr_Occurred()) return NULL; | |
7899 | } if (_result) { | |
7900 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
7901 | _resultobj = Py_BuildValue("s",_ptemp); | |
7902 | } else { | |
7903 | Py_INCREF(Py_None); | |
7904 | _resultobj = Py_None; | |
7905 | } | |
7906 | return _resultobj; | |
7907 | } | |
7908 | ||
7909 | #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
7910 | static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7911 | PyObject * _resultobj; | |
7912 | wxBufferedDC * _result; | |
7913 | wxDC * _arg0; | |
7914 | wxSize * _arg1; | |
7915 | PyObject * _argo0 = 0; | |
7916 | wxSize temp; | |
7917 | PyObject * _obj1 = 0; | |
7918 | char *_kwnames[] = { "dc","area", NULL }; | |
7919 | char _ptemp[128]; | |
7920 | ||
7921 | self = self; | |
7922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1)) | |
7923 | return NULL; | |
7924 | if (_argo0) { | |
7925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p."); | |
7928 | return NULL; | |
7929 | } | |
7930 | } | |
7931 | { | |
7932 | _arg1 = &temp; | |
7933 | if (! wxSize_helper(_obj1, &_arg1)) | |
7934 | return NULL; | |
7935 | } | |
7936 | { | |
7937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7938 | _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1); | |
7939 | ||
7940 | wxPyEndAllowThreads(__tstate); | |
7941 | if (PyErr_Occurred()) return NULL; | |
7942 | } if (_result) { | |
7943 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
7944 | _resultobj = Py_BuildValue("s",_ptemp); | |
7945 | } else { | |
7946 | Py_INCREF(Py_None); | |
7947 | _resultobj = Py_None; | |
7948 | } | |
7949 | return _resultobj; | |
7950 | } | |
7951 | ||
301dfd67 RD |
7952 | #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask()) |
7953 | static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7954 | PyObject * _resultobj; | |
7955 | wxBufferedDC * _arg0; | |
7956 | PyObject * _argo0 = 0; | |
7957 | char *_kwnames[] = { "self", NULL }; | |
7958 | ||
7959 | self = self; | |
7960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0)) | |
7961 | return NULL; | |
7962 | if (_argo0) { | |
7963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) { | |
7965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p."); | |
7966 | return NULL; | |
7967 | } | |
7968 | } | |
7969 | { | |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7971 | wxBufferedDC_UnMask(_arg0); | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
7974 | if (PyErr_Occurred()) return NULL; | |
7975 | } Py_INCREF(Py_None); | |
7976 | _resultobj = Py_None; | |
7977 | return _resultobj; | |
7978 | } | |
7979 | ||
a884bee5 RD |
7980 | static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) { |
7981 | wxBufferedPaintDC *src; | |
7982 | wxBufferedDC *dest; | |
7983 | src = (wxBufferedPaintDC *) ptr; | |
7984 | dest = (wxBufferedDC *) src; | |
7985 | return (void *) dest; | |
7986 | } | |
7987 | ||
7988 | static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) { | |
7989 | wxBufferedPaintDC *src; | |
7990 | wxMemoryDC *dest; | |
7991 | src = (wxBufferedPaintDC *) ptr; | |
7992 | dest = (wxMemoryDC *) src; | |
7993 | return (void *) dest; | |
7994 | } | |
7995 | ||
7996 | static void *SwigwxBufferedPaintDCTowxDC(void *ptr) { | |
7997 | wxBufferedPaintDC *src; | |
7998 | wxDC *dest; | |
7999 | src = (wxBufferedPaintDC *) ptr; | |
8000 | dest = (wxDC *) src; | |
8001 | return (void *) dest; | |
8002 | } | |
8003 | ||
8004 | static void *SwigwxBufferedPaintDCTowxObject(void *ptr) { | |
8005 | wxBufferedPaintDC *src; | |
8006 | wxObject *dest; | |
8007 | src = (wxBufferedPaintDC *) ptr; | |
8008 | dest = (wxObject *) src; | |
8009 | return (void *) dest; | |
8010 | } | |
8011 | ||
8012 | #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1)) | |
8013 | static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8014 | PyObject * _resultobj; | |
8015 | wxBufferedPaintDC * _result; | |
8016 | wxWindow * _arg0; | |
8017 | wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap; | |
8018 | PyObject * _argo0 = 0; | |
8019 | PyObject * _argo1 = 0; | |
8020 | char *_kwnames[] = { "window","buffer", NULL }; | |
8021 | char _ptemp[128]; | |
8022 | ||
8023 | self = self; | |
8024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1)) | |
8025 | return NULL; | |
8026 | if (_argo0) { | |
8027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p."); | |
8030 | return NULL; | |
8031 | } | |
8032 | } | |
8033 | if (_argo1) { | |
8034 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8035 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p."); | |
8037 | return NULL; | |
8038 | } | |
8039 | } | |
8040 | { | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) return NULL; | |
8046 | } if (_result) { | |
8047 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p"); | |
8048 | _resultobj = Py_BuildValue("s",_ptemp); | |
8049 | } else { | |
8050 | Py_INCREF(Py_None); | |
8051 | _resultobj = Py_None; | |
8052 | } | |
8053 | return _resultobj; | |
8054 | } | |
8055 | ||
70551f47 RD |
8056 | static void *SwigwxScreenDCTowxDC(void *ptr) { |
8057 | wxScreenDC *src; | |
8058 | wxDC *dest; | |
8059 | src = (wxScreenDC *) ptr; | |
8060 | dest = (wxDC *) src; | |
8061 | return (void *) dest; | |
8062 | } | |
8063 | ||
9df61a29 RD |
8064 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
8065 | wxScreenDC *src; | |
8066 | wxObject *dest; | |
8067 | src = (wxScreenDC *) ptr; | |
8068 | dest = (wxObject *) src; | |
8069 | return (void *) dest; | |
8070 | } | |
8071 | ||
70551f47 | 8072 | #define new_wxScreenDC() (new wxScreenDC()) |
107e4716 | 8073 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8074 | PyObject * _resultobj; |
8075 | wxScreenDC * _result; | |
107e4716 | 8076 | char *_kwnames[] = { NULL }; |
70551f47 RD |
8077 | char _ptemp[128]; |
8078 | ||
8079 | self = self; | |
107e4716 | 8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
70551f47 | 8081 | return NULL; |
ab9bc19b | 8082 | { |
474c48f9 | 8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8084 | _result = (wxScreenDC *)new_wxScreenDC(); |
ab9bc19b | 8085 | |
474c48f9 | 8086 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8087 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8088 | } if (_result) { |
8089 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
8090 | _resultobj = Py_BuildValue("s",_ptemp); | |
8091 | } else { | |
8092 | Py_INCREF(Py_None); | |
8093 | _resultobj = Py_None; | |
8094 | } | |
70551f47 RD |
8095 | return _resultobj; |
8096 | } | |
8097 | ||
2fc99549 RD |
8098 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
8099 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8100 | PyObject * _resultobj; |
8101 | bool _result; | |
8102 | wxScreenDC * _arg0; | |
8103 | wxWindow * _arg1; | |
2d091820 RD |
8104 | PyObject * _argo0 = 0; |
8105 | PyObject * _argo1 = 0; | |
107e4716 | 8106 | char *_kwnames[] = { "self","window", NULL }; |
70551f47 RD |
8107 | |
8108 | self = self; | |
2fc99549 | 8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8110 | return NULL; |
2d091820 RD |
8111 | if (_argo0) { |
8112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 8114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
70551f47 RD |
8115 | return NULL; |
8116 | } | |
8117 | } | |
2d091820 RD |
8118 | if (_argo1) { |
8119 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8120 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2fc99549 | 8121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
70551f47 RD |
8122 | return NULL; |
8123 | } | |
8124 | } | |
ab9bc19b | 8125 | { |
474c48f9 | 8126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8127 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
ab9bc19b | 8128 | |
474c48f9 | 8129 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8130 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8131 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8132 | return _resultobj; |
8133 | } | |
8134 | ||
2fc99549 RD |
8135 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
8136 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8137 | PyObject * _resultobj; |
8138 | bool _result; | |
8139 | wxScreenDC * _arg0; | |
2d091820 RD |
8140 | wxRect * _arg1 = (wxRect *) NULL; |
8141 | PyObject * _argo0 = 0; | |
37f6a977 RD |
8142 | wxRect temp; |
8143 | PyObject * _obj1 = 0; | |
107e4716 | 8144 | char *_kwnames[] = { "self","rect", NULL }; |
70551f47 RD |
8145 | |
8146 | self = self; | |
2fc99549 | 8147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8148 | return NULL; |
2d091820 RD |
8149 | if (_argo0) { |
8150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 8152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
70551f47 RD |
8153 | return NULL; |
8154 | } | |
8155 | } | |
37f6a977 RD |
8156 | if (_obj1) |
8157 | { | |
8158 | _arg1 = &temp; | |
8159 | if (! wxRect_helper(_obj1, &_arg1)) | |
70551f47 | 8160 | return NULL; |
37f6a977 | 8161 | } |
ab9bc19b | 8162 | { |
474c48f9 | 8163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8164 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
ab9bc19b | 8165 | |
474c48f9 | 8166 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8167 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8168 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8169 | return _resultobj; |
8170 | } | |
8171 | ||
8172 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
107e4716 | 8173 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8174 | PyObject * _resultobj; |
8175 | bool _result; | |
8176 | wxScreenDC * _arg0; | |
2d091820 | 8177 | PyObject * _argo0 = 0; |
107e4716 | 8178 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8179 | |
8180 | self = self; | |
107e4716 | 8181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
70551f47 | 8182 | return NULL; |
2d091820 RD |
8183 | if (_argo0) { |
8184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
70551f47 RD |
8186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
8187 | return NULL; | |
8188 | } | |
8189 | } | |
ab9bc19b | 8190 | { |
474c48f9 | 8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8192 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
ab9bc19b | 8193 | |
474c48f9 | 8194 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8195 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8196 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8197 | return _resultobj; |
8198 | } | |
8199 | ||
8200 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
8201 | wxClientDC *src; | |
8202 | wxDC *dest; | |
8203 | src = (wxClientDC *) ptr; | |
8204 | dest = (wxDC *) src; | |
8205 | return (void *) dest; | |
8206 | } | |
8207 | ||
9df61a29 RD |
8208 | static void *SwigwxClientDCTowxObject(void *ptr) { |
8209 | wxClientDC *src; | |
8210 | wxObject *dest; | |
8211 | src = (wxClientDC *) ptr; | |
8212 | dest = (wxObject *) src; | |
8213 | return (void *) dest; | |
8214 | } | |
8215 | ||
70551f47 | 8216 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
107e4716 | 8217 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8218 | PyObject * _resultobj; |
8219 | wxClientDC * _result; | |
8220 | wxWindow * _arg0; | |
2d091820 | 8221 | PyObject * _argo0 = 0; |
107e4716 | 8222 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
8223 | char _ptemp[128]; |
8224 | ||
8225 | self = self; | |
107e4716 | 8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
70551f47 | 8227 | return NULL; |
2d091820 RD |
8228 | if (_argo0) { |
8229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
8232 | return NULL; | |
8233 | } | |
8234 | } | |
ab9bc19b | 8235 | { |
474c48f9 | 8236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8237 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
ab9bc19b | 8238 | |
474c48f9 | 8239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8240 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8241 | } if (_result) { |
8242 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
8243 | _resultobj = Py_BuildValue("s",_ptemp); | |
8244 | } else { | |
8245 | Py_INCREF(Py_None); | |
8246 | _resultobj = Py_None; | |
8247 | } | |
70551f47 RD |
8248 | return _resultobj; |
8249 | } | |
8250 | ||
8251 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
8252 | wxPaintDC *src; | |
8253 | wxDC *dest; | |
8254 | src = (wxPaintDC *) ptr; | |
8255 | dest = (wxDC *) src; | |
8256 | return (void *) dest; | |
8257 | } | |
8258 | ||
9df61a29 RD |
8259 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
8260 | wxPaintDC *src; | |
8261 | wxObject *dest; | |
8262 | src = (wxPaintDC *) ptr; | |
8263 | dest = (wxObject *) src; | |
8264 | return (void *) dest; | |
8265 | } | |
8266 | ||
70551f47 | 8267 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
107e4716 | 8268 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8269 | PyObject * _resultobj; |
8270 | wxPaintDC * _result; | |
8271 | wxWindow * _arg0; | |
2d091820 | 8272 | PyObject * _argo0 = 0; |
107e4716 | 8273 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
8274 | char _ptemp[128]; |
8275 | ||
8276 | self = self; | |
107e4716 | 8277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
70551f47 | 8278 | return NULL; |
2d091820 RD |
8279 | if (_argo0) { |
8280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
8283 | return NULL; | |
8284 | } | |
8285 | } | |
ab9bc19b | 8286 | { |
474c48f9 | 8287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8288 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
ab9bc19b | 8289 | |
474c48f9 | 8290 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8291 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8292 | } if (_result) { |
8293 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
8294 | _resultobj = Py_BuildValue("s",_ptemp); | |
8295 | } else { | |
8296 | Py_INCREF(Py_None); | |
8297 | _resultobj = Py_None; | |
8298 | } | |
70551f47 RD |
8299 | return _resultobj; |
8300 | } | |
8301 | ||
c95e68d8 RD |
8302 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
8303 | wxWindowDC *src; | |
8304 | wxDC *dest; | |
8305 | src = (wxWindowDC *) ptr; | |
8306 | dest = (wxDC *) src; | |
8307 | return (void *) dest; | |
8308 | } | |
8309 | ||
9df61a29 RD |
8310 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
8311 | wxWindowDC *src; | |
8312 | wxObject *dest; | |
8313 | src = (wxWindowDC *) ptr; | |
8314 | dest = (wxObject *) src; | |
8315 | return (void *) dest; | |
8316 | } | |
8317 | ||
c95e68d8 | 8318 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
107e4716 | 8319 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
8320 | PyObject * _resultobj; |
8321 | wxWindowDC * _result; | |
8322 | wxWindow * _arg0; | |
2d091820 | 8323 | PyObject * _argo0 = 0; |
107e4716 | 8324 | char *_kwnames[] = { "win", NULL }; |
c95e68d8 RD |
8325 | char _ptemp[128]; |
8326 | ||
8327 | self = self; | |
107e4716 | 8328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
c95e68d8 | 8329 | return NULL; |
2d091820 RD |
8330 | if (_argo0) { |
8331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
8333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
8334 | return NULL; | |
8335 | } | |
8336 | } | |
ab9bc19b | 8337 | { |
474c48f9 | 8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8339 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
ab9bc19b | 8340 | |
474c48f9 | 8341 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8342 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8343 | } if (_result) { |
8344 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
8345 | _resultobj = Py_BuildValue("s",_ptemp); | |
8346 | } else { | |
8347 | Py_INCREF(Py_None); | |
8348 | _resultobj = Py_None; | |
8349 | } | |
c95e68d8 RD |
8350 | return _resultobj; |
8351 | } | |
8352 | ||
9df61a29 RD |
8353 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
8354 | wxPalette *src; | |
8355 | wxGDIObject *dest; | |
8356 | src = (wxPalette *) ptr; | |
8357 | dest = (wxGDIObject *) src; | |
8358 | return (void *) dest; | |
8359 | } | |
8360 | ||
8361 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
8362 | wxPalette *src; | |
8363 | wxObject *dest; | |
8364 | src = (wxPalette *) ptr; | |
8365 | dest = (wxObject *) src; | |
8366 | return (void *) dest; | |
8367 | } | |
8368 | ||
105e45b9 | 8369 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 8370 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
8371 | PyObject * _resultobj; |
8372 | wxPalette * _result; | |
8373 | int _arg0; | |
8374 | byte * _arg1; | |
8375 | byte * _arg2; | |
8376 | byte * _arg3; | |
8377 | PyObject * _obj1 = 0; | |
8378 | PyObject * _obj2 = 0; | |
8379 | PyObject * _obj3 = 0; | |
e02c03a4 | 8380 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
105e45b9 RD |
8381 | char _ptemp[128]; |
8382 | ||
8383 | self = self; | |
107e4716 | 8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
105e45b9 RD |
8385 | return NULL; |
8386 | { | |
8387 | _arg1 = byte_LIST_helper(_obj1); | |
8388 | if (_arg1 == NULL) { | |
8389 | return NULL; | |
8390 | } | |
8391 | } | |
8392 | { | |
8393 | _arg2 = byte_LIST_helper(_obj2); | |
8394 | if (_arg2 == NULL) { | |
8395 | return NULL; | |
8396 | } | |
8397 | } | |
8398 | if (_obj3) | |
8399 | { | |
8400 | _arg3 = byte_LIST_helper(_obj3); | |
8401 | if (_arg3 == NULL) { | |
8402 | return NULL; | |
8403 | } | |
8404 | } | |
8405 | { | |
ab9bc19b RD |
8406 | if (_obj1) { |
8407 | _arg0 = PyList_Size(_obj1); | |
8408 | } | |
8409 | else { | |
8410 | _arg0 = 0; | |
8411 | } | |
105e45b9 | 8412 | } |
ab9bc19b | 8413 | { |
474c48f9 | 8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8415 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 8416 | |
474c48f9 | 8417 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8418 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8419 | } if (_result) { |
8420 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
8421 | _resultobj = Py_BuildValue("s",_ptemp); | |
8422 | } else { | |
8423 | Py_INCREF(Py_None); | |
8424 | _resultobj = Py_None; | |
8425 | } | |
105e45b9 RD |
8426 | { |
8427 | delete [] _arg1; | |
8428 | } | |
8429 | { | |
8430 | delete [] _arg2; | |
8431 | } | |
8432 | { | |
8433 | delete [] _arg3; | |
8434 | } | |
8435 | return _resultobj; | |
8436 | } | |
8437 | ||
8438 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
107e4716 | 8439 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
8440 | PyObject * _resultobj; |
8441 | wxPalette * _arg0; | |
2d091820 | 8442 | PyObject * _argo0 = 0; |
107e4716 | 8443 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
8444 | |
8445 | self = self; | |
107e4716 | 8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
105e45b9 | 8447 | return NULL; |
2d091820 RD |
8448 | if (_argo0) { |
8449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
8451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
8452 | return NULL; | |
8453 | } | |
8454 | } | |
ab9bc19b | 8455 | { |
474c48f9 | 8456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8457 | delete_wxPalette(_arg0); |
ab9bc19b | 8458 | |
474c48f9 | 8459 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8460 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8461 | } Py_INCREF(Py_None); |
105e45b9 RD |
8462 | _resultobj = Py_None; |
8463 | return _resultobj; | |
8464 | } | |
8465 | ||
8466 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 8467 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
8468 | PyObject * _resultobj; |
8469 | int _result; | |
8470 | wxPalette * _arg0; | |
8471 | byte _arg1; | |
8472 | byte _arg2; | |
8473 | byte _arg3; | |
2d091820 | 8474 | PyObject * _argo0 = 0; |
107e4716 | 8475 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
105e45b9 RD |
8476 | |
8477 | self = self; | |
107e4716 | 8478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
105e45b9 | 8479 | return NULL; |
2d091820 RD |
8480 | if (_argo0) { |
8481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
8483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
8484 | return NULL; | |
8485 | } | |
8486 | } | |
ab9bc19b | 8487 | { |
474c48f9 | 8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8489 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 8490 | |
474c48f9 | 8491 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8492 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8493 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
8494 | return _resultobj; |
8495 | } | |
8496 | ||
8497 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 8498 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
8499 | PyObject * _resultobj; |
8500 | bool _result; | |
8501 | wxPalette * _arg0; | |
8502 | int _arg1; | |
8503 | byte * _arg2; | |
ef2060fa | 8504 | int temp; |
105e45b9 | 8505 | byte * _arg3; |
ef2060fa | 8506 | int temp0; |
105e45b9 | 8507 | byte * _arg4; |
ef2060fa | 8508 | int temp1; |
2d091820 | 8509 | PyObject * _argo0 = 0; |
ef2060fa | 8510 | char *_kwnames[] = { "self","pixel", NULL }; |
105e45b9 RD |
8511 | |
8512 | self = self; | |
ef2060fa RD |
8513 | { |
8514 | _arg2 = (byte*)&temp; | |
8515 | } | |
8516 | { | |
8517 | _arg3 = (byte*)&temp0; | |
8518 | } | |
8519 | { | |
8520 | _arg4 = (byte*)&temp1; | |
8521 | } | |
8522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
105e45b9 | 8523 | return NULL; |
2d091820 RD |
8524 | if (_argo0) { |
8525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
8527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
8528 | return NULL; | |
8529 | } | |
8530 | } | |
ab9bc19b | 8531 | { |
474c48f9 | 8532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8533 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 8534 | |
474c48f9 | 8535 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8536 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8537 | } _resultobj = Py_BuildValue("i",_result); |
ef2060fa RD |
8538 | { |
8539 | PyObject *o; | |
8540 | o = PyInt_FromLong((long) (*_arg2)); | |
8541 | _resultobj = t_output_helper(_resultobj, o); | |
8542 | } | |
8543 | { | |
8544 | PyObject *o; | |
8545 | o = PyInt_FromLong((long) (*_arg3)); | |
8546 | _resultobj = t_output_helper(_resultobj, o); | |
8547 | } | |
8548 | { | |
8549 | PyObject *o; | |
8550 | o = PyInt_FromLong((long) (*_arg4)); | |
8551 | _resultobj = t_output_helper(_resultobj, o); | |
8552 | } | |
105e45b9 RD |
8553 | return _resultobj; |
8554 | } | |
8555 | ||
8556 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 8557 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
8558 | PyObject * _resultobj; |
8559 | bool _result; | |
8560 | wxPalette * _arg0; | |
2d091820 | 8561 | PyObject * _argo0 = 0; |
107e4716 | 8562 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
8563 | |
8564 | self = self; | |
107e4716 | 8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
105e45b9 | 8566 | return NULL; |
2d091820 RD |
8567 | if (_argo0) { |
8568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
8570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
8571 | return NULL; | |
8572 | } | |
8573 | } | |
ab9bc19b | 8574 | { |
474c48f9 | 8575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8576 | _result = (bool )wxPalette_Ok(_arg0); |
ab9bc19b | 8577 | |
474c48f9 | 8578 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8579 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8580 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
8581 | return _resultobj; |
8582 | } | |
8583 | ||
9df61a29 RD |
8584 | static void *SwigwxImageListTowxObject(void *ptr) { |
8585 | wxImageList *src; | |
8586 | wxObject *dest; | |
8587 | src = (wxImageList *) ptr; | |
8588 | dest = (wxObject *) src; | |
8589 | return (void *) dest; | |
8590 | } | |
8591 | ||
21f8d7ea | 8592 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 8593 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8594 | PyObject * _resultobj; |
8595 | wxImageList * _result; | |
8596 | int _arg0; | |
8597 | int _arg1; | |
7ff49f0c | 8598 | int _arg2 = (int ) TRUE; |
2d091820 | 8599 | int _arg3 = (int ) 1; |
107e4716 | 8600 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
21f8d7ea RD |
8601 | char _ptemp[128]; |
8602 | ||
8603 | self = self; | |
56f5d962 | 8604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
21f8d7ea | 8605 | return NULL; |
ab9bc19b | 8606 | { |
474c48f9 | 8607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8608 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 8609 | |
474c48f9 | 8610 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8611 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8612 | } if (_result) { |
8613 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
8614 | _resultobj = Py_BuildValue("s",_ptemp); | |
8615 | } else { | |
8616 | Py_INCREF(Py_None); | |
8617 | _resultobj = Py_None; | |
8618 | } | |
21f8d7ea RD |
8619 | return _resultobj; |
8620 | } | |
8621 | ||
8622 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
107e4716 | 8623 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8624 | PyObject * _resultobj; |
8625 | wxImageList * _arg0; | |
2d091820 | 8626 | PyObject * _argo0 = 0; |
107e4716 | 8627 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
8628 | |
8629 | self = self; | |
107e4716 | 8630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
21f8d7ea | 8631 | return NULL; |
2d091820 RD |
8632 | if (_argo0) { |
8633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
8636 | return NULL; | |
8637 | } | |
8638 | } | |
ab9bc19b | 8639 | { |
474c48f9 | 8640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8641 | delete_wxImageList(_arg0); |
ab9bc19b | 8642 | |
474c48f9 | 8643 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8644 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8645 | } Py_INCREF(Py_None); |
21f8d7ea RD |
8646 | _resultobj = Py_None; |
8647 | return _resultobj; | |
8648 | } | |
8649 | ||
f6bcfd97 | 8650 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) |
107e4716 | 8651 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8652 | PyObject * _resultobj; |
8653 | int _result; | |
8654 | wxImageList * _arg0; | |
8655 | wxBitmap * _arg1; | |
f6bcfd97 | 8656 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
2d091820 RD |
8657 | PyObject * _argo0 = 0; |
8658 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8659 | PyObject * _argo2 = 0; |
8660 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
21f8d7ea RD |
8661 | |
8662 | self = self; | |
f6bcfd97 | 8663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
21f8d7ea | 8664 | return NULL; |
2d091820 RD |
8665 | if (_argo0) { |
8666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
8669 | return NULL; | |
8670 | } | |
8671 | } | |
2d091820 RD |
8672 | if (_argo1) { |
8673 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8674 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
21f8d7ea RD |
8675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
8676 | return NULL; | |
8677 | } | |
8678 | } | |
f6bcfd97 BP |
8679 | if (_argo2) { |
8680 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8681 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
8683 | return NULL; | |
8684 | } | |
8685 | } | |
8686 | { | |
474c48f9 | 8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8688 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
f6bcfd97 | 8689 | |
474c48f9 | 8690 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8691 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8692 | } _resultobj = Py_BuildValue("i",_result); |
8693 | return _resultobj; | |
8694 | } | |
8695 | ||
8696 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
8697 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8698 | PyObject * _resultobj; | |
8699 | int _result; | |
8700 | wxImageList * _arg0; | |
8701 | wxBitmap * _arg1; | |
8702 | wxColour * _arg2; | |
8703 | PyObject * _argo0 = 0; | |
8704 | PyObject * _argo1 = 0; | |
8705 | wxColour temp; | |
8706 | PyObject * _obj2 = 0; | |
8707 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
8708 | ||
8709 | self = self; | |
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
8711 | return NULL; | |
8712 | if (_argo0) { | |
8713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
8716 | return NULL; | |
8717 | } | |
8718 | } | |
8719 | if (_argo1) { | |
8720 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8721 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
8723 | return NULL; | |
8724 | } | |
8725 | } | |
8726 | { | |
8727 | _arg2 = &temp; | |
8728 | if (! wxColour_helper(_obj2, &_arg2)) | |
8729 | return NULL; | |
8730 | } | |
ab9bc19b | 8731 | { |
474c48f9 | 8732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8733 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
f6bcfd97 | 8734 | |
474c48f9 | 8735 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8736 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8737 | } _resultobj = Py_BuildValue("i",_result); |
8738 | return _resultobj; | |
8739 | } | |
8740 | ||
8741 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
8742 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8743 | PyObject * _resultobj; | |
8744 | int _result; | |
8745 | wxImageList * _arg0; | |
8746 | wxIcon * _arg1; | |
8747 | PyObject * _argo0 = 0; | |
8748 | PyObject * _argo1 = 0; | |
8749 | char *_kwnames[] = { "self","icon", NULL }; | |
8750 | ||
8751 | self = self; | |
8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
8753 | return NULL; | |
8754 | if (_argo0) { | |
8755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
8758 | return NULL; | |
8759 | } | |
8760 | } | |
8761 | if (_argo1) { | |
8762 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8763 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
8765 | return NULL; | |
8766 | } | |
8767 | } | |
8768 | { | |
474c48f9 | 8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8770 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
ab9bc19b | 8771 | |
474c48f9 | 8772 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8773 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8774 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
8775 | return _resultobj; |
8776 | } | |
8777 | ||
8778 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
107e4716 | 8779 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8780 | PyObject * _resultobj; |
8781 | bool _result; | |
8782 | wxImageList * _arg0; | |
8783 | int _arg1; | |
8784 | wxBitmap * _arg2; | |
2d091820 RD |
8785 | PyObject * _argo0 = 0; |
8786 | PyObject * _argo2 = 0; | |
107e4716 | 8787 | char *_kwnames[] = { "self","index","bitmap", NULL }; |
21f8d7ea RD |
8788 | |
8789 | self = self; | |
107e4716 | 8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) |
21f8d7ea | 8791 | return NULL; |
2d091820 RD |
8792 | if (_argo0) { |
8793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
8796 | return NULL; | |
8797 | } | |
8798 | } | |
2d091820 RD |
8799 | if (_argo2) { |
8800 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8801 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea RD |
8802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
8803 | return NULL; | |
8804 | } | |
8805 | } | |
ab9bc19b | 8806 | { |
474c48f9 | 8807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8808 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); |
ab9bc19b | 8809 | |
474c48f9 | 8810 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8811 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8812 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
8813 | return _resultobj; |
8814 | } | |
8815 | ||
8816 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 8817 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8818 | PyObject * _resultobj; |
8819 | bool _result; | |
8820 | wxImageList * _arg0; | |
8821 | int _arg1; | |
8822 | wxDC * _arg2; | |
8823 | int _arg3; | |
8824 | int _arg4; | |
2d091820 RD |
8825 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
8826 | bool _arg6 = (bool ) FALSE; | |
8827 | PyObject * _argo0 = 0; | |
8828 | PyObject * _argo2 = 0; | |
8829 | int tempbool6 = (int) FALSE; | |
107e4716 | 8830 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
21f8d7ea RD |
8831 | |
8832 | self = self; | |
107e4716 | 8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
21f8d7ea | 8834 | return NULL; |
2d091820 RD |
8835 | if (_argo0) { |
8836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
8839 | return NULL; | |
8840 | } | |
8841 | } | |
2d091820 RD |
8842 | if (_argo2) { |
8843 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8844 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
8845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
8846 | return NULL; | |
8847 | } | |
8848 | } | |
8849 | _arg6 = (bool ) tempbool6; | |
ab9bc19b | 8850 | { |
474c48f9 | 8851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8852 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 8853 | |
474c48f9 | 8854 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8855 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8856 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
8857 | return _resultobj; |
8858 | } | |
8859 | ||
8860 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
107e4716 | 8861 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8862 | PyObject * _resultobj; |
8863 | int _result; | |
8864 | wxImageList * _arg0; | |
2d091820 | 8865 | PyObject * _argo0 = 0; |
107e4716 | 8866 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
8867 | |
8868 | self = self; | |
107e4716 | 8869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
21f8d7ea | 8870 | return NULL; |
2d091820 RD |
8871 | if (_argo0) { |
8872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
8875 | return NULL; | |
8876 | } | |
8877 | } | |
ab9bc19b | 8878 | { |
474c48f9 | 8879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8880 | _result = (int )wxImageList_GetImageCount(_arg0); |
ab9bc19b | 8881 | |
474c48f9 | 8882 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8883 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8884 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
8885 | return _resultobj; |
8886 | } | |
8887 | ||
8888 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
107e4716 | 8889 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8890 | PyObject * _resultobj; |
8891 | bool _result; | |
8892 | wxImageList * _arg0; | |
8893 | int _arg1; | |
2d091820 | 8894 | PyObject * _argo0 = 0; |
107e4716 | 8895 | char *_kwnames[] = { "self","index", NULL }; |
21f8d7ea RD |
8896 | |
8897 | self = self; | |
107e4716 | 8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
21f8d7ea | 8899 | return NULL; |
2d091820 RD |
8900 | if (_argo0) { |
8901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
8904 | return NULL; | |
8905 | } | |
8906 | } | |
ab9bc19b | 8907 | { |
474c48f9 | 8908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8909 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
ab9bc19b | 8910 | |
474c48f9 | 8911 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8912 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8913 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
8914 | return _resultobj; |
8915 | } | |
8916 | ||
8917 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
107e4716 | 8918 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8919 | PyObject * _resultobj; |
8920 | bool _result; | |
8921 | wxImageList * _arg0; | |
2d091820 | 8922 | PyObject * _argo0 = 0; |
107e4716 | 8923 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
8924 | |
8925 | self = self; | |
107e4716 | 8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
21f8d7ea | 8927 | return NULL; |
2d091820 RD |
8928 | if (_argo0) { |
8929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
8932 | return NULL; | |
8933 | } | |
8934 | } | |
ab9bc19b | 8935 | { |
474c48f9 | 8936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8937 | _result = (bool )wxImageList_RemoveAll(_arg0); |
ab9bc19b | 8938 | |
474c48f9 | 8939 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8940 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8941 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
8942 | return _resultobj; |
8943 | } | |
8944 | ||
f6bcfd97 BP |
8945 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
8946 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8947 | PyObject * _resultobj; | |
8948 | wxImageList * _arg0; | |
8949 | int _arg1; | |
8950 | int * _arg2; | |
8951 | int temp; | |
8952 | int * _arg3; | |
8953 | int temp0; | |
8954 | PyObject * _argo0 = 0; | |
8955 | char *_kwnames[] = { "self","index", NULL }; | |
8956 | ||
8957 | self = self; | |
8958 | { | |
8959 | _arg2 = &temp; | |
8960 | } | |
8961 | { | |
8962 | _arg3 = &temp0; | |
8963 | } | |
8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
8965 | return NULL; | |
8966 | if (_argo0) { | |
8967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
8970 | return NULL; | |
8971 | } | |
8972 | } | |
8973 | { | |
474c48f9 | 8974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8975 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
f6bcfd97 | 8976 | |
474c48f9 | 8977 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8978 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8979 | } Py_INCREF(Py_None); |
8980 | _resultobj = Py_None; | |
8981 | { | |
8982 | PyObject *o; | |
8983 | o = PyInt_FromLong((long) (*_arg2)); | |
8984 | _resultobj = t_output_helper(_resultobj, o); | |
8985 | } | |
8986 | { | |
8987 | PyObject *o; | |
8988 | o = PyInt_FromLong((long) (*_arg3)); | |
8989 | _resultobj = t_output_helper(_resultobj, o); | |
8990 | } | |
8991 | return _resultobj; | |
8992 | } | |
8993 | ||
9df61a29 RD |
8994 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
8995 | wxRegion *src; | |
8996 | wxGDIObject *dest; | |
8997 | src = (wxRegion *) ptr; | |
8998 | dest = (wxGDIObject *) src; | |
8999 | return (void *) dest; | |
9000 | } | |
9001 | ||
9002 | static void *SwigwxRegionTowxObject(void *ptr) { | |
9003 | wxRegion *src; | |
9004 | wxObject *dest; | |
9005 | src = (wxRegion *) ptr; | |
9006 | dest = (wxObject *) src; | |
9007 | return (void *) dest; | |
9008 | } | |
9009 | ||
9010 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9011 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9012 | PyObject * _resultobj; | |
9013 | wxRegion * _result; | |
9014 | long _arg0 = (long ) 0; | |
9015 | long _arg1 = (long ) 0; | |
9016 | long _arg2 = (long ) 0; | |
9017 | long _arg3 = (long ) 0; | |
9018 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
9019 | char _ptemp[128]; | |
9020 | ||
9021 | self = self; | |
9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9023 | return NULL; | |
9024 | { | |
474c48f9 | 9025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9026 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
9df61a29 | 9027 | |
474c48f9 | 9028 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9029 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9030 | } if (_result) { |
9031 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
9032 | _resultobj = Py_BuildValue("s",_ptemp); | |
9033 | } else { | |
9034 | Py_INCREF(Py_None); | |
9035 | _resultobj = Py_None; | |
9036 | } | |
9037 | return _resultobj; | |
9038 | } | |
9039 | ||
9040 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
9041 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9042 | PyObject * _resultobj; | |
9043 | wxRegion * _arg0; | |
9044 | PyObject * _argo0 = 0; | |
9045 | char *_kwnames[] = { "self", NULL }; | |
9046 | ||
9047 | self = self; | |
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
9049 | return NULL; | |
9050 | if (_argo0) { | |
9051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
9054 | return NULL; | |
9055 | } | |
9056 | } | |
9057 | { | |
474c48f9 | 9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9059 | delete_wxRegion(_arg0); |
9df61a29 | 9060 | |
474c48f9 | 9061 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9062 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9063 | } Py_INCREF(Py_None); |
9064 | _resultobj = Py_None; | |
9065 | return _resultobj; | |
9066 | } | |
9067 | ||
9068 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
9069 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9070 | PyObject * _resultobj; | |
9071 | wxRegion * _arg0; | |
9072 | PyObject * _argo0 = 0; | |
9073 | char *_kwnames[] = { "self", NULL }; | |
9074 | ||
9075 | self = self; | |
9076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
9077 | return NULL; | |
9078 | if (_argo0) { | |
9079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
9082 | return NULL; | |
9083 | } | |
9084 | } | |
9085 | { | |
474c48f9 | 9086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9087 | wxRegion_Clear(_arg0); |
9df61a29 | 9088 | |
474c48f9 | 9089 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9090 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9091 | } Py_INCREF(Py_None); |
9092 | _resultobj = Py_None; | |
9093 | return _resultobj; | |
9094 | } | |
9095 | ||
8cb49012 RD |
9096 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) |
9097 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9098 | PyObject * _resultobj; | |
9099 | bool _result; | |
9100 | wxRegion * _arg0; | |
9101 | wxCoord _arg1; | |
9102 | wxCoord _arg2; | |
9103 | PyObject * _argo0 = 0; | |
9104 | char *_kwnames[] = { "self","x","y", NULL }; | |
9105 | ||
9106 | self = self; | |
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9108 | return NULL; | |
9109 | if (_argo0) { | |
9110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
9113 | return NULL; | |
9114 | } | |
9115 | } | |
9116 | { | |
9117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9118 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); |
8cb49012 RD |
9119 | |
9120 | wxPyEndAllowThreads(__tstate); | |
9121 | if (PyErr_Occurred()) return NULL; | |
9122 | } _resultobj = Py_BuildValue("i",_result); | |
9123 | return _resultobj; | |
9124 | } | |
9125 | ||
9df61a29 RD |
9126 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) |
9127 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9128 | PyObject * _resultobj; | |
9129 | wxRegionContain _result; | |
9130 | wxRegion * _arg0; | |
9131 | long _arg1; | |
9132 | long _arg2; | |
9133 | PyObject * _argo0 = 0; | |
9134 | char *_kwnames[] = { "self","x","y", NULL }; | |
9135 | ||
9136 | self = self; | |
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9138 | return NULL; | |
9139 | if (_argo0) { | |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
9143 | return NULL; | |
9144 | } | |
9145 | } | |
9146 | { | |
474c48f9 | 9147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9148 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
9df61a29 | 9149 | |
474c48f9 | 9150 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9151 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9152 | } _resultobj = Py_BuildValue("i",_result); |
9153 | return _resultobj; | |
9154 | } | |
9155 | ||
9156 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9157 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9158 | PyObject * _resultobj; | |
9159 | wxRegionContain _result; | |
9160 | wxRegion * _arg0; | |
9161 | wxPoint * _arg1; | |
9162 | PyObject * _argo0 = 0; | |
9163 | wxPoint temp; | |
9164 | PyObject * _obj1 = 0; | |
9165 | char *_kwnames[] = { "self","pt", NULL }; | |
9166 | ||
9167 | self = self; | |
9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
9169 | return NULL; | |
9170 | if (_argo0) { | |
9171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
9174 | return NULL; | |
9175 | } | |
9176 | } | |
9177 | { | |
9178 | _arg1 = &temp; | |
9179 | if (! wxPoint_helper(_obj1, &_arg1)) | |
9180 | return NULL; | |
9181 | } | |
9182 | { | |
474c48f9 | 9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9184 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
9df61a29 | 9185 | |
474c48f9 | 9186 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9187 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9188 | } _resultobj = Py_BuildValue("i",_result); |
9189 | return _resultobj; | |
9190 | } | |
9191 | ||
9192 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9193 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9194 | PyObject * _resultobj; | |
9195 | wxRegionContain _result; | |
9196 | wxRegion * _arg0; | |
9197 | wxRect * _arg1; | |
9198 | PyObject * _argo0 = 0; | |
9199 | wxRect temp; | |
9200 | PyObject * _obj1 = 0; | |
9201 | char *_kwnames[] = { "self","rect", NULL }; | |
9202 | ||
9203 | self = self; | |
9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
9205 | return NULL; | |
9206 | if (_argo0) { | |
9207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
9210 | return NULL; | |
9211 | } | |
9212 | } | |
9213 | { | |
9214 | _arg1 = &temp; | |
9215 | if (! wxRect_helper(_obj1, &_arg1)) | |
9216 | return NULL; | |
9217 | } | |
9218 | { | |
474c48f9 | 9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9220 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
9df61a29 | 9221 | |
474c48f9 | 9222 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9223 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9224 | } _resultobj = Py_BuildValue("i",_result); |
9225 | return _resultobj; | |
9226 | } | |
9227 | ||
9228 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9229 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9230 | PyObject * _resultobj; | |
9231 | wxRegionContain _result; | |
9232 | wxRegion * _arg0; | |
9233 | long _arg1; | |
9234 | long _arg2; | |
9235 | long _arg3; | |
9236 | long _arg4; | |
9237 | PyObject * _argo0 = 0; | |
9238 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
9239 | ||
9240 | self = self; | |
9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9242 | return NULL; | |
9243 | if (_argo0) { | |
9244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
9247 | return NULL; | |
9248 | } | |
9249 | } | |
9250 | { | |
474c48f9 | 9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9252 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 9253 | |
474c48f9 | 9254 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9255 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9256 | } _resultobj = Py_BuildValue("i",_result); |
9257 | return _resultobj; | |
9258 | } | |
9259 | ||
9260 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
9261 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9262 | PyObject * _resultobj; | |
9263 | wxRect * _result; | |
9264 | wxRegion * _arg0; | |
9265 | PyObject * _argo0 = 0; | |
9266 | char *_kwnames[] = { "self", NULL }; | |
9267 | char _ptemp[128]; | |
9268 | ||
9269 | self = self; | |
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
9271 | return NULL; | |
9272 | if (_argo0) { | |
9273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
9276 | return NULL; | |
9277 | } | |
9278 | } | |
9279 | { | |
474c48f9 | 9280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9281 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
9df61a29 | 9282 | |
474c48f9 | 9283 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9284 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9285 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
9286 | _resultobj = Py_BuildValue("s",_ptemp); | |
9287 | return _resultobj; | |
9288 | } | |
9289 | ||
9290 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9291 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9292 | PyObject * _resultobj; | |
9293 | bool _result; | |
9294 | wxRegion * _arg0; | |
9295 | long _arg1; | |
9296 | long _arg2; | |
9297 | long _arg3; | |
9298 | long _arg4; | |
9299 | PyObject * _argo0 = 0; | |
9300 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9301 | ||
9302 | self = self; | |
9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9304 | return NULL; | |
9305 | if (_argo0) { | |
9306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
9309 | return NULL; | |
9310 | } | |
9311 | } | |
9312 | { | |
474c48f9 | 9313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9314 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 9315 | |
474c48f9 | 9316 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9317 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9318 | } _resultobj = Py_BuildValue("i",_result); |
9319 | return _resultobj; | |
9320 | } | |
9321 | ||
9322 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9323 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9324 | PyObject * _resultobj; | |
9325 | bool _result; | |
9326 | wxRegion * _arg0; | |
9327 | wxRect * _arg1; | |
9328 | PyObject * _argo0 = 0; | |
9329 | wxRect temp; | |
9330 | PyObject * _obj1 = 0; | |
9331 | char *_kwnames[] = { "self","rect", NULL }; | |
9332 | ||
9333 | self = self; | |
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
9335 | return NULL; | |
9336 | if (_argo0) { | |
9337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
9340 | return NULL; | |
9341 | } | |
9342 | } | |
9343 | { | |
9344 | _arg1 = &temp; | |
9345 | if (! wxRect_helper(_obj1, &_arg1)) | |
9346 | return NULL; | |
9347 | } | |
9348 | { | |
474c48f9 | 9349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9350 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
9df61a29 | 9351 | |
474c48f9 | 9352 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9353 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9354 | } _resultobj = Py_BuildValue("i",_result); |
9355 | return _resultobj; | |
9356 | } | |
9357 | ||
9358 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9359 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9360 | PyObject * _resultobj; | |
9361 | bool _result; | |
9362 | wxRegion * _arg0; | |
9363 | wxRegion * _arg1; | |
9364 | PyObject * _argo0 = 0; | |
9365 | PyObject * _argo1 = 0; | |
9366 | char *_kwnames[] = { "self","region", NULL }; | |
9367 | ||
9368 | self = self; | |
9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
9370 | return NULL; | |
9371 | if (_argo0) { | |
9372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9375 | return NULL; | |
9376 | } | |
9377 | } | |
9378 | if (_argo1) { | |
9379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9382 | return NULL; | |
9383 | } | |
9384 | } | |
9385 | { | |
474c48f9 | 9386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9387 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
9df61a29 | 9388 | |
474c48f9 | 9389 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9390 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9391 | } _resultobj = Py_BuildValue("i",_result); |
9392 | return _resultobj; | |
9393 | } | |
9394 | ||
9395 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
9396 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9397 | PyObject * _resultobj; | |
9398 | bool _result; | |
9399 | wxRegion * _arg0; | |
9400 | PyObject * _argo0 = 0; | |
9401 | char *_kwnames[] = { "self", NULL }; | |
9402 | ||
9403 | self = self; | |
9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
9405 | return NULL; | |
9406 | if (_argo0) { | |
9407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
9410 | return NULL; | |
9411 | } | |
9412 | } | |
9413 | { | |
474c48f9 | 9414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9415 | _result = (bool )wxRegion_IsEmpty(_arg0); |
9df61a29 | 9416 | |
474c48f9 | 9417 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9418 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9419 | } _resultobj = Py_BuildValue("i",_result); |
9420 | return _resultobj; | |
9421 | } | |
9422 | ||
9423 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9424 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9425 | PyObject * _resultobj; | |
9426 | bool _result; | |
9427 | wxRegion * _arg0; | |
9428 | long _arg1; | |
9429 | long _arg2; | |
9430 | long _arg3; | |
9431 | long _arg4; | |
9432 | PyObject * _argo0 = 0; | |
9433 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9434 | ||
9435 | self = self; | |
9436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9437 | return NULL; | |
9438 | if (_argo0) { | |
9439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
9442 | return NULL; | |
9443 | } | |
9444 | } | |
9445 | { | |
474c48f9 | 9446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9447 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 9448 | |
474c48f9 | 9449 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9450 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9451 | } _resultobj = Py_BuildValue("i",_result); |
9452 | return _resultobj; | |
9453 | } | |
9454 | ||
9455 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
9456 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9457 | PyObject * _resultobj; | |
9458 | bool _result; | |
9459 | wxRegion * _arg0; | |
9460 | wxRect * _arg1; | |
9461 | PyObject * _argo0 = 0; | |
9462 | wxRect temp; | |
9463 | PyObject * _obj1 = 0; | |
9464 | char *_kwnames[] = { "self","rect", NULL }; | |
9465 | ||
9466 | self = self; | |
9467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
9468 | return NULL; | |
9469 | if (_argo0) { | |
9470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
9473 | return NULL; | |
9474 | } | |
9475 | } | |
9476 | { | |
9477 | _arg1 = &temp; | |
9478 | if (! wxRect_helper(_obj1, &_arg1)) | |
9479 | return NULL; | |
9480 | } | |
9481 | { | |
474c48f9 | 9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9483 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
9df61a29 | 9484 | |
474c48f9 | 9485 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9486 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9487 | } _resultobj = Py_BuildValue("i",_result); |
9488 | return _resultobj; | |
9489 | } | |
9490 | ||
9491 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
9492 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject * _resultobj; | |
9494 | bool _result; | |
9495 | wxRegion * _arg0; | |
9496 | wxRegion * _arg1; | |
9497 | PyObject * _argo0 = 0; | |
9498 | PyObject * _argo1 = 0; | |
9499 | char *_kwnames[] = { "self","region", NULL }; | |
9500 | ||
9501 | self = self; | |
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
9503 | return NULL; | |
9504 | if (_argo0) { | |
9505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
9508 | return NULL; | |
9509 | } | |
9510 | } | |
9511 | if (_argo1) { | |
9512 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9513 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
9515 | return NULL; | |
9516 | } | |
9517 | } | |
9518 | { | |
474c48f9 | 9519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9520 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
9df61a29 | 9521 | |
474c48f9 | 9522 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9523 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9524 | } _resultobj = Py_BuildValue("i",_result); |
9525 | return _resultobj; | |
9526 | } | |
9527 | ||
9528 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9529 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9530 | PyObject * _resultobj; | |
9531 | bool _result; | |
9532 | wxRegion * _arg0; | |
9533 | long _arg1; | |
9534 | long _arg2; | |
9535 | long _arg3; | |
9536 | long _arg4; | |
9537 | PyObject * _argo0 = 0; | |
9538 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9539 | ||
9540 | self = self; | |
9541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9542 | return NULL; | |
9543 | if (_argo0) { | |
9544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
9547 | return NULL; | |
9548 | } | |
9549 | } | |
9550 | { | |
474c48f9 | 9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9552 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 9553 | |
474c48f9 | 9554 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9555 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9556 | } _resultobj = Py_BuildValue("i",_result); |
9557 | return _resultobj; | |
9558 | } | |
9559 | ||
9560 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
9561 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9562 | PyObject * _resultobj; | |
9563 | bool _result; | |
9564 | wxRegion * _arg0; | |
9565 | wxRect * _arg1; | |
9566 | PyObject * _argo0 = 0; | |
9567 | wxRect temp; | |
9568 | PyObject * _obj1 = 0; | |
9569 | char *_kwnames[] = { "self","rect", NULL }; | |
9570 | ||
9571 | self = self; | |
9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
9573 | return NULL; | |
9574 | if (_argo0) { | |
9575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
9578 | return NULL; | |
9579 | } | |
9580 | } | |
9581 | { | |
9582 | _arg1 = &temp; | |
9583 | if (! wxRect_helper(_obj1, &_arg1)) | |
9584 | return NULL; | |
9585 | } | |
9586 | { | |
474c48f9 | 9587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9588 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
9df61a29 | 9589 | |
474c48f9 | 9590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9591 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9592 | } _resultobj = Py_BuildValue("i",_result); |
9593 | return _resultobj; | |
9594 | } | |
9595 | ||
9596 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
9597 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9598 | PyObject * _resultobj; | |
9599 | bool _result; | |
9600 | wxRegion * _arg0; | |
9601 | wxRegion * _arg1; | |
9602 | PyObject * _argo0 = 0; | |
9603 | PyObject * _argo1 = 0; | |
9604 | char *_kwnames[] = { "self","region", NULL }; | |
9605 | ||
9606 | self = self; | |
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
9608 | return NULL; | |
9609 | if (_argo0) { | |
9610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
9613 | return NULL; | |
9614 | } | |
9615 | } | |
9616 | if (_argo1) { | |
9617 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9618 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
9620 | return NULL; | |
9621 | } | |
9622 | } | |
9623 | { | |
474c48f9 | 9624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9625 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
9df61a29 | 9626 | |
474c48f9 | 9627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9628 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9629 | } _resultobj = Py_BuildValue("i",_result); |
9630 | return _resultobj; | |
9631 | } | |
9632 | ||
9633 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9634 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9635 | PyObject * _resultobj; | |
9636 | bool _result; | |
9637 | wxRegion * _arg0; | |
9638 | long _arg1; | |
9639 | long _arg2; | |
9640 | long _arg3; | |
9641 | long _arg4; | |
9642 | PyObject * _argo0 = 0; | |
9643 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9644 | ||
9645 | self = self; | |
9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9647 | return NULL; | |
9648 | if (_argo0) { | |
9649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
9652 | return NULL; | |
9653 | } | |
9654 | } | |
9655 | { | |
474c48f9 | 9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9657 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 9658 | |
474c48f9 | 9659 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9660 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9661 | } _resultobj = Py_BuildValue("i",_result); |
9662 | return _resultobj; | |
9663 | } | |
9664 | ||
9665 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
9666 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9667 | PyObject * _resultobj; | |
9668 | bool _result; | |
9669 | wxRegion * _arg0; | |
9670 | wxRect * _arg1; | |
9671 | PyObject * _argo0 = 0; | |
9672 | wxRect temp; | |
9673 | PyObject * _obj1 = 0; | |
9674 | char *_kwnames[] = { "self","rect", NULL }; | |
9675 | ||
9676 | self = self; | |
9677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
9678 | return NULL; | |
9679 | if (_argo0) { | |
9680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
9683 | return NULL; | |
9684 | } | |
9685 | } | |
9686 | { | |
9687 | _arg1 = &temp; | |
9688 | if (! wxRect_helper(_obj1, &_arg1)) | |
9689 | return NULL; | |
9690 | } | |
9691 | { | |
474c48f9 | 9692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9693 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
9df61a29 | 9694 | |
474c48f9 | 9695 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9696 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9697 | } _resultobj = Py_BuildValue("i",_result); |
9698 | return _resultobj; | |
9699 | } | |
9700 | ||
9701 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
9702 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9703 | PyObject * _resultobj; | |
9704 | bool _result; | |
9705 | wxRegion * _arg0; | |
9706 | wxRegion * _arg1; | |
9707 | PyObject * _argo0 = 0; | |
9708 | PyObject * _argo1 = 0; | |
9709 | char *_kwnames[] = { "self","region", NULL }; | |
9710 | ||
9711 | self = self; | |
9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
9713 | return NULL; | |
9714 | if (_argo0) { | |
9715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
9718 | return NULL; | |
9719 | } | |
9720 | } | |
9721 | if (_argo1) { | |
9722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
9725 | return NULL; | |
9726 | } | |
9727 | } | |
9728 | { | |
474c48f9 | 9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9730 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
9df61a29 | 9731 | |
474c48f9 | 9732 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9733 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9734 | } _resultobj = Py_BuildValue("i",_result); |
9735 | return _resultobj; | |
9736 | } | |
9737 | ||
9738 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
9739 | wxRegionIterator *src; | |
9740 | wxObject *dest; | |
9741 | src = (wxRegionIterator *) ptr; | |
9742 | dest = (wxObject *) src; | |
9743 | return (void *) dest; | |
9744 | } | |
9745 | ||
9746 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
9747 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9748 | PyObject * _resultobj; | |
9749 | wxRegionIterator * _result; | |
9750 | wxRegion * _arg0; | |
9751 | PyObject * _argo0 = 0; | |
9752 | char *_kwnames[] = { "region", NULL }; | |
9753 | char _ptemp[128]; | |
9754 | ||
9755 | self = self; | |
9756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
9757 | return NULL; | |
9758 | if (_argo0) { | |
9759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
9762 | return NULL; | |
9763 | } | |
9764 | } | |
9765 | { | |
474c48f9 | 9766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9767 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
9df61a29 | 9768 | |
474c48f9 | 9769 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9770 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9771 | } if (_result) { |
9772 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
9773 | _resultobj = Py_BuildValue("s",_ptemp); | |
9774 | } else { | |
9775 | Py_INCREF(Py_None); | |
9776 | _resultobj = Py_None; | |
9777 | } | |
9778 | return _resultobj; | |
9779 | } | |
9780 | ||
9781 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
9782 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9783 | PyObject * _resultobj; | |
9784 | wxRegionIterator * _arg0; | |
9785 | PyObject * _argo0 = 0; | |
9786 | char *_kwnames[] = { "self", NULL }; | |
9787 | ||
9788 | self = self; | |
9789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
9790 | return NULL; | |
9791 | if (_argo0) { | |
9792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
9795 | return NULL; | |
9796 | } | |
9797 | } | |
9798 | { | |
474c48f9 | 9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9800 | delete_wxRegionIterator(_arg0); |
9df61a29 | 9801 | |
474c48f9 | 9802 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9803 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9804 | } Py_INCREF(Py_None); |
9805 | _resultobj = Py_None; | |
9806 | return _resultobj; | |
9807 | } | |
9808 | ||
9809 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
9810 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9811 | PyObject * _resultobj; | |
9812 | long _result; | |
9813 | wxRegionIterator * _arg0; | |
9814 | PyObject * _argo0 = 0; | |
9815 | char *_kwnames[] = { "self", NULL }; | |
9816 | ||
9817 | self = self; | |
9818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
9819 | return NULL; | |
9820 | if (_argo0) { | |
9821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
9824 | return NULL; | |
9825 | } | |
9826 | } | |
9827 | { | |
474c48f9 | 9828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9829 | _result = (long )wxRegionIterator_GetX(_arg0); |
9df61a29 | 9830 | |
474c48f9 | 9831 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9832 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9833 | } _resultobj = Py_BuildValue("l",_result); |
9834 | return _resultobj; | |
9835 | } | |
9836 | ||
9837 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
9838 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9839 | PyObject * _resultobj; | |
9840 | long _result; | |
9841 | wxRegionIterator * _arg0; | |
9842 | PyObject * _argo0 = 0; | |
9843 | char *_kwnames[] = { "self", NULL }; | |
9844 | ||
9845 | self = self; | |
9846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
9847 | return NULL; | |
9848 | if (_argo0) { | |
9849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
9852 | return NULL; | |
9853 | } | |
9854 | } | |
9855 | { | |
474c48f9 | 9856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9857 | _result = (long )wxRegionIterator_GetY(_arg0); |
9df61a29 | 9858 | |
474c48f9 | 9859 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9860 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9861 | } _resultobj = Py_BuildValue("l",_result); |
9862 | return _resultobj; | |
9863 | } | |
9864 | ||
9865 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
9866 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9867 | PyObject * _resultobj; | |
9868 | long _result; | |
9869 | wxRegionIterator * _arg0; | |
9870 | PyObject * _argo0 = 0; | |
9871 | char *_kwnames[] = { "self", NULL }; | |
9872 | ||
9873 | self = self; | |
9874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
9875 | return NULL; | |
9876 | if (_argo0) { | |
9877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
9880 | return NULL; | |
9881 | } | |
9882 | } | |
9883 | { | |
474c48f9 | 9884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9885 | _result = (long )wxRegionIterator_GetW(_arg0); |
9df61a29 | 9886 | |
474c48f9 | 9887 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9888 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9889 | } _resultobj = Py_BuildValue("l",_result); |
9890 | return _resultobj; | |
9891 | } | |
9892 | ||
9893 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
9894 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9895 | PyObject * _resultobj; | |
9896 | long _result; | |
9897 | wxRegionIterator * _arg0; | |
9898 | PyObject * _argo0 = 0; | |
9899 | char *_kwnames[] = { "self", NULL }; | |
9900 | ||
9901 | self = self; | |
9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
9903 | return NULL; | |
9904 | if (_argo0) { | |
9905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
9908 | return NULL; | |
9909 | } | |
9910 | } | |
9911 | { | |
474c48f9 | 9912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9913 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
9df61a29 | 9914 | |
474c48f9 | 9915 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9916 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9917 | } _resultobj = Py_BuildValue("l",_result); |
9918 | return _resultobj; | |
9919 | } | |
9920 | ||
9921 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
9922 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9923 | PyObject * _resultobj; | |
9924 | long _result; | |
9925 | wxRegionIterator * _arg0; | |
9926 | PyObject * _argo0 = 0; | |
9927 | char *_kwnames[] = { "self", NULL }; | |
9928 | ||
9929 | self = self; | |
9930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
9931 | return NULL; | |
9932 | if (_argo0) { | |
9933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
9936 | return NULL; | |
9937 | } | |
9938 | } | |
9939 | { | |
474c48f9 | 9940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9941 | _result = (long )wxRegionIterator_GetH(_arg0); |
9df61a29 | 9942 | |
474c48f9 | 9943 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9944 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9945 | } _resultobj = Py_BuildValue("l",_result); |
9946 | return _resultobj; | |
9947 | } | |
9948 | ||
9949 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
9950 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9951 | PyObject * _resultobj; | |
9952 | long _result; | |
9953 | wxRegionIterator * _arg0; | |
9954 | PyObject * _argo0 = 0; | |
9955 | char *_kwnames[] = { "self", NULL }; | |
9956 | ||
9957 | self = self; | |
9958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
9959 | return NULL; | |
9960 | if (_argo0) { | |
9961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
9964 | return NULL; | |
9965 | } | |
9966 | } | |
9967 | { | |
474c48f9 | 9968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9969 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
9df61a29 | 9970 | |
474c48f9 | 9971 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9972 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9973 | } _resultobj = Py_BuildValue("l",_result); |
9974 | return _resultobj; | |
9975 | } | |
9976 | ||
9977 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
9978 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9979 | PyObject * _resultobj; | |
9980 | wxRect * _result; | |
9981 | wxRegionIterator * _arg0; | |
9982 | PyObject * _argo0 = 0; | |
9983 | char *_kwnames[] = { "self", NULL }; | |
9984 | char _ptemp[128]; | |
9985 | ||
9986 | self = self; | |
9987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
9988 | return NULL; | |
9989 | if (_argo0) { | |
9990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
9992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
9993 | return NULL; | |
9994 | } | |
9995 | } | |
9996 | { | |
474c48f9 | 9997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9998 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
9df61a29 | 9999 | |
474c48f9 | 10000 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10001 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10002 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
10003 | _resultobj = Py_BuildValue("s",_ptemp); | |
10004 | return _resultobj; | |
10005 | } | |
10006 | ||
10007 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
10008 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10009 | PyObject * _resultobj; | |
10010 | bool _result; | |
10011 | wxRegionIterator * _arg0; | |
10012 | PyObject * _argo0 = 0; | |
10013 | char *_kwnames[] = { "self", NULL }; | |
10014 | ||
10015 | self = self; | |
10016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
10017 | return NULL; | |
10018 | if (_argo0) { | |
10019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
10022 | return NULL; | |
10023 | } | |
10024 | } | |
10025 | { | |
474c48f9 | 10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10027 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
9df61a29 | 10028 | |
474c48f9 | 10029 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10030 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10031 | } _resultobj = Py_BuildValue("i",_result); |
10032 | return _resultobj; | |
10033 | } | |
10034 | ||
10035 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
10036 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10037 | PyObject * _resultobj; | |
10038 | wxRegionIterator * _arg0; | |
10039 | PyObject * _argo0 = 0; | |
10040 | char *_kwnames[] = { "self", NULL }; | |
10041 | ||
10042 | self = self; | |
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
10044 | return NULL; | |
10045 | if (_argo0) { | |
10046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | { | |
474c48f9 | 10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10054 | wxRegionIterator_Reset(_arg0); |
9df61a29 | 10055 | |
474c48f9 | 10056 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10057 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10058 | } Py_INCREF(Py_None); |
10059 | _resultobj = Py_None; | |
10060 | return _resultobj; | |
10061 | } | |
10062 | ||
10063 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
10064 | (*self) ++; | |
10065 | } | |
10066 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10067 | PyObject * _resultobj; | |
10068 | wxRegionIterator * _arg0; | |
10069 | PyObject * _argo0 = 0; | |
10070 | char *_kwnames[] = { "self", NULL }; | |
10071 | ||
10072 | self = self; | |
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
10074 | return NULL; | |
10075 | if (_argo0) { | |
10076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
10079 | return NULL; | |
10080 | } | |
10081 | } | |
10082 | { | |
474c48f9 | 10083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10084 | wxRegionIterator_Next(_arg0); |
9df61a29 | 10085 | |
474c48f9 | 10086 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10087 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10088 | } Py_INCREF(Py_None); |
10089 | _resultobj = Py_None; | |
10090 | return _resultobj; | |
10091 | } | |
10092 | ||
70551f47 | 10093 | static PyMethodDef gdicMethods[] = { |
9df61a29 RD |
10094 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
10095 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
10096 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
10097 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10098 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10099 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
10100 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10101 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
10102 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
10103 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
10104 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10105 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10106 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
10107 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
10108 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
10109 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
10110 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
10111 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
10112 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
10113 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
10114 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
10115 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
10116 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
10117 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
10118 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
10119 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
10120 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
10121 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
10122 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
10123 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 10124 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
10125 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, |
10126 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
10127 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10128 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10129 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
10130 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10131 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
10132 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
10133 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10134 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, |
10135 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10136 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, |
10137 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10138 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10139 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10140 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
10141 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10142 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
10143 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10144 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
10145 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
10146 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
10147 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10148 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 10149 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10150 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 | 10151 | { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
301dfd67 | 10152 | { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 RD |
10153 | { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, |
10154 | { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10155 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, |
10156 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
3bcd5e1c RD |
10157 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
10158 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
10159 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10160 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
10161 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
10162 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
10163 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10164 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10165 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10166 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
10167 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10168 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10169 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10170 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
10171 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
10172 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
10173 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
10174 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
10175 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
10176 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
10177 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10178 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10179 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10180 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
10181 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10182 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10183 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 10184 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10185 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
10186 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
10187 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10188 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10189 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10190 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
10191 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
10192 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
10193 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
10194 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
10195 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
10196 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
10197 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10198 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10199 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
10200 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10201 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10202 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10203 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10204 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
10205 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10206 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10207 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
10208 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10209 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10210 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10211 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
10212 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10213 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
10214 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10215 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
10216 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10217 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10218 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
10219 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
10220 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10221 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
10222 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
10223 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
10224 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 10225 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10226 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
10227 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
10228 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
10229 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
10230 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 RD |
10231 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
10232 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10233 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
10234 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
10235 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
10236 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
10237 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
10240 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
10241 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
10242 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
10243 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
10244 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10245 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
10246 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10247 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
7a9b33db | 10248 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
10249 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
10250 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
10251 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10252 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
10253 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10254 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10255 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10256 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10257 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10258 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10259 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10260 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 10261 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
10262 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
10263 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
10264 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 RD |
10265 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
10266 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
10267 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
298ae144 | 10268 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 | 10269 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10270 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
10271 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10272 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10273 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10274 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
10275 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10276 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10277 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10278 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10279 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10280 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10281 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10282 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
10283 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
10284 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
10285 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10286 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
10287 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
10288 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10289 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
10290 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
10292 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
10293 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10294 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
10295 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
a323d3bd RD |
10296 | { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, |
10297 | { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
10302 | { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 10303 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10304 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
10305 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, |
10306 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10307 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10308 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10309 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10310 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, |
10311 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10312 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
10313 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 10314 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10315 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 | 10316 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10317 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
10318 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
10319 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10320 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
10321 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, |
10322 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10323 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10324 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10325 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10326 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10327 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10328 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
10329 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10330 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
10331 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9df61a29 RD |
10332 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
10333 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10334 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10335 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
10336 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10337 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
10338 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
4be61064 | 10340 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
10341 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
10342 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10343 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a | 10344 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
10345 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
10346 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10347 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
10348 | { NULL, NULL } |
10349 | }; | |
2d091820 RD |
10350 | #ifdef __cplusplus |
10351 | } | |
10352 | #endif | |
10353 | /* | |
10354 | * This table is used by the pointer type-checker | |
10355 | */ | |
10356 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 10357 | { "_signed_long","_long",0}, |
4120ef2b | 10358 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
10359 | { "_wxPrintQuality","_int",0}, |
10360 | { "_wxPrintQuality","_signed_int",0}, | |
10361 | { "_wxPrintQuality","_unsigned_int",0}, | |
10362 | { "_wxPrintQuality","_wxWindowID",0}, | |
10363 | { "_wxPrintQuality","_uint",0}, | |
10364 | { "_wxPrintQuality","_EBool",0}, | |
10365 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10366 | { "_wxPrintQuality","_time_t",0}, |
65191ae8 | 10367 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
2d091820 | 10368 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
10369 | { "_long","_unsigned_long",0}, |
10370 | { "_long","_signed_long",0}, | |
9df61a29 | 10371 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9df61a29 | 10372 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9df61a29 | 10373 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
65191ae8 | 10374 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9df61a29 | 10375 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9df61a29 | 10376 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9df61a29 | 10377 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9df61a29 | 10378 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
2d091820 | 10379 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
2d091820 | 10380 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
2d091820 | 10381 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
2d091820 | 10382 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
a884bee5 RD |
10383 | { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC}, |
10384 | { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC}, | |
2d091820 | 10385 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
4120ef2b | 10386 | { "_size_t","_wxCoord",0}, |
2d091820 | 10387 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10388 | { "_size_t","_time_t",0}, |
2d091820 RD |
10389 | { "_size_t","_unsigned_int",0}, |
10390 | { "_size_t","_int",0}, | |
10391 | { "_size_t","_wxWindowID",0}, | |
10392 | { "_size_t","_uint",0}, | |
4120ef2b | 10393 | { "_uint","_wxCoord",0}, |
2d091820 | 10394 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10395 | { "_uint","_time_t",0}, |
2d091820 RD |
10396 | { "_uint","_size_t",0}, |
10397 | { "_uint","_unsigned_int",0}, | |
10398 | { "_uint","_int",0}, | |
10399 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10400 | { "_wxChar","_char",0}, |
f6bcfd97 | 10401 | { "_char","_wxChar",0}, |
a884bee5 | 10402 | { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC}, |
059a841c | 10403 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 10404 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
10405 | { "_EBool","_wxPrintQuality",0}, |
10406 | { "_EBool","_signed_int",0}, | |
10407 | { "_EBool","_int",0}, | |
10408 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 10409 | { "_unsigned_long","_long",0}, |
059a841c | 10410 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 10411 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
10412 | { "_signed_int","_wxPrintQuality",0}, |
10413 | { "_signed_int","_EBool",0}, | |
10414 | { "_signed_int","_wxWindowID",0}, | |
10415 | { "_signed_int","_int",0}, | |
2d091820 RD |
10416 | { "_WXTYPE","_short",0}, |
10417 | { "_WXTYPE","_signed_short",0}, | |
10418 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
10419 | { "_unsigned_short","_WXTYPE",0}, |
10420 | { "_unsigned_short","_short",0}, | |
9df61a29 | 10421 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9df61a29 | 10422 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9df61a29 | 10423 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9df61a29 | 10424 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9df61a29 | 10425 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9df61a29 | 10426 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9df61a29 | 10427 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9df61a29 | 10428 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
a884bee5 RD |
10429 | { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject}, |
10430 | { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject}, | |
9df61a29 | 10431 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9df61a29 | 10432 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
65191ae8 | 10433 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9df61a29 | 10434 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9df61a29 | 10435 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
65191ae8 | 10436 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9df61a29 | 10437 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9df61a29 | 10438 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9df61a29 | 10439 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9df61a29 | 10440 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9df61a29 | 10441 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9df61a29 | 10442 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9df61a29 | 10443 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9df61a29 | 10444 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
2d091820 RD |
10445 | { "_signed_short","_WXTYPE",0}, |
10446 | { "_signed_short","_short",0}, | |
a884bee5 RD |
10447 | { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC}, |
10448 | { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC}, | |
2d091820 | 10449 | { "_unsigned_char","_byte",0}, |
4120ef2b | 10450 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 10451 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10452 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
10453 | { "_unsigned_int","_size_t",0}, |
10454 | { "_unsigned_int","_uint",0}, | |
10455 | { "_unsigned_int","_wxWindowID",0}, | |
10456 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
10457 | { "_short","_WXTYPE",0}, |
10458 | { "_short","_unsigned_short",0}, | |
10459 | { "_short","_signed_short",0}, | |
4120ef2b | 10460 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 10461 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10462 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
10463 | { "_wxWindowID","_size_t",0}, |
10464 | { "_wxWindowID","_EBool",0}, | |
10465 | { "_wxWindowID","_uint",0}, | |
10466 | { "_wxWindowID","_int",0}, | |
10467 | { "_wxWindowID","_signed_int",0}, | |
10468 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 10469 | { "_int","_wxCoord",0}, |
2d091820 | 10470 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10471 | { "_int","_time_t",0}, |
2d091820 RD |
10472 | { "_int","_size_t",0}, |
10473 | { "_int","_EBool",0}, | |
10474 | { "_int","_uint",0}, | |
10475 | { "_int","_wxWindowID",0}, | |
10476 | { "_int","_unsigned_int",0}, | |
10477 | { "_int","_signed_int",0}, | |
c368d904 RD |
10478 | { "_time_t","_wxCoord",0}, |
10479 | { "_time_t","_wxPrintQuality",0}, | |
10480 | { "_time_t","_unsigned_int",0}, | |
10481 | { "_time_t","_int",0}, | |
10482 | { "_time_t","_wxWindowID",0}, | |
10483 | { "_time_t","_uint",0}, | |
10484 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
10485 | { "_wxCoord","_int",0}, |
10486 | { "_wxCoord","_signed_int",0}, | |
10487 | { "_wxCoord","_unsigned_int",0}, | |
10488 | { "_wxCoord","_wxWindowID",0}, | |
10489 | { "_wxCoord","_uint",0}, | |
10490 | { "_wxCoord","_EBool",0}, | |
10491 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10492 | { "_wxCoord","_time_t",0}, |
4120ef2b | 10493 | { "_wxCoord","_wxPrintQuality",0}, |
2d091820 RD |
10494 | {0,0,0}}; |
10495 | ||
70551f47 RD |
10496 | static PyObject *SWIG_globals; |
10497 | #ifdef __cplusplus | |
10498 | extern "C" | |
10499 | #endif | |
2d091820 | 10500 | SWIGEXPORT(void) initgdic() { |
70551f47 RD |
10501 | PyObject *m, *d; |
10502 | SWIG_globals = SWIG_newvarlink(); | |
10503 | m = Py_InitModule("gdic", gdicMethods); | |
10504 | d = PyModule_GetDict(m); | |
3e212503 RD |
10505 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
10506 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
10507 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
10508 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
10509 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
10510 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
10511 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
10512 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
10513 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
10514 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
70551f47 RD |
10515 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
10516 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
10517 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
10518 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
10519 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
10520 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
10521 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
10522 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
10523 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
10524 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
10525 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
10526 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
10527 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
10528 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
10529 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
10530 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
10531 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
10532 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
10533 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
10534 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
10535 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
10536 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
10537 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
10538 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
10539 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
10540 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
10541 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
10542 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
10543 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
10544 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
10545 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
10546 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
10547 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
10548 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
10549 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
10550 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
10551 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
10552 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
10553 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
10554 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
10555 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
10556 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
10557 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
5e40f9dd RD |
10558 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
10559 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
10560 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
10561 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
2d091820 RD |
10562 | { |
10563 | int i; | |
10564 | for (i = 0; _swig_mapping[i].n1; i++) | |
10565 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10566 | } | |
70551f47 | 10567 | } |