]>
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__) | |
5e40f9dd | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
5e40f9dd | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
5e40f9dd | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
5e40f9dd RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
5e40f9dd | 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" | |
59 | #include <wx/metafile.h> | |
21f8d7ea | 60 | #include <wx/imaglist.h> |
105e45b9 | 61 | #ifndef __WXMSW__ |
dd9a3de8 | 62 | #include <wx/dcps.h> |
105e45b9 | 63 | #endif |
059a841c RD |
64 | #include <wx/fontmap.h> |
65 | #include <wx/fontenc.h> | |
66 | #include <wx/fontmap.h> | |
67 | #include <wx/fontutil.h> | |
70551f47 | 68 | |
70551f47 RD |
69 | |
70 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
71 | PyObject* o2; | |
72 | PyObject* o3; | |
73 | ||
5e40f9dd | 74 | if (!target) { |
70551f47 | 75 | target = o; |
5e40f9dd | 76 | } else if (target == Py_None) { |
70551f47 RD |
77 | Py_DECREF(Py_None); |
78 | target = o; | |
5e40f9dd | 79 | } else { |
70551f47 RD |
80 | if (!PyTuple_Check(target)) { |
81 | o2 = target; | |
82 | target = PyTuple_New(1); | |
83 | PyTuple_SetItem(target, 0, o2); | |
84 | } | |
5e40f9dd RD |
85 | o3 = PyTuple_New(1); |
86 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
87 | |
88 | o2 = target; | |
5e40f9dd RD |
89 | target = PySequence_Concat(o2, o3); |
90 | Py_DECREF(o2); | |
70551f47 RD |
91 | Py_DECREF(o3); |
92 | } | |
93 | return target; | |
94 | } | |
95 | ||
7a446686 RD |
96 | #if PYTHON_API_VERSION >= 1009 |
97 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
98 | #else | |
99 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
100 | #endif | |
b68dc582 RD |
101 | |
102 | static wxString wxPyEmptyStr(""); | |
fbcadfca RD |
103 | // Implementations of some alternate "constructors" |
104 | ||
70551f47 RD |
105 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
106 | return new wxBitmap(width, height, depth); | |
107 | } | |
108 | ||
fbcadfca RD |
109 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
110 | char** cArray = NULL; | |
111 | int count; | |
112 | ||
113 | if (!PyList_Check(listOfStrings)) { | |
114 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
115 | return NULL; | |
116 | } | |
117 | count = PyList_Size(listOfStrings); | |
118 | cArray = new char*[count]; | |
119 | ||
120 | for(int x=0; x<count; x++) { | |
121 | // TODO: Need some validation and error checking here | |
122 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
123 | } | |
124 | return cArray; | |
125 | } | |
126 | ||
9d6da64a | 127 | |
fbcadfca RD |
128 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
129 | char** cArray = NULL; | |
130 | wxBitmap* bmp; | |
131 | ||
132 | cArray = ConvertListOfStrings(listOfStrings); | |
133 | if (! cArray) | |
134 | return NULL; | |
135 | bmp = new wxBitmap(cArray); | |
136 | delete [] cArray; | |
137 | return bmp; | |
138 | } | |
139 | ||
140 | ||
141 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
142 | return new wxBitmap(icon); | |
143 | } | |
144 | ||
145 | ||
9d6da64a RD |
146 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
147 | return new wxBitmap(bits, width, height, depth); | |
148 | } | |
9e689c06 | 149 | |
7ff49f0c | 150 | |
9d6da64a RD |
151 | // #ifdef __WXMSW__ |
152 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
153 | // int width, int height, int depth = 1) { | |
154 | // if (! PyString_Check(data)) { | |
155 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
156 | // return NULL; | |
157 | // } | |
158 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
159 | // } | |
160 | // #endif | |
8bf5d46e | 161 | |
70551f47 RD |
162 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
163 | return new wxMask(bitmap, colour); | |
fbcadfca RD |
164 | } |
165 | // Implementations of some alternate "constructors" | |
166 | wxIcon* wxEmptyIcon() { | |
167 | return new wxIcon(); | |
168 | } | |
169 | ||
170 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
171 | char** cArray = NULL; | |
172 | wxIcon* icon; | |
173 | ||
174 | cArray = ConvertListOfStrings(listOfStrings); | |
175 | if (! cArray) | |
176 | return NULL; | |
177 | icon = new wxIcon(cArray); | |
178 | delete [] cArray; | |
179 | return icon; | |
70551f47 RD |
180 | } |
181 | // Alternate 'constructor' | |
b26e2dc4 | 182 | wxCursor* wxPyStockCursor(int id) { |
70551f47 RD |
183 | return new wxCursor(id); |
184 | } | |
185 | // Alternate 'constructor' | |
186 | wxColour* wxNamedColour(const wxString& colorName) { | |
187 | return new wxColour(colorName); | |
188 | } | |
189 | // Alternate 'constructor' | |
190 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
191 | return new wxMemoryDC(oldDC); | |
192 | } | |
21f8d7ea RD |
193 | |
194 | #if 0 | |
70551f47 RD |
195 | extern wxFont * wxNORMAL_FONT; |
196 | extern wxFont * wxSMALL_FONT; | |
197 | extern wxFont * wxITALIC_FONT; | |
198 | extern wxFont * wxSWISS_FONT; | |
199 | extern wxPen * wxRED_PEN; | |
200 | extern wxPen * wxCYAN_PEN; | |
201 | extern wxPen * wxGREEN_PEN; | |
202 | extern wxPen * wxBLACK_PEN; | |
203 | extern wxPen * wxWHITE_PEN; | |
204 | extern wxPen * wxTRANSPARENT_PEN; | |
205 | extern wxPen * wxBLACK_DASHED_PEN; | |
206 | extern wxPen * wxGREY_PEN; | |
207 | extern wxPen * wxMEDIUM_GREY_PEN; | |
208 | extern wxPen * wxLIGHT_GREY_PEN; | |
209 | extern wxBrush * wxBLUE_BRUSH; | |
210 | extern wxBrush * wxGREEN_BRUSH; | |
211 | extern wxBrush * wxWHITE_BRUSH; | |
212 | extern wxBrush * wxBLACK_BRUSH; | |
213 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
214 | extern wxBrush * wxCYAN_BRUSH; | |
215 | extern wxBrush * wxRED_BRUSH; | |
216 | extern wxBrush * wxGREY_BRUSH; | |
217 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
218 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
219 | extern wxColour * wxBLACK; | |
220 | extern wxColour * wxWHITE; | |
221 | extern wxColour * wxRED; | |
222 | extern wxColour * wxBLUE; | |
223 | extern wxColour * wxGREEN; | |
224 | extern wxColour * wxCYAN; | |
225 | extern wxColour * wxLIGHT_GREY; | |
226 | extern wxCursor * wxSTANDARD_CURSOR; | |
227 | extern wxCursor * wxHOURGLASS_CURSOR; | |
228 | extern wxCursor * wxCROSS_CURSOR; | |
229 | extern wxBitmap wxNullBitmap; | |
230 | extern wxIcon wxNullIcon; | |
231 | extern wxCursor wxNullCursor; | |
232 | extern wxPen wxNullPen; | |
233 | extern wxBrush wxNullBrush; | |
234 | extern wxPalette wxNullPalette; | |
235 | extern wxFont wxNullFont; | |
236 | extern wxColour wxNullColour; | |
5e40f9dd RD |
237 | extern wxFontList * wxTheFontList; |
238 | extern wxPenList * wxThePenList; | |
239 | extern wxBrushlist * wxTheBrushList; | |
240 | extern wxColourDatabase * wxTheColourDatabase; | |
21f8d7ea | 241 | |
2d091820 RD |
242 | #endif |
243 | #ifdef __cplusplus | |
244 | extern "C" { | |
21f8d7ea | 245 | #endif |
107e4716 | 246 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
247 | PyObject * _resultobj; |
248 | wxBitmap * _result; | |
249 | int _arg0; | |
250 | int _arg1; | |
2d091820 | 251 | int _arg2 = (int ) -1; |
107e4716 | 252 | char *_kwnames[] = { "width","height","depth", NULL }; |
70551f47 RD |
253 | char _ptemp[128]; |
254 | ||
255 | self = self; | |
107e4716 | 256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 257 | return NULL; |
ab9bc19b RD |
258 | { |
259 | wxPy_BEGIN_ALLOW_THREADS; | |
260 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
261 | ||
262 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 263 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
264 | } if (_result) { |
265 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
266 | _resultobj = Py_BuildValue("s",_ptemp); | |
267 | } else { | |
268 | Py_INCREF(Py_None); | |
269 | _resultobj = Py_None; | |
270 | } | |
70551f47 RD |
271 | return _resultobj; |
272 | } | |
273 | ||
fbcadfca RD |
274 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
275 | PyObject * _resultobj; | |
276 | wxBitmap * _result; | |
277 | PyObject * _arg0; | |
278 | PyObject * _obj0 = 0; | |
279 | char *_kwnames[] = { "listOfStrings", NULL }; | |
280 | char _ptemp[128]; | |
281 | ||
282 | self = self; | |
283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
284 | return NULL; | |
285 | { | |
286 | _arg0 = _obj0; | |
287 | } | |
288 | { | |
289 | wxPy_BEGIN_ALLOW_THREADS; | |
290 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
291 | ||
292 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 293 | if (PyErr_Occurred()) return NULL; |
fbcadfca 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 | } | |
301 | return _resultobj; | |
302 | } | |
303 | ||
304 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
305 | PyObject * _resultobj; | |
306 | wxBitmap * _result; | |
307 | wxIcon * _arg0; | |
308 | PyObject * _argo0 = 0; | |
309 | char *_kwnames[] = { "icon", NULL }; | |
310 | char _ptemp[128]; | |
311 | ||
312 | self = self; | |
313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
314 | return NULL; | |
315 | if (_argo0) { | |
316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
319 | return NULL; | |
320 | } | |
321 | } | |
322 | { | |
323 | wxPy_BEGIN_ALLOW_THREADS; | |
324 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
325 | ||
326 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 327 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
328 | } if (_result) { |
329 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
330 | _resultobj = Py_BuildValue("s",_ptemp); | |
331 | } else { | |
332 | Py_INCREF(Py_None); | |
333 | _resultobj = Py_None; | |
334 | } | |
335 | return _resultobj; | |
336 | } | |
337 | ||
9d6da64a RD |
338 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
339 | PyObject * _resultobj; | |
340 | wxBitmap * _result; | |
341 | char * _arg0; | |
342 | int _arg1; | |
343 | int _arg2; | |
344 | int _arg3 = (int ) 1; | |
345 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
346 | char _ptemp[128]; | |
347 | ||
348 | self = self; | |
349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
350 | return NULL; | |
351 | { | |
352 | wxPy_BEGIN_ALLOW_THREADS; | |
353 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); | |
354 | ||
355 | wxPy_END_ALLOW_THREADS; | |
356 | if (PyErr_Occurred()) return NULL; | |
357 | } if (_result) { | |
358 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
359 | _resultobj = Py_BuildValue("s",_ptemp); | |
360 | } else { | |
361 | Py_INCREF(Py_None); | |
362 | _resultobj = Py_None; | |
363 | } | |
364 | return _resultobj; | |
365 | } | |
366 | ||
107e4716 | 367 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
368 | PyObject * _resultobj; |
369 | wxMask * _result; | |
370 | wxBitmap * _arg0; | |
371 | wxColour * _arg1; | |
2d091820 | 372 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
373 | wxColour temp; |
374 | PyObject * _obj1 = 0; | |
107e4716 | 375 | char *_kwnames[] = { "bitmap","colour", NULL }; |
70551f47 RD |
376 | char _ptemp[128]; |
377 | ||
378 | self = self; | |
f6bcfd97 | 379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 380 | return NULL; |
2d091820 RD |
381 | if (_argo0) { |
382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
385 | return NULL; | |
386 | } | |
387 | } | |
f6bcfd97 BP |
388 | { |
389 | _arg1 = &temp; | |
390 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 391 | return NULL; |
f6bcfd97 | 392 | } |
ab9bc19b RD |
393 | { |
394 | wxPy_BEGIN_ALLOW_THREADS; | |
395 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
396 | ||
397 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 398 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
399 | } if (_result) { |
400 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
401 | _resultobj = Py_BuildValue("s",_ptemp); | |
402 | } else { | |
403 | Py_INCREF(Py_None); | |
404 | _resultobj = Py_None; | |
405 | } | |
70551f47 RD |
406 | return _resultobj; |
407 | } | |
408 | ||
fbcadfca RD |
409 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
410 | PyObject * _resultobj; | |
411 | wxIcon * _result; | |
412 | char *_kwnames[] = { NULL }; | |
413 | char _ptemp[128]; | |
414 | ||
415 | self = self; | |
416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
417 | return NULL; | |
418 | { | |
419 | wxPy_BEGIN_ALLOW_THREADS; | |
420 | _result = (wxIcon *)wxEmptyIcon(); | |
421 | ||
422 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 423 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
424 | } if (_result) { |
425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
426 | _resultobj = Py_BuildValue("s",_ptemp); | |
427 | } else { | |
428 | Py_INCREF(Py_None); | |
429 | _resultobj = Py_None; | |
430 | } | |
431 | return _resultobj; | |
432 | } | |
433 | ||
434 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
435 | PyObject * _resultobj; | |
436 | wxIcon * _result; | |
437 | PyObject * _arg0; | |
438 | PyObject * _obj0 = 0; | |
439 | char *_kwnames[] = { "listOfStrings", NULL }; | |
440 | char _ptemp[128]; | |
441 | ||
442 | self = self; | |
443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
444 | return NULL; | |
445 | { | |
446 | _arg0 = _obj0; | |
447 | } | |
448 | { | |
449 | wxPy_BEGIN_ALLOW_THREADS; | |
450 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
451 | ||
452 | wxPy_END_ALLOW_THREADS; | |
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 | ||
107e4716 | 464 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
465 | PyObject * _resultobj; |
466 | wxCursor * _result; | |
467 | int _arg0; | |
107e4716 | 468 | char *_kwnames[] = { "id", NULL }; |
70551f47 RD |
469 | char _ptemp[128]; |
470 | ||
471 | self = self; | |
107e4716 | 472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
70551f47 | 473 | return NULL; |
ab9bc19b RD |
474 | { |
475 | wxPy_BEGIN_ALLOW_THREADS; | |
476 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
477 | ||
478 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 479 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
480 | } if (_result) { |
481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
482 | _resultobj = Py_BuildValue("s",_ptemp); | |
483 | } else { | |
484 | Py_INCREF(Py_None); | |
485 | _resultobj = Py_None; | |
486 | } | |
70551f47 RD |
487 | return _resultobj; |
488 | } | |
489 | ||
107e4716 | 490 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
491 | PyObject * _resultobj; |
492 | wxColour * _result; | |
493 | wxString * _arg0; | |
494 | PyObject * _obj0 = 0; | |
107e4716 | 495 | char *_kwnames[] = { "colorName", NULL }; |
70551f47 RD |
496 | char _ptemp[128]; |
497 | ||
498 | self = self; | |
107e4716 | 499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
70551f47 RD |
500 | return NULL; |
501 | { | |
2cd2fac8 RD |
502 | #if PYTHON_API_VERSION >= 1009 |
503 | char* tmpPtr; int tmpSize; | |
504 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 505 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
506 | return NULL; |
507 | } | |
508 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
509 | return NULL; | |
510 | _arg0 = new wxString(tmpPtr, tmpSize); | |
511 | #else | |
70551f47 RD |
512 | if (!PyString_Check(_obj0)) { |
513 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
514 | return NULL; | |
515 | } | |
2cd2fac8 RD |
516 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
517 | #endif | |
70551f47 | 518 | } |
ab9bc19b RD |
519 | { |
520 | wxPy_BEGIN_ALLOW_THREADS; | |
521 | _result = (wxColour *)wxNamedColour(*_arg0); | |
522 | ||
523 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 524 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
525 | } if (_result) { |
526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | } else { | |
529 | Py_INCREF(Py_None); | |
530 | _resultobj = Py_None; | |
531 | } | |
70551f47 RD |
532 | { |
533 | if (_obj0) | |
534 | delete _arg0; | |
535 | } | |
536 | return _resultobj; | |
537 | } | |
538 | ||
107e4716 | 539 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
540 | PyObject * _resultobj; |
541 | wxMemoryDC * _result; | |
542 | wxDC * _arg0; | |
2d091820 | 543 | PyObject * _argo0 = 0; |
107e4716 | 544 | char *_kwnames[] = { "oldDC", NULL }; |
70551f47 RD |
545 | char _ptemp[128]; |
546 | ||
547 | self = self; | |
107e4716 | 548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
70551f47 | 549 | return NULL; |
2d091820 RD |
550 | if (_argo0) { |
551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
554 | return NULL; | |
555 | } | |
556 | } | |
ab9bc19b RD |
557 | { |
558 | wxPy_BEGIN_ALLOW_THREADS; | |
559 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
560 | ||
561 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 562 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
563 | } if (_result) { |
564 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
565 | _resultobj = Py_BuildValue("s",_ptemp); | |
566 | } else { | |
567 | Py_INCREF(Py_None); | |
568 | _resultobj = Py_None; | |
569 | } | |
70551f47 RD |
570 | return _resultobj; |
571 | } | |
572 | ||
573 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
574 | ||
575 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
576 | return 1; | |
577 | } | |
578 | ||
579 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
580 | PyObject * pyobj; | |
581 | char ptemp[128]; | |
582 | ||
583 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
584 | pyobj = PyString_FromString(ptemp); | |
585 | return pyobj; | |
586 | } | |
587 | ||
588 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
589 | ||
590 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
591 | return 1; | |
592 | } | |
593 | ||
594 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
595 | PyObject * pyobj; | |
596 | char ptemp[128]; | |
597 | ||
598 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
599 | pyobj = PyString_FromString(ptemp); | |
600 | return pyobj; | |
601 | } | |
602 | ||
603 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
604 | ||
605 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
606 | return 1; | |
607 | } | |
608 | ||
609 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
610 | PyObject * pyobj; | |
611 | char ptemp[128]; | |
612 | ||
613 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
614 | pyobj = PyString_FromString(ptemp); | |
615 | return pyobj; | |
616 | } | |
617 | ||
618 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
619 | ||
620 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
621 | return 1; | |
622 | } | |
623 | ||
624 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
625 | PyObject * pyobj; | |
626 | char ptemp[128]; | |
627 | ||
628 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
629 | pyobj = PyString_FromString(ptemp); | |
630 | return pyobj; | |
631 | } | |
632 | ||
633 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
634 | ||
635 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
636 | return 1; | |
637 | } | |
638 | ||
639 | static PyObject *_wrap_wxRED_PEN_get() { | |
640 | PyObject * pyobj; | |
641 | char ptemp[128]; | |
642 | ||
643 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
644 | pyobj = PyString_FromString(ptemp); | |
645 | return pyobj; | |
646 | } | |
647 | ||
648 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
649 | ||
650 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
651 | return 1; | |
652 | } | |
653 | ||
654 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
655 | PyObject * pyobj; | |
656 | char ptemp[128]; | |
657 | ||
658 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
659 | pyobj = PyString_FromString(ptemp); | |
660 | return pyobj; | |
661 | } | |
662 | ||
663 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
664 | ||
665 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
666 | return 1; | |
667 | } | |
668 | ||
669 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
670 | PyObject * pyobj; | |
671 | char ptemp[128]; | |
672 | ||
673 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
674 | pyobj = PyString_FromString(ptemp); | |
675 | return pyobj; | |
676 | } | |
677 | ||
678 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
679 | ||
680 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
681 | return 1; | |
682 | } | |
683 | ||
684 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
685 | PyObject * pyobj; | |
686 | char ptemp[128]; | |
687 | ||
688 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
689 | pyobj = PyString_FromString(ptemp); | |
690 | return pyobj; | |
691 | } | |
692 | ||
693 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
694 | ||
695 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
696 | return 1; | |
697 | } | |
698 | ||
699 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
700 | PyObject * pyobj; | |
701 | char ptemp[128]; | |
702 | ||
703 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
704 | pyobj = PyString_FromString(ptemp); | |
705 | return pyobj; | |
706 | } | |
707 | ||
708 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
709 | ||
710 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
711 | return 1; | |
712 | } | |
713 | ||
714 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
715 | PyObject * pyobj; | |
716 | char ptemp[128]; | |
717 | ||
718 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
719 | pyobj = PyString_FromString(ptemp); | |
720 | return pyobj; | |
721 | } | |
722 | ||
723 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
724 | ||
725 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
726 | return 1; | |
727 | } | |
728 | ||
729 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
730 | PyObject * pyobj; | |
731 | char ptemp[128]; | |
732 | ||
733 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
734 | pyobj = PyString_FromString(ptemp); | |
735 | return pyobj; | |
736 | } | |
737 | ||
738 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
739 | ||
740 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
741 | return 1; | |
742 | } | |
743 | ||
744 | static PyObject *_wrap_wxGREY_PEN_get() { | |
745 | PyObject * pyobj; | |
746 | char ptemp[128]; | |
747 | ||
748 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
749 | pyobj = PyString_FromString(ptemp); | |
750 | return pyobj; | |
751 | } | |
752 | ||
753 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
754 | ||
755 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
756 | return 1; | |
757 | } | |
758 | ||
759 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
760 | PyObject * pyobj; | |
761 | char ptemp[128]; | |
762 | ||
763 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
764 | pyobj = PyString_FromString(ptemp); | |
765 | return pyobj; | |
766 | } | |
767 | ||
768 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
769 | ||
770 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
771 | return 1; | |
772 | } | |
773 | ||
774 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
775 | PyObject * pyobj; | |
776 | char ptemp[128]; | |
777 | ||
778 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
779 | pyobj = PyString_FromString(ptemp); | |
780 | return pyobj; | |
781 | } | |
782 | ||
783 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
784 | ||
785 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
786 | return 1; | |
787 | } | |
788 | ||
789 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
790 | PyObject * pyobj; | |
791 | char ptemp[128]; | |
792 | ||
793 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
794 | pyobj = PyString_FromString(ptemp); | |
795 | return pyobj; | |
796 | } | |
797 | ||
798 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
799 | ||
800 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
801 | return 1; | |
802 | } | |
803 | ||
804 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
805 | PyObject * pyobj; | |
806 | char ptemp[128]; | |
807 | ||
808 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
809 | pyobj = PyString_FromString(ptemp); | |
810 | return pyobj; | |
811 | } | |
812 | ||
813 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
814 | ||
815 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
816 | return 1; | |
817 | } | |
818 | ||
819 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
820 | PyObject * pyobj; | |
821 | char ptemp[128]; | |
822 | ||
823 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
824 | pyobj = PyString_FromString(ptemp); | |
825 | return pyobj; | |
826 | } | |
827 | ||
828 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
829 | ||
830 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
831 | return 1; | |
832 | } | |
833 | ||
834 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
835 | PyObject * pyobj; | |
836 | char ptemp[128]; | |
837 | ||
838 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
839 | pyobj = PyString_FromString(ptemp); | |
840 | return pyobj; | |
841 | } | |
842 | ||
843 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
844 | ||
845 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
846 | return 1; | |
847 | } | |
848 | ||
849 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
850 | PyObject * pyobj; | |
851 | char ptemp[128]; | |
852 | ||
853 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
854 | pyobj = PyString_FromString(ptemp); | |
855 | return pyobj; | |
856 | } | |
857 | ||
858 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
859 | ||
860 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
861 | return 1; | |
862 | } | |
863 | ||
864 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
865 | PyObject * pyobj; | |
866 | char ptemp[128]; | |
867 | ||
868 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
869 | pyobj = PyString_FromString(ptemp); | |
870 | return pyobj; | |
871 | } | |
872 | ||
873 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
874 | ||
875 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
876 | return 1; | |
877 | } | |
878 | ||
879 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
880 | PyObject * pyobj; | |
881 | char ptemp[128]; | |
882 | ||
883 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
884 | pyobj = PyString_FromString(ptemp); | |
885 | return pyobj; | |
886 | } | |
887 | ||
888 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
889 | ||
890 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
891 | return 1; | |
892 | } | |
893 | ||
894 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
895 | PyObject * pyobj; | |
896 | char ptemp[128]; | |
897 | ||
898 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
899 | pyobj = PyString_FromString(ptemp); | |
900 | return pyobj; | |
901 | } | |
902 | ||
903 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
904 | ||
905 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
906 | return 1; | |
907 | } | |
908 | ||
909 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
910 | PyObject * pyobj; | |
911 | char ptemp[128]; | |
912 | ||
913 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
914 | pyobj = PyString_FromString(ptemp); | |
915 | return pyobj; | |
916 | } | |
917 | ||
918 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
919 | ||
920 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
921 | return 1; | |
922 | } | |
923 | ||
924 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
925 | PyObject * pyobj; | |
926 | char ptemp[128]; | |
927 | ||
928 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
929 | pyobj = PyString_FromString(ptemp); | |
930 | return pyobj; | |
931 | } | |
932 | ||
933 | static int _wrap_wxBLACK_set(PyObject *val) { | |
934 | ||
935 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
936 | return 1; | |
937 | } | |
938 | ||
939 | static PyObject *_wrap_wxBLACK_get() { | |
940 | PyObject * pyobj; | |
941 | char ptemp[128]; | |
942 | ||
943 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
944 | pyobj = PyString_FromString(ptemp); | |
945 | return pyobj; | |
946 | } | |
947 | ||
948 | static int _wrap_wxWHITE_set(PyObject *val) { | |
949 | ||
950 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
951 | return 1; | |
952 | } | |
953 | ||
954 | static PyObject *_wrap_wxWHITE_get() { | |
955 | PyObject * pyobj; | |
956 | char ptemp[128]; | |
957 | ||
958 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
959 | pyobj = PyString_FromString(ptemp); | |
960 | return pyobj; | |
961 | } | |
962 | ||
963 | static int _wrap_wxRED_set(PyObject *val) { | |
964 | ||
965 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
966 | return 1; | |
967 | } | |
968 | ||
969 | static PyObject *_wrap_wxRED_get() { | |
970 | PyObject * pyobj; | |
971 | char ptemp[128]; | |
972 | ||
973 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
974 | pyobj = PyString_FromString(ptemp); | |
975 | return pyobj; | |
976 | } | |
977 | ||
978 | static int _wrap_wxBLUE_set(PyObject *val) { | |
979 | ||
980 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
981 | return 1; | |
982 | } | |
983 | ||
984 | static PyObject *_wrap_wxBLUE_get() { | |
985 | PyObject * pyobj; | |
986 | char ptemp[128]; | |
987 | ||
988 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
989 | pyobj = PyString_FromString(ptemp); | |
990 | return pyobj; | |
991 | } | |
992 | ||
993 | static int _wrap_wxGREEN_set(PyObject *val) { | |
994 | ||
995 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
996 | return 1; | |
997 | } | |
998 | ||
999 | static PyObject *_wrap_wxGREEN_get() { | |
1000 | PyObject * pyobj; | |
1001 | char ptemp[128]; | |
1002 | ||
1003 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1004 | pyobj = PyString_FromString(ptemp); | |
1005 | return pyobj; | |
1006 | } | |
1007 | ||
1008 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1009 | ||
1010 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1011 | return 1; | |
1012 | } | |
1013 | ||
1014 | static PyObject *_wrap_wxCYAN_get() { | |
1015 | PyObject * pyobj; | |
1016 | char ptemp[128]; | |
1017 | ||
1018 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1019 | pyobj = PyString_FromString(ptemp); | |
1020 | return pyobj; | |
1021 | } | |
1022 | ||
1023 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1024 | ||
1025 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1026 | return 1; | |
1027 | } | |
1028 | ||
1029 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1030 | PyObject * pyobj; | |
1031 | char ptemp[128]; | |
1032 | ||
1033 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1034 | pyobj = PyString_FromString(ptemp); | |
1035 | return pyobj; | |
1036 | } | |
1037 | ||
1038 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1039 | ||
1040 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1041 | return 1; | |
1042 | } | |
1043 | ||
1044 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1045 | PyObject * pyobj; | |
1046 | char ptemp[128]; | |
1047 | ||
1048 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1049 | pyobj = PyString_FromString(ptemp); | |
1050 | return pyobj; | |
1051 | } | |
1052 | ||
1053 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1054 | ||
1055 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1056 | return 1; | |
1057 | } | |
1058 | ||
1059 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1060 | PyObject * pyobj; | |
1061 | char ptemp[128]; | |
1062 | ||
1063 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1064 | pyobj = PyString_FromString(ptemp); | |
1065 | return pyobj; | |
1066 | } | |
1067 | ||
1068 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1069 | ||
1070 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1071 | return 1; | |
1072 | } | |
1073 | ||
1074 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1075 | PyObject * pyobj; | |
1076 | char ptemp[128]; | |
1077 | ||
1078 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1079 | pyobj = PyString_FromString(ptemp); | |
1080 | return pyobj; | |
1081 | } | |
1082 | ||
1083 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1084 | ||
1085 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1086 | return 1; | |
1087 | } | |
1088 | ||
1089 | static PyObject *_wrap_wxNullBitmap_get() { | |
1090 | PyObject * pyobj; | |
1091 | char ptemp[128]; | |
1092 | ||
1093 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1094 | pyobj = PyString_FromString(ptemp); | |
1095 | return pyobj; | |
1096 | } | |
1097 | ||
1098 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1099 | ||
1100 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1101 | return 1; | |
1102 | } | |
1103 | ||
1104 | static PyObject *_wrap_wxNullIcon_get() { | |
1105 | PyObject * pyobj; | |
1106 | char ptemp[128]; | |
1107 | ||
1108 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1109 | pyobj = PyString_FromString(ptemp); | |
1110 | return pyobj; | |
1111 | } | |
1112 | ||
1113 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1114 | ||
1115 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1116 | return 1; | |
1117 | } | |
1118 | ||
1119 | static PyObject *_wrap_wxNullCursor_get() { | |
1120 | PyObject * pyobj; | |
1121 | char ptemp[128]; | |
1122 | ||
1123 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1124 | pyobj = PyString_FromString(ptemp); | |
1125 | return pyobj; | |
1126 | } | |
1127 | ||
1128 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1129 | ||
1130 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1131 | return 1; | |
1132 | } | |
1133 | ||
1134 | static PyObject *_wrap_wxNullPen_get() { | |
1135 | PyObject * pyobj; | |
1136 | char ptemp[128]; | |
1137 | ||
1138 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1139 | pyobj = PyString_FromString(ptemp); | |
1140 | return pyobj; | |
1141 | } | |
1142 | ||
1143 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1144 | ||
1145 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1146 | return 1; | |
1147 | } | |
1148 | ||
1149 | static PyObject *_wrap_wxNullBrush_get() { | |
1150 | PyObject * pyobj; | |
1151 | char ptemp[128]; | |
1152 | ||
1153 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1154 | pyobj = PyString_FromString(ptemp); | |
1155 | return pyobj; | |
1156 | } | |
1157 | ||
1158 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1159 | ||
1160 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1161 | return 1; | |
1162 | } | |
1163 | ||
1164 | static PyObject *_wrap_wxNullPalette_get() { | |
1165 | PyObject * pyobj; | |
1166 | char ptemp[128]; | |
1167 | ||
1168 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1169 | pyobj = PyString_FromString(ptemp); | |
1170 | return pyobj; | |
1171 | } | |
1172 | ||
1173 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1174 | ||
1175 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1176 | return 1; | |
1177 | } | |
1178 | ||
1179 | static PyObject *_wrap_wxNullFont_get() { | |
1180 | PyObject * pyobj; | |
1181 | char ptemp[128]; | |
1182 | ||
1183 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1184 | pyobj = PyString_FromString(ptemp); | |
1185 | return pyobj; | |
1186 | } | |
1187 | ||
1188 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1189 | ||
1190 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1191 | return 1; | |
1192 | } | |
1193 | ||
1194 | static PyObject *_wrap_wxNullColour_get() { | |
1195 | PyObject * pyobj; | |
1196 | char ptemp[128]; | |
1197 | ||
1198 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1199 | pyobj = PyString_FromString(ptemp); | |
1200 | return pyobj; | |
1201 | } | |
1202 | ||
5e40f9dd RD |
1203 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1204 | ||
1205 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1206 | return 1; | |
1207 | } | |
1208 | ||
1209 | static PyObject *_wrap_wxTheFontList_get() { | |
1210 | PyObject * pyobj; | |
1211 | char ptemp[128]; | |
1212 | ||
1213 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1214 | pyobj = PyString_FromString(ptemp); | |
1215 | return pyobj; | |
1216 | } | |
1217 | ||
1218 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1219 | ||
1220 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1221 | return 1; | |
1222 | } | |
1223 | ||
1224 | static PyObject *_wrap_wxThePenList_get() { | |
1225 | PyObject * pyobj; | |
1226 | char ptemp[128]; | |
1227 | ||
1228 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1229 | pyobj = PyString_FromString(ptemp); | |
1230 | return pyobj; | |
1231 | } | |
1232 | ||
1233 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1234 | ||
1235 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1236 | return 1; | |
1237 | } | |
1238 | ||
1239 | static PyObject *_wrap_wxTheBrushList_get() { | |
1240 | PyObject * pyobj; | |
1241 | char ptemp[128]; | |
1242 | ||
1243 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p"); | |
1244 | pyobj = PyString_FromString(ptemp); | |
1245 | return pyobj; | |
1246 | } | |
1247 | ||
1248 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1249 | ||
1250 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1251 | return 1; | |
1252 | } | |
1253 | ||
1254 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1255 | PyObject * pyobj; | |
1256 | char ptemp[128]; | |
1257 | ||
1258 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1259 | pyobj = PyString_FromString(ptemp); | |
1260 | return pyobj; | |
1261 | } | |
1262 | ||
9df61a29 RD |
1263 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1264 | wxGDIObject *src; | |
1265 | wxObject *dest; | |
1266 | src = (wxGDIObject *) ptr; | |
1267 | dest = (wxObject *) src; | |
1268 | return (void *) dest; | |
1269 | } | |
1270 | ||
1271 | #define new_wxGDIObject() (new wxGDIObject()) | |
1272 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1273 | PyObject * _resultobj; | |
1274 | wxGDIObject * _result; | |
1275 | char *_kwnames[] = { NULL }; | |
1276 | char _ptemp[128]; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1280 | return NULL; | |
1281 | { | |
1282 | wxPy_BEGIN_ALLOW_THREADS; | |
1283 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1284 | ||
1285 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1286 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1287 | } if (_result) { |
1288 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1289 | _resultobj = Py_BuildValue("s",_ptemp); | |
1290 | } else { | |
1291 | Py_INCREF(Py_None); | |
1292 | _resultobj = Py_None; | |
1293 | } | |
1294 | return _resultobj; | |
1295 | } | |
1296 | ||
1297 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1298 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1299 | PyObject * _resultobj; | |
1300 | wxGDIObject * _arg0; | |
1301 | PyObject * _argo0 = 0; | |
1302 | char *_kwnames[] = { "self", NULL }; | |
1303 | ||
1304 | self = self; | |
1305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1306 | return NULL; | |
1307 | if (_argo0) { | |
1308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1311 | return NULL; | |
1312 | } | |
1313 | } | |
1314 | { | |
1315 | wxPy_BEGIN_ALLOW_THREADS; | |
1316 | delete_wxGDIObject(_arg0); | |
1317 | ||
1318 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1319 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1320 | } Py_INCREF(Py_None); |
1321 | _resultobj = Py_None; | |
1322 | return _resultobj; | |
1323 | } | |
1324 | ||
1325 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1326 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1327 | PyObject * _resultobj; | |
1328 | bool _result; | |
1329 | wxGDIObject * _arg0; | |
1330 | PyObject * _argo0 = 0; | |
1331 | char *_kwnames[] = { "self", NULL }; | |
1332 | ||
1333 | self = self; | |
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1335 | return NULL; | |
1336 | if (_argo0) { | |
1337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1340 | return NULL; | |
1341 | } | |
1342 | } | |
1343 | { | |
1344 | wxPy_BEGIN_ALLOW_THREADS; | |
1345 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1346 | ||
1347 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1348 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1349 | } _resultobj = Py_BuildValue("i",_result); |
1350 | return _resultobj; | |
1351 | } | |
1352 | ||
1353 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1354 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1355 | PyObject * _resultobj; | |
1356 | wxGDIObject * _arg0; | |
1357 | bool _arg1; | |
1358 | PyObject * _argo0 = 0; | |
1359 | int tempbool1; | |
1360 | char *_kwnames[] = { "self","visible", NULL }; | |
1361 | ||
1362 | self = self; | |
1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1364 | return NULL; | |
1365 | if (_argo0) { | |
1366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1369 | return NULL; | |
1370 | } | |
1371 | } | |
1372 | _arg1 = (bool ) tempbool1; | |
1373 | { | |
1374 | wxPy_BEGIN_ALLOW_THREADS; | |
1375 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1376 | ||
1377 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1378 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1379 | } Py_INCREF(Py_None); |
1380 | _resultobj = Py_None; | |
1381 | return _resultobj; | |
1382 | } | |
1383 | ||
1384 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1385 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject * _resultobj; | |
1387 | bool _result; | |
1388 | wxGDIObject * _arg0; | |
1389 | PyObject * _argo0 = 0; | |
1390 | char *_kwnames[] = { "self", NULL }; | |
1391 | ||
1392 | self = self; | |
1393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1394 | return NULL; | |
1395 | if (_argo0) { | |
1396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1399 | return NULL; | |
1400 | } | |
1401 | } | |
1402 | { | |
1403 | wxPy_BEGIN_ALLOW_THREADS; | |
1404 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1405 | ||
1406 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1407 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1408 | } _resultobj = Py_BuildValue("i",_result); |
1409 | return _resultobj; | |
1410 | } | |
1411 | ||
1412 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1413 | wxBitmap *src; | |
1414 | wxGDIObject *dest; | |
1415 | src = (wxBitmap *) ptr; | |
1416 | dest = (wxGDIObject *) src; | |
1417 | return (void *) dest; | |
1418 | } | |
1419 | ||
1420 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1421 | wxBitmap *src; | |
1422 | wxObject *dest; | |
1423 | src = (wxBitmap *) ptr; | |
1424 | dest = (wxObject *) src; | |
1425 | return (void *) dest; | |
1426 | } | |
1427 | ||
70551f47 | 1428 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
107e4716 | 1429 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1430 | PyObject * _resultobj; |
1431 | wxBitmap * _result; | |
1432 | wxString * _arg0; | |
df05452e | 1433 | wxBitmapType _arg1; |
70551f47 | 1434 | PyObject * _obj0 = 0; |
107e4716 | 1435 | char *_kwnames[] = { "name","type", NULL }; |
70551f47 RD |
1436 | char _ptemp[128]; |
1437 | ||
1438 | self = self; | |
df05452e | 1439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
70551f47 RD |
1440 | return NULL; |
1441 | { | |
2cd2fac8 RD |
1442 | #if PYTHON_API_VERSION >= 1009 |
1443 | char* tmpPtr; int tmpSize; | |
1444 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1445 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1446 | return NULL; |
1447 | } | |
1448 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1449 | return NULL; | |
1450 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1451 | #else | |
70551f47 RD |
1452 | if (!PyString_Check(_obj0)) { |
1453 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1454 | return NULL; | |
1455 | } | |
2cd2fac8 RD |
1456 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1457 | #endif | |
70551f47 | 1458 | } |
ab9bc19b RD |
1459 | { |
1460 | wxPy_BEGIN_ALLOW_THREADS; | |
1461 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
1462 | ||
1463 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1464 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1465 | } if (_result) { |
1466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1467 | _resultobj = Py_BuildValue("s",_ptemp); | |
1468 | } else { | |
1469 | Py_INCREF(Py_None); | |
1470 | _resultobj = Py_None; | |
1471 | } | |
70551f47 RD |
1472 | { |
1473 | if (_obj0) | |
1474 | delete _arg0; | |
1475 | } | |
1476 | return _resultobj; | |
1477 | } | |
1478 | ||
1479 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
107e4716 | 1480 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1481 | PyObject * _resultobj; |
1482 | wxBitmap * _arg0; | |
2d091820 | 1483 | PyObject * _argo0 = 0; |
107e4716 | 1484 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1485 | |
1486 | self = self; | |
107e4716 | 1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
70551f47 | 1488 | return NULL; |
2d091820 RD |
1489 | if (_argo0) { |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
ab9bc19b RD |
1496 | { |
1497 | wxPy_BEGIN_ALLOW_THREADS; | |
1498 | delete_wxBitmap(_arg0); | |
1499 | ||
1500 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1501 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1502 | } Py_INCREF(Py_None); |
70551f47 RD |
1503 | _resultobj = Py_None; |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
70551f47 | 1507 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
107e4716 | 1508 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1509 | PyObject * _resultobj; |
1510 | wxPalette * _result; | |
1511 | wxBitmap * _arg0; | |
2d091820 | 1512 | PyObject * _argo0 = 0; |
107e4716 | 1513 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1514 | char _ptemp[128]; |
1515 | ||
1516 | self = self; | |
107e4716 | 1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
70551f47 | 1518 | return NULL; |
2d091820 RD |
1519 | if (_argo0) { |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
ab9bc19b RD |
1526 | { |
1527 | wxPy_BEGIN_ALLOW_THREADS; | |
1528 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1529 | ||
1530 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1531 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1532 | } if (_result) { |
1533 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1534 | _resultobj = Py_BuildValue("s",_ptemp); | |
1535 | } else { | |
1536 | Py_INCREF(Py_None); | |
1537 | _resultobj = Py_None; | |
1538 | } | |
70551f47 RD |
1539 | return _resultobj; |
1540 | } | |
1541 | ||
1542 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
107e4716 | 1543 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1544 | PyObject * _resultobj; |
1545 | wxMask * _result; | |
1546 | wxBitmap * _arg0; | |
2d091820 | 1547 | PyObject * _argo0 = 0; |
107e4716 | 1548 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1549 | char _ptemp[128]; |
1550 | ||
1551 | self = self; | |
107e4716 | 1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
70551f47 | 1553 | return NULL; |
2d091820 RD |
1554 | if (_argo0) { |
1555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
1558 | return NULL; | |
1559 | } | |
1560 | } | |
ab9bc19b RD |
1561 | { |
1562 | wxPy_BEGIN_ALLOW_THREADS; | |
1563 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1564 | ||
1565 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1566 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1567 | } if (_result) { |
1568 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1569 | _resultobj = Py_BuildValue("s",_ptemp); | |
1570 | } else { | |
1571 | Py_INCREF(Py_None); | |
1572 | _resultobj = Py_None; | |
1573 | } | |
70551f47 RD |
1574 | return _resultobj; |
1575 | } | |
1576 | ||
56f5d962 RD |
1577 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1578 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1579 | PyObject * _resultobj; |
56f5d962 | 1580 | bool _result; |
70551f47 | 1581 | wxBitmap * _arg0; |
56f5d962 RD |
1582 | wxString * _arg1; |
1583 | long _arg2; | |
2d091820 | 1584 | PyObject * _argo0 = 0; |
56f5d962 RD |
1585 | PyObject * _obj1 = 0; |
1586 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
1587 | |
1588 | self = self; | |
56f5d962 | 1589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1590 | return NULL; |
2d091820 RD |
1591 | if (_argo0) { |
1592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); |
70551f47 RD |
1595 | return NULL; |
1596 | } | |
1597 | } | |
56f5d962 | 1598 | { |
2cd2fac8 RD |
1599 | #if PYTHON_API_VERSION >= 1009 |
1600 | char* tmpPtr; int tmpSize; | |
1601 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1602 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1603 | return NULL; |
1604 | } | |
1605 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1606 | return NULL; | |
1607 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1608 | #else | |
56f5d962 RD |
1609 | if (!PyString_Check(_obj1)) { |
1610 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1611 | return NULL; | |
1612 | } | |
2cd2fac8 RD |
1613 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1614 | #endif | |
56f5d962 | 1615 | } |
ab9bc19b RD |
1616 | { |
1617 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1618 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b RD |
1619 | |
1620 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1621 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1622 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
1623 | { |
1624 | if (_obj1) | |
1625 | delete _arg1; | |
1626 | } | |
70551f47 RD |
1627 | return _resultobj; |
1628 | } | |
1629 | ||
56f5d962 RD |
1630 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1631 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1632 | PyObject * _resultobj; |
1633 | bool _result; | |
1634 | wxBitmap * _arg0; | |
1635 | wxString * _arg1; | |
56f5d962 RD |
1636 | int _arg2; |
1637 | wxPalette * _arg3 = (wxPalette *) NULL; | |
2d091820 | 1638 | PyObject * _argo0 = 0; |
70551f47 | 1639 | PyObject * _obj1 = 0; |
56f5d962 RD |
1640 | PyObject * _argo3 = 0; |
1641 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
70551f47 RD |
1642 | |
1643 | self = self; | |
56f5d962 | 1644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
70551f47 | 1645 | return NULL; |
2d091820 RD |
1646 | if (_argo0) { |
1647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); |
70551f47 RD |
1650 | return NULL; |
1651 | } | |
1652 | } | |
1653 | { | |
2cd2fac8 RD |
1654 | #if PYTHON_API_VERSION >= 1009 |
1655 | char* tmpPtr; int tmpSize; | |
1656 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1657 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1658 | return NULL; |
1659 | } | |
1660 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1661 | return NULL; | |
1662 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1663 | #else | |
70551f47 RD |
1664 | if (!PyString_Check(_obj1)) { |
1665 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1666 | return NULL; | |
1667 | } | |
2cd2fac8 RD |
1668 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1669 | #endif | |
70551f47 | 1670 | } |
56f5d962 RD |
1671 | if (_argo3) { |
1672 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1673 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1675 | return NULL; | |
1676 | } | |
1677 | } | |
ab9bc19b RD |
1678 | { |
1679 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1680 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b RD |
1681 | |
1682 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1683 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1684 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1685 | { |
1686 | if (_obj1) | |
1687 | delete _arg1; | |
1688 | } | |
1689 | return _resultobj; | |
1690 | } | |
1691 | ||
56f5d962 RD |
1692 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1693 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1694 | PyObject * _resultobj; | |
1695 | wxBitmap * _arg0; | |
1696 | wxMask * _arg1; | |
1697 | PyObject * _argo0 = 0; | |
1698 | PyObject * _argo1 = 0; | |
1699 | char *_kwnames[] = { "self","mask", NULL }; | |
1700 | ||
1701 | self = self; | |
1702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1703 | return NULL; | |
1704 | if (_argo0) { | |
1705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1708 | return NULL; | |
1709 | } | |
1710 | } | |
1711 | if (_argo1) { | |
1712 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1713 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1715 | return NULL; | |
1716 | } | |
1717 | } | |
1718 | { | |
1719 | wxPy_BEGIN_ALLOW_THREADS; | |
1720 | wxBitmap_SetMask(_arg0,_arg1); | |
1721 | ||
1722 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1723 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1724 | } Py_INCREF(Py_None); |
1725 | _resultobj = Py_None; | |
1726 | return _resultobj; | |
1727 | } | |
1728 | ||
70551f47 | 1729 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) |
107e4716 | 1730 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1731 | PyObject * _resultobj; |
1732 | bool _result; | |
1733 | wxBitmap * _arg0; | |
2d091820 | 1734 | PyObject * _argo0 = 0; |
107e4716 | 1735 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1736 | |
1737 | self = self; | |
107e4716 | 1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) |
70551f47 | 1739 | return NULL; |
2d091820 RD |
1740 | if (_argo0) { |
1741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); |
1744 | return NULL; | |
1745 | } | |
1746 | } | |
ab9bc19b RD |
1747 | { |
1748 | wxPy_BEGIN_ALLOW_THREADS; | |
1749 | _result = (bool )wxBitmap_Ok(_arg0); | |
1750 | ||
1751 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1752 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1753 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1754 | return _resultobj; |
1755 | } | |
1756 | ||
56f5d962 RD |
1757 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) |
1758 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1759 | PyObject * _resultobj; |
56f5d962 | 1760 | int _result; |
70551f47 | 1761 | wxBitmap * _arg0; |
2d091820 | 1762 | PyObject * _argo0 = 0; |
56f5d962 | 1763 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1764 | |
1765 | self = self; | |
56f5d962 | 1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) |
70551f47 | 1767 | return NULL; |
2d091820 RD |
1768 | if (_argo0) { |
1769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1772 | return NULL; |
1773 | } | |
1774 | } | |
1775 | { | |
56f5d962 RD |
1776 | wxPy_BEGIN_ALLOW_THREADS; |
1777 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1778 | ||
1779 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1780 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1781 | } _resultobj = Py_BuildValue("i",_result); |
1782 | return _resultobj; | |
70551f47 | 1783 | } |
56f5d962 RD |
1784 | |
1785 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1786 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1787 | PyObject * _resultobj; | |
1788 | int _result; | |
1789 | wxBitmap * _arg0; | |
1790 | PyObject * _argo0 = 0; | |
1791 | char *_kwnames[] = { "self", NULL }; | |
1792 | ||
1793 | self = self; | |
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1795 | return NULL; | |
1796 | if (_argo0) { | |
1797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
70551f47 RD |
1800 | return NULL; |
1801 | } | |
1802 | } | |
ab9bc19b RD |
1803 | { |
1804 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1805 | _result = (int )wxBitmap_GetHeight(_arg0); |
ab9bc19b RD |
1806 | |
1807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1808 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1809 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1810 | return _resultobj; |
1811 | } | |
1812 | ||
56f5d962 RD |
1813 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1814 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1815 | PyObject * _resultobj; |
56f5d962 | 1816 | int _result; |
70551f47 | 1817 | wxBitmap * _arg0; |
2d091820 | 1818 | PyObject * _argo0 = 0; |
56f5d962 | 1819 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1820 | |
1821 | self = self; | |
56f5d962 | 1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
70551f47 | 1823 | return NULL; |
2d091820 RD |
1824 | if (_argo0) { |
1825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1828 | return NULL; |
1829 | } | |
1830 | } | |
ab9bc19b RD |
1831 | { |
1832 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1833 | _result = (int )wxBitmap_GetDepth(_arg0); |
ab9bc19b RD |
1834 | |
1835 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1836 | if (PyErr_Occurred()) return NULL; |
56f5d962 | 1837 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1838 | return _resultobj; |
1839 | } | |
1840 | ||
56f5d962 RD |
1841 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
1842 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1843 | PyObject * _resultobj; |
1844 | wxBitmap * _arg0; | |
1845 | int _arg1; | |
2d091820 | 1846 | PyObject * _argo0 = 0; |
56f5d962 | 1847 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
1848 | |
1849 | self = self; | |
56f5d962 | 1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1851 | return NULL; |
2d091820 RD |
1852 | if (_argo0) { |
1853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1856 | return NULL; |
1857 | } | |
1858 | } | |
ab9bc19b RD |
1859 | { |
1860 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1861 | wxBitmap_SetWidth(_arg0,_arg1); |
ab9bc19b RD |
1862 | |
1863 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1864 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1865 | } Py_INCREF(Py_None); |
70551f47 RD |
1866 | _resultobj = Py_None; |
1867 | return _resultobj; | |
1868 | } | |
1869 | ||
56f5d962 RD |
1870 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1871 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1872 | PyObject * _resultobj; |
1873 | wxBitmap * _arg0; | |
56f5d962 | 1874 | int _arg1; |
2d091820 | 1875 | PyObject * _argo0 = 0; |
56f5d962 | 1876 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
1877 | |
1878 | self = self; | |
56f5d962 | 1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1880 | return NULL; |
2d091820 RD |
1881 | if (_argo0) { |
1882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); |
70551f47 RD |
1885 | return NULL; |
1886 | } | |
1887 | } | |
ab9bc19b RD |
1888 | { |
1889 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1890 | wxBitmap_SetHeight(_arg0,_arg1); |
ab9bc19b RD |
1891 | |
1892 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1893 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1894 | } Py_INCREF(Py_None); |
70551f47 RD |
1895 | _resultobj = Py_None; |
1896 | return _resultobj; | |
1897 | } | |
1898 | ||
56f5d962 RD |
1899 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
1900 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1901 | PyObject * _resultobj; |
1902 | wxBitmap * _arg0; | |
1903 | int _arg1; | |
2d091820 | 1904 | PyObject * _argo0 = 0; |
56f5d962 | 1905 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
1906 | |
1907 | self = self; | |
56f5d962 | 1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1909 | return NULL; |
2d091820 RD |
1910 | if (_argo0) { |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1914 | return NULL; |
1915 | } | |
1916 | } | |
ab9bc19b RD |
1917 | { |
1918 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1919 | wxBitmap_SetDepth(_arg0,_arg1); |
ab9bc19b RD |
1920 | |
1921 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1922 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1923 | } Py_INCREF(Py_None); |
70551f47 RD |
1924 | _resultobj = Py_None; |
1925 | return _resultobj; | |
1926 | } | |
1927 | ||
f6bcfd97 BP |
1928 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
1929 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject * _resultobj; | |
1931 | wxBitmap * _result; | |
1932 | wxBitmap * _arg0; | |
1933 | wxRect * _arg1; | |
1934 | PyObject * _argo0 = 0; | |
1935 | wxRect temp; | |
1936 | PyObject * _obj1 = 0; | |
1937 | char *_kwnames[] = { "self","rect", NULL }; | |
1938 | char _ptemp[128]; | |
1939 | ||
1940 | self = self; | |
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1942 | return NULL; | |
1943 | if (_argo0) { | |
1944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1947 | return NULL; | |
1948 | } | |
1949 | } | |
1950 | { | |
1951 | _arg1 = &temp; | |
1952 | if (! wxRect_helper(_obj1, &_arg1)) | |
1953 | return NULL; | |
1954 | } | |
1955 | { | |
1956 | wxPy_BEGIN_ALLOW_THREADS; | |
1957 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
1958 | ||
1959 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1960 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1961 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1962 | _resultobj = Py_BuildValue("s",_ptemp); | |
1963 | return _resultobj; | |
1964 | } | |
1965 | ||
9df61a29 RD |
1966 | static void *SwigwxMaskTowxObject(void *ptr) { |
1967 | wxMask *src; | |
1968 | wxObject *dest; | |
1969 | src = (wxMask *) ptr; | |
1970 | dest = (wxObject *) src; | |
1971 | return (void *) dest; | |
1972 | } | |
1973 | ||
70551f47 | 1974 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
107e4716 | 1975 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1976 | PyObject * _resultobj; |
1977 | wxMask * _result; | |
1978 | wxBitmap * _arg0; | |
2d091820 | 1979 | PyObject * _argo0 = 0; |
107e4716 | 1980 | char *_kwnames[] = { "bitmap", NULL }; |
70551f47 RD |
1981 | char _ptemp[128]; |
1982 | ||
1983 | self = self; | |
107e4716 | 1984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) |
70551f47 | 1985 | return NULL; |
2d091820 RD |
1986 | if (_argo0) { |
1987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); |
1990 | return NULL; | |
1991 | } | |
1992 | } | |
ab9bc19b RD |
1993 | { |
1994 | wxPy_BEGIN_ALLOW_THREADS; | |
1995 | _result = (wxMask *)new_wxMask(*_arg0); | |
1996 | ||
1997 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1998 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1999 | } if (_result) { |
2000 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2001 | _resultobj = Py_BuildValue("s",_ptemp); | |
2002 | } else { | |
2003 | Py_INCREF(Py_None); | |
2004 | _resultobj = Py_None; | |
2005 | } | |
70551f47 RD |
2006 | return _resultobj; |
2007 | } | |
2008 | ||
fbcadfca RD |
2009 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2010 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2011 | PyObject * _resultobj; | |
2012 | wxMask * _arg0; | |
2013 | PyObject * _argo0 = 0; | |
2014 | char *_kwnames[] = { "self", NULL }; | |
2015 | ||
2016 | self = self; | |
2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2018 | return NULL; | |
2019 | if (_argo0) { | |
2020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2023 | return NULL; | |
2024 | } | |
2025 | } | |
2026 | { | |
2027 | wxPy_BEGIN_ALLOW_THREADS; | |
2028 | wxMask_Destroy(_arg0); | |
2029 | ||
2030 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2031 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2032 | } Py_INCREF(Py_None); |
2033 | _resultobj = Py_None; | |
2034 | return _resultobj; | |
2035 | } | |
2036 | ||
9df61a29 RD |
2037 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2038 | wxIcon *src; | |
2039 | wxGDIObject *dest; | |
2040 | src = (wxIcon *) ptr; | |
2041 | dest = (wxGDIObject *) src; | |
2042 | return (void *) dest; | |
2043 | } | |
2044 | ||
2045 | static void *SwigwxIconTowxObject(void *ptr) { | |
2046 | wxIcon *src; | |
2047 | wxObject *dest; | |
2048 | src = (wxIcon *) ptr; | |
2049 | dest = (wxObject *) src; | |
2050 | return (void *) dest; | |
2051 | } | |
2052 | ||
8bf5d46e | 2053 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 2054 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2055 | PyObject * _resultobj; |
2056 | wxIcon * _result; | |
2057 | wxString * _arg0; | |
2058 | long _arg1; | |
2d091820 RD |
2059 | int _arg2 = (int ) -1; |
2060 | int _arg3 = (int ) -1; | |
8bf5d46e | 2061 | PyObject * _obj0 = 0; |
107e4716 | 2062 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8bf5d46e RD |
2063 | char _ptemp[128]; |
2064 | ||
2065 | self = self; | |
107e4716 | 2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
2067 | return NULL; |
2068 | { | |
2cd2fac8 RD |
2069 | #if PYTHON_API_VERSION >= 1009 |
2070 | char* tmpPtr; int tmpSize; | |
2071 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 2072 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2073 | return NULL; |
2074 | } | |
2075 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2076 | return NULL; | |
2077 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2078 | #else | |
8bf5d46e RD |
2079 | if (!PyString_Check(_obj0)) { |
2080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2081 | return NULL; | |
2082 | } | |
2cd2fac8 RD |
2083 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2084 | #endif | |
8bf5d46e RD |
2085 | } |
2086 | { | |
2087 | wxPy_BEGIN_ALLOW_THREADS; | |
2088 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); | |
2089 | ||
2090 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2091 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2092 | } if (_result) { |
2093 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2094 | _resultobj = Py_BuildValue("s",_ptemp); | |
2095 | } else { | |
2096 | Py_INCREF(Py_None); | |
2097 | _resultobj = Py_None; | |
2098 | } | |
8bf5d46e RD |
2099 | { |
2100 | if (_obj0) | |
2101 | delete _arg0; | |
2102 | } | |
2103 | return _resultobj; | |
2104 | } | |
2105 | ||
70551f47 | 2106 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
107e4716 | 2107 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2108 | PyObject * _resultobj; |
2109 | wxIcon * _arg0; | |
2d091820 | 2110 | PyObject * _argo0 = 0; |
107e4716 | 2111 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2112 | |
2113 | self = self; | |
107e4716 | 2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
70551f47 | 2115 | return NULL; |
2d091820 RD |
2116 | if (_argo0) { |
2117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); |
2120 | return NULL; | |
2121 | } | |
2122 | } | |
ab9bc19b RD |
2123 | { |
2124 | wxPy_BEGIN_ALLOW_THREADS; | |
2125 | delete_wxIcon(_arg0); | |
2126 | ||
2127 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2128 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2129 | } Py_INCREF(Py_None); |
70551f47 RD |
2130 | _resultobj = Py_None; |
2131 | return _resultobj; | |
2132 | } | |
2133 | ||
56f5d962 RD |
2134 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
2135 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2136 | PyObject * _resultobj; |
56f5d962 | 2137 | bool _result; |
70551f47 | 2138 | wxIcon * _arg0; |
56f5d962 RD |
2139 | wxString * _arg1; |
2140 | long _arg2; | |
2d091820 | 2141 | PyObject * _argo0 = 0; |
56f5d962 RD |
2142 | PyObject * _obj1 = 0; |
2143 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
2144 | |
2145 | self = self; | |
56f5d962 | 2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 2147 | return NULL; |
2d091820 RD |
2148 | if (_argo0) { |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); |
70551f47 RD |
2152 | return NULL; |
2153 | } | |
2154 | } | |
56f5d962 | 2155 | { |
2cd2fac8 RD |
2156 | #if PYTHON_API_VERSION >= 1009 |
2157 | char* tmpPtr; int tmpSize; | |
2158 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2159 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2160 | return NULL; |
2161 | } | |
2162 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2163 | return NULL; | |
2164 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2165 | #else | |
56f5d962 RD |
2166 | if (!PyString_Check(_obj1)) { |
2167 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2168 | return NULL; | |
2169 | } | |
2cd2fac8 RD |
2170 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2171 | #endif | |
56f5d962 | 2172 | } |
ab9bc19b RD |
2173 | { |
2174 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2175 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b RD |
2176 | |
2177 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2178 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2179 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
2180 | { |
2181 | if (_obj1) | |
2182 | delete _arg1; | |
2183 | } | |
70551f47 RD |
2184 | return _resultobj; |
2185 | } | |
2186 | ||
56f5d962 RD |
2187 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
2188 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2189 | PyObject * _resultobj; |
56f5d962 | 2190 | bool _result; |
70551f47 | 2191 | wxIcon * _arg0; |
2d091820 | 2192 | PyObject * _argo0 = 0; |
107e4716 | 2193 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2194 | |
2195 | self = self; | |
56f5d962 | 2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) |
70551f47 | 2197 | return NULL; |
2d091820 RD |
2198 | if (_argo0) { |
2199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); |
70551f47 RD |
2202 | return NULL; |
2203 | } | |
2204 | } | |
ab9bc19b RD |
2205 | { |
2206 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2207 | _result = (bool )wxIcon_Ok(_arg0); |
ab9bc19b RD |
2208 | |
2209 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2210 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2211 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2212 | return _resultobj; |
2213 | } | |
2214 | ||
2215 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 2216 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2217 | PyObject * _resultobj; |
2218 | int _result; | |
2219 | wxIcon * _arg0; | |
2d091820 | 2220 | PyObject * _argo0 = 0; |
107e4716 | 2221 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2222 | |
2223 | self = self; | |
107e4716 | 2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) |
70551f47 | 2225 | return NULL; |
2d091820 RD |
2226 | if (_argo0) { |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); |
2230 | return NULL; | |
2231 | } | |
2232 | } | |
ab9bc19b RD |
2233 | { |
2234 | wxPy_BEGIN_ALLOW_THREADS; | |
2235 | _result = (int )wxIcon_GetWidth(_arg0); | |
2236 | ||
2237 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2238 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2239 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2240 | return _resultobj; |
2241 | } | |
2242 | ||
56f5d962 RD |
2243 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) |
2244 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2245 | PyObject * _resultobj; |
56f5d962 | 2246 | int _result; |
70551f47 | 2247 | wxIcon * _arg0; |
2d091820 | 2248 | PyObject * _argo0 = 0; |
56f5d962 | 2249 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2250 | |
2251 | self = self; | |
56f5d962 | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) |
70551f47 | 2253 | return NULL; |
2d091820 RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); |
70551f47 RD |
2258 | return NULL; |
2259 | } | |
2260 | } | |
ab9bc19b RD |
2261 | { |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2263 | _result = (int )wxIcon_GetHeight(_arg0); |
ab9bc19b RD |
2264 | |
2265 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2266 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2267 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2268 | return _resultobj; |
2269 | } | |
2270 | ||
56f5d962 RD |
2271 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) |
2272 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2273 | PyObject * _resultobj; |
56f5d962 | 2274 | int _result; |
70551f47 | 2275 | wxIcon * _arg0; |
2d091820 | 2276 | PyObject * _argo0 = 0; |
107e4716 | 2277 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2278 | |
2279 | self = self; | |
56f5d962 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) |
70551f47 | 2281 | return NULL; |
2d091820 RD |
2282 | if (_argo0) { |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2286 | return NULL; |
2287 | } | |
2288 | } | |
ab9bc19b RD |
2289 | { |
2290 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2291 | _result = (int )wxIcon_GetDepth(_arg0); |
ab9bc19b RD |
2292 | |
2293 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2294 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2295 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2296 | return _resultobj; |
2297 | } | |
2298 | ||
56f5d962 RD |
2299 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
2300 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2301 | PyObject * _resultobj; |
2302 | wxIcon * _arg0; | |
2303 | int _arg1; | |
2d091820 | 2304 | PyObject * _argo0 = 0; |
56f5d962 | 2305 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
2306 | |
2307 | self = self; | |
56f5d962 | 2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2309 | return NULL; |
2d091820 RD |
2310 | if (_argo0) { |
2311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); |
70551f47 RD |
2314 | return NULL; |
2315 | } | |
2316 | } | |
ab9bc19b RD |
2317 | { |
2318 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2319 | wxIcon_SetWidth(_arg0,_arg1); |
ab9bc19b RD |
2320 | |
2321 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2322 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2323 | } Py_INCREF(Py_None); |
70551f47 RD |
2324 | _resultobj = Py_None; |
2325 | return _resultobj; | |
2326 | } | |
2327 | ||
2328 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
107e4716 | 2329 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2330 | PyObject * _resultobj; |
2331 | wxIcon * _arg0; | |
2332 | int _arg1; | |
2d091820 | 2333 | PyObject * _argo0 = 0; |
56f5d962 | 2334 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
2335 | |
2336 | self = self; | |
107e4716 | 2337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2338 | return NULL; |
2d091820 RD |
2339 | if (_argo0) { |
2340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); |
2343 | return NULL; | |
2344 | } | |
2345 | } | |
ab9bc19b RD |
2346 | { |
2347 | wxPy_BEGIN_ALLOW_THREADS; | |
2348 | wxIcon_SetHeight(_arg0,_arg1); | |
2349 | ||
2350 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2351 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2352 | } Py_INCREF(Py_None); |
70551f47 RD |
2353 | _resultobj = Py_None; |
2354 | return _resultobj; | |
2355 | } | |
2356 | ||
56f5d962 RD |
2357 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
2358 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2359 | PyObject * _resultobj; |
2360 | wxIcon * _arg0; | |
2361 | int _arg1; | |
2d091820 | 2362 | PyObject * _argo0 = 0; |
56f5d962 | 2363 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
2364 | |
2365 | self = self; | |
56f5d962 | 2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2367 | return NULL; |
2d091820 RD |
2368 | if (_argo0) { |
2369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2372 | return NULL; |
2373 | } | |
2374 | } | |
ab9bc19b RD |
2375 | { |
2376 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2377 | wxIcon_SetDepth(_arg0,_arg1); |
ab9bc19b RD |
2378 | |
2379 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2380 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2381 | } Py_INCREF(Py_None); |
70551f47 RD |
2382 | _resultobj = Py_None; |
2383 | return _resultobj; | |
2384 | } | |
2385 | ||
fbcadfca RD |
2386 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2387 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2388 | PyObject * _resultobj; | |
2389 | wxIcon * _arg0; | |
2390 | wxBitmap * _arg1; | |
2391 | PyObject * _argo0 = 0; | |
2392 | PyObject * _argo1 = 0; | |
2393 | char *_kwnames[] = { "self","bmp", NULL }; | |
2394 | ||
2395 | self = self; | |
2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2397 | return NULL; | |
2398 | if (_argo0) { | |
2399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2402 | return NULL; | |
2403 | } | |
2404 | } | |
2405 | if (_argo1) { | |
2406 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2409 | return NULL; | |
2410 | } | |
2411 | } | |
2412 | { | |
2413 | wxPy_BEGIN_ALLOW_THREADS; | |
2414 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2415 | ||
2416 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2417 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2418 | } Py_INCREF(Py_None); |
2419 | _resultobj = Py_None; | |
2420 | return _resultobj; | |
2421 | } | |
2422 | ||
9df61a29 RD |
2423 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2424 | wxCursor *src; | |
2425 | wxGDIObject *dest; | |
2426 | src = (wxCursor *) ptr; | |
2427 | dest = (wxGDIObject *) src; | |
2428 | return (void *) dest; | |
2429 | } | |
2430 | ||
2431 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2432 | wxCursor *src; | |
2433 | wxObject *dest; | |
2434 | src = (wxCursor *) ptr; | |
2435 | dest = (wxObject *) src; | |
2436 | return (void *) dest; | |
2437 | } | |
2438 | ||
70551f47 | 2439 | #define delete_wxCursor(_swigobj) (delete _swigobj) |
107e4716 | 2440 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2441 | PyObject * _resultobj; |
2442 | wxCursor * _arg0; | |
2d091820 | 2443 | PyObject * _argo0 = 0; |
107e4716 | 2444 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2445 | |
2446 | self = self; | |
107e4716 | 2447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) |
70551f47 | 2448 | return NULL; |
2d091820 RD |
2449 | if (_argo0) { |
2450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); |
2453 | return NULL; | |
2454 | } | |
2455 | } | |
ab9bc19b RD |
2456 | { |
2457 | wxPy_BEGIN_ALLOW_THREADS; | |
2458 | delete_wxCursor(_arg0); | |
2459 | ||
2460 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2461 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2462 | } Py_INCREF(Py_None); |
70551f47 RD |
2463 | _resultobj = Py_None; |
2464 | return _resultobj; | |
2465 | } | |
2466 | ||
2467 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 2468 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2469 | PyObject * _resultobj; |
2470 | bool _result; | |
2471 | wxCursor * _arg0; | |
2d091820 | 2472 | PyObject * _argo0 = 0; |
107e4716 | 2473 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2474 | |
2475 | self = self; | |
107e4716 | 2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) |
70551f47 | 2477 | return NULL; |
2d091820 RD |
2478 | if (_argo0) { |
2479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); |
2482 | return NULL; | |
2483 | } | |
2484 | } | |
ab9bc19b RD |
2485 | { |
2486 | wxPy_BEGIN_ALLOW_THREADS; | |
2487 | _result = (bool )wxCursor_Ok(_arg0); | |
2488 | ||
2489 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2490 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2491 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2492 | return _resultobj; |
2493 | } | |
2494 | ||
059a841c RD |
2495 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
2496 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2497 | PyObject * _resultobj; |
059a841c RD |
2498 | bool _result; |
2499 | wxNativeFontInfo * _arg0; | |
2500 | wxString * _arg1; | |
2501 | PyObject * _argo0 = 0; | |
2502 | PyObject * _obj1 = 0; | |
2503 | char *_kwnames[] = { "self","s", NULL }; | |
70551f47 RD |
2504 | |
2505 | self = self; | |
059a841c RD |
2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) |
2507 | return NULL; | |
2508 | if (_argo0) { | |
2509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
2512 | return NULL; | |
2513 | } | |
2514 | } | |
2515 | { | |
2516 | #if PYTHON_API_VERSION >= 1009 | |
2517 | char* tmpPtr; int tmpSize; | |
2518 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2519 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2520 | return NULL; | |
2521 | } | |
2522 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2523 | return NULL; | |
2524 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2525 | #else | |
2526 | if (!PyString_Check(_obj1)) { | |
2527 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
70551f47 | 2528 | return NULL; |
059a841c RD |
2529 | } |
2530 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2531 | #endif | |
2532 | } | |
ab9bc19b RD |
2533 | { |
2534 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 2535 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
ab9bc19b RD |
2536 | |
2537 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2538 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2539 | } _resultobj = Py_BuildValue("i",_result); |
2540 | { | |
2541 | if (_obj1) | |
2542 | delete _arg1; | |
2543 | } | |
70551f47 RD |
2544 | return _resultobj; |
2545 | } | |
2546 | ||
059a841c RD |
2547 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
2548 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5e40f9dd | 2549 | PyObject * _resultobj; |
059a841c RD |
2550 | wxString * _result; |
2551 | wxNativeFontInfo * _arg0; | |
5e40f9dd RD |
2552 | PyObject * _argo0 = 0; |
2553 | char *_kwnames[] = { "self", NULL }; | |
2554 | ||
2555 | self = self; | |
059a841c | 2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) |
5e40f9dd RD |
2557 | return NULL; |
2558 | if (_argo0) { | |
2559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
5e40f9dd RD |
2562 | return NULL; |
2563 | } | |
2564 | } | |
2565 | { | |
2566 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 2567 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
5e40f9dd RD |
2568 | |
2569 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2570 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2571 | }{ |
2572 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2573 | } | |
2574 | { | |
2575 | delete _result; | |
2576 | } | |
5e40f9dd RD |
2577 | return _resultobj; |
2578 | } | |
2579 | ||
059a841c RD |
2580 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { |
2581 | return self->ToString(); | |
2582 | } | |
2583 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d29aba2f | 2584 | PyObject * _resultobj; |
059a841c RD |
2585 | wxString * _result; |
2586 | wxNativeFontInfo * _arg0; | |
d29aba2f RD |
2587 | PyObject * _argo0 = 0; |
2588 | char *_kwnames[] = { "self", NULL }; | |
2589 | ||
2590 | self = self; | |
059a841c | 2591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) |
d29aba2f RD |
2592 | return NULL; |
2593 | if (_argo0) { | |
2594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
d29aba2f RD |
2597 | return NULL; |
2598 | } | |
2599 | } | |
2600 | { | |
2601 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 2602 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
d29aba2f RD |
2603 | |
2604 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2605 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2606 | }{ |
2607 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2608 | } | |
2609 | { | |
2610 | delete _result; | |
2611 | } | |
d29aba2f RD |
2612 | return _resultobj; |
2613 | } | |
2614 | ||
059a841c RD |
2615 | #define new_wxFontMapper() (new wxFontMapper()) |
2616 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2617 | PyObject * _resultobj; |
059a841c RD |
2618 | wxFontMapper * _result; |
2619 | char *_kwnames[] = { NULL }; | |
2620 | char _ptemp[128]; | |
2621 | ||
2622 | self = self; | |
2623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) | |
2624 | return NULL; | |
2625 | { | |
2626 | wxPy_BEGIN_ALLOW_THREADS; | |
2627 | _result = (wxFontMapper *)new_wxFontMapper(); | |
2628 | ||
2629 | wxPy_END_ALLOW_THREADS; | |
2630 | if (PyErr_Occurred()) return NULL; | |
2631 | } if (_result) { | |
2632 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); | |
2633 | _resultobj = Py_BuildValue("s",_ptemp); | |
2634 | } else { | |
2635 | Py_INCREF(Py_None); | |
2636 | _resultobj = Py_None; | |
2637 | } | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
2641 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) | |
2642 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2643 | PyObject * _resultobj; | |
2644 | wxFontMapper * _arg0; | |
2d091820 | 2645 | PyObject * _argo0 = 0; |
107e4716 | 2646 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2647 | |
2648 | self = self; | |
059a841c | 2649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
70551f47 | 2650 | return NULL; |
2d091820 RD |
2651 | if (_argo0) { |
2652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
2654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
70551f47 RD |
2655 | return NULL; |
2656 | } | |
2657 | } | |
70551f47 | 2658 | { |
ab9bc19b | 2659 | wxPy_BEGIN_ALLOW_THREADS; |
059a841c | 2660 | delete_wxFontMapper(_arg0); |
ab9bc19b RD |
2661 | |
2662 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2663 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2664 | } Py_INCREF(Py_None); |
2665 | _resultobj = Py_None; | |
70551f47 RD |
2666 | return _resultobj; |
2667 | } | |
2668 | ||
059a841c RD |
2669 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
2670 | wxFontEncoding alt_enc; | |
2671 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
2672 | return PyInt_FromLong(alt_enc); | |
2673 | else { | |
2674 | Py_INCREF(Py_None); | |
2675 | return Py_None; | |
2676 | } | |
2677 | } | |
2678 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2679 | PyObject * _resultobj; |
059a841c RD |
2680 | PyObject * _result; |
2681 | wxFontMapper * _arg0; | |
2682 | wxFontEncoding _arg1; | |
2683 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2684 | bool _arg3 = (bool ) TRUE; | |
2d091820 | 2685 | PyObject * _argo0 = 0; |
059a841c RD |
2686 | PyObject * _obj2 = 0; |
2687 | int tempbool3 = (int) TRUE; | |
2688 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
70551f47 RD |
2689 | |
2690 | self = self; | |
059a841c | 2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
70551f47 | 2692 | return NULL; |
2d091820 RD |
2693 | if (_argo0) { |
2694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
2696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
70551f47 RD |
2697 | return NULL; |
2698 | } | |
2699 | } | |
059a841c RD |
2700 | if (_obj2) |
2701 | { | |
2702 | #if PYTHON_API_VERSION >= 1009 | |
2703 | char* tmpPtr; int tmpSize; | |
2704 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2705 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2706 | return NULL; | |
2707 | } | |
2708 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2709 | return NULL; | |
2710 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2711 | #else | |
2712 | if (!PyString_Check(_obj2)) { | |
2713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2714 | return NULL; | |
2715 | } | |
2716 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2717 | #endif | |
2718 | } | |
2719 | _arg3 = (bool ) tempbool3; | |
ab9bc19b RD |
2720 | { |
2721 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 2722 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
ab9bc19b RD |
2723 | |
2724 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2725 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2726 | }{ |
2727 | _resultobj = _result; | |
2728 | } | |
2729 | { | |
2730 | if (_obj2) | |
2731 | delete _arg2; | |
2732 | } | |
70551f47 RD |
2733 | return _resultobj; |
2734 | } | |
2735 | ||
059a841c RD |
2736 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
2737 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2738 | PyObject * _resultobj; |
059a841c RD |
2739 | bool _result; |
2740 | wxFontMapper * _arg0; | |
2741 | wxFontEncoding _arg1; | |
2742 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2d091820 | 2743 | PyObject * _argo0 = 0; |
059a841c RD |
2744 | PyObject * _obj2 = 0; |
2745 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
70551f47 RD |
2746 | |
2747 | self = self; | |
059a841c | 2748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 2749 | return NULL; |
2d091820 RD |
2750 | if (_argo0) { |
2751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
2753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
70551f47 RD |
2754 | return NULL; |
2755 | } | |
2756 | } | |
059a841c RD |
2757 | if (_obj2) |
2758 | { | |
2759 | #if PYTHON_API_VERSION >= 1009 | |
2760 | char* tmpPtr; int tmpSize; | |
2761 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2762 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2763 | return NULL; | |
2764 | } | |
2765 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2766 | return NULL; | |
2767 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2768 | #else | |
2769 | if (!PyString_Check(_obj2)) { | |
2770 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2771 | return NULL; | |
2772 | } | |
2773 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2774 | #endif | |
2775 | } | |
ab9bc19b RD |
2776 | { |
2777 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 2778 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
ab9bc19b RD |
2779 | |
2780 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2781 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2782 | } _resultobj = Py_BuildValue("i",_result); |
059a841c RD |
2783 | { |
2784 | if (_obj2) | |
2785 | delete _arg2; | |
2786 | } | |
70551f47 RD |
2787 | return _resultobj; |
2788 | } | |
2789 | ||
059a841c RD |
2790 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
2791 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2792 | PyObject * _resultobj; |
059a841c RD |
2793 | wxFontEncoding _result; |
2794 | wxFontMapper * _arg0; | |
2795 | wxString * _arg1; | |
2796 | bool _arg2 = (bool ) TRUE; | |
2d091820 | 2797 | PyObject * _argo0 = 0; |
059a841c RD |
2798 | PyObject * _obj1 = 0; |
2799 | int tempbool2 = (int) TRUE; | |
2800 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
70551f47 RD |
2801 | |
2802 | self = self; | |
059a841c | 2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 2804 | return NULL; |
2d091820 RD |
2805 | if (_argo0) { |
2806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
2808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
70551f47 RD |
2809 | return NULL; |
2810 | } | |
2811 | } | |
ab9bc19b | 2812 | { |
059a841c RD |
2813 | #if PYTHON_API_VERSION >= 1009 |
2814 | char* tmpPtr; int tmpSize; | |
2815 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2816 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2817 | return NULL; | |
2818 | } | |
2819 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2820 | return NULL; | |
2821 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2822 | #else | |
2823 | if (!PyString_Check(_obj1)) { | |
2824 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2825 | return NULL; | |
2826 | } | |
2827 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2828 | #endif | |
2829 | } | |
2830 | _arg2 = (bool ) tempbool2; | |
2831 | { | |
2832 | wxPy_BEGIN_ALLOW_THREADS; | |
2833 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); | |
2834 | ||
2835 | wxPy_END_ALLOW_THREADS; | |
2836 | if (PyErr_Occurred()) return NULL; | |
2837 | } _resultobj = Py_BuildValue("i",_result); | |
2838 | { | |
2839 | if (_obj1) | |
2840 | delete _arg1; | |
2841 | } | |
2842 | return _resultobj; | |
2843 | } | |
2844 | ||
2845 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2846 | PyObject * _resultobj; | |
2847 | wxString * _result; | |
2848 | wxFontEncoding _arg0; | |
2849 | char *_kwnames[] = { "encoding", NULL }; | |
2850 | ||
2851 | self = self; | |
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
2853 | return NULL; | |
2854 | { | |
2855 | wxPy_BEGIN_ALLOW_THREADS; | |
2856 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); | |
2857 | ||
2858 | wxPy_END_ALLOW_THREADS; | |
2859 | if (PyErr_Occurred()) return NULL; | |
2860 | }{ | |
2861 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2862 | } | |
2863 | { | |
2864 | delete _result; | |
2865 | } | |
2866 | return _resultobj; | |
2867 | } | |
2868 | ||
2869 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2870 | PyObject * _resultobj; | |
2871 | wxString * _result; | |
2872 | wxFontEncoding _arg0; | |
2873 | char *_kwnames[] = { "encoding", NULL }; | |
2874 | ||
2875 | self = self; | |
2876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
2877 | return NULL; | |
2878 | { | |
2879 | wxPy_BEGIN_ALLOW_THREADS; | |
2880 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); | |
2881 | ||
2882 | wxPy_END_ALLOW_THREADS; | |
2883 | if (PyErr_Occurred()) return NULL; | |
2884 | }{ | |
2885 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2886 | } | |
2887 | { | |
2888 | delete _result; | |
2889 | } | |
2890 | return _resultobj; | |
2891 | } | |
2892 | ||
2893 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
2894 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2895 | PyObject * _resultobj; | |
2896 | wxFontMapper * _arg0; | |
2897 | wxWindow * _arg1; | |
2898 | PyObject * _argo0 = 0; | |
2899 | PyObject * _argo1 = 0; | |
2900 | char *_kwnames[] = { "self","parent", NULL }; | |
2901 | ||
2902 | self = self; | |
2903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
2904 | return NULL; | |
2905 | if (_argo0) { | |
2906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
2909 | return NULL; | |
2910 | } | |
2911 | } | |
2912 | if (_argo1) { | |
2913 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2914 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
2916 | return NULL; | |
2917 | } | |
2918 | } | |
2919 | { | |
2920 | wxPy_BEGIN_ALLOW_THREADS; | |
2921 | wxFontMapper_SetDialogParent(_arg0,_arg1); | |
2922 | ||
2923 | wxPy_END_ALLOW_THREADS; | |
2924 | if (PyErr_Occurred()) return NULL; | |
2925 | } Py_INCREF(Py_None); | |
2926 | _resultobj = Py_None; | |
2927 | return _resultobj; | |
2928 | } | |
2929 | ||
2930 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
2931 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2932 | PyObject * _resultobj; | |
2933 | wxFontMapper * _arg0; | |
2934 | wxString * _arg1; | |
2935 | PyObject * _argo0 = 0; | |
2936 | PyObject * _obj1 = 0; | |
2937 | char *_kwnames[] = { "self","title", NULL }; | |
2938 | ||
2939 | self = self; | |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
2941 | return NULL; | |
2942 | if (_argo0) { | |
2943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
2946 | return NULL; | |
2947 | } | |
2948 | } | |
2949 | { | |
2950 | #if PYTHON_API_VERSION >= 1009 | |
2951 | char* tmpPtr; int tmpSize; | |
2952 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2953 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2954 | return NULL; | |
2955 | } | |
2956 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2957 | return NULL; | |
2958 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2959 | #else | |
2960 | if (!PyString_Check(_obj1)) { | |
2961 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2962 | return NULL; | |
2963 | } | |
2964 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2965 | #endif | |
2966 | } | |
2967 | { | |
2968 | wxPy_BEGIN_ALLOW_THREADS; | |
2969 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); | |
2970 | ||
2971 | wxPy_END_ALLOW_THREADS; | |
2972 | if (PyErr_Occurred()) return NULL; | |
2973 | } Py_INCREF(Py_None); | |
2974 | _resultobj = Py_None; | |
2975 | { | |
2976 | if (_obj1) | |
2977 | delete _arg1; | |
2978 | } | |
2979 | return _resultobj; | |
2980 | } | |
2981 | ||
2982 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
2983 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject * _resultobj; | |
2985 | wxFontMapper * _arg0; | |
2986 | wxConfigBase * _arg1; | |
2987 | PyObject * _argo0 = 0; | |
2988 | PyObject * _argo1 = 0; | |
2989 | char *_kwnames[] = { "self","config", NULL }; | |
2990 | ||
2991 | self = self; | |
2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
2993 | return NULL; | |
2994 | if (_argo0) { | |
2995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
2997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
2998 | return NULL; | |
2999 | } | |
3000 | } | |
3001 | if (_argo1) { | |
3002 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3003 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3005 | return NULL; | |
3006 | } | |
3007 | } | |
3008 | { | |
3009 | wxPy_BEGIN_ALLOW_THREADS; | |
3010 | wxFontMapper_SetConfig(_arg0,_arg1); | |
3011 | ||
3012 | wxPy_END_ALLOW_THREADS; | |
3013 | if (PyErr_Occurred()) return NULL; | |
3014 | } Py_INCREF(Py_None); | |
3015 | _resultobj = Py_None; | |
3016 | return _resultobj; | |
3017 | } | |
3018 | ||
3019 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3020 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3021 | PyObject * _resultobj; | |
3022 | wxFontMapper * _arg0; | |
3023 | wxString * _arg1; | |
3024 | PyObject * _argo0 = 0; | |
3025 | PyObject * _obj1 = 0; | |
3026 | char *_kwnames[] = { "self","prefix", NULL }; | |
3027 | ||
3028 | self = self; | |
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3030 | return NULL; | |
3031 | if (_argo0) { | |
3032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3035 | return NULL; | |
3036 | } | |
3037 | } | |
3038 | { | |
3039 | #if PYTHON_API_VERSION >= 1009 | |
3040 | char* tmpPtr; int tmpSize; | |
3041 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3042 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3043 | return NULL; | |
3044 | } | |
3045 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3046 | return NULL; | |
3047 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3048 | #else | |
3049 | if (!PyString_Check(_obj1)) { | |
3050 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3051 | return NULL; | |
3052 | } | |
3053 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3054 | #endif | |
3055 | } | |
3056 | { | |
3057 | wxPy_BEGIN_ALLOW_THREADS; | |
3058 | wxFontMapper_SetConfigPath(_arg0,*_arg1); | |
3059 | ||
3060 | wxPy_END_ALLOW_THREADS; | |
3061 | if (PyErr_Occurred()) return NULL; | |
3062 | } Py_INCREF(Py_None); | |
3063 | _resultobj = Py_None; | |
3064 | { | |
3065 | if (_obj1) | |
3066 | delete _arg1; | |
3067 | } | |
3068 | return _resultobj; | |
3069 | } | |
3070 | ||
3071 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject * _resultobj; | |
3073 | wxChar * _result; | |
3074 | char *_kwnames[] = { NULL }; | |
3075 | ||
3076 | self = self; | |
3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3078 | return NULL; | |
3079 | { | |
3080 | wxPy_BEGIN_ALLOW_THREADS; | |
3081 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); | |
3082 | ||
3083 | wxPy_END_ALLOW_THREADS; | |
3084 | if (PyErr_Occurred()) return NULL; | |
3085 | } _resultobj = Py_BuildValue("s", _result); | |
3086 | return _resultobj; | |
3087 | } | |
3088 | ||
3089 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3090 | wxFont *src; | |
3091 | wxGDIObject *dest; | |
3092 | src = (wxFont *) ptr; | |
3093 | dest = (wxGDIObject *) src; | |
3094 | return (void *) dest; | |
3095 | } | |
3096 | ||
3097 | static void *SwigwxFontTowxObject(void *ptr) { | |
3098 | wxFont *src; | |
3099 | wxObject *dest; | |
3100 | src = (wxFont *) ptr; | |
3101 | dest = (wxObject *) src; | |
3102 | return (void *) dest; | |
3103 | } | |
3104 | ||
3105 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3106 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3107 | PyObject * _resultobj; | |
3108 | wxFont * _result; | |
3109 | int _arg0; | |
3110 | int _arg1; | |
3111 | int _arg2; | |
3112 | int _arg3; | |
3113 | int _arg4 = (int ) FALSE; | |
3114 | char * _arg5 = (char *) ""; | |
3115 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3116 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3117 | char _ptemp[128]; | |
3118 | ||
3119 | self = self; | |
3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3121 | return NULL; | |
3122 | { | |
3123 | wxPy_BEGIN_ALLOW_THREADS; | |
3124 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3125 | ||
3126 | wxPy_END_ALLOW_THREADS; | |
3127 | if (PyErr_Occurred()) return NULL; | |
3128 | } if (_result) { | |
3129 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3130 | _resultobj = Py_BuildValue("s",_ptemp); | |
3131 | } else { | |
3132 | Py_INCREF(Py_None); | |
3133 | _resultobj = Py_None; | |
3134 | } | |
3135 | return _resultobj; | |
3136 | } | |
3137 | ||
3138 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3139 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3140 | PyObject * _resultobj; | |
3141 | wxFont * _result; | |
3142 | wxNativeFontInfo * _arg0; | |
3143 | PyObject * _argo0 = 0; | |
3144 | char *_kwnames[] = { "info", NULL }; | |
3145 | char _ptemp[128]; | |
3146 | ||
3147 | self = self; | |
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3149 | return NULL; | |
3150 | if (_argo0) { | |
3151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3154 | return NULL; | |
3155 | } | |
3156 | } | |
3157 | { | |
3158 | wxPy_BEGIN_ALLOW_THREADS; | |
3159 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); | |
3160 | ||
3161 | wxPy_END_ALLOW_THREADS; | |
3162 | if (PyErr_Occurred()) return NULL; | |
3163 | } if (_result) { | |
3164 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3165 | _resultobj = Py_BuildValue("s",_ptemp); | |
3166 | } else { | |
3167 | Py_INCREF(Py_None); | |
3168 | _resultobj = Py_None; | |
3169 | } | |
3170 | return _resultobj; | |
3171 | } | |
3172 | ||
3173 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3174 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3175 | PyObject * _resultobj; | |
3176 | wxFont * _arg0; | |
3177 | PyObject * _argo0 = 0; | |
3178 | char *_kwnames[] = { "self", NULL }; | |
3179 | ||
3180 | self = self; | |
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3182 | return NULL; | |
3183 | if (_argo0) { | |
3184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3187 | return NULL; | |
3188 | } | |
3189 | } | |
3190 | { | |
3191 | wxPy_BEGIN_ALLOW_THREADS; | |
3192 | delete_wxFont(_arg0); | |
3193 | ||
3194 | wxPy_END_ALLOW_THREADS; | |
3195 | if (PyErr_Occurred()) return NULL; | |
3196 | } Py_INCREF(Py_None); | |
3197 | _resultobj = Py_None; | |
3198 | return _resultobj; | |
3199 | } | |
3200 | ||
3201 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3202 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3203 | PyObject * _resultobj; | |
3204 | bool _result; | |
3205 | wxFont * _arg0; | |
3206 | PyObject * _argo0 = 0; | |
3207 | char *_kwnames[] = { "self", NULL }; | |
3208 | ||
3209 | self = self; | |
3210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3211 | return NULL; | |
3212 | if (_argo0) { | |
3213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3216 | return NULL; | |
3217 | } | |
3218 | } | |
3219 | { | |
3220 | wxPy_BEGIN_ALLOW_THREADS; | |
3221 | _result = (bool )wxFont_Ok(_arg0); | |
3222 | ||
3223 | wxPy_END_ALLOW_THREADS; | |
3224 | if (PyErr_Occurred()) return NULL; | |
3225 | } _resultobj = Py_BuildValue("i",_result); | |
3226 | return _resultobj; | |
3227 | } | |
3228 | ||
3229 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3230 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3231 | PyObject * _resultobj; | |
3232 | int _result; | |
3233 | wxFont * _arg0; | |
3234 | PyObject * _argo0 = 0; | |
3235 | char *_kwnames[] = { "self", NULL }; | |
3236 | ||
3237 | self = self; | |
3238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3239 | return NULL; | |
3240 | if (_argo0) { | |
3241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
3244 | return NULL; | |
3245 | } | |
3246 | } | |
3247 | { | |
3248 | wxPy_BEGIN_ALLOW_THREADS; | |
3249 | _result = (int )wxFont_GetPointSize(_arg0); | |
3250 | ||
3251 | wxPy_END_ALLOW_THREADS; | |
3252 | if (PyErr_Occurred()) return NULL; | |
3253 | } _resultobj = Py_BuildValue("i",_result); | |
3254 | return _resultobj; | |
3255 | } | |
3256 | ||
3257 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3258 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3259 | PyObject * _resultobj; | |
3260 | int _result; | |
3261 | wxFont * _arg0; | |
3262 | PyObject * _argo0 = 0; | |
3263 | char *_kwnames[] = { "self", NULL }; | |
3264 | ||
3265 | self = self; | |
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
3267 | return NULL; | |
3268 | if (_argo0) { | |
3269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
3272 | return NULL; | |
3273 | } | |
3274 | } | |
3275 | { | |
3276 | wxPy_BEGIN_ALLOW_THREADS; | |
3277 | _result = (int )wxFont_GetFamily(_arg0); | |
3278 | ||
3279 | wxPy_END_ALLOW_THREADS; | |
3280 | if (PyErr_Occurred()) return NULL; | |
3281 | } _resultobj = Py_BuildValue("i",_result); | |
3282 | return _resultobj; | |
3283 | } | |
3284 | ||
3285 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3286 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject * _resultobj; | |
3288 | int _result; | |
3289 | wxFont * _arg0; | |
3290 | PyObject * _argo0 = 0; | |
3291 | char *_kwnames[] = { "self", NULL }; | |
3292 | ||
3293 | self = self; | |
3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
3295 | return NULL; | |
3296 | if (_argo0) { | |
3297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
3300 | return NULL; | |
3301 | } | |
3302 | } | |
3303 | { | |
3304 | wxPy_BEGIN_ALLOW_THREADS; | |
3305 | _result = (int )wxFont_GetStyle(_arg0); | |
3306 | ||
3307 | wxPy_END_ALLOW_THREADS; | |
3308 | if (PyErr_Occurred()) return NULL; | |
3309 | } _resultobj = Py_BuildValue("i",_result); | |
3310 | return _resultobj; | |
3311 | } | |
3312 | ||
3313 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3314 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3315 | PyObject * _resultobj; | |
3316 | int _result; | |
3317 | wxFont * _arg0; | |
3318 | PyObject * _argo0 = 0; | |
3319 | char *_kwnames[] = { "self", NULL }; | |
3320 | ||
3321 | self = self; | |
3322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
3323 | return NULL; | |
3324 | if (_argo0) { | |
3325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
3328 | return NULL; | |
3329 | } | |
3330 | } | |
3331 | { | |
3332 | wxPy_BEGIN_ALLOW_THREADS; | |
3333 | _result = (int )wxFont_GetWeight(_arg0); | |
3334 | ||
3335 | wxPy_END_ALLOW_THREADS; | |
3336 | if (PyErr_Occurred()) return NULL; | |
3337 | } _resultobj = Py_BuildValue("i",_result); | |
3338 | return _resultobj; | |
3339 | } | |
3340 | ||
3341 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3342 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3343 | PyObject * _resultobj; | |
3344 | bool _result; | |
3345 | wxFont * _arg0; | |
3346 | PyObject * _argo0 = 0; | |
3347 | char *_kwnames[] = { "self", NULL }; | |
3348 | ||
3349 | self = self; | |
3350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
3351 | return NULL; | |
3352 | if (_argo0) { | |
3353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
3356 | return NULL; | |
3357 | } | |
3358 | } | |
3359 | { | |
3360 | wxPy_BEGIN_ALLOW_THREADS; | |
3361 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
3362 | ||
3363 | wxPy_END_ALLOW_THREADS; | |
3364 | if (PyErr_Occurred()) return NULL; | |
ab9bc19b | 3365 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3366 | return _resultobj; |
3367 | } | |
3368 | ||
059a841c RD |
3369 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
3370 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3371 | PyObject * _resultobj; | |
3372 | wxString * _result; | |
3373 | wxFont * _arg0; | |
3374 | PyObject * _argo0 = 0; | |
3375 | char *_kwnames[] = { "self", NULL }; | |
3376 | ||
3377 | self = self; | |
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
3379 | return NULL; | |
3380 | if (_argo0) { | |
3381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
3384 | return NULL; | |
3385 | } | |
3386 | } | |
3387 | { | |
3388 | wxPy_BEGIN_ALLOW_THREADS; | |
3389 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
3390 | ||
3391 | wxPy_END_ALLOW_THREADS; | |
3392 | if (PyErr_Occurred()) return NULL; | |
3393 | }{ | |
3394 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3395 | } | |
3396 | { | |
3397 | delete _result; | |
3398 | } | |
3399 | return _resultobj; | |
3400 | } | |
3401 | ||
3402 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3403 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3404 | PyObject * _resultobj; |
059a841c | 3405 | wxFontEncoding _result; |
70551f47 | 3406 | wxFont * _arg0; |
2d091820 | 3407 | PyObject * _argo0 = 0; |
107e4716 | 3408 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3409 | |
3410 | self = self; | |
059a841c | 3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) |
70551f47 | 3412 | return NULL; |
2d091820 RD |
3413 | if (_argo0) { |
3414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); |
70551f47 RD |
3417 | return NULL; |
3418 | } | |
3419 | } | |
ab9bc19b RD |
3420 | { |
3421 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3422 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
ab9bc19b RD |
3423 | |
3424 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3425 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3426 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3427 | return _resultobj; |
3428 | } | |
3429 | ||
059a841c RD |
3430 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
3431 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3432 | PyObject * _resultobj; |
059a841c | 3433 | wxNativeFontInfo * _result; |
70551f47 | 3434 | wxFont * _arg0; |
2d091820 | 3435 | PyObject * _argo0 = 0; |
107e4716 | 3436 | char *_kwnames[] = { "self", NULL }; |
059a841c | 3437 | char _ptemp[128]; |
70551f47 RD |
3438 | |
3439 | self = self; | |
059a841c | 3440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
70551f47 | 3441 | return NULL; |
2d091820 RD |
3442 | if (_argo0) { |
3443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
70551f47 RD |
3446 | return NULL; |
3447 | } | |
3448 | } | |
ab9bc19b RD |
3449 | { |
3450 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3451 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
ab9bc19b RD |
3452 | |
3453 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3454 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3455 | } if (_result) { |
3456 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3457 | _resultobj = Py_BuildValue("s",_ptemp); | |
3458 | } else { | |
3459 | Py_INCREF(Py_None); | |
3460 | _resultobj = Py_None; | |
3461 | } | |
70551f47 RD |
3462 | return _resultobj; |
3463 | } | |
3464 | ||
059a841c RD |
3465 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
3466 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
134d79dc | 3467 | PyObject * _resultobj; |
134d79dc | 3468 | wxFont * _arg0; |
059a841c | 3469 | int _arg1; |
134d79dc | 3470 | PyObject * _argo0 = 0; |
059a841c | 3471 | char *_kwnames[] = { "self","pointSize", NULL }; |
134d79dc RD |
3472 | |
3473 | self = self; | |
059a841c | 3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) |
134d79dc RD |
3475 | return NULL; |
3476 | if (_argo0) { | |
3477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); |
134d79dc RD |
3480 | return NULL; |
3481 | } | |
3482 | } | |
3483 | { | |
3484 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3485 | wxFont_SetPointSize(_arg0,_arg1); |
134d79dc RD |
3486 | |
3487 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3488 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3489 | } Py_INCREF(Py_None); |
3490 | _resultobj = Py_None; | |
134d79dc RD |
3491 | return _resultobj; |
3492 | } | |
3493 | ||
059a841c RD |
3494 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) |
3495 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3496 | PyObject * _resultobj; |
3497 | wxFont * _arg0; | |
059a841c | 3498 | int _arg1; |
2d091820 | 3499 | PyObject * _argo0 = 0; |
059a841c | 3500 | char *_kwnames[] = { "self","family", NULL }; |
d3b4d113 RR |
3501 | |
3502 | self = self; | |
059a841c | 3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3504 | return NULL; |
2d091820 RD |
3505 | if (_argo0) { |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
d3b4d113 RR |
3509 | return NULL; |
3510 | } | |
3511 | } | |
ab9bc19b RD |
3512 | { |
3513 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3514 | wxFont_SetFamily(_arg0,_arg1); |
ab9bc19b RD |
3515 | |
3516 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3517 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3518 | } Py_INCREF(Py_None); |
d3b4d113 | 3519 | _resultobj = Py_None; |
d3b4d113 RR |
3520 | return _resultobj; |
3521 | } | |
3522 | ||
059a841c RD |
3523 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
3524 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3525 | PyObject * _resultobj; |
3526 | wxFont * _arg0; | |
3527 | int _arg1; | |
2d091820 | 3528 | PyObject * _argo0 = 0; |
059a841c | 3529 | char *_kwnames[] = { "self","style", NULL }; |
d3b4d113 RR |
3530 | |
3531 | self = self; | |
059a841c | 3532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3533 | return NULL; |
2d091820 RD |
3534 | if (_argo0) { |
3535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
d3b4d113 RR |
3538 | return NULL; |
3539 | } | |
3540 | } | |
ab9bc19b RD |
3541 | { |
3542 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3543 | wxFont_SetStyle(_arg0,_arg1); |
ab9bc19b RD |
3544 | |
3545 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3546 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3547 | } Py_INCREF(Py_None); |
d3b4d113 RR |
3548 | _resultobj = Py_None; |
3549 | return _resultobj; | |
3550 | } | |
3551 | ||
059a841c RD |
3552 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
3553 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3554 | PyObject * _resultobj; |
3555 | wxFont * _arg0; | |
3556 | int _arg1; | |
2d091820 | 3557 | PyObject * _argo0 = 0; |
059a841c | 3558 | char *_kwnames[] = { "self","weight", NULL }; |
d3b4d113 RR |
3559 | |
3560 | self = self; | |
059a841c | 3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3562 | return NULL; |
2d091820 RD |
3563 | if (_argo0) { |
3564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
d3b4d113 RR |
3567 | return NULL; |
3568 | } | |
3569 | } | |
ab9bc19b RD |
3570 | { |
3571 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3572 | wxFont_SetWeight(_arg0,_arg1); |
ab9bc19b RD |
3573 | |
3574 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3575 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3576 | } Py_INCREF(Py_None); |
d3b4d113 RR |
3577 | _resultobj = Py_None; |
3578 | return _resultobj; | |
3579 | } | |
3580 | ||
059a841c RD |
3581 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
3582 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3583 | PyObject * _resultobj; |
3584 | wxFont * _arg0; | |
059a841c | 3585 | wxString * _arg1; |
2d091820 | 3586 | PyObject * _argo0 = 0; |
059a841c RD |
3587 | PyObject * _obj1 = 0; |
3588 | char *_kwnames[] = { "self","faceName", NULL }; | |
d3b4d113 RR |
3589 | |
3590 | self = self; | |
059a841c | 3591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) |
d3b4d113 | 3592 | return NULL; |
2d091820 RD |
3593 | if (_argo0) { |
3594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); |
d3b4d113 RR |
3597 | return NULL; |
3598 | } | |
3599 | } | |
059a841c RD |
3600 | { |
3601 | #if PYTHON_API_VERSION >= 1009 | |
3602 | char* tmpPtr; int tmpSize; | |
3603 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3604 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3605 | return NULL; | |
3606 | } | |
3607 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3608 | return NULL; | |
3609 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3610 | #else | |
3611 | if (!PyString_Check(_obj1)) { | |
3612 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3613 | return NULL; | |
3614 | } | |
3615 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3616 | #endif | |
3617 | } | |
ab9bc19b RD |
3618 | { |
3619 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3620 | wxFont_SetFaceName(_arg0,*_arg1); |
ab9bc19b RD |
3621 | |
3622 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3623 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3624 | } Py_INCREF(Py_None); |
d3b4d113 | 3625 | _resultobj = Py_None; |
059a841c RD |
3626 | { |
3627 | if (_obj1) | |
3628 | delete _arg1; | |
3629 | } | |
d3b4d113 RR |
3630 | return _resultobj; |
3631 | } | |
3632 | ||
3633 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
107e4716 | 3634 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
3635 | PyObject * _resultobj; |
3636 | wxFont * _arg0; | |
3637 | bool _arg1; | |
2d091820 | 3638 | PyObject * _argo0 = 0; |
d3b4d113 | 3639 | int tempbool1; |
107e4716 | 3640 | char *_kwnames[] = { "self","underlined", NULL }; |
d3b4d113 RR |
3641 | |
3642 | self = self; | |
107e4716 | 3643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
d3b4d113 | 3644 | return NULL; |
2d091820 RD |
3645 | if (_argo0) { |
3646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
3648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
3649 | return NULL; | |
3650 | } | |
3651 | } | |
3652 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
3653 | { |
3654 | wxPy_BEGIN_ALLOW_THREADS; | |
3655 | wxFont_SetUnderlined(_arg0,_arg1); | |
3656 | ||
3657 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3658 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3659 | } Py_INCREF(Py_None); |
d3b4d113 RR |
3660 | _resultobj = Py_None; |
3661 | return _resultobj; | |
3662 | } | |
3663 | ||
059a841c RD |
3664 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
3665 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3666 | PyObject * _resultobj; |
3667 | wxFont * _arg0; | |
059a841c | 3668 | wxFontEncoding _arg1; |
2d091820 | 3669 | PyObject * _argo0 = 0; |
059a841c | 3670 | char *_kwnames[] = { "self","encoding", NULL }; |
d3b4d113 RR |
3671 | |
3672 | self = self; | |
059a841c | 3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3674 | return NULL; |
2d091820 RD |
3675 | if (_argo0) { |
3676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
d3b4d113 RR |
3679 | return NULL; |
3680 | } | |
3681 | } | |
ab9bc19b RD |
3682 | { |
3683 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3684 | wxFont_SetEncoding(_arg0,_arg1); |
ab9bc19b RD |
3685 | |
3686 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3687 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3688 | } Py_INCREF(Py_None); |
d3b4d113 RR |
3689 | _resultobj = Py_None; |
3690 | return _resultobj; | |
3691 | } | |
3692 | ||
059a841c RD |
3693 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
3694 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
134d79dc RD |
3695 | PyObject * _resultobj; |
3696 | wxFont * _arg0; | |
059a841c | 3697 | wxNativeFontInfo * _arg1; |
134d79dc | 3698 | PyObject * _argo0 = 0; |
059a841c RD |
3699 | PyObject * _argo1 = 0; |
3700 | char *_kwnames[] = { "self","info", NULL }; | |
134d79dc RD |
3701 | |
3702 | self = self; | |
059a841c | 3703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
134d79dc RD |
3704 | return NULL; |
3705 | if (_argo0) { | |
3706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c RD |
3708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
3709 | return NULL; | |
3710 | } | |
3711 | } | |
3712 | if (_argo1) { | |
3713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
3715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
134d79dc RD |
3716 | return NULL; |
3717 | } | |
3718 | } | |
3719 | { | |
3720 | wxPy_BEGIN_ALLOW_THREADS; | |
059a841c | 3721 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
134d79dc RD |
3722 | |
3723 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3724 | if (PyErr_Occurred()) return NULL; |
134d79dc RD |
3725 | } Py_INCREF(Py_None); |
3726 | _resultobj = Py_None; | |
3727 | return _resultobj; | |
3728 | } | |
3729 | ||
3730 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
3731 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3732 | PyObject * _resultobj; | |
3733 | wxString * _result; | |
3734 | wxFont * _arg0; | |
3735 | PyObject * _argo0 = 0; | |
3736 | char *_kwnames[] = { "self", NULL }; | |
3737 | ||
3738 | self = self; | |
3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
3740 | return NULL; | |
3741 | if (_argo0) { | |
3742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
3745 | return NULL; | |
3746 | } | |
3747 | } | |
3748 | { | |
3749 | wxPy_BEGIN_ALLOW_THREADS; | |
3750 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
3751 | ||
3752 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3753 | if (PyErr_Occurred()) return NULL; |
134d79dc | 3754 | }{ |
e02c03a4 | 3755 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
3756 | } |
3757 | { | |
3758 | delete _result; | |
3759 | } | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
3763 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
3764 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3765 | PyObject * _resultobj; | |
3766 | wxString * _result; | |
3767 | wxFont * _arg0; | |
3768 | PyObject * _argo0 = 0; | |
3769 | char *_kwnames[] = { "self", NULL }; | |
3770 | ||
3771 | self = self; | |
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
3773 | return NULL; | |
3774 | if (_argo0) { | |
3775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
3778 | return NULL; | |
3779 | } | |
3780 | } | |
3781 | { | |
3782 | wxPy_BEGIN_ALLOW_THREADS; | |
3783 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
3784 | ||
3785 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3786 | if (PyErr_Occurred()) return NULL; |
134d79dc | 3787 | }{ |
e02c03a4 | 3788 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
3789 | } |
3790 | { | |
3791 | delete _result; | |
3792 | } | |
3793 | return _resultobj; | |
3794 | } | |
3795 | ||
3796 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
3797 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3798 | PyObject * _resultobj; | |
3799 | wxString * _result; | |
3800 | wxFont * _arg0; | |
3801 | PyObject * _argo0 = 0; | |
3802 | char *_kwnames[] = { "self", NULL }; | |
3803 | ||
3804 | self = self; | |
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
3806 | return NULL; | |
3807 | if (_argo0) { | |
3808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
3811 | return NULL; | |
3812 | } | |
3813 | } | |
3814 | { | |
3815 | wxPy_BEGIN_ALLOW_THREADS; | |
3816 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
3817 | ||
3818 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3819 | if (PyErr_Occurred()) return NULL; |
134d79dc | 3820 | }{ |
e02c03a4 | 3821 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
3822 | } |
3823 | { | |
3824 | delete _result; | |
3825 | } | |
3826 | return _resultobj; | |
3827 | } | |
3828 | ||
059a841c RD |
3829 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
3830 | PyObject * _resultobj; | |
3831 | wxFontEncoding _result; | |
3832 | char *_kwnames[] = { NULL }; | |
3833 | ||
3834 | self = self; | |
3835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
3836 | return NULL; | |
3837 | { | |
3838 | wxPy_BEGIN_ALLOW_THREADS; | |
3839 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); | |
3840 | ||
3841 | wxPy_END_ALLOW_THREADS; | |
3842 | if (PyErr_Occurred()) return NULL; | |
3843 | } _resultobj = Py_BuildValue("i",_result); | |
3844 | return _resultobj; | |
3845 | } | |
3846 | ||
3847 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3848 | PyObject * _resultobj; | |
3849 | wxFontEncoding _arg0; | |
3850 | char *_kwnames[] = { "encoding", NULL }; | |
3851 | ||
3852 | self = self; | |
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
3854 | return NULL; | |
3855 | { | |
3856 | wxPy_BEGIN_ALLOW_THREADS; | |
3857 | wxFont::SetDefaultEncoding(_arg0); | |
3858 | ||
3859 | wxPy_END_ALLOW_THREADS; | |
3860 | if (PyErr_Occurred()) return NULL; | |
3861 | } Py_INCREF(Py_None); | |
3862 | _resultobj = Py_None; | |
3863 | return _resultobj; | |
3864 | } | |
3865 | ||
9df61a29 RD |
3866 | static void *SwigwxFontListTowxObject(void *ptr) { |
3867 | wxFontList *src; | |
3868 | wxObject *dest; | |
3869 | src = (wxFontList *) ptr; | |
3870 | dest = (wxObject *) src; | |
3871 | return (void *) dest; | |
3872 | } | |
3873 | ||
5e40f9dd RD |
3874 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
3875 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3876 | PyObject * _resultobj; | |
3877 | wxFontList * _arg0; | |
3878 | wxFont * _arg1; | |
3879 | PyObject * _argo0 = 0; | |
3880 | PyObject * _argo1 = 0; | |
3881 | char *_kwnames[] = { "self","font", NULL }; | |
3882 | ||
3883 | self = self; | |
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
3885 | return NULL; | |
3886 | if (_argo0) { | |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
3893 | if (_argo1) { | |
3894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
3897 | return NULL; | |
3898 | } | |
3899 | } | |
3900 | { | |
3901 | wxPy_BEGIN_ALLOW_THREADS; | |
3902 | wxFontList_AddFont(_arg0,_arg1); | |
3903 | ||
3904 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3905 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3906 | } Py_INCREF(Py_None); |
3907 | _resultobj = Py_None; | |
3908 | return _resultobj; | |
3909 | } | |
3910 | ||
3911 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3912 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3913 | PyObject * _resultobj; | |
3914 | wxFont * _result; | |
3915 | wxFontList * _arg0; | |
3916 | int _arg1; | |
3917 | int _arg2; | |
3918 | int _arg3; | |
3919 | int _arg4; | |
3920 | bool _arg5 = (bool ) FALSE; | |
3921 | char * _arg6 = (char *) NULL; | |
3922 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3923 | PyObject * _argo0 = 0; | |
3924 | int tempbool5 = (int) FALSE; | |
3925 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
3926 | char _ptemp[128]; | |
3927 | ||
3928 | self = self; | |
3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
3930 | return NULL; | |
3931 | if (_argo0) { | |
3932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
3935 | return NULL; | |
3936 | } | |
3937 | } | |
3938 | _arg5 = (bool ) tempbool5; | |
3939 | { | |
3940 | wxPy_BEGIN_ALLOW_THREADS; | |
3941 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
3942 | ||
3943 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3944 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3945 | } if (_result) { |
3946 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3947 | _resultobj = Py_BuildValue("s",_ptemp); | |
3948 | } else { | |
3949 | Py_INCREF(Py_None); | |
3950 | _resultobj = Py_None; | |
3951 | } | |
3952 | return _resultobj; | |
3953 | } | |
3954 | ||
3955 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
3956 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3957 | PyObject * _resultobj; | |
3958 | wxFontList * _arg0; | |
3959 | wxFont * _arg1; | |
3960 | PyObject * _argo0 = 0; | |
3961 | PyObject * _argo1 = 0; | |
3962 | char *_kwnames[] = { "self","font", NULL }; | |
3963 | ||
3964 | self = self; | |
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
3966 | return NULL; | |
3967 | if (_argo0) { | |
3968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
3971 | return NULL; | |
3972 | } | |
3973 | } | |
3974 | if (_argo1) { | |
3975 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3976 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
3978 | return NULL; | |
3979 | } | |
3980 | } | |
3981 | { | |
3982 | wxPy_BEGIN_ALLOW_THREADS; | |
3983 | wxFontList_RemoveFont(_arg0,_arg1); | |
3984 | ||
3985 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3986 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
3987 | } Py_INCREF(Py_None); |
3988 | _resultobj = Py_None; | |
3989 | return _resultobj; | |
3990 | } | |
3991 | ||
9df61a29 RD |
3992 | static void *SwigwxColourTowxObject(void *ptr) { |
3993 | wxColour *src; | |
3994 | wxObject *dest; | |
3995 | src = (wxColour *) ptr; | |
3996 | dest = (wxObject *) src; | |
3997 | return (void *) dest; | |
3998 | } | |
3999 | ||
70551f47 | 4000 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 4001 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4002 | PyObject * _resultobj; |
4003 | wxColour * _result; | |
2d091820 RD |
4004 | unsigned char _arg0 = (unsigned char ) 0; |
4005 | unsigned char _arg1 = (unsigned char ) 0; | |
4006 | unsigned char _arg2 = (unsigned char ) 0; | |
107e4716 | 4007 | char *_kwnames[] = { "red","green","blue", NULL }; |
70551f47 RD |
4008 | char _ptemp[128]; |
4009 | ||
4010 | self = self; | |
107e4716 | 4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 4012 | return NULL; |
ab9bc19b RD |
4013 | { |
4014 | wxPy_BEGIN_ALLOW_THREADS; | |
4015 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
4016 | ||
4017 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4018 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4019 | } if (_result) { |
4020 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4021 | _resultobj = Py_BuildValue("s",_ptemp); | |
4022 | } else { | |
4023 | Py_INCREF(Py_None); | |
4024 | _resultobj = Py_None; | |
4025 | } | |
70551f47 RD |
4026 | return _resultobj; |
4027 | } | |
4028 | ||
4029 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
107e4716 | 4030 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4031 | PyObject * _resultobj; |
4032 | wxColour * _arg0; | |
f6bcfd97 BP |
4033 | wxColour temp; |
4034 | PyObject * _obj0 = 0; | |
107e4716 | 4035 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4036 | |
4037 | self = self; | |
f6bcfd97 | 4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
70551f47 | 4039 | return NULL; |
f6bcfd97 BP |
4040 | { |
4041 | _arg0 = &temp; | |
4042 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4043 | return NULL; |
f6bcfd97 | 4044 | } |
ab9bc19b RD |
4045 | { |
4046 | wxPy_BEGIN_ALLOW_THREADS; | |
4047 | delete_wxColour(_arg0); | |
4048 | ||
4049 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4050 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4051 | } Py_INCREF(Py_None); |
70551f47 RD |
4052 | _resultobj = Py_None; |
4053 | return _resultobj; | |
4054 | } | |
4055 | ||
4056 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
107e4716 | 4057 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4058 | PyObject * _resultobj; |
4059 | unsigned char _result; | |
4060 | wxColour * _arg0; | |
f6bcfd97 BP |
4061 | wxColour temp; |
4062 | PyObject * _obj0 = 0; | |
107e4716 | 4063 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4064 | |
4065 | self = self; | |
f6bcfd97 | 4066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
70551f47 | 4067 | return NULL; |
f6bcfd97 BP |
4068 | { |
4069 | _arg0 = &temp; | |
4070 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4071 | return NULL; |
f6bcfd97 | 4072 | } |
ab9bc19b RD |
4073 | { |
4074 | wxPy_BEGIN_ALLOW_THREADS; | |
4075 | _result = (unsigned char )wxColour_Red(_arg0); | |
4076 | ||
4077 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4078 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4079 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4080 | return _resultobj; |
4081 | } | |
4082 | ||
4083 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
107e4716 | 4084 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4085 | PyObject * _resultobj; |
4086 | unsigned char _result; | |
4087 | wxColour * _arg0; | |
f6bcfd97 BP |
4088 | wxColour temp; |
4089 | PyObject * _obj0 = 0; | |
107e4716 | 4090 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4091 | |
4092 | self = self; | |
f6bcfd97 | 4093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
70551f47 | 4094 | return NULL; |
f6bcfd97 BP |
4095 | { |
4096 | _arg0 = &temp; | |
4097 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4098 | return NULL; |
f6bcfd97 | 4099 | } |
ab9bc19b RD |
4100 | { |
4101 | wxPy_BEGIN_ALLOW_THREADS; | |
4102 | _result = (unsigned char )wxColour_Green(_arg0); | |
4103 | ||
4104 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4105 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4106 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4107 | return _resultobj; |
4108 | } | |
4109 | ||
4110 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
107e4716 | 4111 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4112 | PyObject * _resultobj; |
4113 | unsigned char _result; | |
4114 | wxColour * _arg0; | |
f6bcfd97 BP |
4115 | wxColour temp; |
4116 | PyObject * _obj0 = 0; | |
107e4716 | 4117 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4118 | |
4119 | self = self; | |
f6bcfd97 | 4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
70551f47 | 4121 | return NULL; |
f6bcfd97 BP |
4122 | { |
4123 | _arg0 = &temp; | |
4124 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4125 | return NULL; |
f6bcfd97 | 4126 | } |
ab9bc19b RD |
4127 | { |
4128 | wxPy_BEGIN_ALLOW_THREADS; | |
4129 | _result = (unsigned char )wxColour_Blue(_arg0); | |
4130 | ||
4131 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4132 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4133 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4134 | return _resultobj; |
4135 | } | |
4136 | ||
4137 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 4138 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4139 | PyObject * _resultobj; |
4140 | bool _result; | |
4141 | wxColour * _arg0; | |
f6bcfd97 BP |
4142 | wxColour temp; |
4143 | PyObject * _obj0 = 0; | |
107e4716 | 4144 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4145 | |
4146 | self = self; | |
f6bcfd97 | 4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
70551f47 | 4148 | return NULL; |
f6bcfd97 BP |
4149 | { |
4150 | _arg0 = &temp; | |
4151 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4152 | return NULL; |
f6bcfd97 | 4153 | } |
ab9bc19b RD |
4154 | { |
4155 | wxPy_BEGIN_ALLOW_THREADS; | |
4156 | _result = (bool )wxColour_Ok(_arg0); | |
4157 | ||
4158 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4159 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4160 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4161 | return _resultobj; |
4162 | } | |
4163 | ||
4164 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 4165 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4166 | PyObject * _resultobj; |
4167 | wxColour * _arg0; | |
4168 | unsigned char _arg1; | |
4169 | unsigned char _arg2; | |
4170 | unsigned char _arg3; | |
f6bcfd97 BP |
4171 | wxColour temp; |
4172 | PyObject * _obj0 = 0; | |
107e4716 | 4173 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
70551f47 RD |
4174 | |
4175 | self = self; | |
f6bcfd97 | 4176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
70551f47 | 4177 | return NULL; |
f6bcfd97 BP |
4178 | { |
4179 | _arg0 = &temp; | |
4180 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4181 | return NULL; |
f6bcfd97 | 4182 | } |
ab9bc19b RD |
4183 | { |
4184 | wxPy_BEGIN_ALLOW_THREADS; | |
4185 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
4186 | ||
4187 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4188 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4189 | } Py_INCREF(Py_None); |
70551f47 RD |
4190 | _resultobj = Py_None; |
4191 | return _resultobj; | |
4192 | } | |
4193 | ||
4194 | static PyObject * wxColour_Get(wxColour *self) { | |
4195 | PyObject* rv = PyTuple_New(3); | |
4196 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4197 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4198 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4199 | return rv; | |
4200 | } | |
107e4716 | 4201 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4202 | PyObject * _resultobj; |
4203 | PyObject * _result; | |
4204 | wxColour * _arg0; | |
f6bcfd97 BP |
4205 | wxColour temp; |
4206 | PyObject * _obj0 = 0; | |
107e4716 | 4207 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4208 | |
4209 | self = self; | |
f6bcfd97 | 4210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
70551f47 | 4211 | return NULL; |
f6bcfd97 BP |
4212 | { |
4213 | _arg0 = &temp; | |
4214 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4215 | return NULL; |
f6bcfd97 | 4216 | } |
70551f47 | 4217 | { |
ab9bc19b RD |
4218 | wxPy_BEGIN_ALLOW_THREADS; |
4219 | _result = (PyObject *)wxColour_Get(_arg0); | |
4220 | ||
4221 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4222 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4223 | }{ |
70551f47 RD |
4224 | _resultobj = _result; |
4225 | } | |
4226 | return _resultobj; | |
4227 | } | |
4228 | ||
9df61a29 RD |
4229 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
4230 | wxColourDatabase *src; | |
4231 | wxObject *dest; | |
4232 | src = (wxColourDatabase *) ptr; | |
4233 | dest = (wxObject *) src; | |
4234 | return (void *) dest; | |
4235 | } | |
4236 | ||
5e40f9dd RD |
4237 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
4238 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4239 | PyObject * _resultobj; |
5e40f9dd RD |
4240 | wxColour * _result; |
4241 | wxColourDatabase * _arg0; | |
4242 | wxString * _arg1; | |
4243 | PyObject * _argo0 = 0; | |
4244 | PyObject * _obj1 = 0; | |
4245 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
4246 | char _ptemp[128]; |
4247 | ||
4248 | self = self; | |
5e40f9dd RD |
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) |
4250 | return NULL; | |
4251 | if (_argo0) { | |
4252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
70551f47 | 4255 | return NULL; |
5e40f9dd RD |
4256 | } |
4257 | } | |
f6bcfd97 | 4258 | { |
5e40f9dd RD |
4259 | #if PYTHON_API_VERSION >= 1009 |
4260 | char* tmpPtr; int tmpSize; | |
4261 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4262 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
5e40f9dd RD |
4263 | return NULL; |
4264 | } | |
4265 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4266 | return NULL; | |
4267 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4268 | #else | |
4269 | if (!PyString_Check(_obj1)) { | |
4270 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
70551f47 | 4271 | return NULL; |
5e40f9dd RD |
4272 | } |
4273 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4274 | #endif | |
f6bcfd97 | 4275 | } |
ab9bc19b RD |
4276 | { |
4277 | wxPy_BEGIN_ALLOW_THREADS; | |
5e40f9dd | 4278 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
ab9bc19b RD |
4279 | |
4280 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4281 | if (PyErr_Occurred()) return NULL; |
2d091820 | 4282 | } if (_result) { |
5e40f9dd | 4283 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); |
2d091820 RD |
4284 | _resultobj = Py_BuildValue("s",_ptemp); |
4285 | } else { | |
4286 | Py_INCREF(Py_None); | |
4287 | _resultobj = Py_None; | |
4288 | } | |
5e40f9dd RD |
4289 | { |
4290 | if (_obj1) | |
4291 | delete _arg1; | |
4292 | } | |
70551f47 RD |
4293 | return _resultobj; |
4294 | } | |
4295 | ||
5e40f9dd RD |
4296 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) |
4297 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4298 | PyObject * _resultobj; |
5e40f9dd RD |
4299 | wxString * _result; |
4300 | wxColourDatabase * _arg0; | |
4301 | wxColour * _arg1; | |
2d091820 | 4302 | PyObject * _argo0 = 0; |
5e40f9dd RD |
4303 | wxColour temp; |
4304 | PyObject * _obj1 = 0; | |
4305 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
4306 | |
4307 | self = self; | |
5e40f9dd | 4308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4309 | return NULL; |
2d091820 RD |
4310 | if (_argo0) { |
4311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
4312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
4313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
70551f47 RD |
4314 | return NULL; |
4315 | } | |
4316 | } | |
5e40f9dd RD |
4317 | { |
4318 | _arg1 = &temp; | |
4319 | if (! wxColour_helper(_obj1, &_arg1)) | |
4320 | return NULL; | |
4321 | } | |
ab9bc19b RD |
4322 | { |
4323 | wxPy_BEGIN_ALLOW_THREADS; | |
5e40f9dd | 4324 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
ab9bc19b RD |
4325 | |
4326 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4327 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4328 | }{ |
4329 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4330 | } | |
4331 | { | |
4332 | delete _result; | |
4333 | } | |
70551f47 RD |
4334 | return _resultobj; |
4335 | } | |
4336 | ||
5e40f9dd RD |
4337 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { |
4338 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
4339 | } | |
4340 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4341 | PyObject * _resultobj; |
5e40f9dd RD |
4342 | wxColourDatabase * _arg0; |
4343 | wxString * _arg1; | |
4344 | int _arg2; | |
4345 | int _arg3; | |
4346 | int _arg4; | |
2d091820 | 4347 | PyObject * _argo0 = 0; |
5e40f9dd RD |
4348 | PyObject * _obj1 = 0; |
4349 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
70551f47 RD |
4350 | |
4351 | self = self; | |
5e40f9dd | 4352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4353 | return NULL; |
2d091820 RD |
4354 | if (_argo0) { |
4355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
4356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
4357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
70551f47 RD |
4358 | return NULL; |
4359 | } | |
4360 | } | |
ab9bc19b | 4361 | { |
5e40f9dd RD |
4362 | #if PYTHON_API_VERSION >= 1009 |
4363 | char* tmpPtr; int tmpSize; | |
4364 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4365 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
5e40f9dd RD |
4366 | return NULL; |
4367 | } | |
4368 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4369 | return NULL; | |
4370 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4371 | #else | |
4372 | if (!PyString_Check(_obj1)) { | |
4373 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4374 | return NULL; | |
4375 | } | |
4376 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4377 | #endif | |
4378 | } | |
4379 | { | |
4380 | wxPy_BEGIN_ALLOW_THREADS; | |
4381 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
4382 | ||
4383 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4384 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4385 | } Py_INCREF(Py_None); |
4386 | _resultobj = Py_None; | |
4387 | { | |
4388 | if (_obj1) | |
4389 | delete _arg1; | |
4390 | } | |
4391 | return _resultobj; | |
4392 | } | |
4393 | ||
9df61a29 RD |
4394 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
4395 | wxPen *src; | |
4396 | wxGDIObject *dest; | |
4397 | src = (wxPen *) ptr; | |
4398 | dest = (wxGDIObject *) src; | |
4399 | return (void *) dest; | |
4400 | } | |
4401 | ||
4402 | static void *SwigwxPenTowxObject(void *ptr) { | |
4403 | wxPen *src; | |
4404 | wxObject *dest; | |
4405 | src = (wxPen *) ptr; | |
4406 | dest = (wxObject *) src; | |
4407 | return (void *) dest; | |
4408 | } | |
4409 | ||
5e40f9dd RD |
4410 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
4411 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4412 | PyObject * _resultobj; | |
4413 | wxPen * _result; | |
4414 | wxColour * _arg0; | |
4415 | int _arg1 = (int ) 1; | |
4416 | int _arg2 = (int ) wxSOLID; | |
4417 | wxColour temp; | |
4418 | PyObject * _obj0 = 0; | |
4419 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4420 | char _ptemp[128]; | |
4421 | ||
4422 | self = self; | |
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4424 | return NULL; | |
4425 | { | |
4426 | _arg0 = &temp; | |
4427 | if (! wxColour_helper(_obj0, &_arg0)) | |
4428 | return NULL; | |
4429 | } | |
4430 | { | |
4431 | wxPy_BEGIN_ALLOW_THREADS; | |
4432 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); | |
4433 | ||
4434 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4435 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4436 | } if (_result) { |
4437 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4438 | _resultobj = Py_BuildValue("s",_ptemp); | |
4439 | } else { | |
4440 | Py_INCREF(Py_None); | |
4441 | _resultobj = Py_None; | |
4442 | } | |
4443 | return _resultobj; | |
4444 | } | |
4445 | ||
4446 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
4447 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4448 | PyObject * _resultobj; | |
4449 | wxPen * _arg0; | |
4450 | PyObject * _argo0 = 0; | |
4451 | char *_kwnames[] = { "self", NULL }; | |
4452 | ||
4453 | self = self; | |
4454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
4455 | return NULL; | |
4456 | if (_argo0) { | |
4457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
4460 | return NULL; | |
4461 | } | |
4462 | } | |
4463 | { | |
4464 | wxPy_BEGIN_ALLOW_THREADS; | |
4465 | delete_wxPen(_arg0); | |
4466 | ||
4467 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4468 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4469 | } Py_INCREF(Py_None); |
4470 | _resultobj = Py_None; | |
4471 | return _resultobj; | |
4472 | } | |
4473 | ||
4474 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
4475 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4476 | PyObject * _resultobj; | |
4477 | int _result; | |
4478 | wxPen * _arg0; | |
4479 | PyObject * _argo0 = 0; | |
4480 | char *_kwnames[] = { "self", NULL }; | |
4481 | ||
4482 | self = self; | |
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
4484 | return NULL; | |
4485 | if (_argo0) { | |
4486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
4489 | return NULL; | |
4490 | } | |
4491 | } | |
4492 | { | |
4493 | wxPy_BEGIN_ALLOW_THREADS; | |
4494 | _result = (int )wxPen_GetCap(_arg0); | |
4495 | ||
4496 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4497 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4498 | } _resultobj = Py_BuildValue("i",_result); |
4499 | return _resultobj; | |
4500 | } | |
4501 | ||
4502 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
4503 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4504 | PyObject * _resultobj; | |
4505 | wxColour * _result; | |
4506 | wxPen * _arg0; | |
4507 | PyObject * _argo0 = 0; | |
4508 | char *_kwnames[] = { "self", NULL }; | |
4509 | char _ptemp[128]; | |
4510 | ||
4511 | self = self; | |
4512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
4513 | return NULL; | |
4514 | if (_argo0) { | |
4515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
4518 | return NULL; | |
4519 | } | |
4520 | } | |
4521 | { | |
4522 | wxPy_BEGIN_ALLOW_THREADS; | |
84a81942 | 4523 | _result = new wxColour (wxPen_GetColour(_arg0)); |
5e40f9dd RD |
4524 | |
4525 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4526 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
4527 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4528 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
4529 | return _resultobj; |
4530 | } | |
4531 | ||
4532 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
107e4716 | 4533 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4534 | PyObject * _resultobj; |
4535 | int _result; | |
4536 | wxPen * _arg0; | |
2d091820 | 4537 | PyObject * _argo0 = 0; |
107e4716 | 4538 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4539 | |
4540 | self = self; | |
107e4716 | 4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
70551f47 | 4542 | return NULL; |
2d091820 RD |
4543 | if (_argo0) { |
4544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
4547 | return NULL; | |
4548 | } | |
4549 | } | |
ab9bc19b RD |
4550 | { |
4551 | wxPy_BEGIN_ALLOW_THREADS; | |
4552 | _result = (int )wxPen_GetJoin(_arg0); | |
4553 | ||
4554 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4555 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4556 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4557 | return _resultobj; |
4558 | } | |
4559 | ||
4560 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 4561 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4562 | PyObject * _resultobj; |
4563 | int _result; | |
4564 | wxPen * _arg0; | |
2d091820 | 4565 | PyObject * _argo0 = 0; |
107e4716 | 4566 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4567 | |
4568 | self = self; | |
107e4716 | 4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
70551f47 | 4570 | return NULL; |
2d091820 RD |
4571 | if (_argo0) { |
4572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
4575 | return NULL; | |
4576 | } | |
4577 | } | |
ab9bc19b RD |
4578 | { |
4579 | wxPy_BEGIN_ALLOW_THREADS; | |
4580 | _result = (int )wxPen_GetStyle(_arg0); | |
4581 | ||
4582 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4583 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4584 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4585 | return _resultobj; |
4586 | } | |
4587 | ||
4588 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 4589 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4590 | PyObject * _resultobj; |
4591 | int _result; | |
4592 | wxPen * _arg0; | |
2d091820 | 4593 | PyObject * _argo0 = 0; |
107e4716 | 4594 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4595 | |
4596 | self = self; | |
107e4716 | 4597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
70551f47 | 4598 | return NULL; |
2d091820 RD |
4599 | if (_argo0) { |
4600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
4603 | return NULL; | |
4604 | } | |
4605 | } | |
ab9bc19b RD |
4606 | { |
4607 | wxPy_BEGIN_ALLOW_THREADS; | |
4608 | _result = (int )wxPen_GetWidth(_arg0); | |
4609 | ||
4610 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4611 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4612 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4613 | return _resultobj; |
4614 | } | |
4615 | ||
4616 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 4617 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4618 | PyObject * _resultobj; |
4619 | bool _result; | |
4620 | wxPen * _arg0; | |
2d091820 | 4621 | PyObject * _argo0 = 0; |
107e4716 | 4622 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4623 | |
4624 | self = self; | |
107e4716 | 4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
70551f47 | 4626 | return NULL; |
2d091820 RD |
4627 | if (_argo0) { |
4628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
4631 | return NULL; | |
4632 | } | |
4633 | } | |
ab9bc19b RD |
4634 | { |
4635 | wxPy_BEGIN_ALLOW_THREADS; | |
4636 | _result = (bool )wxPen_Ok(_arg0); | |
4637 | ||
4638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4639 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4640 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4641 | return _resultobj; |
4642 | } | |
4643 | ||
4644 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
107e4716 | 4645 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4646 | PyObject * _resultobj; |
4647 | wxPen * _arg0; | |
4648 | int _arg1; | |
2d091820 | 4649 | PyObject * _argo0 = 0; |
107e4716 | 4650 | char *_kwnames[] = { "self","cap_style", NULL }; |
70551f47 RD |
4651 | |
4652 | self = self; | |
107e4716 | 4653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4654 | return NULL; |
2d091820 RD |
4655 | if (_argo0) { |
4656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
4659 | return NULL; | |
4660 | } | |
4661 | } | |
ab9bc19b RD |
4662 | { |
4663 | wxPy_BEGIN_ALLOW_THREADS; | |
4664 | wxPen_SetCap(_arg0,_arg1); | |
4665 | ||
4666 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4667 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4668 | } Py_INCREF(Py_None); |
70551f47 RD |
4669 | _resultobj = Py_None; |
4670 | return _resultobj; | |
4671 | } | |
4672 | ||
4673 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 4674 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4675 | PyObject * _resultobj; |
4676 | wxPen * _arg0; | |
4677 | wxColour * _arg1; | |
2d091820 | 4678 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4679 | wxColour temp; |
4680 | PyObject * _obj1 = 0; | |
107e4716 | 4681 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
4682 | |
4683 | self = self; | |
f6bcfd97 | 4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4685 | return NULL; |
2d091820 RD |
4686 | if (_argo0) { |
4687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
4690 | return NULL; | |
4691 | } | |
4692 | } | |
f6bcfd97 BP |
4693 | { |
4694 | _arg1 = &temp; | |
4695 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 4696 | return NULL; |
f6bcfd97 | 4697 | } |
ab9bc19b RD |
4698 | { |
4699 | wxPy_BEGIN_ALLOW_THREADS; | |
4700 | wxPen_SetColour(_arg0,*_arg1); | |
4701 | ||
4702 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4703 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4704 | } Py_INCREF(Py_None); |
70551f47 RD |
4705 | _resultobj = Py_None; |
4706 | return _resultobj; | |
4707 | } | |
4708 | ||
4709 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
107e4716 | 4710 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4711 | PyObject * _resultobj; |
4712 | wxPen * _arg0; | |
4713 | int _arg1; | |
2d091820 | 4714 | PyObject * _argo0 = 0; |
107e4716 | 4715 | char *_kwnames[] = { "self","join_style", NULL }; |
70551f47 RD |
4716 | |
4717 | self = self; | |
107e4716 | 4718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4719 | return NULL; |
2d091820 RD |
4720 | if (_argo0) { |
4721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
4724 | return NULL; | |
4725 | } | |
4726 | } | |
ab9bc19b RD |
4727 | { |
4728 | wxPy_BEGIN_ALLOW_THREADS; | |
4729 | wxPen_SetJoin(_arg0,_arg1); | |
4730 | ||
4731 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4732 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4733 | } Py_INCREF(Py_None); |
70551f47 RD |
4734 | _resultobj = Py_None; |
4735 | return _resultobj; | |
4736 | } | |
4737 | ||
4738 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 4739 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4740 | PyObject * _resultobj; |
4741 | wxPen * _arg0; | |
4742 | int _arg1; | |
2d091820 | 4743 | PyObject * _argo0 = 0; |
107e4716 | 4744 | char *_kwnames[] = { "self","style", NULL }; |
70551f47 RD |
4745 | |
4746 | self = self; | |
107e4716 | 4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4748 | return NULL; |
2d091820 RD |
4749 | if (_argo0) { |
4750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
4753 | return NULL; | |
4754 | } | |
4755 | } | |
ab9bc19b RD |
4756 | { |
4757 | wxPy_BEGIN_ALLOW_THREADS; | |
4758 | wxPen_SetStyle(_arg0,_arg1); | |
4759 | ||
4760 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4761 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4762 | } Py_INCREF(Py_None); |
70551f47 RD |
4763 | _resultobj = Py_None; |
4764 | return _resultobj; | |
4765 | } | |
4766 | ||
4767 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
107e4716 | 4768 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4769 | PyObject * _resultobj; |
4770 | wxPen * _arg0; | |
4771 | int _arg1; | |
2d091820 | 4772 | PyObject * _argo0 = 0; |
107e4716 | 4773 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
4774 | |
4775 | self = self; | |
107e4716 | 4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4777 | return NULL; |
2d091820 RD |
4778 | if (_argo0) { |
4779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
4782 | return NULL; | |
4783 | } | |
4784 | } | |
ab9bc19b RD |
4785 | { |
4786 | wxPy_BEGIN_ALLOW_THREADS; | |
4787 | wxPen_SetWidth(_arg0,_arg1); | |
4788 | ||
4789 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4790 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4791 | } Py_INCREF(Py_None); |
70551f47 RD |
4792 | _resultobj = Py_None; |
4793 | return _resultobj; | |
4794 | } | |
4795 | ||
56f5d962 RD |
4796 | #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0)) |
4797 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4798 | PyObject * _resultobj; | |
4799 | int _result; | |
4800 | wxPen * _arg0; | |
4801 | wxDash ** _arg1; | |
4802 | PyObject * _argo0 = 0; | |
4803 | PyObject * _argo1 = 0; | |
4804 | char *_kwnames[] = { "self","dashes", NULL }; | |
4805 | ||
4806 | self = self; | |
4807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1)) | |
4808 | return NULL; | |
4809 | if (_argo0) { | |
4810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
4813 | return NULL; | |
4814 | } | |
4815 | } | |
4816 | if (_argo1) { | |
4817 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4818 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) { | |
4819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp."); | |
4820 | return NULL; | |
4821 | } | |
4822 | } | |
4823 | { | |
4824 | wxPy_BEGIN_ALLOW_THREADS; | |
4825 | _result = (int )wxPen_GetDashes(_arg0,_arg1); | |
4826 | ||
4827 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4828 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
4829 | } _resultobj = Py_BuildValue("i",_result); |
4830 | return _resultobj; | |
4831 | } | |
4832 | ||
4833 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
4834 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4835 | PyObject * _resultobj; | |
4836 | wxPen * _arg0; | |
4837 | int _arg1; | |
4838 | wxDash * _arg2; | |
4839 | PyObject * _argo0 = 0; | |
4840 | PyObject * _obj2 = 0; | |
e02c03a4 | 4841 | char *_kwnames[] = { "self","choices", NULL }; |
56f5d962 RD |
4842 | |
4843 | self = self; | |
4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
4845 | return NULL; | |
4846 | if (_argo0) { | |
4847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
4850 | return NULL; | |
4851 | } | |
4852 | } | |
4853 | if (_obj2) | |
4854 | { | |
41073357 | 4855 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
56f5d962 RD |
4856 | if (_arg2 == NULL) { |
4857 | return NULL; | |
4858 | } | |
4859 | } | |
4860 | { | |
4861 | if (_obj2) { | |
4862 | _arg1 = PyList_Size(_obj2); | |
4863 | } | |
4864 | else { | |
4865 | _arg1 = 0; | |
4866 | } | |
4867 | } | |
4868 | { | |
4869 | wxPy_BEGIN_ALLOW_THREADS; | |
4870 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
4871 | ||
4872 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4873 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
4874 | } Py_INCREF(Py_None); |
4875 | _resultobj = Py_None; | |
4876 | { | |
4877 | delete [] _arg2; | |
4878 | } | |
4879 | return _resultobj; | |
4880 | } | |
4881 | ||
9df61a29 RD |
4882 | static void *SwigwxPenListTowxObject(void *ptr) { |
4883 | wxPenList *src; | |
4884 | wxObject *dest; | |
4885 | src = (wxPenList *) ptr; | |
4886 | dest = (wxObject *) src; | |
4887 | return (void *) dest; | |
4888 | } | |
4889 | ||
5e40f9dd RD |
4890 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
4891 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject * _resultobj; | |
4893 | wxPenList * _arg0; | |
4894 | wxPen * _arg1; | |
4895 | PyObject * _argo0 = 0; | |
4896 | PyObject * _argo1 = 0; | |
4897 | char *_kwnames[] = { "self","pen", NULL }; | |
4898 | ||
4899 | self = self; | |
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
4901 | return NULL; | |
4902 | if (_argo0) { | |
4903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
4906 | return NULL; | |
70551f47 | 4907 | } |
5e40f9dd RD |
4908 | } |
4909 | if (_argo1) { | |
4910 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4911 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
4913 | return NULL; | |
4914 | } | |
4915 | } | |
4916 | { | |
4917 | wxPy_BEGIN_ALLOW_THREADS; | |
4918 | wxPenList_AddPen(_arg0,_arg1); | |
70551f47 | 4919 | |
5e40f9dd | 4920 | wxPy_END_ALLOW_THREADS; |
4dfaa61e | 4921 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4922 | } Py_INCREF(Py_None); |
4923 | _resultobj = Py_None; | |
4924 | return _resultobj; | |
4925 | } | |
4926 | ||
4927 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
4928 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject * _resultobj; | |
4930 | wxPen * _result; | |
4931 | wxPenList * _arg0; | |
4932 | wxColour * _arg1; | |
4933 | int _arg2; | |
4934 | int _arg3; | |
4935 | PyObject * _argo0 = 0; | |
4936 | wxColour temp; | |
4937 | PyObject * _obj1 = 0; | |
4938 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
4939 | char _ptemp[128]; | |
4940 | ||
4941 | self = self; | |
4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
4943 | return NULL; | |
4944 | if (_argo0) { | |
4945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
4948 | return NULL; | |
4949 | } | |
4950 | } | |
4951 | { | |
4952 | _arg1 = &temp; | |
4953 | if (! wxColour_helper(_obj1, &_arg1)) | |
4954 | return NULL; | |
4955 | } | |
4956 | { | |
4957 | wxPy_BEGIN_ALLOW_THREADS; | |
4958 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
4959 | ||
4960 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4961 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4962 | } if (_result) { |
4963 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4964 | _resultobj = Py_BuildValue("s",_ptemp); | |
4965 | } else { | |
4966 | Py_INCREF(Py_None); | |
4967 | _resultobj = Py_None; | |
4968 | } | |
4969 | return _resultobj; | |
4970 | } | |
4971 | ||
4972 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
4973 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4974 | PyObject * _resultobj; | |
4975 | wxPenList * _arg0; | |
4976 | wxPen * _arg1; | |
4977 | PyObject * _argo0 = 0; | |
4978 | PyObject * _argo1 = 0; | |
4979 | char *_kwnames[] = { "self","pen", NULL }; | |
4980 | ||
4981 | self = self; | |
4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
4983 | return NULL; | |
4984 | if (_argo0) { | |
4985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
4988 | return NULL; | |
4989 | } | |
4990 | } | |
4991 | if (_argo1) { | |
4992 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4993 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
4995 | return NULL; | |
4996 | } | |
4997 | } | |
4998 | { | |
4999 | wxPy_BEGIN_ALLOW_THREADS; | |
5000 | wxPenList_RemovePen(_arg0,_arg1); | |
5001 | ||
5002 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5003 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5004 | } Py_INCREF(Py_None); |
5005 | _resultobj = Py_None; | |
5006 | return _resultobj; | |
5007 | } | |
5008 | ||
9df61a29 RD |
5009 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5010 | wxBrush *src; | |
5011 | wxGDIObject *dest; | |
5012 | src = (wxBrush *) ptr; | |
5013 | dest = (wxGDIObject *) src; | |
5014 | return (void *) dest; | |
5015 | } | |
5016 | ||
5017 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5018 | wxBrush *src; | |
5019 | wxObject *dest; | |
5020 | src = (wxBrush *) ptr; | |
5021 | dest = (wxObject *) src; | |
5022 | return (void *) dest; | |
5023 | } | |
5024 | ||
5e40f9dd | 5025 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
107e4716 | 5026 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5027 | PyObject * _resultobj; |
5028 | wxBrush * _result; | |
5029 | wxColour * _arg0; | |
2d091820 | 5030 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
5031 | wxColour temp; |
5032 | PyObject * _obj0 = 0; | |
107e4716 | 5033 | char *_kwnames[] = { "colour","style", NULL }; |
70551f47 RD |
5034 | char _ptemp[128]; |
5035 | ||
5036 | self = self; | |
f6bcfd97 | 5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
70551f47 | 5038 | return NULL; |
f6bcfd97 BP |
5039 | { |
5040 | _arg0 = &temp; | |
5041 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 5042 | return NULL; |
f6bcfd97 | 5043 | } |
ab9bc19b RD |
5044 | { |
5045 | wxPy_BEGIN_ALLOW_THREADS; | |
5e40f9dd | 5046 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
ab9bc19b RD |
5047 | |
5048 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5049 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5050 | } if (_result) { |
5051 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5052 | _resultobj = Py_BuildValue("s",_ptemp); | |
5053 | } else { | |
5054 | Py_INCREF(Py_None); | |
5055 | _resultobj = Py_None; | |
5056 | } | |
70551f47 RD |
5057 | return _resultobj; |
5058 | } | |
5059 | ||
5e40f9dd RD |
5060 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
5061 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5062 | PyObject * _resultobj; | |
5063 | wxBrush * _arg0; | |
5064 | PyObject * _argo0 = 0; | |
5065 | char *_kwnames[] = { "self", NULL }; | |
5066 | ||
5067 | self = self; | |
5068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5069 | return NULL; | |
5070 | if (_argo0) { | |
5071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5074 | return NULL; | |
5075 | } | |
5076 | } | |
5077 | { | |
5078 | wxPy_BEGIN_ALLOW_THREADS; | |
5079 | delete_wxBrush(_arg0); | |
5080 | ||
5081 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5082 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5083 | } Py_INCREF(Py_None); |
5084 | _resultobj = Py_None; | |
5085 | return _resultobj; | |
5086 | } | |
5087 | ||
70551f47 | 5088 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
107e4716 | 5089 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5090 | PyObject * _resultobj; |
5091 | wxColour * _result; | |
5092 | wxBrush * _arg0; | |
2d091820 | 5093 | PyObject * _argo0 = 0; |
107e4716 | 5094 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5095 | char _ptemp[128]; |
5096 | ||
5097 | self = self; | |
107e4716 | 5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
70551f47 | 5099 | return NULL; |
2d091820 RD |
5100 | if (_argo0) { |
5101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
5104 | return NULL; | |
5105 | } | |
5106 | } | |
ab9bc19b RD |
5107 | { |
5108 | wxPy_BEGIN_ALLOW_THREADS; | |
84a81942 | 5109 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
ab9bc19b RD |
5110 | |
5111 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5112 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
5113 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5114 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5115 | return _resultobj; |
5116 | } | |
5117 | ||
5118 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
107e4716 | 5119 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5120 | PyObject * _resultobj; |
5121 | wxBitmap * _result; | |
5122 | wxBrush * _arg0; | |
2d091820 | 5123 | PyObject * _argo0 = 0; |
107e4716 | 5124 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5125 | char _ptemp[128]; |
5126 | ||
5127 | self = self; | |
107e4716 | 5128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
70551f47 | 5129 | return NULL; |
2d091820 RD |
5130 | if (_argo0) { |
5131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
5134 | return NULL; | |
5135 | } | |
5136 | } | |
ab9bc19b RD |
5137 | { |
5138 | wxPy_BEGIN_ALLOW_THREADS; | |
5139 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
5140 | ||
5141 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5142 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5143 | } if (_result) { |
5144 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5145 | _resultobj = Py_BuildValue("s",_ptemp); | |
5146 | } else { | |
5147 | Py_INCREF(Py_None); | |
5148 | _resultobj = Py_None; | |
5149 | } | |
70551f47 RD |
5150 | return _resultobj; |
5151 | } | |
5152 | ||
5153 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 5154 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5155 | PyObject * _resultobj; |
5156 | int _result; | |
5157 | wxBrush * _arg0; | |
2d091820 | 5158 | PyObject * _argo0 = 0; |
107e4716 | 5159 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5160 | |
5161 | self = self; | |
107e4716 | 5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
70551f47 | 5163 | return NULL; |
2d091820 RD |
5164 | if (_argo0) { |
5165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
5168 | return NULL; | |
5169 | } | |
5170 | } | |
ab9bc19b RD |
5171 | { |
5172 | wxPy_BEGIN_ALLOW_THREADS; | |
5173 | _result = (int )wxBrush_GetStyle(_arg0); | |
5174 | ||
5175 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5176 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5177 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5178 | return _resultobj; |
5179 | } | |
5180 | ||
5181 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 5182 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5183 | PyObject * _resultobj; |
5184 | bool _result; | |
5185 | wxBrush * _arg0; | |
2d091820 | 5186 | PyObject * _argo0 = 0; |
107e4716 | 5187 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5188 | |
5189 | self = self; | |
107e4716 | 5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
70551f47 | 5191 | return NULL; |
2d091820 RD |
5192 | if (_argo0) { |
5193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
5196 | return NULL; | |
5197 | } | |
5198 | } | |
ab9bc19b RD |
5199 | { |
5200 | wxPy_BEGIN_ALLOW_THREADS; | |
5201 | _result = (bool )wxBrush_Ok(_arg0); | |
5202 | ||
5203 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5204 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5205 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5206 | return _resultobj; |
5207 | } | |
5208 | ||
c95e68d8 | 5209 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) |
107e4716 | 5210 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5211 | PyObject * _resultobj; |
5212 | wxBrush * _arg0; | |
5213 | wxColour * _arg1; | |
2d091820 | 5214 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5215 | wxColour temp; |
5216 | PyObject * _obj1 = 0; | |
107e4716 | 5217 | char *_kwnames[] = { "self","colour", NULL }; |
c95e68d8 RD |
5218 | |
5219 | self = self; | |
f6bcfd97 | 5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 5221 | return NULL; |
2d091820 RD |
5222 | if (_argo0) { |
5223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
5226 | return NULL; | |
5227 | } | |
5228 | } | |
f6bcfd97 BP |
5229 | { |
5230 | _arg1 = &temp; | |
5231 | if (! wxColour_helper(_obj1, &_arg1)) | |
c95e68d8 | 5232 | return NULL; |
f6bcfd97 | 5233 | } |
ab9bc19b RD |
5234 | { |
5235 | wxPy_BEGIN_ALLOW_THREADS; | |
5236 | wxBrush_SetColour(_arg0,*_arg1); | |
5237 | ||
5238 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5239 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5240 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5241 | _resultobj = Py_None; |
5242 | return _resultobj; | |
5243 | } | |
5244 | ||
5245 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
107e4716 | 5246 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5247 | PyObject * _resultobj; |
5248 | wxBrush * _arg0; | |
5249 | wxBitmap * _arg1; | |
2d091820 RD |
5250 | PyObject * _argo0 = 0; |
5251 | PyObject * _argo1 = 0; | |
107e4716 | 5252 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
5253 | |
5254 | self = self; | |
107e4716 | 5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 5256 | return NULL; |
2d091820 RD |
5257 | if (_argo0) { |
5258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
5261 | return NULL; | |
5262 | } | |
5263 | } | |
2d091820 RD |
5264 | if (_argo1) { |
5265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
5267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
5268 | return NULL; | |
5269 | } | |
5270 | } | |
ab9bc19b RD |
5271 | { |
5272 | wxPy_BEGIN_ALLOW_THREADS; | |
5273 | wxBrush_SetStipple(_arg0,*_arg1); | |
5274 | ||
5275 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5276 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5277 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5278 | _resultobj = Py_None; |
5279 | return _resultobj; | |
5280 | } | |
5281 | ||
5282 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 5283 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5284 | PyObject * _resultobj; |
5285 | wxBrush * _arg0; | |
5286 | int _arg1; | |
2d091820 | 5287 | PyObject * _argo0 = 0; |
107e4716 | 5288 | char *_kwnames[] = { "self","style", NULL }; |
c95e68d8 RD |
5289 | |
5290 | self = self; | |
107e4716 | 5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 5292 | return NULL; |
2d091820 RD |
5293 | if (_argo0) { |
5294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
5297 | return NULL; | |
5298 | } | |
5299 | } | |
ab9bc19b RD |
5300 | { |
5301 | wxPy_BEGIN_ALLOW_THREADS; | |
5302 | wxBrush_SetStyle(_arg0,_arg1); | |
5303 | ||
5304 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5305 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5306 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5307 | _resultobj = Py_None; |
5308 | return _resultobj; | |
5309 | } | |
5310 | ||
5e40f9dd RD |
5311 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
5312 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5313 | PyObject * _resultobj; | |
5314 | wxBrushList * _arg0; | |
5315 | wxBrush * _arg1; | |
5316 | PyObject * _argo0 = 0; | |
5317 | PyObject * _argo1 = 0; | |
5318 | char *_kwnames[] = { "self","brush", NULL }; | |
5319 | ||
5320 | self = self; | |
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
5322 | return NULL; | |
5323 | if (_argo0) { | |
5324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
5327 | return NULL; | |
5328 | } | |
5329 | } | |
5330 | if (_argo1) { | |
5331 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5332 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
5334 | return NULL; | |
5335 | } | |
5336 | } | |
5337 | { | |
5338 | wxPy_BEGIN_ALLOW_THREADS; | |
5339 | wxBrushList_AddBrush(_arg0,_arg1); | |
5340 | ||
5341 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5342 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5343 | } Py_INCREF(Py_None); |
5344 | _resultobj = Py_None; | |
5345 | return _resultobj; | |
5346 | } | |
5347 | ||
5348 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
5349 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5350 | PyObject * _resultobj; | |
5351 | wxBrush * _result; | |
5352 | wxBrushList * _arg0; | |
5353 | wxColour * _arg1; | |
5354 | int _arg2; | |
5355 | PyObject * _argo0 = 0; | |
5356 | wxColour temp; | |
5357 | PyObject * _obj1 = 0; | |
5358 | char *_kwnames[] = { "self","colour","style", NULL }; | |
5359 | char _ptemp[128]; | |
5360 | ||
5361 | self = self; | |
5362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5363 | return NULL; | |
5364 | if (_argo0) { | |
5365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
5368 | return NULL; | |
5369 | } | |
5370 | } | |
5371 | { | |
5372 | _arg1 = &temp; | |
5373 | if (! wxColour_helper(_obj1, &_arg1)) | |
5374 | return NULL; | |
5375 | } | |
5376 | { | |
5377 | wxPy_BEGIN_ALLOW_THREADS; | |
5378 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
5379 | ||
5380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5381 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5382 | } if (_result) { |
5383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5384 | _resultobj = Py_BuildValue("s",_ptemp); | |
5385 | } else { | |
5386 | Py_INCREF(Py_None); | |
5387 | _resultobj = Py_None; | |
5388 | } | |
5389 | return _resultobj; | |
5390 | } | |
5391 | ||
5392 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
5393 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5394 | PyObject * _resultobj; | |
5395 | wxBrushList * _arg0; | |
5396 | wxBrush * _arg1; | |
5397 | PyObject * _argo0 = 0; | |
5398 | PyObject * _argo1 = 0; | |
5399 | char *_kwnames[] = { "self","brush", NULL }; | |
5400 | ||
5401 | self = self; | |
5402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
5403 | return NULL; | |
5404 | if (_argo0) { | |
5405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
5408 | return NULL; | |
5409 | } | |
5410 | } | |
5411 | if (_argo1) { | |
5412 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5413 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
5415 | return NULL; | |
5416 | } | |
5417 | } | |
5418 | { | |
5419 | wxPy_BEGIN_ALLOW_THREADS; | |
5420 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
5421 | ||
5422 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5423 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5424 | } Py_INCREF(Py_None); |
5425 | _resultobj = Py_None; | |
5426 | return _resultobj; | |
5427 | } | |
5428 | ||
9df61a29 RD |
5429 | static void *SwigwxDCTowxObject(void *ptr) { |
5430 | wxDC *src; | |
5431 | wxObject *dest; | |
5432 | src = (wxDC *) ptr; | |
5433 | dest = (wxObject *) src; | |
5434 | return (void *) dest; | |
5435 | } | |
5436 | ||
70551f47 | 5437 | #define delete_wxDC(_swigobj) (delete _swigobj) |
107e4716 | 5438 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5439 | PyObject * _resultobj; |
5440 | wxDC * _arg0; | |
2d091820 | 5441 | PyObject * _argo0 = 0; |
107e4716 | 5442 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5443 | |
5444 | self = self; | |
107e4716 | 5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
70551f47 | 5446 | return NULL; |
2d091820 RD |
5447 | if (_argo0) { |
5448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
5451 | return NULL; | |
5452 | } | |
5453 | } | |
ab9bc19b RD |
5454 | { |
5455 | wxPy_BEGIN_ALLOW_THREADS; | |
5456 | delete_wxDC(_arg0); | |
5457 | ||
5458 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5459 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5460 | } Py_INCREF(Py_None); |
70551f47 RD |
5461 | _resultobj = Py_None; |
5462 | return _resultobj; | |
5463 | } | |
5464 | ||
5465 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
107e4716 | 5466 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5467 | PyObject * _resultobj; |
5468 | wxDC * _arg0; | |
2d091820 | 5469 | PyObject * _argo0 = 0; |
107e4716 | 5470 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5471 | |
5472 | self = self; | |
107e4716 | 5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
70551f47 | 5474 | return NULL; |
2d091820 RD |
5475 | if (_argo0) { |
5476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
5479 | return NULL; | |
5480 | } | |
5481 | } | |
ab9bc19b RD |
5482 | { |
5483 | wxPy_BEGIN_ALLOW_THREADS; | |
5484 | wxDC_BeginDrawing(_arg0); | |
5485 | ||
5486 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5487 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5488 | } Py_INCREF(Py_None); |
70551f47 RD |
5489 | _resultobj = Py_None; |
5490 | return _resultobj; | |
5491 | } | |
5492 | ||
107e4716 RD |
5493 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
5494 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
5495 | PyObject * _resultobj; |
5496 | bool _result; | |
5497 | wxDC * _arg0; | |
5498 | long _arg1; | |
5499 | long _arg2; | |
5500 | long _arg3; | |
5501 | long _arg4; | |
5502 | wxDC * _arg5; | |
5503 | long _arg6; | |
5504 | long _arg7; | |
107e4716 RD |
5505 | int _arg8 = (int ) wxCOPY; |
5506 | int _arg9 = (int ) FALSE; | |
2d091820 RD |
5507 | PyObject * _argo0 = 0; |
5508 | PyObject * _argo5 = 0; | |
107e4716 | 5509 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
70551f47 RD |
5510 | |
5511 | self = self; | |
107e4716 | 5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
70551f47 | 5513 | return NULL; |
2d091820 RD |
5514 | if (_argo0) { |
5515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
5518 | return NULL; | |
5519 | } | |
5520 | } | |
2d091820 RD |
5521 | if (_argo5) { |
5522 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5523 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
70551f47 RD |
5524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
5525 | return NULL; | |
5526 | } | |
5527 | } | |
ab9bc19b RD |
5528 | { |
5529 | wxPy_BEGIN_ALLOW_THREADS; | |
107e4716 | 5530 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
ab9bc19b RD |
5531 | |
5532 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5533 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5534 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5535 | return _resultobj; |
5536 | } | |
5537 | ||
5538 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 5539 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5540 | PyObject * _resultobj; |
5541 | wxDC * _arg0; | |
2d091820 | 5542 | PyObject * _argo0 = 0; |
107e4716 | 5543 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5544 | |
5545 | self = self; | |
107e4716 | 5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
70551f47 | 5547 | return NULL; |
2d091820 RD |
5548 | if (_argo0) { |
5549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
5552 | return NULL; | |
5553 | } | |
5554 | } | |
ab9bc19b RD |
5555 | { |
5556 | wxPy_BEGIN_ALLOW_THREADS; | |
5557 | wxDC_Clear(_arg0); | |
5558 | ||
5559 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5560 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5561 | } Py_INCREF(Py_None); |
70551f47 RD |
5562 | _resultobj = Py_None; |
5563 | return _resultobj; | |
5564 | } | |
5565 | ||
5566 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
107e4716 | 5567 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5568 | PyObject * _resultobj; |
5569 | wxDC * _arg0; | |
5570 | long _arg1; | |
5571 | long _arg2; | |
2d091820 | 5572 | PyObject * _argo0 = 0; |
107e4716 | 5573 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
5574 | |
5575 | self = self; | |
107e4716 | 5576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5577 | return NULL; |
2d091820 RD |
5578 | if (_argo0) { |
5579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
5582 | return NULL; | |
5583 | } | |
5584 | } | |
ab9bc19b RD |
5585 | { |
5586 | wxPy_BEGIN_ALLOW_THREADS; | |
5587 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
5588 | ||
5589 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5590 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5591 | } Py_INCREF(Py_None); |
70551f47 RD |
5592 | _resultobj = Py_None; |
5593 | return _resultobj; | |
5594 | } | |
5595 | ||
5596 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
107e4716 | 5597 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5598 | PyObject * _resultobj; |
5599 | wxDC * _arg0; | |
2d091820 | 5600 | PyObject * _argo0 = 0; |
107e4716 | 5601 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5602 | |
5603 | self = self; | |
107e4716 | 5604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
70551f47 | 5605 | return NULL; |
2d091820 RD |
5606 | if (_argo0) { |
5607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
5610 | return NULL; | |
5611 | } | |
5612 | } | |
ab9bc19b RD |
5613 | { |
5614 | wxPy_BEGIN_ALLOW_THREADS; | |
5615 | wxDC_DestroyClippingRegion(_arg0); | |
5616 | ||
5617 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5618 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5619 | } Py_INCREF(Py_None); |
70551f47 RD |
5620 | _resultobj = Py_None; |
5621 | return _resultobj; | |
5622 | } | |
5623 | ||
5624 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
107e4716 | 5625 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5626 | PyObject * _resultobj; |
5627 | long _result; | |
5628 | wxDC * _arg0; | |
5629 | long _arg1; | |
2d091820 | 5630 | PyObject * _argo0 = 0; |
107e4716 | 5631 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
5632 | |
5633 | self = self; | |
107e4716 | 5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5635 | return NULL; |
2d091820 RD |
5636 | if (_argo0) { |
5637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
5640 | return NULL; | |
5641 | } | |
5642 | } | |
ab9bc19b RD |
5643 | { |
5644 | wxPy_BEGIN_ALLOW_THREADS; | |
5645 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
5646 | ||
5647 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5648 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5649 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5650 | return _resultobj; |
5651 | } | |
5652 | ||
5653 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
107e4716 | 5654 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5655 | PyObject * _resultobj; |
5656 | long _result; | |
5657 | wxDC * _arg0; | |
5658 | long _arg1; | |
2d091820 | 5659 | PyObject * _argo0 = 0; |
107e4716 | 5660 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
5661 | |
5662 | self = self; | |
107e4716 | 5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5664 | return NULL; |
2d091820 RD |
5665 | if (_argo0) { |
5666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
5669 | return NULL; | |
5670 | } | |
5671 | } | |
ab9bc19b RD |
5672 | { |
5673 | wxPy_BEGIN_ALLOW_THREADS; | |
5674 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
5675 | ||
5676 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5677 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5678 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5679 | return _resultobj; |
5680 | } | |
5681 | ||
5682 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
107e4716 | 5683 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5684 | PyObject * _resultobj; |
5685 | long _result; | |
5686 | wxDC * _arg0; | |
5687 | long _arg1; | |
2d091820 | 5688 | PyObject * _argo0 = 0; |
107e4716 | 5689 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
5690 | |
5691 | self = self; | |
107e4716 | 5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5693 | return NULL; |
2d091820 RD |
5694 | if (_argo0) { |
5695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
5698 | return NULL; | |
5699 | } | |
5700 | } | |
ab9bc19b RD |
5701 | { |
5702 | wxPy_BEGIN_ALLOW_THREADS; | |
5703 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
5704 | ||
5705 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5706 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5707 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5708 | return _resultobj; |
5709 | } | |
5710 | ||
5711 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
107e4716 | 5712 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5713 | PyObject * _resultobj; |
5714 | long _result; | |
5715 | wxDC * _arg0; | |
5716 | long _arg1; | |
2d091820 | 5717 | PyObject * _argo0 = 0; |
107e4716 | 5718 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
5719 | |
5720 | self = self; | |
107e4716 | 5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5722 | return NULL; |
2d091820 RD |
5723 | if (_argo0) { |
5724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
5727 | return NULL; | |
5728 | } | |
5729 | } | |
ab9bc19b RD |
5730 | { |
5731 | wxPy_BEGIN_ALLOW_THREADS; | |
5732 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
5733 | ||
5734 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5735 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5736 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
5737 | return _resultobj; |
5738 | } | |
5739 | ||
5740 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 5741 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5742 | PyObject * _resultobj; |
5743 | wxDC * _arg0; | |
5744 | long _arg1; | |
5745 | long _arg2; | |
5746 | long _arg3; | |
5747 | long _arg4; | |
5748 | long _arg5; | |
5749 | long _arg6; | |
2d091820 | 5750 | PyObject * _argo0 = 0; |
107e4716 | 5751 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
70551f47 RD |
5752 | |
5753 | self = self; | |
107e4716 | 5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 5755 | return NULL; |
2d091820 RD |
5756 | if (_argo0) { |
5757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
5760 | return NULL; | |
5761 | } | |
5762 | } | |
ab9bc19b RD |
5763 | { |
5764 | wxPy_BEGIN_ALLOW_THREADS; | |
5765 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5766 | ||
5767 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5768 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5769 | } Py_INCREF(Py_None); |
70551f47 RD |
5770 | _resultobj = Py_None; |
5771 | return _resultobj; | |
5772 | } | |
5773 | ||
d24a34bb | 5774 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 5775 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
5776 | PyObject * _resultobj; |
5777 | wxDC * _arg0; | |
5778 | long _arg1; | |
5779 | long _arg2; | |
5780 | long _arg3; | |
2d091820 | 5781 | PyObject * _argo0 = 0; |
107e4716 | 5782 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
d24a34bb RD |
5783 | |
5784 | self = self; | |
107e4716 | 5785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
d24a34bb | 5786 | return NULL; |
2d091820 RD |
5787 | if (_argo0) { |
5788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
5790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
5791 | return NULL; | |
5792 | } | |
5793 | } | |
5794 | { | |
5795 | wxPy_BEGIN_ALLOW_THREADS; | |
5796 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
5797 | ||
5798 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5799 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
5800 | } Py_INCREF(Py_None); |
5801 | _resultobj = Py_None; | |
5802 | return _resultobj; | |
5803 | } | |
5804 | ||
70551f47 | 5805 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 5806 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5807 | PyObject * _resultobj; |
5808 | wxDC * _arg0; | |
5809 | long _arg1; | |
5810 | long _arg2; | |
5811 | long _arg3; | |
5812 | long _arg4; | |
2d091820 | 5813 | PyObject * _argo0 = 0; |
107e4716 | 5814 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
5815 | |
5816 | self = self; | |
107e4716 | 5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 5818 | return NULL; |
2d091820 RD |
5819 | if (_argo0) { |
5820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
5823 | return NULL; | |
5824 | } | |
5825 | } | |
ab9bc19b RD |
5826 | { |
5827 | wxPy_BEGIN_ALLOW_THREADS; | |
5828 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5829 | ||
5830 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5831 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5832 | } Py_INCREF(Py_None); |
70551f47 RD |
5833 | _resultobj = Py_None; |
5834 | return _resultobj; | |
5835 | } | |
5836 | ||
5837 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 5838 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5839 | PyObject * _resultobj; |
5840 | wxDC * _arg0; | |
5841 | long _arg1; | |
5842 | long _arg2; | |
5843 | long _arg3; | |
5844 | long _arg4; | |
5845 | long _arg5; | |
5846 | long _arg6; | |
2d091820 | 5847 | PyObject * _argo0 = 0; |
107e4716 | 5848 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
70551f47 RD |
5849 | |
5850 | self = self; | |
107e4716 | 5851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 5852 | return NULL; |
2d091820 RD |
5853 | if (_argo0) { |
5854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
5857 | return NULL; | |
5858 | } | |
5859 | } | |
ab9bc19b RD |
5860 | { |
5861 | wxPy_BEGIN_ALLOW_THREADS; | |
5862 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5863 | ||
5864 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5865 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5866 | } Py_INCREF(Py_None); |
70551f47 RD |
5867 | _resultobj = Py_None; |
5868 | return _resultobj; | |
5869 | } | |
5870 | ||
5871 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 5872 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5873 | PyObject * _resultobj; |
5874 | wxDC * _arg0; | |
5875 | wxIcon * _arg1; | |
5876 | long _arg2; | |
5877 | long _arg3; | |
2d091820 RD |
5878 | PyObject * _argo0 = 0; |
5879 | PyObject * _argo1 = 0; | |
107e4716 | 5880 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
70551f47 RD |
5881 | |
5882 | self = self; | |
107e4716 | 5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
70551f47 | 5884 | return NULL; |
2d091820 RD |
5885 | if (_argo0) { |
5886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
5889 | return NULL; | |
5890 | } | |
5891 | } | |
2d091820 RD |
5892 | if (_argo1) { |
5893 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
70551f47 RD |
5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
5896 | return NULL; | |
5897 | } | |
5898 | } | |
ab9bc19b RD |
5899 | { |
5900 | wxPy_BEGIN_ALLOW_THREADS; | |
5901 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
5902 | ||
5903 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5904 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5905 | } Py_INCREF(Py_None); |
70551f47 RD |
5906 | _resultobj = Py_None; |
5907 | return _resultobj; | |
5908 | } | |
5909 | ||
5910 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5911 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5912 | PyObject * _resultobj; |
5913 | wxDC * _arg0; | |
5914 | long _arg1; | |
5915 | long _arg2; | |
5916 | long _arg3; | |
5917 | long _arg4; | |
2d091820 | 5918 | PyObject * _argo0 = 0; |
107e4716 | 5919 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
70551f47 RD |
5920 | |
5921 | self = self; | |
107e4716 | 5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 5923 | return NULL; |
2d091820 RD |
5924 | if (_argo0) { |
5925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
5928 | return NULL; | |
5929 | } | |
5930 | } | |
ab9bc19b RD |
5931 | { |
5932 | wxPy_BEGIN_ALLOW_THREADS; | |
5933 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5934 | ||
5935 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5936 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5937 | } Py_INCREF(Py_None); |
70551f47 RD |
5938 | _resultobj = Py_None; |
5939 | return _resultobj; | |
5940 | } | |
5941 | ||
5942 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5943 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5944 | PyObject * _resultobj; |
5945 | wxDC * _arg0; | |
5946 | int _arg1; | |
5947 | wxPoint * _arg2; | |
2d091820 RD |
5948 | long _arg3 = (long ) 0; |
5949 | long _arg4 = (long ) 0; | |
5950 | PyObject * _argo0 = 0; | |
1c09ae54 | 5951 | int NPOINTS; |
70551f47 | 5952 | PyObject * _obj2 = 0; |
e02c03a4 | 5953 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
70551f47 RD |
5954 | |
5955 | self = self; | |
107e4716 | 5956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
70551f47 | 5957 | return NULL; |
2d091820 RD |
5958 | if (_argo0) { |
5959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
5962 | return NULL; | |
5963 | } | |
5964 | } | |
5965 | if (_obj2) | |
5966 | { | |
1c09ae54 RD |
5967 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
5968 | if (_arg2 == NULL) { | |
5969 | return NULL; | |
5970 | } | |
70551f47 RD |
5971 | } |
5972 | { | |
1c09ae54 | 5973 | _arg1 = NPOINTS; |
70551f47 | 5974 | } |
ab9bc19b RD |
5975 | { |
5976 | wxPy_BEGIN_ALLOW_THREADS; | |
5977 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5978 | ||
5979 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5980 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5981 | } Py_INCREF(Py_None); |
70551f47 RD |
5982 | _resultobj = Py_None; |
5983 | { | |
5984 | delete [] _arg2; | |
5985 | } | |
5986 | return _resultobj; | |
5987 | } | |
5988 | ||
5989 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 5990 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5991 | PyObject * _resultobj; |
5992 | wxDC * _arg0; | |
5993 | int _arg1; | |
5994 | wxPoint * _arg2; | |
2d091820 RD |
5995 | long _arg3 = (long ) 0; |
5996 | long _arg4 = (long ) 0; | |
5997 | int _arg5 = (int ) wxODDEVEN_RULE; | |
5998 | PyObject * _argo0 = 0; | |
1c09ae54 | 5999 | int NPOINTS; |
70551f47 | 6000 | PyObject * _obj2 = 0; |
e02c03a4 | 6001 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
70551f47 RD |
6002 | |
6003 | self = self; | |
107e4716 | 6004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 6005 | return NULL; |
2d091820 RD |
6006 | if (_argo0) { |
6007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
6010 | return NULL; | |
6011 | } | |
6012 | } | |
6013 | if (_obj2) | |
6014 | { | |
1c09ae54 RD |
6015 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6016 | if (_arg2 == NULL) { | |
6017 | return NULL; | |
6018 | } | |
70551f47 RD |
6019 | } |
6020 | { | |
1c09ae54 | 6021 | _arg1 = NPOINTS; |
70551f47 | 6022 | } |
ab9bc19b RD |
6023 | { |
6024 | wxPy_BEGIN_ALLOW_THREADS; | |
6025 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6026 | ||
6027 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6028 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6029 | } Py_INCREF(Py_None); |
70551f47 RD |
6030 | _resultobj = Py_None; |
6031 | { | |
6032 | delete [] _arg2; | |
6033 | } | |
6034 | return _resultobj; | |
6035 | } | |
6036 | ||
6037 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
107e4716 | 6038 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6039 | PyObject * _resultobj; |
6040 | wxDC * _arg0; | |
6041 | long _arg1; | |
6042 | long _arg2; | |
2d091820 | 6043 | PyObject * _argo0 = 0; |
107e4716 | 6044 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6045 | |
6046 | self = self; | |
107e4716 | 6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6048 | return NULL; |
2d091820 RD |
6049 | if (_argo0) { |
6050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
6053 | return NULL; | |
6054 | } | |
6055 | } | |
ab9bc19b RD |
6056 | { |
6057 | wxPy_BEGIN_ALLOW_THREADS; | |
6058 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
6059 | ||
6060 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6061 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6062 | } Py_INCREF(Py_None); |
70551f47 RD |
6063 | _resultobj = Py_None; |
6064 | return _resultobj; | |
6065 | } | |
6066 | ||
6067 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6068 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6069 | PyObject * _resultobj; |
6070 | wxDC * _arg0; | |
6071 | long _arg1; | |
6072 | long _arg2; | |
6073 | long _arg3; | |
6074 | long _arg4; | |
2d091820 | 6075 | PyObject * _argo0 = 0; |
107e4716 | 6076 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
6077 | |
6078 | self = self; | |
107e4716 | 6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6080 | return NULL; |
2d091820 RD |
6081 | if (_argo0) { |
6082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
6085 | return NULL; | |
6086 | } | |
6087 | } | |
ab9bc19b RD |
6088 | { |
6089 | wxPy_BEGIN_ALLOW_THREADS; | |
6090 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6091 | ||
6092 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6093 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6094 | } Py_INCREF(Py_None); |
70551f47 RD |
6095 | _resultobj = Py_None; |
6096 | return _resultobj; | |
6097 | } | |
6098 | ||
56f5d962 RD |
6099 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6100 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject * _resultobj; | |
6102 | wxDC * _arg0; | |
6103 | wxString * _arg1; | |
6104 | wxCoord _arg2; | |
6105 | wxCoord _arg3; | |
6106 | double _arg4; | |
6107 | PyObject * _argo0 = 0; | |
6108 | PyObject * _obj1 = 0; | |
6109 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6110 | ||
6111 | self = self; | |
6112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6113 | return NULL; | |
6114 | if (_argo0) { | |
6115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6118 | return NULL; | |
6119 | } | |
6120 | } | |
6121 | { | |
2cd2fac8 RD |
6122 | #if PYTHON_API_VERSION >= 1009 |
6123 | char* tmpPtr; int tmpSize; | |
6124 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6125 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6126 | return NULL; |
6127 | } | |
6128 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6129 | return NULL; | |
6130 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6131 | #else | |
56f5d962 RD |
6132 | if (!PyString_Check(_obj1)) { |
6133 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6134 | return NULL; | |
6135 | } | |
2cd2fac8 RD |
6136 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6137 | #endif | |
56f5d962 RD |
6138 | } |
6139 | { | |
6140 | wxPy_BEGIN_ALLOW_THREADS; | |
6141 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
6142 | ||
6143 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6144 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
6145 | } Py_INCREF(Py_None); |
6146 | _resultobj = Py_None; | |
6147 | { | |
6148 | if (_obj1) | |
6149 | delete _arg1; | |
6150 | } | |
6151 | return _resultobj; | |
6152 | } | |
6153 | ||
70551f47 | 6154 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 6155 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6156 | PyObject * _resultobj; |
6157 | wxDC * _arg0; | |
6158 | long _arg1; | |
6159 | long _arg2; | |
6160 | long _arg3; | |
6161 | long _arg4; | |
2d091820 RD |
6162 | long _arg5 = (long ) 20; |
6163 | PyObject * _argo0 = 0; | |
107e4716 | 6164 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
70551f47 RD |
6165 | |
6166 | self = self; | |
107e4716 | 6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 6168 | return NULL; |
2d091820 RD |
6169 | if (_argo0) { |
6170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
6173 | return NULL; | |
6174 | } | |
6175 | } | |
ab9bc19b RD |
6176 | { |
6177 | wxPy_BEGIN_ALLOW_THREADS; | |
6178 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6179 | ||
6180 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6181 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6182 | } Py_INCREF(Py_None); |
70551f47 RD |
6183 | _resultobj = Py_None; |
6184 | return _resultobj; | |
6185 | } | |
6186 | ||
6187 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
107e4716 | 6188 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6189 | PyObject * _resultobj; |
6190 | wxDC * _arg0; | |
6191 | int _arg1; | |
6192 | wxPoint * _arg2; | |
2d091820 | 6193 | PyObject * _argo0 = 0; |
1c09ae54 | 6194 | int NPOINTS; |
70551f47 | 6195 | PyObject * _obj2 = 0; |
e02c03a4 | 6196 | char *_kwnames[] = { "self","points", NULL }; |
70551f47 RD |
6197 | |
6198 | self = self; | |
107e4716 | 6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
70551f47 | 6200 | return NULL; |
2d091820 RD |
6201 | if (_argo0) { |
6202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
6205 | return NULL; | |
6206 | } | |
6207 | } | |
6208 | if (_obj2) | |
6209 | { | |
1c09ae54 RD |
6210 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6211 | if (_arg2 == NULL) { | |
6212 | return NULL; | |
6213 | } | |
70551f47 RD |
6214 | } |
6215 | { | |
1c09ae54 | 6216 | _arg1 = NPOINTS; |
70551f47 | 6217 | } |
ab9bc19b RD |
6218 | { |
6219 | wxPy_BEGIN_ALLOW_THREADS; | |
6220 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
6221 | ||
6222 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6223 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6224 | } Py_INCREF(Py_None); |
70551f47 RD |
6225 | _resultobj = Py_None; |
6226 | { | |
6227 | delete [] _arg2; | |
6228 | } | |
6229 | return _resultobj; | |
6230 | } | |
6231 | ||
6232 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 6233 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6234 | PyObject * _resultobj; |
6235 | wxDC * _arg0; | |
6236 | wxString * _arg1; | |
6237 | long _arg2; | |
6238 | long _arg3; | |
2d091820 | 6239 | PyObject * _argo0 = 0; |
70551f47 | 6240 | PyObject * _obj1 = 0; |
107e4716 | 6241 | char *_kwnames[] = { "self","text","x","y", NULL }; |
70551f47 RD |
6242 | |
6243 | self = self; | |
107e4716 | 6244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
70551f47 | 6245 | return NULL; |
2d091820 RD |
6246 | if (_argo0) { |
6247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
6250 | return NULL; | |
6251 | } | |
6252 | } | |
6253 | { | |
2cd2fac8 RD |
6254 | #if PYTHON_API_VERSION >= 1009 |
6255 | char* tmpPtr; int tmpSize; | |
6256 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6257 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6258 | return NULL; |
6259 | } | |
6260 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6261 | return NULL; | |
6262 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6263 | #else | |
70551f47 RD |
6264 | if (!PyString_Check(_obj1)) { |
6265 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6266 | return NULL; | |
6267 | } | |
2cd2fac8 RD |
6268 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6269 | #endif | |
70551f47 | 6270 | } |
ab9bc19b RD |
6271 | { |
6272 | wxPy_BEGIN_ALLOW_THREADS; | |
6273 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
6274 | ||
6275 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6276 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6277 | } Py_INCREF(Py_None); |
70551f47 RD |
6278 | _resultobj = Py_None; |
6279 | { | |
6280 | if (_obj1) | |
6281 | delete _arg1; | |
6282 | } | |
6283 | return _resultobj; | |
6284 | } | |
6285 | ||
6286 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
107e4716 | 6287 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6288 | PyObject * _resultobj; |
6289 | wxDC * _arg0; | |
2d091820 | 6290 | PyObject * _argo0 = 0; |
107e4716 | 6291 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6292 | |
6293 | self = self; | |
107e4716 | 6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
70551f47 | 6295 | return NULL; |
2d091820 RD |
6296 | if (_argo0) { |
6297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
6300 | return NULL; | |
6301 | } | |
6302 | } | |
ab9bc19b RD |
6303 | { |
6304 | wxPy_BEGIN_ALLOW_THREADS; | |
6305 | wxDC_EndDoc(_arg0); | |
6306 | ||
6307 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6308 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6309 | } Py_INCREF(Py_None); |
70551f47 RD |
6310 | _resultobj = Py_None; |
6311 | return _resultobj; | |
6312 | } | |
6313 | ||
6314 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
107e4716 | 6315 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6316 | PyObject * _resultobj; |
6317 | wxDC * _arg0; | |
2d091820 | 6318 | PyObject * _argo0 = 0; |
107e4716 | 6319 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6320 | |
6321 | self = self; | |
107e4716 | 6322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
70551f47 | 6323 | return NULL; |
2d091820 RD |
6324 | if (_argo0) { |
6325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
6328 | return NULL; | |
6329 | } | |
6330 | } | |
ab9bc19b RD |
6331 | { |
6332 | wxPy_BEGIN_ALLOW_THREADS; | |
6333 | wxDC_EndDrawing(_arg0); | |
6334 | ||
6335 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6336 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6337 | } Py_INCREF(Py_None); |
70551f47 RD |
6338 | _resultobj = Py_None; |
6339 | return _resultobj; | |
6340 | } | |
6341 | ||
6342 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
107e4716 | 6343 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6344 | PyObject * _resultobj; |
6345 | wxDC * _arg0; | |
2d091820 | 6346 | PyObject * _argo0 = 0; |
107e4716 | 6347 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6348 | |
6349 | self = self; | |
107e4716 | 6350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
70551f47 | 6351 | return NULL; |
2d091820 RD |
6352 | if (_argo0) { |
6353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
6356 | return NULL; | |
6357 | } | |
6358 | } | |
ab9bc19b RD |
6359 | { |
6360 | wxPy_BEGIN_ALLOW_THREADS; | |
6361 | wxDC_EndPage(_arg0); | |
6362 | ||
6363 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6364 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6365 | } Py_INCREF(Py_None); |
70551f47 RD |
6366 | _resultobj = Py_None; |
6367 | return _resultobj; | |
6368 | } | |
6369 | ||
6370 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6371 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6372 | PyObject * _resultobj; |
6373 | wxDC * _arg0; | |
6374 | long _arg1; | |
6375 | long _arg2; | |
6376 | wxColour * _arg3; | |
2d091820 RD |
6377 | int _arg4 = (int ) wxFLOOD_SURFACE; |
6378 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
6379 | wxColour temp; |
6380 | PyObject * _obj3 = 0; | |
107e4716 | 6381 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
70551f47 RD |
6382 | |
6383 | self = self; | |
f6bcfd97 | 6384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
70551f47 | 6385 | return NULL; |
2d091820 RD |
6386 | if (_argo0) { |
6387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
6390 | return NULL; | |
6391 | } | |
6392 | } | |
f6bcfd97 BP |
6393 | { |
6394 | _arg3 = &temp; | |
6395 | if (! wxColour_helper(_obj3, &_arg3)) | |
70551f47 | 6396 | return NULL; |
f6bcfd97 | 6397 | } |
ab9bc19b RD |
6398 | { |
6399 | wxPy_BEGIN_ALLOW_THREADS; | |
6400 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
6401 | ||
6402 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6403 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6404 | } Py_INCREF(Py_None); |
70551f47 RD |
6405 | _resultobj = Py_None; |
6406 | return _resultobj; | |
6407 | } | |
6408 | ||
6409 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
107e4716 | 6410 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6411 | PyObject * _resultobj; |
6412 | wxBrush * _result; | |
6413 | wxDC * _arg0; | |
2d091820 | 6414 | PyObject * _argo0 = 0; |
107e4716 | 6415 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6416 | char _ptemp[128]; |
6417 | ||
6418 | self = self; | |
107e4716 | 6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
70551f47 | 6420 | return NULL; |
2d091820 RD |
6421 | if (_argo0) { |
6422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
6425 | return NULL; | |
6426 | } | |
6427 | } | |
ab9bc19b RD |
6428 | { |
6429 | wxPy_BEGIN_ALLOW_THREADS; | |
6430 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
c95e68d8 | 6431 | _result = (wxBrush *) &_result_ref; |
ab9bc19b RD |
6432 | |
6433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6434 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6435 | } if (_result) { |
6436 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6437 | _resultobj = Py_BuildValue("s",_ptemp); | |
6438 | } else { | |
6439 | Py_INCREF(Py_None); | |
6440 | _resultobj = Py_None; | |
6441 | } | |
70551f47 RD |
6442 | return _resultobj; |
6443 | } | |
6444 | ||
6445 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
107e4716 | 6446 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6447 | PyObject * _resultobj; |
6448 | wxBrush * _result; | |
6449 | wxDC * _arg0; | |
2d091820 | 6450 | PyObject * _argo0 = 0; |
107e4716 | 6451 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6452 | char _ptemp[128]; |
6453 | ||
6454 | self = self; | |
107e4716 | 6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
70551f47 | 6456 | return NULL; |
2d091820 RD |
6457 | if (_argo0) { |
6458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
6461 | return NULL; | |
6462 | } | |
6463 | } | |
ab9bc19b RD |
6464 | { |
6465 | wxPy_BEGIN_ALLOW_THREADS; | |
6466 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
c95e68d8 | 6467 | _result = (wxBrush *) &_result_ref; |
ab9bc19b RD |
6468 | |
6469 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6470 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6471 | } if (_result) { |
6472 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6473 | _resultobj = Py_BuildValue("s",_ptemp); | |
6474 | } else { | |
6475 | Py_INCREF(Py_None); | |
6476 | _resultobj = Py_None; | |
6477 | } | |
70551f47 RD |
6478 | return _resultobj; |
6479 | } | |
6480 | ||
6481 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
107e4716 | 6482 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6483 | PyObject * _resultobj; |
6484 | long _result; | |
6485 | wxDC * _arg0; | |
2d091820 | 6486 | PyObject * _argo0 = 0; |
107e4716 | 6487 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6488 | |
6489 | self = self; | |
107e4716 | 6490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
70551f47 | 6491 | return NULL; |
2d091820 RD |
6492 | if (_argo0) { |
6493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
6496 | return NULL; | |
6497 | } | |
6498 | } | |
ab9bc19b RD |
6499 | { |
6500 | wxPy_BEGIN_ALLOW_THREADS; | |
6501 | _result = (long )wxDC_GetCharHeight(_arg0); | |
6502 | ||
6503 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6504 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6505 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6506 | return _resultobj; |
6507 | } | |
6508 | ||
6509 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
107e4716 | 6510 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6511 | PyObject * _resultobj; |
6512 | long _result; | |
6513 | wxDC * _arg0; | |
2d091820 | 6514 | PyObject * _argo0 = 0; |
107e4716 | 6515 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6516 | |
6517 | self = self; | |
107e4716 | 6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
70551f47 | 6519 | return NULL; |
2d091820 RD |
6520 | if (_argo0) { |
6521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
6524 | return NULL; | |
6525 | } | |
6526 | } | |
ab9bc19b RD |
6527 | { |
6528 | wxPy_BEGIN_ALLOW_THREADS; | |
6529 | _result = (long )wxDC_GetCharWidth(_arg0); | |
6530 | ||
6531 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6532 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6533 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6534 | return _resultobj; |
6535 | } | |
6536 | ||
6537 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6538 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6539 | PyObject * _resultobj; |
6540 | wxDC * _arg0; | |
6541 | long * _arg1; | |
6542 | long temp; | |
6543 | long * _arg2; | |
6544 | long temp0; | |
6545 | long * _arg3; | |
6546 | long temp1; | |
6547 | long * _arg4; | |
6548 | long temp2; | |
2d091820 | 6549 | PyObject * _argo0 = 0; |
107e4716 | 6550 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6551 | |
6552 | self = self; | |
6553 | { | |
6554 | _arg1 = &temp; | |
6555 | } | |
6556 | { | |
6557 | _arg2 = &temp0; | |
6558 | } | |
6559 | { | |
6560 | _arg3 = &temp1; | |
6561 | } | |
6562 | { | |
6563 | _arg4 = &temp2; | |
6564 | } | |
107e4716 | 6565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
70551f47 | 6566 | return NULL; |
2d091820 RD |
6567 | if (_argo0) { |
6568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
6571 | return NULL; | |
6572 | } | |
6573 | } | |
ab9bc19b RD |
6574 | { |
6575 | wxPy_BEGIN_ALLOW_THREADS; | |
6576 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6577 | ||
6578 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6579 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6580 | } Py_INCREF(Py_None); |
70551f47 RD |
6581 | _resultobj = Py_None; |
6582 | { | |
6583 | PyObject *o; | |
6584 | o = PyInt_FromLong((long) (*_arg1)); | |
6585 | _resultobj = t_output_helper(_resultobj, o); | |
6586 | } | |
6587 | { | |
6588 | PyObject *o; | |
6589 | o = PyInt_FromLong((long) (*_arg2)); | |
6590 | _resultobj = t_output_helper(_resultobj, o); | |
6591 | } | |
6592 | { | |
6593 | PyObject *o; | |
6594 | o = PyInt_FromLong((long) (*_arg3)); | |
6595 | _resultobj = t_output_helper(_resultobj, o); | |
6596 | } | |
6597 | { | |
6598 | PyObject *o; | |
6599 | o = PyInt_FromLong((long) (*_arg4)); | |
6600 | _resultobj = t_output_helper(_resultobj, o); | |
6601 | } | |
6602 | return _resultobj; | |
6603 | } | |
6604 | ||
6605 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
107e4716 | 6606 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6607 | PyObject * _resultobj; |
6608 | wxFont * _result; | |
6609 | wxDC * _arg0; | |
2d091820 | 6610 | PyObject * _argo0 = 0; |
107e4716 | 6611 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6612 | char _ptemp[128]; |
6613 | ||
6614 | self = self; | |
107e4716 | 6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
70551f47 | 6616 | return NULL; |
2d091820 RD |
6617 | if (_argo0) { |
6618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
6621 | return NULL; | |
6622 | } | |
6623 | } | |
ab9bc19b RD |
6624 | { |
6625 | wxPy_BEGIN_ALLOW_THREADS; | |
6626 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
c95e68d8 | 6627 | _result = (wxFont *) &_result_ref; |
ab9bc19b RD |
6628 | |
6629 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6630 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6631 | } if (_result) { |
6632 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
6633 | _resultobj = Py_BuildValue("s",_ptemp); | |
6634 | } else { | |
6635 | Py_INCREF(Py_None); | |
6636 | _resultobj = Py_None; | |
6637 | } | |
70551f47 RD |
6638 | return _resultobj; |
6639 | } | |
6640 | ||
6641 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
107e4716 | 6642 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6643 | PyObject * _resultobj; |
6644 | int _result; | |
6645 | wxDC * _arg0; | |
2d091820 | 6646 | PyObject * _argo0 = 0; |
107e4716 | 6647 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6648 | |
6649 | self = self; | |
107e4716 | 6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
70551f47 | 6651 | return NULL; |
2d091820 RD |
6652 | if (_argo0) { |
6653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
6656 | return NULL; | |
6657 | } | |
6658 | } | |
ab9bc19b RD |
6659 | { |
6660 | wxPy_BEGIN_ALLOW_THREADS; | |
6661 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
6662 | ||
6663 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6664 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6665 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6666 | return _resultobj; |
6667 | } | |
6668 | ||
e02c03a4 RD |
6669 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
6670 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6671 | PyObject * _resultobj; | |
6672 | wxDC * _arg0; | |
6673 | double * _arg1; | |
6674 | double temp; | |
6675 | double * _arg2; | |
6676 | double temp0; | |
6677 | PyObject * _argo0 = 0; | |
6678 | char *_kwnames[] = { "self", NULL }; | |
6679 | ||
6680 | self = self; | |
6681 | { | |
6682 | _arg1 = &temp; | |
6683 | } | |
6684 | { | |
6685 | _arg2 = &temp0; | |
6686 | } | |
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
6688 | return NULL; | |
6689 | if (_argo0) { | |
6690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
6693 | return NULL; | |
6694 | } | |
6695 | } | |
6696 | { | |
6697 | wxPy_BEGIN_ALLOW_THREADS; | |
6698 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
6699 | ||
6700 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6701 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
6702 | } Py_INCREF(Py_None); |
6703 | _resultobj = Py_None; | |
6704 | { | |
6705 | PyObject *o; | |
6706 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6707 | _resultobj = t_output_helper(_resultobj, o); | |
6708 | } | |
6709 | { | |
6710 | PyObject *o; | |
6711 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6712 | _resultobj = t_output_helper(_resultobj, o); | |
6713 | } | |
6714 | return _resultobj; | |
6715 | } | |
6716 | ||
70551f47 | 6717 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
107e4716 | 6718 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6719 | PyObject * _resultobj; |
6720 | int _result; | |
6721 | wxDC * _arg0; | |
2d091820 | 6722 | PyObject * _argo0 = 0; |
107e4716 | 6723 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6724 | |
6725 | self = self; | |
107e4716 | 6726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
70551f47 | 6727 | return NULL; |
2d091820 RD |
6728 | if (_argo0) { |
6729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
6732 | return NULL; | |
6733 | } | |
6734 | } | |
ab9bc19b RD |
6735 | { |
6736 | wxPy_BEGIN_ALLOW_THREADS; | |
6737 | _result = (int )wxDC_GetMapMode(_arg0); | |
6738 | ||
6739 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6740 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6741 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6742 | return _resultobj; |
6743 | } | |
6744 | ||
6745 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
107e4716 | 6746 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6747 | PyObject * _resultobj; |
6748 | bool _result; | |
6749 | wxDC * _arg0; | |
2d091820 | 6750 | PyObject * _argo0 = 0; |
107e4716 | 6751 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6752 | |
6753 | self = self; | |
107e4716 | 6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
70551f47 | 6755 | return NULL; |
2d091820 RD |
6756 | if (_argo0) { |
6757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
6760 | return NULL; | |
6761 | } | |
6762 | } | |
ab9bc19b RD |
6763 | { |
6764 | wxPy_BEGIN_ALLOW_THREADS; | |
6765 | _result = (bool )wxDC_GetOptimization(_arg0); | |
6766 | ||
6767 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6768 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6769 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6770 | return _resultobj; |
6771 | } | |
6772 | ||
6773 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
107e4716 | 6774 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6775 | PyObject * _resultobj; |
6776 | wxPen * _result; | |
6777 | wxDC * _arg0; | |
2d091820 | 6778 | PyObject * _argo0 = 0; |
107e4716 | 6779 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6780 | char _ptemp[128]; |
6781 | ||
6782 | self = self; | |
107e4716 | 6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
70551f47 | 6784 | return NULL; |
2d091820 RD |
6785 | if (_argo0) { |
6786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
6789 | return NULL; | |
6790 | } | |
6791 | } | |
ab9bc19b RD |
6792 | { |
6793 | wxPy_BEGIN_ALLOW_THREADS; | |
6794 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
c95e68d8 | 6795 | _result = (wxPen *) &_result_ref; |
ab9bc19b RD |
6796 | |
6797 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6798 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6799 | } if (_result) { |
6800 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6801 | _resultobj = Py_BuildValue("s",_ptemp); | |
6802 | } else { | |
6803 | Py_INCREF(Py_None); | |
6804 | _resultobj = Py_None; | |
6805 | } | |
70551f47 RD |
6806 | return _resultobj; |
6807 | } | |
6808 | ||
6809 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
6810 | wxColour* wc = new wxColour(); | |
6811 | self->GetPixel(x, y, wc); | |
6812 | return wc; | |
6813 | } | |
107e4716 | 6814 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6815 | PyObject * _resultobj; |
6816 | wxColour * _result; | |
6817 | wxDC * _arg0; | |
6818 | long _arg1; | |
6819 | long _arg2; | |
2d091820 | 6820 | PyObject * _argo0 = 0; |
107e4716 | 6821 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6822 | char _ptemp[128]; |
6823 | ||
6824 | self = self; | |
107e4716 | 6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6826 | return NULL; |
2d091820 RD |
6827 | if (_argo0) { |
6828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
6831 | return NULL; | |
6832 | } | |
6833 | } | |
ab9bc19b RD |
6834 | { |
6835 | wxPy_BEGIN_ALLOW_THREADS; | |
6836 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
6837 | ||
6838 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6839 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
6840 | } if (_result) { |
6841 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6842 | _resultobj = Py_BuildValue("s",_ptemp); | |
6843 | } else { | |
6844 | Py_INCREF(Py_None); | |
6845 | _resultobj = Py_None; | |
6846 | } | |
70551f47 RD |
6847 | return _resultobj; |
6848 | } | |
6849 | ||
d24a34bb | 6850 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
107e4716 | 6851 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6852 | PyObject * _resultobj; |
6853 | wxDC * _arg0; | |
6854 | int * _arg1; | |
6855 | int temp; | |
6856 | int * _arg2; | |
6857 | int temp0; | |
2d091820 | 6858 | PyObject * _argo0 = 0; |
107e4716 | 6859 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6860 | |
6861 | self = self; | |
6862 | { | |
6863 | _arg1 = &temp; | |
6864 | } | |
6865 | { | |
6866 | _arg2 = &temp0; | |
6867 | } | |
107e4716 | 6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
70551f47 | 6869 | return NULL; |
2d091820 RD |
6870 | if (_argo0) { |
6871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb | 6873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
70551f47 RD |
6874 | return NULL; |
6875 | } | |
6876 | } | |
ab9bc19b RD |
6877 | { |
6878 | wxPy_BEGIN_ALLOW_THREADS; | |
d24a34bb | 6879 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
ab9bc19b RD |
6880 | |
6881 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6882 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6883 | } Py_INCREF(Py_None); |
70551f47 RD |
6884 | _resultobj = Py_None; |
6885 | { | |
6886 | PyObject *o; | |
6887 | o = PyInt_FromLong((long) (*_arg1)); | |
6888 | _resultobj = t_output_helper(_resultobj, o); | |
6889 | } | |
6890 | { | |
6891 | PyObject *o; | |
6892 | o = PyInt_FromLong((long) (*_arg2)); | |
6893 | _resultobj = t_output_helper(_resultobj, o); | |
6894 | } | |
6895 | return _resultobj; | |
6896 | } | |
6897 | ||
d24a34bb | 6898 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
107e4716 | 6899 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
6900 | PyObject * _resultobj; |
6901 | wxSize * _result; | |
6902 | wxDC * _arg0; | |
2d091820 | 6903 | PyObject * _argo0 = 0; |
107e4716 | 6904 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6905 | char _ptemp[128]; |
6906 | ||
6907 | self = self; | |
107e4716 | 6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
d24a34bb | 6909 | return NULL; |
2d091820 RD |
6910 | if (_argo0) { |
6911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
6913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
6914 | return NULL; | |
6915 | } | |
6916 | } | |
6917 | { | |
6918 | wxPy_BEGIN_ALLOW_THREADS; | |
6919 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
6920 | ||
6921 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6922 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6923 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
6924 | _resultobj = Py_BuildValue("s",_ptemp); | |
6925 | return _resultobj; | |
6926 | } | |
6927 | ||
e02c03a4 RD |
6928 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
6929 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6930 | PyObject * _resultobj; | |
6931 | wxSize * _result; | |
6932 | wxDC * _arg0; | |
6933 | PyObject * _argo0 = 0; | |
6934 | char *_kwnames[] = { "self", NULL }; | |
6935 | char _ptemp[128]; | |
6936 | ||
6937 | self = self; | |
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
6939 | return NULL; | |
6940 | if (_argo0) { | |
6941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
6944 | return NULL; | |
6945 | } | |
6946 | } | |
6947 | { | |
6948 | wxPy_BEGIN_ALLOW_THREADS; | |
6949 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
6950 | ||
6951 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6952 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
6953 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
6954 | _resultobj = Py_BuildValue("s",_ptemp); | |
6955 | return _resultobj; | |
6956 | } | |
6957 | ||
70551f47 | 6958 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
107e4716 | 6959 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6960 | PyObject * _resultobj; |
6961 | wxColour * _result; | |
6962 | wxDC * _arg0; | |
2d091820 | 6963 | PyObject * _argo0 = 0; |
107e4716 | 6964 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6965 | char _ptemp[128]; |
6966 | ||
6967 | self = self; | |
107e4716 | 6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
70551f47 | 6969 | return NULL; |
2d091820 RD |
6970 | if (_argo0) { |
6971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
6974 | return NULL; | |
6975 | } | |
6976 | } | |
ab9bc19b RD |
6977 | { |
6978 | wxPy_BEGIN_ALLOW_THREADS; | |
84a81942 | 6979 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
ab9bc19b RD |
6980 | |
6981 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6982 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
6983 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6984 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
6985 | return _resultobj; |
6986 | } | |
6987 | ||
21f8d7ea | 6988 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 6989 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
6990 | PyObject * _resultobj; |
6991 | wxDC * _arg0; | |
6992 | wxString * _arg1; | |
6993 | long * _arg2; | |
6994 | long temp; | |
6995 | long * _arg3; | |
6996 | long temp0; | |
2d091820 | 6997 | PyObject * _argo0 = 0; |
21f8d7ea | 6998 | PyObject * _obj1 = 0; |
107e4716 | 6999 | char *_kwnames[] = { "self","string", NULL }; |
21f8d7ea RD |
7000 | |
7001 | self = self; | |
7002 | { | |
7003 | _arg2 = &temp; | |
7004 | } | |
7005 | { | |
7006 | _arg3 = &temp0; | |
7007 | } | |
107e4716 | 7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 7009 | return NULL; |
2d091820 RD |
7010 | if (_argo0) { |
7011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea RD |
7013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
7014 | return NULL; | |
7015 | } | |
7016 | } | |
7017 | { | |
2cd2fac8 RD |
7018 | #if PYTHON_API_VERSION >= 1009 |
7019 | char* tmpPtr; int tmpSize; | |
7020 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7021 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7022 | return NULL; |
7023 | } | |
7024 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7025 | return NULL; | |
7026 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7027 | #else | |
21f8d7ea RD |
7028 | if (!PyString_Check(_obj1)) { |
7029 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7030 | return NULL; | |
7031 | } | |
2cd2fac8 RD |
7032 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7033 | #endif | |
21f8d7ea | 7034 | } |
ab9bc19b RD |
7035 | { |
7036 | wxPy_BEGIN_ALLOW_THREADS; | |
7037 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
7038 | ||
7039 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7040 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7041 | } Py_INCREF(Py_None); |
21f8d7ea RD |
7042 | _resultobj = Py_None; |
7043 | { | |
7044 | PyObject *o; | |
7045 | o = PyInt_FromLong((long) (*_arg2)); | |
7046 | _resultobj = t_output_helper(_resultobj, o); | |
7047 | } | |
7048 | { | |
7049 | PyObject *o; | |
7050 | o = PyInt_FromLong((long) (*_arg3)); | |
7051 | _resultobj = t_output_helper(_resultobj, o); | |
7052 | } | |
7053 | { | |
7054 | if (_obj1) | |
7055 | delete _arg1; | |
7056 | } | |
7057 | return _resultobj; | |
7058 | } | |
7059 | ||
7060 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 7061 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7062 | PyObject * _resultobj; |
7063 | wxDC * _arg0; | |
7064 | wxString * _arg1; | |
7065 | long * _arg2; | |
7066 | long temp; | |
7067 | long * _arg3; | |
7068 | long temp0; | |
7069 | long * _arg4; | |
7070 | long temp1; | |
7071 | long * _arg5; | |
7072 | long temp2; | |
2d091820 RD |
7073 | wxFont * _arg6 = (wxFont *) NULL; |
7074 | PyObject * _argo0 = 0; | |
70551f47 | 7075 | PyObject * _obj1 = 0; |
2d091820 | 7076 | PyObject * _argo6 = 0; |
107e4716 | 7077 | char *_kwnames[] = { "self","string","font", NULL }; |
70551f47 RD |
7078 | |
7079 | self = self; | |
7080 | { | |
7081 | _arg2 = &temp; | |
7082 | } | |
7083 | { | |
7084 | _arg3 = &temp0; | |
7085 | } | |
7086 | { | |
7087 | _arg4 = &temp1; | |
7088 | } | |
7089 | { | |
7090 | _arg5 = &temp2; | |
7091 | } | |
107e4716 | 7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
70551f47 | 7093 | return NULL; |
2d091820 RD |
7094 | if (_argo0) { |
7095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea | 7097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
70551f47 RD |
7098 | return NULL; |
7099 | } | |
7100 | } | |
7101 | { | |
2cd2fac8 RD |
7102 | #if PYTHON_API_VERSION >= 1009 |
7103 | char* tmpPtr; int tmpSize; | |
7104 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7105 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7106 | return NULL; |
7107 | } | |
7108 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7109 | return NULL; | |
7110 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7111 | #else | |
70551f47 RD |
7112 | if (!PyString_Check(_obj1)) { |
7113 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7114 | return NULL; | |
7115 | } | |
2cd2fac8 RD |
7116 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7117 | #endif | |
70551f47 | 7118 | } |
2d091820 RD |
7119 | if (_argo6) { |
7120 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7121 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
21f8d7ea RD |
7122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
7123 | return NULL; | |
7124 | } | |
7125 | } | |
ab9bc19b RD |
7126 | { |
7127 | wxPy_BEGIN_ALLOW_THREADS; | |
7128 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7129 | ||
7130 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7131 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7132 | } Py_INCREF(Py_None); |
70551f47 RD |
7133 | _resultobj = Py_None; |
7134 | { | |
7135 | PyObject *o; | |
7136 | o = PyInt_FromLong((long) (*_arg2)); | |
7137 | _resultobj = t_output_helper(_resultobj, o); | |
7138 | } | |
7139 | { | |
7140 | PyObject *o; | |
7141 | o = PyInt_FromLong((long) (*_arg3)); | |
7142 | _resultobj = t_output_helper(_resultobj, o); | |
7143 | } | |
7144 | { | |
7145 | PyObject *o; | |
7146 | o = PyInt_FromLong((long) (*_arg4)); | |
7147 | _resultobj = t_output_helper(_resultobj, o); | |
7148 | } | |
7149 | { | |
7150 | PyObject *o; | |
7151 | o = PyInt_FromLong((long) (*_arg5)); | |
7152 | _resultobj = t_output_helper(_resultobj, o); | |
7153 | } | |
7154 | { | |
7155 | if (_obj1) | |
7156 | delete _arg1; | |
7157 | } | |
7158 | return _resultobj; | |
7159 | } | |
7160 | ||
7161 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
107e4716 | 7162 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7163 | PyObject * _resultobj; |
7164 | wxColour * _result; | |
7165 | wxDC * _arg0; | |
2d091820 | 7166 | PyObject * _argo0 = 0; |
107e4716 | 7167 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7168 | char _ptemp[128]; |
7169 | ||
7170 | self = self; | |
107e4716 | 7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
70551f47 | 7172 | return NULL; |
2d091820 RD |
7173 | if (_argo0) { |
7174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
7177 | return NULL; | |
7178 | } | |
7179 | } | |
ab9bc19b RD |
7180 | { |
7181 | wxPy_BEGIN_ALLOW_THREADS; | |
84a81942 | 7182 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
ab9bc19b RD |
7183 | |
7184 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7185 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
7186 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7187 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7188 | return _resultobj; |
7189 | } | |
7190 | ||
e02c03a4 RD |
7191 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
7192 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject * _resultobj; | |
7194 | wxDC * _arg0; | |
7195 | double * _arg1; | |
7196 | double temp; | |
7197 | double * _arg2; | |
7198 | double temp0; | |
7199 | PyObject * _argo0 = 0; | |
7200 | char *_kwnames[] = { "self", NULL }; | |
7201 | ||
7202 | self = self; | |
7203 | { | |
7204 | _arg1 = &temp; | |
7205 | } | |
7206 | { | |
7207 | _arg2 = &temp0; | |
7208 | } | |
7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
7210 | return NULL; | |
7211 | if (_argo0) { | |
7212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
7218 | { | |
7219 | wxPy_BEGIN_ALLOW_THREADS; | |
7220 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
7221 | ||
7222 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7223 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7224 | } Py_INCREF(Py_None); |
7225 | _resultobj = Py_None; | |
7226 | { | |
7227 | PyObject *o; | |
7228 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7229 | _resultobj = t_output_helper(_resultobj, o); | |
7230 | } | |
7231 | { | |
7232 | PyObject *o; | |
7233 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7234 | _resultobj = t_output_helper(_resultobj, o); | |
7235 | } | |
7236 | return _resultobj; | |
7237 | } | |
7238 | ||
70551f47 | 7239 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
107e4716 | 7240 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7241 | PyObject * _resultobj; |
7242 | long _result; | |
7243 | wxDC * _arg0; | |
7244 | long _arg1; | |
2d091820 | 7245 | PyObject * _argo0 = 0; |
107e4716 | 7246 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
7247 | |
7248 | self = self; | |
107e4716 | 7249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7250 | return NULL; |
2d091820 RD |
7251 | if (_argo0) { |
7252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
7255 | return NULL; | |
7256 | } | |
7257 | } | |
ab9bc19b RD |
7258 | { |
7259 | wxPy_BEGIN_ALLOW_THREADS; | |
7260 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
7261 | ||
7262 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7263 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7264 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7265 | return _resultobj; |
7266 | } | |
7267 | ||
7268 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
107e4716 | 7269 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7270 | PyObject * _resultobj; |
7271 | long _result; | |
7272 | wxDC * _arg0; | |
7273 | long _arg1; | |
2d091820 | 7274 | PyObject * _argo0 = 0; |
107e4716 | 7275 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
7276 | |
7277 | self = self; | |
107e4716 | 7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7279 | return NULL; |
2d091820 RD |
7280 | if (_argo0) { |
7281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
7284 | return NULL; | |
7285 | } | |
7286 | } | |
ab9bc19b RD |
7287 | { |
7288 | wxPy_BEGIN_ALLOW_THREADS; | |
7289 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
7290 | ||
7291 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7292 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7293 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7294 | return _resultobj; |
7295 | } | |
7296 | ||
7297 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
107e4716 | 7298 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7299 | PyObject * _resultobj; |
7300 | long _result; | |
7301 | wxDC * _arg0; | |
7302 | long _arg1; | |
2d091820 | 7303 | PyObject * _argo0 = 0; |
107e4716 | 7304 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
7305 | |
7306 | self = self; | |
107e4716 | 7307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7308 | return NULL; |
2d091820 RD |
7309 | if (_argo0) { |
7310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
7313 | return NULL; | |
7314 | } | |
7315 | } | |
ab9bc19b RD |
7316 | { |
7317 | wxPy_BEGIN_ALLOW_THREADS; | |
7318 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
7319 | ||
7320 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7321 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7322 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7323 | return _resultobj; |
7324 | } | |
7325 | ||
7326 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
107e4716 | 7327 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7328 | PyObject * _resultobj; |
7329 | long _result; | |
7330 | wxDC * _arg0; | |
7331 | long _arg1; | |
2d091820 | 7332 | PyObject * _argo0 = 0; |
107e4716 | 7333 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
7334 | |
7335 | self = self; | |
107e4716 | 7336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7337 | return NULL; |
2d091820 RD |
7338 | if (_argo0) { |
7339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
7342 | return NULL; | |
7343 | } | |
7344 | } | |
ab9bc19b RD |
7345 | { |
7346 | wxPy_BEGIN_ALLOW_THREADS; | |
7347 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
7348 | ||
7349 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7350 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7351 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7352 | return _resultobj; |
7353 | } | |
7354 | ||
7355 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
107e4716 | 7356 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7357 | PyObject * _resultobj; |
7358 | long _result; | |
7359 | wxDC * _arg0; | |
2d091820 | 7360 | PyObject * _argo0 = 0; |
107e4716 | 7361 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7362 | |
7363 | self = self; | |
107e4716 | 7364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
70551f47 | 7365 | return NULL; |
2d091820 RD |
7366 | if (_argo0) { |
7367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
7370 | return NULL; | |
7371 | } | |
7372 | } | |
ab9bc19b RD |
7373 | { |
7374 | wxPy_BEGIN_ALLOW_THREADS; | |
7375 | _result = (long )wxDC_MaxX(_arg0); | |
7376 | ||
7377 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7378 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7379 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7380 | return _resultobj; |
7381 | } | |
7382 | ||
7383 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
107e4716 | 7384 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7385 | PyObject * _resultobj; |
7386 | long _result; | |
7387 | wxDC * _arg0; | |
2d091820 | 7388 | PyObject * _argo0 = 0; |
107e4716 | 7389 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7390 | |
7391 | self = self; | |
107e4716 | 7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
70551f47 | 7393 | return NULL; |
2d091820 RD |
7394 | if (_argo0) { |
7395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
7398 | return NULL; | |
7399 | } | |
7400 | } | |
ab9bc19b RD |
7401 | { |
7402 | wxPy_BEGIN_ALLOW_THREADS; | |
7403 | _result = (long )wxDC_MaxY(_arg0); | |
7404 | ||
7405 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7406 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7407 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7408 | return _resultobj; |
7409 | } | |
7410 | ||
7411 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
107e4716 | 7412 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7413 | PyObject * _resultobj; |
7414 | long _result; | |
7415 | wxDC * _arg0; | |
2d091820 | 7416 | PyObject * _argo0 = 0; |
107e4716 | 7417 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7418 | |
7419 | self = self; | |
107e4716 | 7420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
70551f47 | 7421 | return NULL; |
2d091820 RD |
7422 | if (_argo0) { |
7423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
7426 | return NULL; | |
7427 | } | |
7428 | } | |
ab9bc19b RD |
7429 | { |
7430 | wxPy_BEGIN_ALLOW_THREADS; | |
7431 | _result = (long )wxDC_MinX(_arg0); | |
7432 | ||
7433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7434 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7435 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7436 | return _resultobj; |
7437 | } | |
7438 | ||
7439 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
107e4716 | 7440 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7441 | PyObject * _resultobj; |
7442 | long _result; | |
7443 | wxDC * _arg0; | |
2d091820 | 7444 | PyObject * _argo0 = 0; |
107e4716 | 7445 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7446 | |
7447 | self = self; | |
107e4716 | 7448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
70551f47 | 7449 | return NULL; |
2d091820 RD |
7450 | if (_argo0) { |
7451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
7454 | return NULL; | |
7455 | } | |
7456 | } | |
ab9bc19b RD |
7457 | { |
7458 | wxPy_BEGIN_ALLOW_THREADS; | |
7459 | _result = (long )wxDC_MinY(_arg0); | |
7460 | ||
7461 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7462 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7463 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7464 | return _resultobj; |
7465 | } | |
7466 | ||
7467 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 7468 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7469 | PyObject * _resultobj; |
7470 | bool _result; | |
7471 | wxDC * _arg0; | |
2d091820 | 7472 | PyObject * _argo0 = 0; |
107e4716 | 7473 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7474 | |
7475 | self = self; | |
107e4716 | 7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
70551f47 | 7477 | return NULL; |
2d091820 RD |
7478 | if (_argo0) { |
7479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
7482 | return NULL; | |
7483 | } | |
7484 | } | |
ab9bc19b RD |
7485 | { |
7486 | wxPy_BEGIN_ALLOW_THREADS; | |
7487 | _result = (bool )wxDC_Ok(_arg0); | |
7488 | ||
7489 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7490 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7491 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7492 | return _resultobj; |
7493 | } | |
7494 | ||
7495 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
107e4716 | 7496 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7497 | PyObject * _resultobj; |
7498 | wxDC * _arg0; | |
7499 | long _arg1; | |
7500 | long _arg2; | |
2d091820 | 7501 | PyObject * _argo0 = 0; |
107e4716 | 7502 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
7503 | |
7504 | self = self; | |
107e4716 | 7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7506 | return NULL; |
2d091820 RD |
7507 | if (_argo0) { |
7508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
7511 | return NULL; | |
7512 | } | |
7513 | } | |
ab9bc19b RD |
7514 | { |
7515 | wxPy_BEGIN_ALLOW_THREADS; | |
7516 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
7517 | ||
7518 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7519 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7520 | } Py_INCREF(Py_None); |
70551f47 RD |
7521 | _resultobj = Py_None; |
7522 | return _resultobj; | |
7523 | } | |
7524 | ||
7525 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
107e4716 | 7526 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7527 | PyObject * _resultobj; |
7528 | wxDC * _arg0; | |
7529 | wxBrush * _arg1; | |
2d091820 RD |
7530 | PyObject * _argo0 = 0; |
7531 | PyObject * _argo1 = 0; | |
107e4716 | 7532 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
7533 | |
7534 | self = self; | |
107e4716 | 7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7536 | return NULL; |
2d091820 RD |
7537 | if (_argo0) { |
7538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
7541 | return NULL; | |
7542 | } | |
7543 | } | |
2d091820 RD |
7544 | if (_argo1) { |
7545 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7546 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
7547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
7548 | return NULL; | |
7549 | } | |
7550 | } | |
ab9bc19b RD |
7551 | { |
7552 | wxPy_BEGIN_ALLOW_THREADS; | |
7553 | wxDC_SetBackground(_arg0,*_arg1); | |
7554 | ||
7555 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7556 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7557 | } Py_INCREF(Py_None); |
70551f47 RD |
7558 | _resultobj = Py_None; |
7559 | return _resultobj; | |
7560 | } | |
7561 | ||
7562 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
107e4716 | 7563 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7564 | PyObject * _resultobj; |
7565 | wxDC * _arg0; | |
7566 | int _arg1; | |
2d091820 | 7567 | PyObject * _argo0 = 0; |
107e4716 | 7568 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
7569 | |
7570 | self = self; | |
107e4716 | 7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7572 | return NULL; |
2d091820 RD |
7573 | if (_argo0) { |
7574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
7577 | return NULL; | |
7578 | } | |
7579 | } | |
ab9bc19b RD |
7580 | { |
7581 | wxPy_BEGIN_ALLOW_THREADS; | |
7582 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
7583 | ||
7584 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7585 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7586 | } Py_INCREF(Py_None); |
70551f47 RD |
7587 | _resultobj = Py_None; |
7588 | return _resultobj; | |
7589 | } | |
7590 | ||
7591 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 7592 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7593 | PyObject * _resultobj; |
7594 | wxDC * _arg0; | |
7595 | long _arg1; | |
7596 | long _arg2; | |
7597 | long _arg3; | |
7598 | long _arg4; | |
2d091820 | 7599 | PyObject * _argo0 = 0; |
107e4716 | 7600 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
7601 | |
7602 | self = self; | |
107e4716 | 7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 7604 | return NULL; |
2d091820 RD |
7605 | if (_argo0) { |
7606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
7609 | return NULL; | |
7610 | } | |
7611 | } | |
ab9bc19b RD |
7612 | { |
7613 | wxPy_BEGIN_ALLOW_THREADS; | |
7614 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7615 | ||
7616 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7617 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7618 | } Py_INCREF(Py_None); |
70551f47 RD |
7619 | _resultobj = Py_None; |
7620 | return _resultobj; | |
7621 | } | |
7622 | ||
059a841c RD |
7623 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
7624 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7625 | PyObject * _resultobj; | |
7626 | wxDC * _arg0; | |
7627 | wxRegion * _arg1; | |
7628 | PyObject * _argo0 = 0; | |
7629 | PyObject * _argo1 = 0; | |
7630 | char *_kwnames[] = { "self","region", NULL }; | |
7631 | ||
7632 | self = self; | |
7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
7634 | return NULL; | |
7635 | if (_argo0) { | |
7636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
7639 | return NULL; | |
7640 | } | |
7641 | } | |
7642 | if (_argo1) { | |
7643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
7645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
7646 | return NULL; | |
7647 | } | |
7648 | } | |
7649 | { | |
7650 | wxPy_BEGIN_ALLOW_THREADS; | |
7651 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); | |
7652 | ||
7653 | wxPy_END_ALLOW_THREADS; | |
7654 | if (PyErr_Occurred()) return NULL; | |
7655 | } Py_INCREF(Py_None); | |
7656 | _resultobj = Py_None; | |
7657 | return _resultobj; | |
7658 | } | |
7659 | ||
70551f47 | 7660 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
107e4716 | 7661 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7662 | PyObject * _resultobj; |
7663 | wxDC * _arg0; | |
7664 | wxPalette * _arg1; | |
2d091820 RD |
7665 | PyObject * _argo0 = 0; |
7666 | PyObject * _argo1 = 0; | |
107e4716 | 7667 | char *_kwnames[] = { "self","colourMap", NULL }; |
70551f47 RD |
7668 | |
7669 | self = self; | |
107e4716 | 7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7671 | return NULL; |
2d091820 RD |
7672 | if (_argo0) { |
7673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
7676 | return NULL; | |
7677 | } | |
7678 | } | |
2d091820 RD |
7679 | if (_argo1) { |
7680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
70551f47 RD |
7682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
7683 | return NULL; | |
7684 | } | |
7685 | } | |
ab9bc19b RD |
7686 | { |
7687 | wxPy_BEGIN_ALLOW_THREADS; | |
7688 | wxDC_SetPalette(_arg0,*_arg1); | |
7689 | ||
7690 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7691 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7692 | } Py_INCREF(Py_None); |
70551f47 RD |
7693 | _resultobj = Py_None; |
7694 | return _resultobj; | |
7695 | } | |
7696 | ||
7697 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
107e4716 | 7698 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7699 | PyObject * _resultobj; |
7700 | wxDC * _arg0; | |
7701 | wxBrush * _arg1; | |
2d091820 RD |
7702 | PyObject * _argo0 = 0; |
7703 | PyObject * _argo1 = 0; | |
107e4716 | 7704 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
7705 | |
7706 | self = self; | |
107e4716 | 7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7708 | return NULL; |
2d091820 RD |
7709 | if (_argo0) { |
7710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
7713 | return NULL; | |
7714 | } | |
7715 | } | |
2d091820 RD |
7716 | if (_argo1) { |
7717 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7718 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
7719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
7720 | return NULL; | |
7721 | } | |
7722 | } | |
ab9bc19b RD |
7723 | { |
7724 | wxPy_BEGIN_ALLOW_THREADS; | |
7725 | wxDC_SetBrush(_arg0,*_arg1); | |
7726 | ||
7727 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7728 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7729 | } Py_INCREF(Py_None); |
70551f47 RD |
7730 | _resultobj = Py_None; |
7731 | return _resultobj; | |
7732 | } | |
7733 | ||
7734 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
107e4716 | 7735 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7736 | PyObject * _resultobj; |
7737 | wxDC * _arg0; | |
7738 | wxFont * _arg1; | |
2d091820 RD |
7739 | PyObject * _argo0 = 0; |
7740 | PyObject * _argo1 = 0; | |
107e4716 | 7741 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
7742 | |
7743 | self = self; | |
107e4716 | 7744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7745 | return NULL; |
2d091820 RD |
7746 | if (_argo0) { |
7747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
7750 | return NULL; | |
7751 | } | |
7752 | } | |
2d091820 RD |
7753 | if (_argo1) { |
7754 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7755 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
7756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
7757 | return NULL; | |
7758 | } | |
7759 | } | |
ab9bc19b RD |
7760 | { |
7761 | wxPy_BEGIN_ALLOW_THREADS; | |
7762 | wxDC_SetFont(_arg0,*_arg1); | |
7763 | ||
7764 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7765 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7766 | } Py_INCREF(Py_None); |
70551f47 RD |
7767 | _resultobj = Py_None; |
7768 | return _resultobj; | |
7769 | } | |
7770 | ||
7771 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
107e4716 | 7772 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7773 | PyObject * _resultobj; |
7774 | wxDC * _arg0; | |
7775 | int _arg1; | |
2d091820 | 7776 | PyObject * _argo0 = 0; |
107e4716 | 7777 | char *_kwnames[] = { "self","function", NULL }; |
70551f47 RD |
7778 | |
7779 | self = self; | |
107e4716 | 7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7781 | return NULL; |
2d091820 RD |
7782 | if (_argo0) { |
7783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
7786 | return NULL; | |
7787 | } | |
7788 | } | |
ab9bc19b RD |
7789 | { |
7790 | wxPy_BEGIN_ALLOW_THREADS; | |
7791 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
7792 | ||
7793 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7794 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7795 | } Py_INCREF(Py_None); |
70551f47 RD |
7796 | _resultobj = Py_None; |
7797 | return _resultobj; | |
7798 | } | |
7799 | ||
e02c03a4 RD |
7800 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
7801 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject * _resultobj; | |
7803 | wxDC * _arg0; | |
7804 | double _arg1; | |
7805 | double _arg2; | |
7806 | PyObject * _argo0 = 0; | |
7807 | char *_kwnames[] = { "self","x","y", NULL }; | |
7808 | ||
7809 | self = self; | |
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7811 | return NULL; | |
7812 | if (_argo0) { | |
7813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
7816 | return NULL; | |
7817 | } | |
7818 | } | |
7819 | { | |
7820 | wxPy_BEGIN_ALLOW_THREADS; | |
7821 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
7822 | ||
7823 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7824 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7825 | } Py_INCREF(Py_None); |
7826 | _resultobj = Py_None; | |
7827 | return _resultobj; | |
7828 | } | |
7829 | ||
70551f47 | 7830 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
107e4716 | 7831 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7832 | PyObject * _resultobj; |
7833 | wxDC * _arg0; | |
7834 | int _arg1; | |
2d091820 | 7835 | PyObject * _argo0 = 0; |
107e4716 | 7836 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
7837 | |
7838 | self = self; | |
107e4716 | 7839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7840 | return NULL; |
2d091820 RD |
7841 | if (_argo0) { |
7842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
7845 | return NULL; | |
7846 | } | |
7847 | } | |
ab9bc19b RD |
7848 | { |
7849 | wxPy_BEGIN_ALLOW_THREADS; | |
7850 | wxDC_SetMapMode(_arg0,_arg1); | |
7851 | ||
7852 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7853 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7854 | } Py_INCREF(Py_None); |
70551f47 RD |
7855 | _resultobj = Py_None; |
7856 | return _resultobj; | |
7857 | } | |
7858 | ||
7859 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
107e4716 | 7860 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7861 | PyObject * _resultobj; |
7862 | wxDC * _arg0; | |
7863 | bool _arg1; | |
2d091820 | 7864 | PyObject * _argo0 = 0; |
70551f47 | 7865 | int tempbool1; |
107e4716 | 7866 | char *_kwnames[] = { "self","optimize", NULL }; |
70551f47 RD |
7867 | |
7868 | self = self; | |
107e4716 | 7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 7870 | return NULL; |
2d091820 RD |
7871 | if (_argo0) { |
7872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
7875 | return NULL; | |
7876 | } | |
7877 | } | |
7878 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
7879 | { |
7880 | wxPy_BEGIN_ALLOW_THREADS; | |
7881 | wxDC_SetOptimization(_arg0,_arg1); | |
7882 | ||
7883 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7884 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7885 | } Py_INCREF(Py_None); |
70551f47 RD |
7886 | _resultobj = Py_None; |
7887 | return _resultobj; | |
7888 | } | |
7889 | ||
7890 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
107e4716 | 7891 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7892 | PyObject * _resultobj; |
7893 | wxDC * _arg0; | |
7894 | wxPen * _arg1; | |
2d091820 RD |
7895 | PyObject * _argo0 = 0; |
7896 | PyObject * _argo1 = 0; | |
107e4716 | 7897 | char *_kwnames[] = { "self","pen", NULL }; |
70551f47 RD |
7898 | |
7899 | self = self; | |
107e4716 | 7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7901 | return NULL; |
2d091820 RD |
7902 | if (_argo0) { |
7903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
7906 | return NULL; | |
7907 | } | |
7908 | } | |
2d091820 RD |
7909 | if (_argo1) { |
7910 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7911 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
70551f47 RD |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
7913 | return NULL; | |
7914 | } | |
7915 | } | |
ab9bc19b RD |
7916 | { |
7917 | wxPy_BEGIN_ALLOW_THREADS; | |
7918 | wxDC_SetPen(_arg0,*_arg1); | |
7919 | ||
7920 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7921 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7922 | } Py_INCREF(Py_None); |
70551f47 RD |
7923 | _resultobj = Py_None; |
7924 | return _resultobj; | |
7925 | } | |
7926 | ||
7927 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
107e4716 | 7928 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7929 | PyObject * _resultobj; |
7930 | wxDC * _arg0; | |
7931 | wxColour * _arg1; | |
2d091820 | 7932 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
7933 | wxColour temp; |
7934 | PyObject * _obj1 = 0; | |
107e4716 | 7935 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
7936 | |
7937 | self = self; | |
f6bcfd97 | 7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7939 | return NULL; |
2d091820 RD |
7940 | if (_argo0) { |
7941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
7944 | return NULL; | |
7945 | } | |
7946 | } | |
f6bcfd97 BP |
7947 | { |
7948 | _arg1 = &temp; | |
7949 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 7950 | return NULL; |
f6bcfd97 | 7951 | } |
ab9bc19b RD |
7952 | { |
7953 | wxPy_BEGIN_ALLOW_THREADS; | |
7954 | wxDC_SetTextBackground(_arg0,*_arg1); | |
7955 | ||
7956 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7957 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7958 | } Py_INCREF(Py_None); |
70551f47 RD |
7959 | _resultobj = Py_None; |
7960 | return _resultobj; | |
7961 | } | |
7962 | ||
7963 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
107e4716 | 7964 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7965 | PyObject * _resultobj; |
7966 | wxDC * _arg0; | |
7967 | wxColour * _arg1; | |
2d091820 | 7968 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
7969 | wxColour temp; |
7970 | PyObject * _obj1 = 0; | |
107e4716 | 7971 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
7972 | |
7973 | self = self; | |
f6bcfd97 | 7974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7975 | return NULL; |
2d091820 RD |
7976 | if (_argo0) { |
7977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
7980 | return NULL; | |
7981 | } | |
7982 | } | |
f6bcfd97 BP |
7983 | { |
7984 | _arg1 = &temp; | |
7985 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 7986 | return NULL; |
f6bcfd97 | 7987 | } |
ab9bc19b RD |
7988 | { |
7989 | wxPy_BEGIN_ALLOW_THREADS; | |
7990 | wxDC_SetTextForeground(_arg0,*_arg1); | |
7991 | ||
7992 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7993 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7994 | } Py_INCREF(Py_None); |
70551f47 RD |
7995 | _resultobj = Py_None; |
7996 | return _resultobj; | |
7997 | } | |
7998 | ||
7999 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
107e4716 | 8000 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8001 | PyObject * _resultobj; |
8002 | wxDC * _arg0; | |
8003 | double _arg1; | |
8004 | double _arg2; | |
2d091820 | 8005 | PyObject * _argo0 = 0; |
107e4716 | 8006 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
70551f47 RD |
8007 | |
8008 | self = self; | |
107e4716 | 8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8010 | return NULL; |
2d091820 RD |
8011 | if (_argo0) { |
8012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
8015 | return NULL; | |
8016 | } | |
8017 | } | |
ab9bc19b RD |
8018 | { |
8019 | wxPy_BEGIN_ALLOW_THREADS; | |
8020 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
8021 | ||
8022 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8023 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8024 | } Py_INCREF(Py_None); |
70551f47 RD |
8025 | _resultobj = Py_None; |
8026 | return _resultobj; | |
8027 | } | |
8028 | ||
8029 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
107e4716 | 8030 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8031 | PyObject * _resultobj; |
8032 | bool _result; | |
8033 | wxDC * _arg0; | |
8034 | wxString * _arg1; | |
2d091820 | 8035 | PyObject * _argo0 = 0; |
70551f47 | 8036 | PyObject * _obj1 = 0; |
107e4716 | 8037 | char *_kwnames[] = { "self","message", NULL }; |
70551f47 RD |
8038 | |
8039 | self = self; | |
107e4716 | 8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8041 | return NULL; |
2d091820 RD |
8042 | if (_argo0) { |
8043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
8046 | return NULL; | |
8047 | } | |
8048 | } | |
8049 | { | |
2cd2fac8 RD |
8050 | #if PYTHON_API_VERSION >= 1009 |
8051 | char* tmpPtr; int tmpSize; | |
8052 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8053 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8054 | return NULL; |
8055 | } | |
8056 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8057 | return NULL; | |
8058 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8059 | #else | |
70551f47 RD |
8060 | if (!PyString_Check(_obj1)) { |
8061 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8062 | return NULL; | |
8063 | } | |
2cd2fac8 RD |
8064 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8065 | #endif | |
70551f47 | 8066 | } |
ab9bc19b RD |
8067 | { |
8068 | wxPy_BEGIN_ALLOW_THREADS; | |
8069 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
8070 | ||
8071 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8072 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8073 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8074 | { |
8075 | if (_obj1) | |
8076 | delete _arg1; | |
8077 | } | |
8078 | return _resultobj; | |
8079 | } | |
8080 | ||
8081 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
107e4716 | 8082 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8083 | PyObject * _resultobj; |
8084 | wxDC * _arg0; | |
2d091820 | 8085 | PyObject * _argo0 = 0; |
107e4716 | 8086 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8087 | |
8088 | self = self; | |
107e4716 | 8089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
70551f47 | 8090 | return NULL; |
2d091820 RD |
8091 | if (_argo0) { |
8092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
8095 | return NULL; | |
8096 | } | |
8097 | } | |
ab9bc19b RD |
8098 | { |
8099 | wxPy_BEGIN_ALLOW_THREADS; | |
8100 | wxDC_StartPage(_arg0); | |
8101 | ||
8102 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8103 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8104 | } Py_INCREF(Py_None); |
70551f47 RD |
8105 | _resultobj = Py_None; |
8106 | return _resultobj; | |
8107 | } | |
8108 | ||
107e4716 RD |
8109 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8110 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8111 | PyObject * _resultobj; |
8112 | wxDC * _arg0; | |
8113 | wxBitmap * _arg1; | |
8114 | long _arg2; | |
8115 | long _arg3; | |
107e4716 | 8116 | int _arg4 = (int ) FALSE; |
2d091820 RD |
8117 | PyObject * _argo0 = 0; |
8118 | PyObject * _argo1 = 0; | |
107e4716 | 8119 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
70551f47 RD |
8120 | |
8121 | self = self; | |
107e4716 | 8122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 8123 | return NULL; |
2d091820 RD |
8124 | if (_argo0) { |
8125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
8128 | return NULL; | |
8129 | } | |
8130 | } | |
2d091820 RD |
8131 | if (_argo1) { |
8132 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8133 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
8134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
8135 | return NULL; | |
8136 | } | |
8137 | } | |
ab9bc19b RD |
8138 | { |
8139 | wxPy_BEGIN_ALLOW_THREADS; | |
8140 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
8141 | ||
8142 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8143 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8144 | } Py_INCREF(Py_None); |
70551f47 RD |
8145 | _resultobj = Py_None; |
8146 | return _resultobj; | |
8147 | } | |
8148 | ||
e02c03a4 RD |
8149 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
8150 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8151 | PyObject * _resultobj; | |
8152 | bool _result; | |
8153 | wxDC * _arg0; | |
8154 | PyObject * _argo0 = 0; | |
8155 | char *_kwnames[] = { "self", NULL }; | |
8156 | ||
8157 | self = self; | |
8158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
8159 | return NULL; | |
8160 | if (_argo0) { | |
8161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
8164 | return NULL; | |
8165 | } | |
8166 | } | |
8167 | { | |
8168 | wxPy_BEGIN_ALLOW_THREADS; | |
8169 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
8170 | ||
8171 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8172 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8173 | } _resultobj = Py_BuildValue("i",_result); |
8174 | return _resultobj; | |
8175 | } | |
8176 | ||
8177 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
8178 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8179 | PyObject * _resultobj; | |
8180 | bool _result; | |
8181 | wxDC * _arg0; | |
8182 | PyObject * _argo0 = 0; | |
8183 | char *_kwnames[] = { "self", NULL }; | |
8184 | ||
8185 | self = self; | |
8186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
8187 | return NULL; | |
8188 | if (_argo0) { | |
8189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
8192 | return NULL; | |
8193 | } | |
8194 | } | |
8195 | { | |
8196 | wxPy_BEGIN_ALLOW_THREADS; | |
8197 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
8198 | ||
8199 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8200 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8201 | } _resultobj = Py_BuildValue("i",_result); |
8202 | return _resultobj; | |
8203 | } | |
8204 | ||
8205 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
8206 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8207 | PyObject * _resultobj; | |
8208 | int _result; | |
8209 | wxDC * _arg0; | |
8210 | PyObject * _argo0 = 0; | |
8211 | char *_kwnames[] = { "self", NULL }; | |
8212 | ||
8213 | self = self; | |
8214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
8215 | return NULL; | |
8216 | if (_argo0) { | |
8217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
8220 | return NULL; | |
8221 | } | |
8222 | } | |
8223 | { | |
8224 | wxPy_BEGIN_ALLOW_THREADS; | |
8225 | _result = (int )wxDC_GetDepth(_arg0); | |
8226 | ||
8227 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8228 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8229 | } _resultobj = Py_BuildValue("i",_result); |
8230 | return _resultobj; | |
8231 | } | |
8232 | ||
8233 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
8234 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8235 | PyObject * _resultobj; | |
8236 | wxSize * _result; | |
8237 | wxDC * _arg0; | |
8238 | PyObject * _argo0 = 0; | |
8239 | char *_kwnames[] = { "self", NULL }; | |
8240 | char _ptemp[128]; | |
8241 | ||
8242 | self = self; | |
8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
8244 | return NULL; | |
8245 | if (_argo0) { | |
8246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
8249 | return NULL; | |
8250 | } | |
8251 | } | |
8252 | { | |
8253 | wxPy_BEGIN_ALLOW_THREADS; | |
8254 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
8255 | ||
8256 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8257 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8258 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8259 | _resultobj = Py_BuildValue("s",_ptemp); | |
8260 | return _resultobj; | |
8261 | } | |
8262 | ||
8263 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8264 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8265 | PyObject * _resultobj; | |
8266 | wxDC * _arg0; | |
8267 | int * _arg1; | |
8268 | int temp; | |
8269 | int * _arg2; | |
8270 | int temp0; | |
8271 | PyObject * _argo0 = 0; | |
8272 | char *_kwnames[] = { "self", NULL }; | |
8273 | ||
8274 | self = self; | |
8275 | { | |
8276 | _arg1 = &temp; | |
8277 | } | |
8278 | { | |
8279 | _arg2 = &temp0; | |
8280 | } | |
8281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8282 | return NULL; | |
8283 | if (_argo0) { | |
8284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8287 | return NULL; | |
8288 | } | |
8289 | } | |
8290 | { | |
8291 | wxPy_BEGIN_ALLOW_THREADS; | |
8292 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
8293 | ||
8294 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8295 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8296 | } Py_INCREF(Py_None); |
8297 | _resultobj = Py_None; | |
8298 | { | |
8299 | PyObject *o; | |
8300 | o = PyInt_FromLong((long) (*_arg1)); | |
8301 | _resultobj = t_output_helper(_resultobj, o); | |
8302 | } | |
8303 | { | |
8304 | PyObject *o; | |
8305 | o = PyInt_FromLong((long) (*_arg2)); | |
8306 | _resultobj = t_output_helper(_resultobj, o); | |
8307 | } | |
8308 | return _resultobj; | |
8309 | } | |
8310 | ||
8311 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
8312 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8313 | PyObject * _resultobj; | |
8314 | wxDC * _arg0; | |
8315 | int _arg1; | |
8316 | int _arg2; | |
8317 | PyObject * _argo0 = 0; | |
8318 | char *_kwnames[] = { "self","x","y", NULL }; | |
8319 | ||
8320 | self = self; | |
8321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8322 | return NULL; | |
8323 | if (_argo0) { | |
8324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
8327 | return NULL; | |
8328 | } | |
8329 | } | |
8330 | { | |
8331 | wxPy_BEGIN_ALLOW_THREADS; | |
8332 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
8333 | ||
8334 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8335 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8336 | } Py_INCREF(Py_None); |
8337 | _resultobj = Py_None; | |
8338 | return _resultobj; | |
8339 | } | |
8340 | ||
8341 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
8342 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8343 | PyObject * _resultobj; | |
8344 | wxDC * _arg0; | |
8345 | int * _arg1; | |
8346 | int temp; | |
8347 | int * _arg2; | |
8348 | int temp0; | |
8349 | PyObject * _argo0 = 0; | |
8350 | char *_kwnames[] = { "self", NULL }; | |
8351 | ||
8352 | self = self; | |
8353 | { | |
8354 | _arg1 = &temp; | |
8355 | } | |
8356 | { | |
8357 | _arg2 = &temp0; | |
8358 | } | |
8359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
8360 | return NULL; | |
8361 | if (_argo0) { | |
8362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
8365 | return NULL; | |
8366 | } | |
8367 | } | |
8368 | { | |
8369 | wxPy_BEGIN_ALLOW_THREADS; | |
8370 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
8371 | ||
8372 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8373 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8374 | } Py_INCREF(Py_None); |
8375 | _resultobj = Py_None; | |
8376 | { | |
8377 | PyObject *o; | |
8378 | o = PyInt_FromLong((long) (*_arg1)); | |
8379 | _resultobj = t_output_helper(_resultobj, o); | |
8380 | } | |
8381 | { | |
8382 | PyObject *o; | |
8383 | o = PyInt_FromLong((long) (*_arg2)); | |
8384 | _resultobj = t_output_helper(_resultobj, o); | |
8385 | } | |
8386 | return _resultobj; | |
8387 | } | |
8388 | ||
8389 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
8390 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8391 | PyObject * _resultobj; | |
8392 | wxDC * _arg0; | |
8393 | bool _arg1; | |
8394 | bool _arg2; | |
8395 | PyObject * _argo0 = 0; | |
8396 | int tempbool1; | |
8397 | int tempbool2; | |
8398 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
8399 | ||
8400 | self = self; | |
8401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8402 | return NULL; | |
8403 | if (_argo0) { | |
8404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
8407 | return NULL; | |
8408 | } | |
8409 | } | |
8410 | _arg1 = (bool ) tempbool1; | |
8411 | _arg2 = (bool ) tempbool2; | |
8412 | { | |
8413 | wxPy_BEGIN_ALLOW_THREADS; | |
8414 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
8415 | ||
8416 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8417 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8418 | } Py_INCREF(Py_None); |
8419 | _resultobj = Py_None; | |
8420 | return _resultobj; | |
8421 | } | |
8422 | ||
f6bcfd97 BP |
8423 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
8424 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8425 | PyObject * _resultobj; | |
8426 | wxDC * _arg0; | |
8427 | int _arg1; | |
8428 | int _arg2; | |
8429 | PyObject * _argo0 = 0; | |
8430 | char *_kwnames[] = { "self","x","y", NULL }; | |
8431 | ||
8432 | self = self; | |
8433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8434 | return NULL; | |
8435 | if (_argo0) { | |
8436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
8439 | return NULL; | |
8440 | } | |
8441 | } | |
8442 | { | |
8443 | wxPy_BEGIN_ALLOW_THREADS; | |
8444 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
8445 | ||
8446 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8447 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8448 | } Py_INCREF(Py_None); |
8449 | _resultobj = Py_None; | |
8450 | return _resultobj; | |
8451 | } | |
8452 | ||
8453 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
8454 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8455 | PyObject * _resultobj; | |
8456 | wxDC * _arg0; | |
8457 | PyObject * _argo0 = 0; | |
8458 | char *_kwnames[] = { "self", NULL }; | |
8459 | ||
8460 | self = self; | |
8461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
8462 | return NULL; | |
8463 | if (_argo0) { | |
8464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
8467 | return NULL; | |
8468 | } | |
8469 | } | |
8470 | { | |
8471 | wxPy_BEGIN_ALLOW_THREADS; | |
8472 | wxDC_ResetBoundingBox(_arg0); | |
8473 | ||
8474 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8475 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8476 | } Py_INCREF(Py_None); |
8477 | _resultobj = Py_None; | |
8478 | return _resultobj; | |
8479 | } | |
8480 | ||
70551f47 RD |
8481 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
8482 | wxMemoryDC *src; | |
8483 | wxDC *dest; | |
8484 | src = (wxMemoryDC *) ptr; | |
8485 | dest = (wxDC *) src; | |
8486 | return (void *) dest; | |
8487 | } | |
8488 | ||
9df61a29 RD |
8489 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
8490 | wxMemoryDC *src; | |
8491 | wxObject *dest; | |
8492 | src = (wxMemoryDC *) ptr; | |
8493 | dest = (wxObject *) src; | |
8494 | return (void *) dest; | |
8495 | } | |
8496 | ||
70551f47 | 8497 | #define new_wxMemoryDC() (new wxMemoryDC()) |
107e4716 | 8498 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8499 | PyObject * _resultobj; |
8500 | wxMemoryDC * _result; | |
107e4716 | 8501 | char *_kwnames[] = { NULL }; |
70551f47 RD |
8502 | char _ptemp[128]; |
8503 | ||
8504 | self = self; | |
107e4716 | 8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
70551f47 | 8506 | return NULL; |
ab9bc19b RD |
8507 | { |
8508 | wxPy_BEGIN_ALLOW_THREADS; | |
8509 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
8510 | ||
8511 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8512 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8513 | } if (_result) { |
8514 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
8515 | _resultobj = Py_BuildValue("s",_ptemp); | |
8516 | } else { | |
8517 | Py_INCREF(Py_None); | |
8518 | _resultobj = Py_None; | |
8519 | } | |
70551f47 RD |
8520 | return _resultobj; |
8521 | } | |
8522 | ||
8523 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
107e4716 | 8524 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8525 | PyObject * _resultobj; |
8526 | wxMemoryDC * _arg0; | |
8527 | wxBitmap * _arg1; | |
2d091820 RD |
8528 | PyObject * _argo0 = 0; |
8529 | PyObject * _argo1 = 0; | |
107e4716 | 8530 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
8531 | |
8532 | self = self; | |
107e4716 | 8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8534 | return NULL; |
2d091820 RD |
8535 | if (_argo0) { |
8536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
70551f47 RD |
8538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
8539 | return NULL; | |
8540 | } | |
8541 | } | |
2d091820 RD |
8542 | if (_argo1) { |
8543 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8544 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
8545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
8546 | return NULL; | |
8547 | } | |
8548 | } | |
ab9bc19b RD |
8549 | { |
8550 | wxPy_BEGIN_ALLOW_THREADS; | |
8551 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
8552 | ||
8553 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8554 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8555 | } Py_INCREF(Py_None); |
70551f47 RD |
8556 | _resultobj = Py_None; |
8557 | return _resultobj; | |
8558 | } | |
8559 | ||
8560 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
8561 | wxScreenDC *src; | |
8562 | wxDC *dest; | |
8563 | src = (wxScreenDC *) ptr; | |
8564 | dest = (wxDC *) src; | |
8565 | return (void *) dest; | |
8566 | } | |
8567 | ||
9df61a29 RD |
8568 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
8569 | wxScreenDC *src; | |
8570 | wxObject *dest; | |
8571 | src = (wxScreenDC *) ptr; | |
8572 | dest = (wxObject *) src; | |
8573 | return (void *) dest; | |
8574 | } | |
8575 | ||
70551f47 | 8576 | #define new_wxScreenDC() (new wxScreenDC()) |
107e4716 | 8577 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8578 | PyObject * _resultobj; |
8579 | wxScreenDC * _result; | |
107e4716 | 8580 | char *_kwnames[] = { NULL }; |
70551f47 RD |
8581 | char _ptemp[128]; |
8582 | ||
8583 | self = self; | |
107e4716 | 8584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
70551f47 | 8585 | return NULL; |
ab9bc19b RD |
8586 | { |
8587 | wxPy_BEGIN_ALLOW_THREADS; | |
8588 | _result = (wxScreenDC *)new_wxScreenDC(); | |
8589 | ||
8590 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8591 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8592 | } if (_result) { |
8593 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
8594 | _resultobj = Py_BuildValue("s",_ptemp); | |
8595 | } else { | |
8596 | Py_INCREF(Py_None); | |
8597 | _resultobj = Py_None; | |
8598 | } | |
70551f47 RD |
8599 | return _resultobj; |
8600 | } | |
8601 | ||
2fc99549 RD |
8602 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
8603 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8604 | PyObject * _resultobj; |
8605 | bool _result; | |
8606 | wxScreenDC * _arg0; | |
8607 | wxWindow * _arg1; | |
2d091820 RD |
8608 | PyObject * _argo0 = 0; |
8609 | PyObject * _argo1 = 0; | |
107e4716 | 8610 | char *_kwnames[] = { "self","window", NULL }; |
70551f47 RD |
8611 | |
8612 | self = self; | |
2fc99549 | 8613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8614 | return NULL; |
2d091820 RD |
8615 | if (_argo0) { |
8616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 8618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
70551f47 RD |
8619 | return NULL; |
8620 | } | |
8621 | } | |
2d091820 RD |
8622 | if (_argo1) { |
8623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2fc99549 | 8625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
70551f47 RD |
8626 | return NULL; |
8627 | } | |
8628 | } | |
ab9bc19b RD |
8629 | { |
8630 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 8631 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
ab9bc19b RD |
8632 | |
8633 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8634 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8635 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8636 | return _resultobj; |
8637 | } | |
8638 | ||
2fc99549 RD |
8639 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
8640 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8641 | PyObject * _resultobj; |
8642 | bool _result; | |
8643 | wxScreenDC * _arg0; | |
2d091820 RD |
8644 | wxRect * _arg1 = (wxRect *) NULL; |
8645 | PyObject * _argo0 = 0; | |
37f6a977 RD |
8646 | wxRect temp; |
8647 | PyObject * _obj1 = 0; | |
107e4716 | 8648 | char *_kwnames[] = { "self","rect", NULL }; |
70551f47 RD |
8649 | |
8650 | self = self; | |
2fc99549 | 8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8652 | return NULL; |
2d091820 RD |
8653 | if (_argo0) { |
8654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 8656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
70551f47 RD |
8657 | return NULL; |
8658 | } | |
8659 | } | |
37f6a977 RD |
8660 | if (_obj1) |
8661 | { | |
8662 | _arg1 = &temp; | |
8663 | if (! wxRect_helper(_obj1, &_arg1)) | |
70551f47 | 8664 | return NULL; |
37f6a977 | 8665 | } |
ab9bc19b RD |
8666 | { |
8667 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 8668 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
ab9bc19b RD |
8669 | |
8670 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8671 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8672 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8673 | return _resultobj; |
8674 | } | |
8675 | ||
8676 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
107e4716 | 8677 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8678 | PyObject * _resultobj; |
8679 | bool _result; | |
8680 | wxScreenDC * _arg0; | |
2d091820 | 8681 | PyObject * _argo0 = 0; |
107e4716 | 8682 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8683 | |
8684 | self = self; | |
107e4716 | 8685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
70551f47 | 8686 | return NULL; |
2d091820 RD |
8687 | if (_argo0) { |
8688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
70551f47 RD |
8690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
8691 | return NULL; | |
8692 | } | |
8693 | } | |
ab9bc19b RD |
8694 | { |
8695 | wxPy_BEGIN_ALLOW_THREADS; | |
8696 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
8697 | ||
8698 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8699 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8700 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8701 | return _resultobj; |
8702 | } | |
8703 | ||
8704 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
8705 | wxClientDC *src; | |
8706 | wxDC *dest; | |
8707 | src = (wxClientDC *) ptr; | |
8708 | dest = (wxDC *) src; | |
8709 | return (void *) dest; | |
8710 | } | |
8711 | ||
9df61a29 RD |
8712 | static void *SwigwxClientDCTowxObject(void *ptr) { |
8713 | wxClientDC *src; | |
8714 | wxObject *dest; | |
8715 | src = (wxClientDC *) ptr; | |
8716 | dest = (wxObject *) src; | |
8717 | return (void *) dest; | |
8718 | } | |
8719 | ||
70551f47 | 8720 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
107e4716 | 8721 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8722 | PyObject * _resultobj; |
8723 | wxClientDC * _result; | |
8724 | wxWindow * _arg0; | |
2d091820 | 8725 | PyObject * _argo0 = 0; |
107e4716 | 8726 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
8727 | char _ptemp[128]; |
8728 | ||
8729 | self = self; | |
107e4716 | 8730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
70551f47 | 8731 | return NULL; |
2d091820 RD |
8732 | if (_argo0) { |
8733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
8736 | return NULL; | |
8737 | } | |
8738 | } | |
ab9bc19b RD |
8739 | { |
8740 | wxPy_BEGIN_ALLOW_THREADS; | |
8741 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
8742 | ||
8743 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8744 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8745 | } if (_result) { |
8746 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
8747 | _resultobj = Py_BuildValue("s",_ptemp); | |
8748 | } else { | |
8749 | Py_INCREF(Py_None); | |
8750 | _resultobj = Py_None; | |
8751 | } | |
70551f47 RD |
8752 | return _resultobj; |
8753 | } | |
8754 | ||
8755 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
8756 | wxPaintDC *src; | |
8757 | wxDC *dest; | |
8758 | src = (wxPaintDC *) ptr; | |
8759 | dest = (wxDC *) src; | |
8760 | return (void *) dest; | |
8761 | } | |
8762 | ||
9df61a29 RD |
8763 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
8764 | wxPaintDC *src; | |
8765 | wxObject *dest; | |
8766 | src = (wxPaintDC *) ptr; | |
8767 | dest = (wxObject *) src; | |
8768 | return (void *) dest; | |
8769 | } | |
8770 | ||
70551f47 | 8771 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
107e4716 | 8772 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8773 | PyObject * _resultobj; |
8774 | wxPaintDC * _result; | |
8775 | wxWindow * _arg0; | |
2d091820 | 8776 | PyObject * _argo0 = 0; |
107e4716 | 8777 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
8778 | char _ptemp[128]; |
8779 | ||
8780 | self = self; | |
107e4716 | 8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
70551f47 | 8782 | return NULL; |
2d091820 RD |
8783 | if (_argo0) { |
8784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
8787 | return NULL; | |
8788 | } | |
8789 | } | |
ab9bc19b RD |
8790 | { |
8791 | wxPy_BEGIN_ALLOW_THREADS; | |
8792 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
8793 | ||
8794 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8795 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8796 | } if (_result) { |
8797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
8798 | _resultobj = Py_BuildValue("s",_ptemp); | |
8799 | } else { | |
8800 | Py_INCREF(Py_None); | |
8801 | _resultobj = Py_None; | |
8802 | } | |
70551f47 RD |
8803 | return _resultobj; |
8804 | } | |
8805 | ||
c95e68d8 RD |
8806 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
8807 | wxWindowDC *src; | |
8808 | wxDC *dest; | |
8809 | src = (wxWindowDC *) ptr; | |
8810 | dest = (wxDC *) src; | |
8811 | return (void *) dest; | |
8812 | } | |
8813 | ||
9df61a29 RD |
8814 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
8815 | wxWindowDC *src; | |
8816 | wxObject *dest; | |
8817 | src = (wxWindowDC *) ptr; | |
8818 | dest = (wxObject *) src; | |
8819 | return (void *) dest; | |
8820 | } | |
8821 | ||
c95e68d8 | 8822 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
107e4716 | 8823 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
8824 | PyObject * _resultobj; |
8825 | wxWindowDC * _result; | |
8826 | wxWindow * _arg0; | |
2d091820 | 8827 | PyObject * _argo0 = 0; |
107e4716 | 8828 | char *_kwnames[] = { "win", NULL }; |
c95e68d8 RD |
8829 | char _ptemp[128]; |
8830 | ||
8831 | self = self; | |
107e4716 | 8832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
c95e68d8 | 8833 | return NULL; |
2d091820 RD |
8834 | if (_argo0) { |
8835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
8837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
8838 | return NULL; | |
8839 | } | |
8840 | } | |
ab9bc19b RD |
8841 | { |
8842 | wxPy_BEGIN_ALLOW_THREADS; | |
8843 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
8844 | ||
8845 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8846 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8847 | } if (_result) { |
8848 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
8849 | _resultobj = Py_BuildValue("s",_ptemp); | |
8850 | } else { | |
8851 | Py_INCREF(Py_None); | |
8852 | _resultobj = Py_None; | |
8853 | } | |
c95e68d8 RD |
8854 | return _resultobj; |
8855 | } | |
8856 | ||
70551f47 RD |
8857 | static void *SwigwxPostScriptDCTowxDC(void *ptr) { |
8858 | wxPostScriptDC *src; | |
8859 | wxDC *dest; | |
8860 | src = (wxPostScriptDC *) ptr; | |
8861 | dest = (wxDC *) src; | |
8862 | return (void *) dest; | |
8863 | } | |
8864 | ||
9df61a29 RD |
8865 | static void *SwigwxPostScriptDCTowxObject(void *ptr) { |
8866 | wxPostScriptDC *src; | |
8867 | wxObject *dest; | |
8868 | src = (wxPostScriptDC *) ptr; | |
8869 | dest = (wxObject *) src; | |
8870 | return (void *) dest; | |
8871 | } | |
8872 | ||
70551f47 | 8873 | #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 8874 | static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8875 | PyObject * _resultobj; |
8876 | wxPostScriptDC * _result; | |
8877 | wxString * _arg0; | |
2d091820 RD |
8878 | bool _arg1 = (bool ) TRUE; |
8879 | wxWindow * _arg2 = (wxWindow *) NULL; | |
70551f47 | 8880 | PyObject * _obj0 = 0; |
2d091820 RD |
8881 | int tempbool1 = (int) TRUE; |
8882 | PyObject * _argo2 = 0; | |
107e4716 | 8883 | char *_kwnames[] = { "output","interactive","win", NULL }; |
70551f47 RD |
8884 | char _ptemp[128]; |
8885 | ||
8886 | self = self; | |
107e4716 | 8887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC",_kwnames,&_obj0,&tempbool1,&_argo2)) |
70551f47 RD |
8888 | return NULL; |
8889 | { | |
2cd2fac8 RD |
8890 | #if PYTHON_API_VERSION >= 1009 |
8891 | char* tmpPtr; int tmpSize; | |
8892 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 8893 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8894 | return NULL; |
8895 | } | |
8896 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8897 | return NULL; | |
8898 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8899 | #else | |
70551f47 RD |
8900 | if (!PyString_Check(_obj0)) { |
8901 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8902 | return NULL; | |
8903 | } | |
2cd2fac8 RD |
8904 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
8905 | #endif | |
70551f47 RD |
8906 | } |
8907 | _arg1 = (bool ) tempbool1; | |
2d091820 RD |
8908 | if (_argo2) { |
8909 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8910 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
70551f47 RD |
8911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p."); |
8912 | return NULL; | |
8913 | } | |
8914 | } | |
ab9bc19b RD |
8915 | { |
8916 | wxPy_BEGIN_ALLOW_THREADS; | |
8917 | _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2); | |
8918 | ||
8919 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8920 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8921 | } if (_result) { |
8922 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p"); | |
8923 | _resultobj = Py_BuildValue("s",_ptemp); | |
8924 | } else { | |
8925 | Py_INCREF(Py_None); | |
8926 | _resultobj = Py_None; | |
8927 | } | |
70551f47 RD |
8928 | { |
8929 | if (_obj0) | |
8930 | delete _arg0; | |
8931 | } | |
8932 | return _resultobj; | |
8933 | } | |
8934 | ||
9df61a29 RD |
8935 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
8936 | wxPalette *src; | |
8937 | wxGDIObject *dest; | |
8938 | src = (wxPalette *) ptr; | |
8939 | dest = (wxGDIObject *) src; | |
8940 | return (void *) dest; | |
8941 | } | |
8942 | ||
8943 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
8944 | wxPalette *src; | |
8945 | wxObject *dest; | |
8946 | src = (wxPalette *) ptr; | |
8947 | dest = (wxObject *) src; | |
8948 | return (void *) dest; | |
8949 | } | |
8950 | ||
105e45b9 | 8951 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 8952 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
8953 | PyObject * _resultobj; |
8954 | wxPalette * _result; | |
8955 | int _arg0; | |
8956 | byte * _arg1; | |
8957 | byte * _arg2; | |
8958 | byte * _arg3; | |
8959 | PyObject * _obj1 = 0; | |
8960 | PyObject * _obj2 = 0; | |
8961 | PyObject * _obj3 = 0; | |
e02c03a4 | 8962 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
105e45b9 RD |
8963 | char _ptemp[128]; |
8964 | ||
8965 | self = self; | |
107e4716 | 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
105e45b9 RD |
8967 | return NULL; |
8968 | { | |
8969 | _arg1 = byte_LIST_helper(_obj1); | |
8970 | if (_arg1 == NULL) { | |
8971 | return NULL; | |
8972 | } | |
8973 | } | |
8974 | { | |
8975 | _arg2 = byte_LIST_helper(_obj2); | |
8976 | if (_arg2 == NULL) { | |
8977 | return NULL; | |
8978 | } | |
8979 | } | |
8980 | if (_obj3) | |
8981 | { | |
8982 | _arg3 = byte_LIST_helper(_obj3); | |
8983 | if (_arg3 == NULL) { | |
8984 | return NULL; | |
8985 | } | |
8986 | } | |
8987 | { | |
ab9bc19b RD |
8988 | if (_obj1) { |
8989 | _arg0 = PyList_Size(_obj1); | |
8990 | } | |
8991 | else { | |
8992 | _arg0 = 0; | |
8993 | } | |
105e45b9 | 8994 | } |
ab9bc19b RD |
8995 | { |
8996 | wxPy_BEGIN_ALLOW_THREADS; | |
8997 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
8998 | ||
8999 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9000 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9001 | } if (_result) { |
9002 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9003 | _resultobj = Py_BuildValue("s",_ptemp); | |
9004 | } else { | |
9005 | Py_INCREF(Py_None); | |
9006 | _resultobj = Py_None; | |
9007 | } | |
105e45b9 RD |
9008 | { |
9009 | delete [] _arg1; | |
9010 | } | |
9011 | { | |
9012 | delete [] _arg2; | |
9013 | } | |
9014 | { | |
9015 | delete [] _arg3; | |
9016 | } | |
9017 | return _resultobj; | |
9018 | } | |
9019 | ||
9020 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
107e4716 | 9021 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
9022 | PyObject * _resultobj; |
9023 | wxPalette * _arg0; | |
2d091820 | 9024 | PyObject * _argo0 = 0; |
107e4716 | 9025 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
9026 | |
9027 | self = self; | |
107e4716 | 9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
105e45b9 | 9029 | return NULL; |
2d091820 RD |
9030 | if (_argo0) { |
9031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
9033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
9034 | return NULL; | |
9035 | } | |
9036 | } | |
ab9bc19b RD |
9037 | { |
9038 | wxPy_BEGIN_ALLOW_THREADS; | |
9039 | delete_wxPalette(_arg0); | |
9040 | ||
9041 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9042 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9043 | } Py_INCREF(Py_None); |
105e45b9 RD |
9044 | _resultobj = Py_None; |
9045 | return _resultobj; | |
9046 | } | |
9047 | ||
9048 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 9049 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
9050 | PyObject * _resultobj; |
9051 | int _result; | |
9052 | wxPalette * _arg0; | |
9053 | byte _arg1; | |
9054 | byte _arg2; | |
9055 | byte _arg3; | |
2d091820 | 9056 | PyObject * _argo0 = 0; |
107e4716 | 9057 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
105e45b9 RD |
9058 | |
9059 | self = self; | |
107e4716 | 9060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
105e45b9 | 9061 | return NULL; |
2d091820 RD |
9062 | if (_argo0) { |
9063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
9065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
9066 | return NULL; | |
9067 | } | |
9068 | } | |
ab9bc19b RD |
9069 | { |
9070 | wxPy_BEGIN_ALLOW_THREADS; | |
9071 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
9072 | ||
9073 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9074 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9075 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
9076 | return _resultobj; |
9077 | } | |
9078 | ||
9079 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 9080 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
9081 | PyObject * _resultobj; |
9082 | bool _result; | |
9083 | wxPalette * _arg0; | |
9084 | int _arg1; | |
9085 | byte * _arg2; | |
9086 | byte * _arg3; | |
9087 | byte * _arg4; | |
2d091820 RD |
9088 | PyObject * _argo0 = 0; |
9089 | PyObject * _argo2 = 0; | |
9090 | PyObject * _argo3 = 0; | |
9091 | PyObject * _argo4 = 0; | |
107e4716 | 9092 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
105e45b9 RD |
9093 | |
9094 | self = self; | |
107e4716 | 9095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
105e45b9 | 9096 | return NULL; |
2d091820 RD |
9097 | if (_argo0) { |
9098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
9100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
9101 | return NULL; | |
9102 | } | |
9103 | } | |
2d091820 RD |
9104 | if (_argo2) { |
9105 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9106 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
105e45b9 RD |
9107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
9108 | return NULL; | |
9109 | } | |
9110 | } | |
2d091820 RD |
9111 | if (_argo3) { |
9112 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
9113 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
105e45b9 RD |
9114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
9115 | return NULL; | |
9116 | } | |
9117 | } | |
2d091820 RD |
9118 | if (_argo4) { |
9119 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
9120 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
105e45b9 RD |
9121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
9122 | return NULL; | |
9123 | } | |
9124 | } | |
ab9bc19b RD |
9125 | { |
9126 | wxPy_BEGIN_ALLOW_THREADS; | |
9127 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9128 | ||
9129 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9130 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9131 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
9132 | return _resultobj; |
9133 | } | |
9134 | ||
9135 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 9136 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
9137 | PyObject * _resultobj; |
9138 | bool _result; | |
9139 | wxPalette * _arg0; | |
2d091820 | 9140 | PyObject * _argo0 = 0; |
107e4716 | 9141 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
9142 | |
9143 | self = self; | |
107e4716 | 9144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
105e45b9 | 9145 | return NULL; |
2d091820 RD |
9146 | if (_argo0) { |
9147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
9149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
9150 | return NULL; | |
9151 | } | |
9152 | } | |
ab9bc19b RD |
9153 | { |
9154 | wxPy_BEGIN_ALLOW_THREADS; | |
9155 | _result = (bool )wxPalette_Ok(_arg0); | |
9156 | ||
9157 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9158 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9159 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
9160 | return _resultobj; |
9161 | } | |
9162 | ||
9df61a29 RD |
9163 | static void *SwigwxImageListTowxObject(void *ptr) { |
9164 | wxImageList *src; | |
9165 | wxObject *dest; | |
9166 | src = (wxImageList *) ptr; | |
9167 | dest = (wxObject *) src; | |
9168 | return (void *) dest; | |
9169 | } | |
9170 | ||
21f8d7ea | 9171 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 9172 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9173 | PyObject * _resultobj; |
9174 | wxImageList * _result; | |
9175 | int _arg0; | |
9176 | int _arg1; | |
7ff49f0c | 9177 | int _arg2 = (int ) TRUE; |
2d091820 | 9178 | int _arg3 = (int ) 1; |
107e4716 | 9179 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
21f8d7ea RD |
9180 | char _ptemp[128]; |
9181 | ||
9182 | self = self; | |
56f5d962 | 9183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
21f8d7ea | 9184 | return NULL; |
ab9bc19b RD |
9185 | { |
9186 | wxPy_BEGIN_ALLOW_THREADS; | |
9187 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
9188 | ||
9189 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9190 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9191 | } if (_result) { |
9192 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
9193 | _resultobj = Py_BuildValue("s",_ptemp); | |
9194 | } else { | |
9195 | Py_INCREF(Py_None); | |
9196 | _resultobj = Py_None; | |
9197 | } | |
21f8d7ea RD |
9198 | return _resultobj; |
9199 | } | |
9200 | ||
9201 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
107e4716 | 9202 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9203 | PyObject * _resultobj; |
9204 | wxImageList * _arg0; | |
2d091820 | 9205 | PyObject * _argo0 = 0; |
107e4716 | 9206 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
9207 | |
9208 | self = self; | |
107e4716 | 9209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
21f8d7ea | 9210 | return NULL; |
2d091820 RD |
9211 | if (_argo0) { |
9212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
9214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
9215 | return NULL; | |
9216 | } | |
9217 | } | |
ab9bc19b RD |
9218 | { |
9219 | wxPy_BEGIN_ALLOW_THREADS; | |
9220 | delete_wxImageList(_arg0); | |
9221 | ||
9222 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9223 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9224 | } Py_INCREF(Py_None); |
21f8d7ea RD |
9225 | _resultobj = Py_None; |
9226 | return _resultobj; | |
9227 | } | |
9228 | ||
f6bcfd97 | 9229 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) |
107e4716 | 9230 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9231 | PyObject * _resultobj; |
9232 | int _result; | |
9233 | wxImageList * _arg0; | |
9234 | wxBitmap * _arg1; | |
f6bcfd97 | 9235 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
2d091820 RD |
9236 | PyObject * _argo0 = 0; |
9237 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9238 | PyObject * _argo2 = 0; |
9239 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
21f8d7ea RD |
9240 | |
9241 | self = self; | |
f6bcfd97 | 9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
21f8d7ea | 9243 | return NULL; |
2d091820 RD |
9244 | if (_argo0) { |
9245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
9247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
9248 | return NULL; | |
9249 | } | |
9250 | } | |
2d091820 RD |
9251 | if (_argo1) { |
9252 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9253 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
21f8d7ea RD |
9254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
9255 | return NULL; | |
9256 | } | |
9257 | } | |
f6bcfd97 BP |
9258 | if (_argo2) { |
9259 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9260 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
9261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
9262 | return NULL; | |
9263 | } | |
9264 | } | |
9265 | { | |
9266 | wxPy_BEGIN_ALLOW_THREADS; | |
9267 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
9268 | ||
9269 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9270 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9271 | } _resultobj = Py_BuildValue("i",_result); |
9272 | return _resultobj; | |
9273 | } | |
9274 | ||
9275 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
9276 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9277 | PyObject * _resultobj; | |
9278 | int _result; | |
9279 | wxImageList * _arg0; | |
9280 | wxBitmap * _arg1; | |
9281 | wxColour * _arg2; | |
9282 | PyObject * _argo0 = 0; | |
9283 | PyObject * _argo1 = 0; | |
9284 | wxColour temp; | |
9285 | PyObject * _obj2 = 0; | |
9286 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
9287 | ||
9288 | self = self; | |
9289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9290 | return NULL; | |
9291 | if (_argo0) { | |
9292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
9295 | return NULL; | |
9296 | } | |
9297 | } | |
9298 | if (_argo1) { | |
9299 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9300 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
9302 | return NULL; | |
9303 | } | |
9304 | } | |
9305 | { | |
9306 | _arg2 = &temp; | |
9307 | if (! wxColour_helper(_obj2, &_arg2)) | |
9308 | return NULL; | |
9309 | } | |
ab9bc19b RD |
9310 | { |
9311 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
9312 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
9313 | ||
9314 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9315 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9316 | } _resultobj = Py_BuildValue("i",_result); |
9317 | return _resultobj; | |
9318 | } | |
9319 | ||
9320 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
9321 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9322 | PyObject * _resultobj; | |
9323 | int _result; | |
9324 | wxImageList * _arg0; | |
9325 | wxIcon * _arg1; | |
9326 | PyObject * _argo0 = 0; | |
9327 | PyObject * _argo1 = 0; | |
9328 | char *_kwnames[] = { "self","icon", NULL }; | |
9329 | ||
9330 | self = self; | |
9331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
9332 | return NULL; | |
9333 | if (_argo0) { | |
9334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
9337 | return NULL; | |
9338 | } | |
9339 | } | |
9340 | if (_argo1) { | |
9341 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9342 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
9343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
9344 | return NULL; | |
9345 | } | |
9346 | } | |
9347 | { | |
9348 | wxPy_BEGIN_ALLOW_THREADS; | |
9349 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
ab9bc19b RD |
9350 | |
9351 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9352 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9353 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
9354 | return _resultobj; |
9355 | } | |
9356 | ||
9357 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
107e4716 | 9358 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9359 | PyObject * _resultobj; |
9360 | bool _result; | |
9361 | wxImageList * _arg0; | |
9362 | int _arg1; | |
9363 | wxBitmap * _arg2; | |
2d091820 RD |
9364 | PyObject * _argo0 = 0; |
9365 | PyObject * _argo2 = 0; | |
107e4716 | 9366 | char *_kwnames[] = { "self","index","bitmap", NULL }; |
21f8d7ea RD |
9367 | |
9368 | self = self; | |
107e4716 | 9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) |
21f8d7ea | 9370 | return NULL; |
2d091820 RD |
9371 | if (_argo0) { |
9372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
9374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
9375 | return NULL; | |
9376 | } | |
9377 | } | |
2d091820 RD |
9378 | if (_argo2) { |
9379 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9380 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea RD |
9381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
9382 | return NULL; | |
9383 | } | |
9384 | } | |
ab9bc19b RD |
9385 | { |
9386 | wxPy_BEGIN_ALLOW_THREADS; | |
9387 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); | |
9388 | ||
9389 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9390 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9391 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
9392 | return _resultobj; |
9393 | } | |
9394 | ||
9395 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 9396 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9397 | PyObject * _resultobj; |
9398 | bool _result; | |
9399 | wxImageList * _arg0; | |
9400 | int _arg1; | |
9401 | wxDC * _arg2; | |
9402 | int _arg3; | |
9403 | int _arg4; | |
2d091820 RD |
9404 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
9405 | bool _arg6 = (bool ) FALSE; | |
9406 | PyObject * _argo0 = 0; | |
9407 | PyObject * _argo2 = 0; | |
9408 | int tempbool6 = (int) FALSE; | |
107e4716 | 9409 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
21f8d7ea RD |
9410 | |
9411 | self = self; | |
107e4716 | 9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
21f8d7ea | 9413 | return NULL; |
2d091820 RD |
9414 | if (_argo0) { |
9415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
9417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
9418 | return NULL; | |
9419 | } | |
9420 | } | |
2d091820 RD |
9421 | if (_argo2) { |
9422 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9423 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
9424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
9425 | return NULL; | |
9426 | } | |
9427 | } | |
9428 | _arg6 = (bool ) tempbool6; | |
ab9bc19b RD |
9429 | { |
9430 | wxPy_BEGIN_ALLOW_THREADS; | |
9431 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
9432 | ||
9433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9434 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9435 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
9436 | return _resultobj; |
9437 | } | |
9438 | ||
9439 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
107e4716 | 9440 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9441 | PyObject * _resultobj; |
9442 | int _result; | |
9443 | wxImageList * _arg0; | |
2d091820 | 9444 | PyObject * _argo0 = 0; |
107e4716 | 9445 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
9446 | |
9447 | self = self; | |
107e4716 | 9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
21f8d7ea | 9449 | return NULL; |
2d091820 RD |
9450 | if (_argo0) { |
9451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
9453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
9454 | return NULL; | |
9455 | } | |
9456 | } | |
ab9bc19b RD |
9457 | { |
9458 | wxPy_BEGIN_ALLOW_THREADS; | |
9459 | _result = (int )wxImageList_GetImageCount(_arg0); | |
9460 | ||
9461 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9462 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9463 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
9464 | return _resultobj; |
9465 | } | |
9466 | ||
9467 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
107e4716 | 9468 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9469 | PyObject * _resultobj; |
9470 | bool _result; | |
9471 | wxImageList * _arg0; | |
9472 | int _arg1; | |
2d091820 | 9473 | PyObject * _argo0 = 0; |
107e4716 | 9474 | char *_kwnames[] = { "self","index", NULL }; |
21f8d7ea RD |
9475 | |
9476 | self = self; | |
107e4716 | 9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
21f8d7ea | 9478 | return NULL; |
2d091820 RD |
9479 | if (_argo0) { |
9480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
9482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
9483 | return NULL; | |
9484 | } | |
9485 | } | |
ab9bc19b RD |
9486 | { |
9487 | wxPy_BEGIN_ALLOW_THREADS; | |
9488 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
9489 | ||
9490 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9491 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9492 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
9493 | return _resultobj; |
9494 | } | |
9495 | ||
9496 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
107e4716 | 9497 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
9498 | PyObject * _resultobj; |
9499 | bool _result; | |
9500 | wxImageList * _arg0; | |
2d091820 | 9501 | PyObject * _argo0 = 0; |
107e4716 | 9502 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
9503 | |
9504 | self = self; | |
107e4716 | 9505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
21f8d7ea | 9506 | return NULL; |
2d091820 RD |
9507 | if (_argo0) { |
9508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
9510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
9511 | return NULL; | |
9512 | } | |
9513 | } | |
ab9bc19b RD |
9514 | { |
9515 | wxPy_BEGIN_ALLOW_THREADS; | |
9516 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
9517 | ||
9518 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9519 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9520 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
9521 | return _resultobj; |
9522 | } | |
9523 | ||
f6bcfd97 BP |
9524 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
9525 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9526 | PyObject * _resultobj; | |
9527 | wxImageList * _arg0; | |
9528 | int _arg1; | |
9529 | int * _arg2; | |
9530 | int temp; | |
9531 | int * _arg3; | |
9532 | int temp0; | |
9533 | PyObject * _argo0 = 0; | |
9534 | char *_kwnames[] = { "self","index", NULL }; | |
9535 | ||
9536 | self = self; | |
9537 | { | |
9538 | _arg2 = &temp; | |
9539 | } | |
9540 | { | |
9541 | _arg3 = &temp0; | |
9542 | } | |
9543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
9544 | return NULL; | |
9545 | if (_argo0) { | |
9546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
9549 | return NULL; | |
9550 | } | |
9551 | } | |
9552 | { | |
9553 | wxPy_BEGIN_ALLOW_THREADS; | |
9554 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
9555 | ||
9556 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9557 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9558 | } Py_INCREF(Py_None); |
9559 | _resultobj = Py_None; | |
9560 | { | |
9561 | PyObject *o; | |
9562 | o = PyInt_FromLong((long) (*_arg2)); | |
9563 | _resultobj = t_output_helper(_resultobj, o); | |
9564 | } | |
9565 | { | |
9566 | PyObject *o; | |
9567 | o = PyInt_FromLong((long) (*_arg3)); | |
9568 | _resultobj = t_output_helper(_resultobj, o); | |
9569 | } | |
9570 | return _resultobj; | |
9571 | } | |
9572 | ||
9df61a29 RD |
9573 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
9574 | wxRegion *src; | |
9575 | wxGDIObject *dest; | |
9576 | src = (wxRegion *) ptr; | |
9577 | dest = (wxGDIObject *) src; | |
9578 | return (void *) dest; | |
9579 | } | |
9580 | ||
9581 | static void *SwigwxRegionTowxObject(void *ptr) { | |
9582 | wxRegion *src; | |
9583 | wxObject *dest; | |
9584 | src = (wxRegion *) ptr; | |
9585 | dest = (wxObject *) src; | |
9586 | return (void *) dest; | |
9587 | } | |
9588 | ||
9589 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9590 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9591 | PyObject * _resultobj; | |
9592 | wxRegion * _result; | |
9593 | long _arg0 = (long ) 0; | |
9594 | long _arg1 = (long ) 0; | |
9595 | long _arg2 = (long ) 0; | |
9596 | long _arg3 = (long ) 0; | |
9597 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
9598 | char _ptemp[128]; | |
9599 | ||
9600 | self = self; | |
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9602 | return NULL; | |
9603 | { | |
9604 | wxPy_BEGIN_ALLOW_THREADS; | |
9605 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
9606 | ||
9607 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9608 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9609 | } if (_result) { |
9610 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
9611 | _resultobj = Py_BuildValue("s",_ptemp); | |
9612 | } else { | |
9613 | Py_INCREF(Py_None); | |
9614 | _resultobj = Py_None; | |
9615 | } | |
9616 | return _resultobj; | |
9617 | } | |
9618 | ||
9619 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
9620 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9621 | PyObject * _resultobj; | |
9622 | wxRegion * _arg0; | |
9623 | PyObject * _argo0 = 0; | |
9624 | char *_kwnames[] = { "self", NULL }; | |
9625 | ||
9626 | self = self; | |
9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
9628 | return NULL; | |
9629 | if (_argo0) { | |
9630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
9633 | return NULL; | |
9634 | } | |
9635 | } | |
9636 | { | |
9637 | wxPy_BEGIN_ALLOW_THREADS; | |
9638 | delete_wxRegion(_arg0); | |
9639 | ||
9640 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9641 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9642 | } Py_INCREF(Py_None); |
9643 | _resultobj = Py_None; | |
9644 | return _resultobj; | |
9645 | } | |
9646 | ||
9647 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
9648 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9649 | PyObject * _resultobj; | |
9650 | wxRegion * _arg0; | |
9651 | PyObject * _argo0 = 0; | |
9652 | char *_kwnames[] = { "self", NULL }; | |
9653 | ||
9654 | self = self; | |
9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
9656 | return NULL; | |
9657 | if (_argo0) { | |
9658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
9661 | return NULL; | |
9662 | } | |
9663 | } | |
9664 | { | |
9665 | wxPy_BEGIN_ALLOW_THREADS; | |
9666 | wxRegion_Clear(_arg0); | |
9667 | ||
9668 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9669 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9670 | } Py_INCREF(Py_None); |
9671 | _resultobj = Py_None; | |
9672 | return _resultobj; | |
9673 | } | |
9674 | ||
9675 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
9676 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9677 | PyObject * _resultobj; | |
9678 | wxRegionContain _result; | |
9679 | wxRegion * _arg0; | |
9680 | long _arg1; | |
9681 | long _arg2; | |
9682 | PyObject * _argo0 = 0; | |
9683 | char *_kwnames[] = { "self","x","y", NULL }; | |
9684 | ||
9685 | self = self; | |
9686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9687 | return NULL; | |
9688 | if (_argo0) { | |
9689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
9692 | return NULL; | |
9693 | } | |
9694 | } | |
9695 | { | |
9696 | wxPy_BEGIN_ALLOW_THREADS; | |
9697 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
9698 | ||
9699 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9700 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9701 | } _resultobj = Py_BuildValue("i",_result); |
9702 | return _resultobj; | |
9703 | } | |
9704 | ||
9705 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9706 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9707 | PyObject * _resultobj; | |
9708 | wxRegionContain _result; | |
9709 | wxRegion * _arg0; | |
9710 | wxPoint * _arg1; | |
9711 | PyObject * _argo0 = 0; | |
9712 | wxPoint temp; | |
9713 | PyObject * _obj1 = 0; | |
9714 | char *_kwnames[] = { "self","pt", NULL }; | |
9715 | ||
9716 | self = self; | |
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
9718 | return NULL; | |
9719 | if (_argo0) { | |
9720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
9723 | return NULL; | |
9724 | } | |
9725 | } | |
9726 | { | |
9727 | _arg1 = &temp; | |
9728 | if (! wxPoint_helper(_obj1, &_arg1)) | |
9729 | return NULL; | |
9730 | } | |
9731 | { | |
9732 | wxPy_BEGIN_ALLOW_THREADS; | |
9733 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
9734 | ||
9735 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9736 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9737 | } _resultobj = Py_BuildValue("i",_result); |
9738 | return _resultobj; | |
9739 | } | |
9740 | ||
9741 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9742 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject * _resultobj; | |
9744 | wxRegionContain _result; | |
9745 | wxRegion * _arg0; | |
9746 | wxRect * _arg1; | |
9747 | PyObject * _argo0 = 0; | |
9748 | wxRect temp; | |
9749 | PyObject * _obj1 = 0; | |
9750 | char *_kwnames[] = { "self","rect", NULL }; | |
9751 | ||
9752 | self = self; | |
9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
9754 | return NULL; | |
9755 | if (_argo0) { | |
9756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
9759 | return NULL; | |
9760 | } | |
9761 | } | |
9762 | { | |
9763 | _arg1 = &temp; | |
9764 | if (! wxRect_helper(_obj1, &_arg1)) | |
9765 | return NULL; | |
9766 | } | |
9767 | { | |
9768 | wxPy_BEGIN_ALLOW_THREADS; | |
9769 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
9770 | ||
9771 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9772 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9773 | } _resultobj = Py_BuildValue("i",_result); |
9774 | return _resultobj; | |
9775 | } | |
9776 | ||
9777 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9778 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9779 | PyObject * _resultobj; | |
9780 | wxRegionContain _result; | |
9781 | wxRegion * _arg0; | |
9782 | long _arg1; | |
9783 | long _arg2; | |
9784 | long _arg3; | |
9785 | long _arg4; | |
9786 | PyObject * _argo0 = 0; | |
9787 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
9788 | ||
9789 | self = self; | |
9790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9791 | return NULL; | |
9792 | if (_argo0) { | |
9793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
9796 | return NULL; | |
9797 | } | |
9798 | } | |
9799 | { | |
9800 | wxPy_BEGIN_ALLOW_THREADS; | |
9801 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9802 | ||
9803 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9804 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9805 | } _resultobj = Py_BuildValue("i",_result); |
9806 | return _resultobj; | |
9807 | } | |
9808 | ||
9809 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
9810 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9811 | PyObject * _resultobj; | |
9812 | wxRect * _result; | |
9813 | wxRegion * _arg0; | |
9814 | PyObject * _argo0 = 0; | |
9815 | char *_kwnames[] = { "self", NULL }; | |
9816 | char _ptemp[128]; | |
9817 | ||
9818 | self = self; | |
9819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
9820 | return NULL; | |
9821 | if (_argo0) { | |
9822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
9825 | return NULL; | |
9826 | } | |
9827 | } | |
9828 | { | |
9829 | wxPy_BEGIN_ALLOW_THREADS; | |
9830 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
9831 | ||
9832 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9833 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9834 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
9835 | _resultobj = Py_BuildValue("s",_ptemp); | |
9836 | return _resultobj; | |
9837 | } | |
9838 | ||
9839 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9840 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9841 | PyObject * _resultobj; | |
9842 | bool _result; | |
9843 | wxRegion * _arg0; | |
9844 | long _arg1; | |
9845 | long _arg2; | |
9846 | long _arg3; | |
9847 | long _arg4; | |
9848 | PyObject * _argo0 = 0; | |
9849 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9850 | ||
9851 | self = self; | |
9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9853 | return NULL; | |
9854 | if (_argo0) { | |
9855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
9858 | return NULL; | |
9859 | } | |
9860 | } | |
9861 | { | |
9862 | wxPy_BEGIN_ALLOW_THREADS; | |
9863 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9864 | ||
9865 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9866 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9867 | } _resultobj = Py_BuildValue("i",_result); |
9868 | return _resultobj; | |
9869 | } | |
9870 | ||
9871 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9872 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9873 | PyObject * _resultobj; | |
9874 | bool _result; | |
9875 | wxRegion * _arg0; | |
9876 | wxRect * _arg1; | |
9877 | PyObject * _argo0 = 0; | |
9878 | wxRect temp; | |
9879 | PyObject * _obj1 = 0; | |
9880 | char *_kwnames[] = { "self","rect", NULL }; | |
9881 | ||
9882 | self = self; | |
9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
9884 | return NULL; | |
9885 | if (_argo0) { | |
9886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
9889 | return NULL; | |
9890 | } | |
9891 | } | |
9892 | { | |
9893 | _arg1 = &temp; | |
9894 | if (! wxRect_helper(_obj1, &_arg1)) | |
9895 | return NULL; | |
9896 | } | |
9897 | { | |
9898 | wxPy_BEGIN_ALLOW_THREADS; | |
9899 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
9900 | ||
9901 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9902 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9903 | } _resultobj = Py_BuildValue("i",_result); |
9904 | return _resultobj; | |
9905 | } | |
9906 | ||
9907 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9908 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9909 | PyObject * _resultobj; | |
9910 | bool _result; | |
9911 | wxRegion * _arg0; | |
9912 | wxRegion * _arg1; | |
9913 | PyObject * _argo0 = 0; | |
9914 | PyObject * _argo1 = 0; | |
9915 | char *_kwnames[] = { "self","region", NULL }; | |
9916 | ||
9917 | self = self; | |
9918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
9919 | return NULL; | |
9920 | if (_argo0) { | |
9921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9924 | return NULL; | |
9925 | } | |
9926 | } | |
9927 | if (_argo1) { | |
9928 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9929 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9931 | return NULL; | |
9932 | } | |
9933 | } | |
9934 | { | |
9935 | wxPy_BEGIN_ALLOW_THREADS; | |
9936 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
9937 | ||
9938 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9939 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9940 | } _resultobj = Py_BuildValue("i",_result); |
9941 | return _resultobj; | |
9942 | } | |
9943 | ||
9944 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
9945 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9946 | PyObject * _resultobj; | |
9947 | bool _result; | |
9948 | wxRegion * _arg0; | |
9949 | PyObject * _argo0 = 0; | |
9950 | char *_kwnames[] = { "self", NULL }; | |
9951 | ||
9952 | self = self; | |
9953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
9954 | return NULL; | |
9955 | if (_argo0) { | |
9956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
9959 | return NULL; | |
9960 | } | |
9961 | } | |
9962 | { | |
9963 | wxPy_BEGIN_ALLOW_THREADS; | |
9964 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
9965 | ||
9966 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9967 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
9968 | } _resultobj = Py_BuildValue("i",_result); |
9969 | return _resultobj; | |
9970 | } | |
9971 | ||
9972 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9973 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9974 | PyObject * _resultobj; | |
9975 | bool _result; | |
9976 | wxRegion * _arg0; | |
9977 | long _arg1; | |
9978 | long _arg2; | |
9979 | long _arg3; | |
9980 | long _arg4; | |
9981 | PyObject * _argo0 = 0; | |
9982 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9983 | ||
9984 | self = self; | |
9985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9986 | return NULL; | |
9987 | if (_argo0) { | |
9988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
9991 | return NULL; | |
9992 | } | |
9993 | } | |
9994 | { | |
9995 | wxPy_BEGIN_ALLOW_THREADS; | |
9996 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9997 | ||
9998 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9999 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10000 | } _resultobj = Py_BuildValue("i",_result); |
10001 | return _resultobj; | |
10002 | } | |
10003 | ||
10004 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10005 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10006 | PyObject * _resultobj; | |
10007 | bool _result; | |
10008 | wxRegion * _arg0; | |
10009 | wxRect * _arg1; | |
10010 | PyObject * _argo0 = 0; | |
10011 | wxRect temp; | |
10012 | PyObject * _obj1 = 0; | |
10013 | char *_kwnames[] = { "self","rect", NULL }; | |
10014 | ||
10015 | self = self; | |
10016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
10017 | return NULL; | |
10018 | if (_argo0) { | |
10019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
10022 | return NULL; | |
10023 | } | |
10024 | } | |
10025 | { | |
10026 | _arg1 = &temp; | |
10027 | if (! wxRect_helper(_obj1, &_arg1)) | |
10028 | return NULL; | |
10029 | } | |
10030 | { | |
10031 | wxPy_BEGIN_ALLOW_THREADS; | |
10032 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
10033 | ||
10034 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10035 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10036 | } _resultobj = Py_BuildValue("i",_result); |
10037 | return _resultobj; | |
10038 | } | |
10039 | ||
10040 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10041 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10042 | PyObject * _resultobj; | |
10043 | bool _result; | |
10044 | wxRegion * _arg0; | |
10045 | wxRegion * _arg1; | |
10046 | PyObject * _argo0 = 0; | |
10047 | PyObject * _argo1 = 0; | |
10048 | char *_kwnames[] = { "self","region", NULL }; | |
10049 | ||
10050 | self = self; | |
10051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
10052 | return NULL; | |
10053 | if (_argo0) { | |
10054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10057 | return NULL; | |
10058 | } | |
10059 | } | |
10060 | if (_argo1) { | |
10061 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10062 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10064 | return NULL; | |
10065 | } | |
10066 | } | |
10067 | { | |
10068 | wxPy_BEGIN_ALLOW_THREADS; | |
10069 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
10070 | ||
10071 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10072 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10073 | } _resultobj = Py_BuildValue("i",_result); |
10074 | return _resultobj; | |
10075 | } | |
10076 | ||
10077 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10078 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10079 | PyObject * _resultobj; | |
10080 | bool _result; | |
10081 | wxRegion * _arg0; | |
10082 | long _arg1; | |
10083 | long _arg2; | |
10084 | long _arg3; | |
10085 | long _arg4; | |
10086 | PyObject * _argo0 = 0; | |
10087 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10088 | ||
10089 | self = self; | |
10090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10091 | return NULL; | |
10092 | if (_argo0) { | |
10093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
10096 | return NULL; | |
10097 | } | |
10098 | } | |
10099 | { | |
10100 | wxPy_BEGIN_ALLOW_THREADS; | |
10101 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10102 | ||
10103 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10104 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10105 | } _resultobj = Py_BuildValue("i",_result); |
10106 | return _resultobj; | |
10107 | } | |
10108 | ||
10109 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10110 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10111 | PyObject * _resultobj; | |
10112 | bool _result; | |
10113 | wxRegion * _arg0; | |
10114 | wxRect * _arg1; | |
10115 | PyObject * _argo0 = 0; | |
10116 | wxRect temp; | |
10117 | PyObject * _obj1 = 0; | |
10118 | char *_kwnames[] = { "self","rect", NULL }; | |
10119 | ||
10120 | self = self; | |
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
10122 | return NULL; | |
10123 | if (_argo0) { | |
10124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
10127 | return NULL; | |
10128 | } | |
10129 | } | |
10130 | { | |
10131 | _arg1 = &temp; | |
10132 | if (! wxRect_helper(_obj1, &_arg1)) | |
10133 | return NULL; | |
10134 | } | |
10135 | { | |
10136 | wxPy_BEGIN_ALLOW_THREADS; | |
10137 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
10138 | ||
10139 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10140 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10141 | } _resultobj = Py_BuildValue("i",_result); |
10142 | return _resultobj; | |
10143 | } | |
10144 | ||
10145 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10146 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10147 | PyObject * _resultobj; | |
10148 | bool _result; | |
10149 | wxRegion * _arg0; | |
10150 | wxRegion * _arg1; | |
10151 | PyObject * _argo0 = 0; | |
10152 | PyObject * _argo1 = 0; | |
10153 | char *_kwnames[] = { "self","region", NULL }; | |
10154 | ||
10155 | self = self; | |
10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
10157 | return NULL; | |
10158 | if (_argo0) { | |
10159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10162 | return NULL; | |
10163 | } | |
10164 | } | |
10165 | if (_argo1) { | |
10166 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10167 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10169 | return NULL; | |
10170 | } | |
10171 | } | |
10172 | { | |
10173 | wxPy_BEGIN_ALLOW_THREADS; | |
10174 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
10175 | ||
10176 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10177 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10178 | } _resultobj = Py_BuildValue("i",_result); |
10179 | return _resultobj; | |
10180 | } | |
10181 | ||
10182 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10183 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10184 | PyObject * _resultobj; | |
10185 | bool _result; | |
10186 | wxRegion * _arg0; | |
10187 | long _arg1; | |
10188 | long _arg2; | |
10189 | long _arg3; | |
10190 | long _arg4; | |
10191 | PyObject * _argo0 = 0; | |
10192 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10193 | ||
10194 | self = self; | |
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10196 | return NULL; | |
10197 | if (_argo0) { | |
10198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
10201 | return NULL; | |
10202 | } | |
10203 | } | |
10204 | { | |
10205 | wxPy_BEGIN_ALLOW_THREADS; | |
10206 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10207 | ||
10208 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10209 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10210 | } _resultobj = Py_BuildValue("i",_result); |
10211 | return _resultobj; | |
10212 | } | |
10213 | ||
10214 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10215 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10216 | PyObject * _resultobj; | |
10217 | bool _result; | |
10218 | wxRegion * _arg0; | |
10219 | wxRect * _arg1; | |
10220 | PyObject * _argo0 = 0; | |
10221 | wxRect temp; | |
10222 | PyObject * _obj1 = 0; | |
10223 | char *_kwnames[] = { "self","rect", NULL }; | |
10224 | ||
10225 | self = self; | |
10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
10227 | return NULL; | |
10228 | if (_argo0) { | |
10229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
10232 | return NULL; | |
10233 | } | |
10234 | } | |
10235 | { | |
10236 | _arg1 = &temp; | |
10237 | if (! wxRect_helper(_obj1, &_arg1)) | |
10238 | return NULL; | |
10239 | } | |
10240 | { | |
10241 | wxPy_BEGIN_ALLOW_THREADS; | |
10242 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
10243 | ||
10244 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10245 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10246 | } _resultobj = Py_BuildValue("i",_result); |
10247 | return _resultobj; | |
10248 | } | |
10249 | ||
10250 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10251 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10252 | PyObject * _resultobj; | |
10253 | bool _result; | |
10254 | wxRegion * _arg0; | |
10255 | wxRegion * _arg1; | |
10256 | PyObject * _argo0 = 0; | |
10257 | PyObject * _argo1 = 0; | |
10258 | char *_kwnames[] = { "self","region", NULL }; | |
10259 | ||
10260 | self = self; | |
10261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
10262 | return NULL; | |
10263 | if (_argo0) { | |
10264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10267 | return NULL; | |
10268 | } | |
10269 | } | |
10270 | if (_argo1) { | |
10271 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10272 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10274 | return NULL; | |
10275 | } | |
10276 | } | |
10277 | { | |
10278 | wxPy_BEGIN_ALLOW_THREADS; | |
10279 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
10280 | ||
10281 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10282 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10283 | } _resultobj = Py_BuildValue("i",_result); |
10284 | return _resultobj; | |
10285 | } | |
10286 | ||
10287 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
10288 | wxRegionIterator *src; | |
10289 | wxObject *dest; | |
10290 | src = (wxRegionIterator *) ptr; | |
10291 | dest = (wxObject *) src; | |
10292 | return (void *) dest; | |
10293 | } | |
10294 | ||
10295 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
10296 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10297 | PyObject * _resultobj; | |
10298 | wxRegionIterator * _result; | |
10299 | wxRegion * _arg0; | |
10300 | PyObject * _argo0 = 0; | |
10301 | char *_kwnames[] = { "region", NULL }; | |
10302 | char _ptemp[128]; | |
10303 | ||
10304 | self = self; | |
10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
10306 | return NULL; | |
10307 | if (_argo0) { | |
10308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
10311 | return NULL; | |
10312 | } | |
10313 | } | |
10314 | { | |
10315 | wxPy_BEGIN_ALLOW_THREADS; | |
10316 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
10317 | ||
10318 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10319 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10320 | } if (_result) { |
10321 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
10322 | _resultobj = Py_BuildValue("s",_ptemp); | |
10323 | } else { | |
10324 | Py_INCREF(Py_None); | |
10325 | _resultobj = Py_None; | |
10326 | } | |
10327 | return _resultobj; | |
10328 | } | |
10329 | ||
10330 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
10331 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10332 | PyObject * _resultobj; | |
10333 | wxRegionIterator * _arg0; | |
10334 | PyObject * _argo0 = 0; | |
10335 | char *_kwnames[] = { "self", NULL }; | |
10336 | ||
10337 | self = self; | |
10338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
10339 | return NULL; | |
10340 | if (_argo0) { | |
10341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
10344 | return NULL; | |
10345 | } | |
10346 | } | |
10347 | { | |
10348 | wxPy_BEGIN_ALLOW_THREADS; | |
10349 | delete_wxRegionIterator(_arg0); | |
10350 | ||
10351 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10352 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10353 | } Py_INCREF(Py_None); |
10354 | _resultobj = Py_None; | |
10355 | return _resultobj; | |
10356 | } | |
10357 | ||
10358 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
10359 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10360 | PyObject * _resultobj; | |
10361 | long _result; | |
10362 | wxRegionIterator * _arg0; | |
10363 | PyObject * _argo0 = 0; | |
10364 | char *_kwnames[] = { "self", NULL }; | |
10365 | ||
10366 | self = self; | |
10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
10368 | return NULL; | |
10369 | if (_argo0) { | |
10370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
10373 | return NULL; | |
10374 | } | |
10375 | } | |
10376 | { | |
10377 | wxPy_BEGIN_ALLOW_THREADS; | |
10378 | _result = (long )wxRegionIterator_GetX(_arg0); | |
10379 | ||
10380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10381 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10382 | } _resultobj = Py_BuildValue("l",_result); |
10383 | return _resultobj; | |
10384 | } | |
10385 | ||
10386 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
10387 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10388 | PyObject * _resultobj; | |
10389 | long _result; | |
10390 | wxRegionIterator * _arg0; | |
10391 | PyObject * _argo0 = 0; | |
10392 | char *_kwnames[] = { "self", NULL }; | |
10393 | ||
10394 | self = self; | |
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
10396 | return NULL; | |
10397 | if (_argo0) { | |
10398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
10401 | return NULL; | |
10402 | } | |
10403 | } | |
10404 | { | |
10405 | wxPy_BEGIN_ALLOW_THREADS; | |
10406 | _result = (long )wxRegionIterator_GetY(_arg0); | |
10407 | ||
10408 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10409 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10410 | } _resultobj = Py_BuildValue("l",_result); |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
10415 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | long _result; | |
10418 | wxRegionIterator * _arg0; | |
10419 | PyObject * _argo0 = 0; | |
10420 | char *_kwnames[] = { "self", NULL }; | |
10421 | ||
10422 | self = self; | |
10423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
10424 | return NULL; | |
10425 | if (_argo0) { | |
10426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
10429 | return NULL; | |
10430 | } | |
10431 | } | |
10432 | { | |
10433 | wxPy_BEGIN_ALLOW_THREADS; | |
10434 | _result = (long )wxRegionIterator_GetW(_arg0); | |
10435 | ||
10436 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10437 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10438 | } _resultobj = Py_BuildValue("l",_result); |
10439 | return _resultobj; | |
10440 | } | |
10441 | ||
10442 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
10443 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10444 | PyObject * _resultobj; | |
10445 | long _result; | |
10446 | wxRegionIterator * _arg0; | |
10447 | PyObject * _argo0 = 0; | |
10448 | char *_kwnames[] = { "self", NULL }; | |
10449 | ||
10450 | self = self; | |
10451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
10452 | return NULL; | |
10453 | if (_argo0) { | |
10454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
10457 | return NULL; | |
10458 | } | |
10459 | } | |
10460 | { | |
10461 | wxPy_BEGIN_ALLOW_THREADS; | |
10462 | _result = (long )wxRegionIterator_GetWidth(_arg0); | |
10463 | ||
10464 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10465 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10466 | } _resultobj = Py_BuildValue("l",_result); |
10467 | return _resultobj; | |
10468 | } | |
10469 | ||
10470 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
10471 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10472 | PyObject * _resultobj; | |
10473 | long _result; | |
10474 | wxRegionIterator * _arg0; | |
10475 | PyObject * _argo0 = 0; | |
10476 | char *_kwnames[] = { "self", NULL }; | |
10477 | ||
10478 | self = self; | |
10479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
10480 | return NULL; | |
10481 | if (_argo0) { | |
10482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
10485 | return NULL; | |
10486 | } | |
10487 | } | |
10488 | { | |
10489 | wxPy_BEGIN_ALLOW_THREADS; | |
10490 | _result = (long )wxRegionIterator_GetH(_arg0); | |
10491 | ||
10492 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10493 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10494 | } _resultobj = Py_BuildValue("l",_result); |
10495 | return _resultobj; | |
10496 | } | |
10497 | ||
10498 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
10499 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10500 | PyObject * _resultobj; | |
10501 | long _result; | |
10502 | wxRegionIterator * _arg0; | |
10503 | PyObject * _argo0 = 0; | |
10504 | char *_kwnames[] = { "self", NULL }; | |
10505 | ||
10506 | self = self; | |
10507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
10508 | return NULL; | |
10509 | if (_argo0) { | |
10510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
10513 | return NULL; | |
10514 | } | |
10515 | } | |
10516 | { | |
10517 | wxPy_BEGIN_ALLOW_THREADS; | |
10518 | _result = (long )wxRegionIterator_GetHeight(_arg0); | |
10519 | ||
10520 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10521 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10522 | } _resultobj = Py_BuildValue("l",_result); |
10523 | return _resultobj; | |
10524 | } | |
10525 | ||
10526 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
10527 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10528 | PyObject * _resultobj; | |
10529 | wxRect * _result; | |
10530 | wxRegionIterator * _arg0; | |
10531 | PyObject * _argo0 = 0; | |
10532 | char *_kwnames[] = { "self", NULL }; | |
10533 | char _ptemp[128]; | |
10534 | ||
10535 | self = self; | |
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
10537 | return NULL; | |
10538 | if (_argo0) { | |
10539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
10542 | return NULL; | |
10543 | } | |
10544 | } | |
10545 | { | |
10546 | wxPy_BEGIN_ALLOW_THREADS; | |
10547 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
10548 | ||
10549 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10550 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10551 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
10552 | _resultobj = Py_BuildValue("s",_ptemp); | |
10553 | return _resultobj; | |
10554 | } | |
10555 | ||
10556 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
10557 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10558 | PyObject * _resultobj; | |
10559 | bool _result; | |
10560 | wxRegionIterator * _arg0; | |
10561 | PyObject * _argo0 = 0; | |
10562 | char *_kwnames[] = { "self", NULL }; | |
10563 | ||
10564 | self = self; | |
10565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
10566 | return NULL; | |
10567 | if (_argo0) { | |
10568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
10571 | return NULL; | |
10572 | } | |
10573 | } | |
10574 | { | |
10575 | wxPy_BEGIN_ALLOW_THREADS; | |
10576 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
10577 | ||
10578 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10579 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10580 | } _resultobj = Py_BuildValue("i",_result); |
10581 | return _resultobj; | |
10582 | } | |
10583 | ||
10584 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
10585 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10586 | PyObject * _resultobj; | |
10587 | wxRegionIterator * _arg0; | |
10588 | PyObject * _argo0 = 0; | |
10589 | char *_kwnames[] = { "self", NULL }; | |
10590 | ||
10591 | self = self; | |
10592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
10593 | return NULL; | |
10594 | if (_argo0) { | |
10595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
10598 | return NULL; | |
10599 | } | |
10600 | } | |
10601 | { | |
10602 | wxPy_BEGIN_ALLOW_THREADS; | |
10603 | wxRegionIterator_Reset(_arg0); | |
10604 | ||
10605 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10606 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10607 | } Py_INCREF(Py_None); |
10608 | _resultobj = Py_None; | |
10609 | return _resultobj; | |
10610 | } | |
10611 | ||
10612 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
10613 | (*self) ++; | |
10614 | } | |
10615 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject * _resultobj; | |
10617 | wxRegionIterator * _arg0; | |
10618 | PyObject * _argo0 = 0; | |
10619 | char *_kwnames[] = { "self", NULL }; | |
10620 | ||
10621 | self = self; | |
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
10623 | return NULL; | |
10624 | if (_argo0) { | |
10625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
10628 | return NULL; | |
10629 | } | |
10630 | } | |
10631 | { | |
10632 | wxPy_BEGIN_ALLOW_THREADS; | |
10633 | wxRegionIterator_Next(_arg0); | |
10634 | ||
10635 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 10636 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10637 | } Py_INCREF(Py_None); |
10638 | _resultobj = Py_None; | |
10639 | return _resultobj; | |
10640 | } | |
10641 | ||
70551f47 | 10642 | static PyMethodDef gdicMethods[] = { |
9df61a29 RD |
10643 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
10644 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
10645 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
10646 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10647 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10650 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
10651 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
10652 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
10653 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10654 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
10657 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
10658 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
10659 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
10660 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
10662 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
10663 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
10664 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
10665 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
10670 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
10671 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
10672 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
10673 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10674 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
10675 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10676 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10677 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
10678 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10679 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
10681 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10682 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, |
10683 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10684 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, |
10685 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10686 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10687 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10688 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
10689 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10690 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
10691 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
10692 | { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
10693 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, | |
10694 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
10695 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
10696 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10697 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 10698 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10699 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
10700 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
10701 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10702 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
10703 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
10704 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
10705 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10707 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10708 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
10709 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10710 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10711 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10712 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
10713 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
10714 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
10715 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
10716 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
10717 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
10718 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
10719 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10721 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10722 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
10723 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 10726 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10727 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
10728 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
10729 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10730 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10731 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10732 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
10733 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
10734 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
10735 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10740 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10741 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
10742 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10745 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10746 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
10747 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 10752 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10753 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
10754 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 10767 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10768 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
10769 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd RD |
10788 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
10789 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10791 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
10792 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10798 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10799 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
10800 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
10801 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 RD |
10803 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
10804 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10805 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
10806 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10816 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10817 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
10818 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
10819 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10821 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
10822 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd RD |
10829 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
10830 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
10832 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
10833 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc RD |
10834 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
10835 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 10837 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
134d79dc | 10838 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10839 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
10840 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
10841 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10842 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10843 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
10844 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
10845 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc | 10846 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 10847 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10848 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 10849 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10850 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10851 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 10852 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 10853 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd | 10854 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 10855 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10856 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
10857 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
10858 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10872 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
10873 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 10874 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10875 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
10876 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, |
10877 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10881 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, |
10882 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10883 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
10884 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 10885 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10886 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10887 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
10888 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
10889 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10890 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
10891 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, |
10892 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10895 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10896 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 10897 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
10898 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
10899 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10900 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
10901 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9df61a29 RD |
10902 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
10903 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10907 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
10908 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca RD |
10910 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
10911 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10912 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a | 10913 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
10914 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
10915 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 10916 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
10917 | { NULL, NULL } |
10918 | }; | |
2d091820 RD |
10919 | #ifdef __cplusplus |
10920 | } | |
10921 | #endif | |
10922 | /* | |
10923 | * This table is used by the pointer type-checker | |
10924 | */ | |
10925 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 10926 | { "_signed_long","_long",0}, |
4120ef2b | 10927 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
10928 | { "_wxPrintQuality","_int",0}, |
10929 | { "_wxPrintQuality","_signed_int",0}, | |
10930 | { "_wxPrintQuality","_unsigned_int",0}, | |
10931 | { "_wxPrintQuality","_wxWindowID",0}, | |
10932 | { "_wxPrintQuality","_uint",0}, | |
10933 | { "_wxPrintQuality","_EBool",0}, | |
10934 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10935 | { "_wxPrintQuality","_time_t",0}, |
2d091820 | 10936 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
10937 | { "_long","_unsigned_long",0}, |
10938 | { "_long","_signed_long",0}, | |
9df61a29 RD |
10939 | { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject}, |
10940 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
10941 | { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject}, | |
10942 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
10943 | { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject}, | |
10944 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
10945 | { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject}, | |
10946 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
10947 | { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject}, | |
10948 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
10949 | { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject}, | |
10950 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
10951 | { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject}, | |
10952 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
10953 | { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
10954 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
2d091820 RD |
10955 | { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, |
10956 | { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
10957 | { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
10958 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
10959 | { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
10960 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
10961 | { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
10962 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
10963 | { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
10964 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
10965 | { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
10966 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
9df61a29 RD |
10967 | { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
10968 | { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
10969 | { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject}, | |
10970 | { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
10971 | { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject}, | |
10972 | { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
10973 | { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject}, | |
10974 | { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
10975 | { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
10976 | { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
10977 | { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject}, | |
10978 | { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, | |
10979 | { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject}, | |
10980 | { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
10981 | { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject}, | |
10982 | { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
10983 | { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject}, | |
10984 | { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
10985 | { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
10986 | { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
10987 | { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject}, | |
10988 | { "_class_wxObject","_wxDC",SwigwxDCTowxObject}, | |
10989 | { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject}, | |
10990 | { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
10991 | { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject}, | |
10992 | { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
10993 | { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject}, | |
10994 | { "_class_wxObject","_wxPen",SwigwxPenTowxObject}, | |
10995 | { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
10996 | { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
10997 | { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject}, | |
10998 | { "_class_wxObject","_wxColour",SwigwxColourTowxObject}, | |
10999 | { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject}, | |
11000 | { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
11001 | { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject}, | |
11002 | { "_class_wxObject","_wxFont",SwigwxFontTowxObject}, | |
11003 | { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject}, | |
11004 | { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
11005 | { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject}, | |
11006 | { "_class_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
11007 | { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject}, | |
11008 | { "_class_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
11009 | { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject}, | |
11010 | { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
11011 | { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
11012 | { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
4120ef2b | 11013 | { "_size_t","_wxCoord",0}, |
2d091820 | 11014 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11015 | { "_size_t","_time_t",0}, |
2d091820 RD |
11016 | { "_size_t","_unsigned_int",0}, |
11017 | { "_size_t","_int",0}, | |
11018 | { "_size_t","_wxWindowID",0}, | |
11019 | { "_size_t","_uint",0}, | |
4120ef2b | 11020 | { "_uint","_wxCoord",0}, |
2d091820 | 11021 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11022 | { "_uint","_time_t",0}, |
2d091820 RD |
11023 | { "_uint","_size_t",0}, |
11024 | { "_uint","_unsigned_int",0}, | |
11025 | { "_uint","_int",0}, | |
11026 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11027 | { "_wxChar","_char",0}, |
f6bcfd97 | 11028 | { "_char","_wxChar",0}, |
059a841c | 11029 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 11030 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
11031 | { "_EBool","_wxPrintQuality",0}, |
11032 | { "_EBool","_signed_int",0}, | |
11033 | { "_EBool","_int",0}, | |
11034 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 11035 | { "_unsigned_long","_long",0}, |
2d091820 RD |
11036 | { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, |
11037 | { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
11038 | { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
11039 | { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
11040 | { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
11041 | { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
11042 | { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
11043 | { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
11044 | { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
11045 | { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
11046 | { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
11047 | { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
059a841c | 11048 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 11049 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
11050 | { "_signed_int","_wxPrintQuality",0}, |
11051 | { "_signed_int","_EBool",0}, | |
11052 | { "_signed_int","_wxWindowID",0}, | |
11053 | { "_signed_int","_int",0}, | |
2d091820 RD |
11054 | { "_WXTYPE","_short",0}, |
11055 | { "_WXTYPE","_signed_short",0}, | |
11056 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
11057 | { "_unsigned_short","_WXTYPE",0}, |
11058 | { "_unsigned_short","_short",0}, | |
9df61a29 RD |
11059 | { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
11060 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
11061 | { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject}, | |
11062 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
11063 | { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject}, | |
11064 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
11065 | { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject}, | |
11066 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
11067 | { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
11068 | { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, | |
11069 | { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject}, | |
11070 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, | |
11071 | { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject}, | |
11072 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
11073 | { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject}, | |
11074 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
11075 | { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject}, | |
11076 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
11077 | { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
11078 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, | |
11079 | { "_wxObject","_class_wxDC",SwigwxDCTowxObject}, | |
11080 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
11081 | { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject}, | |
11082 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
11083 | { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject}, | |
11084 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
11085 | { "_wxObject","_class_wxPen",SwigwxPenTowxObject}, | |
11086 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
11087 | { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
11088 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
11089 | { "_wxObject","_class_wxColour",SwigwxColourTowxObject}, | |
11090 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
11091 | { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject}, | |
11092 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
11093 | { "_wxObject","_class_wxFont",SwigwxFontTowxObject}, | |
11094 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, | |
11095 | { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject}, | |
11096 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
11097 | { "_wxObject","_class_wxIcon",SwigwxIconTowxObject}, | |
11098 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
11099 | { "_wxObject","_class_wxMask",SwigwxMaskTowxObject}, | |
11100 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
11101 | { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject}, | |
11102 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
11103 | { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
11104 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
2d091820 RD |
11105 | { "_signed_short","_WXTYPE",0}, |
11106 | { "_signed_short","_short",0}, | |
2d091820 | 11107 | { "_unsigned_char","_byte",0}, |
4120ef2b | 11108 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 11109 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11110 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
11111 | { "_unsigned_int","_size_t",0}, |
11112 | { "_unsigned_int","_uint",0}, | |
11113 | { "_unsigned_int","_wxWindowID",0}, | |
11114 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
11115 | { "_short","_WXTYPE",0}, |
11116 | { "_short","_unsigned_short",0}, | |
11117 | { "_short","_signed_short",0}, | |
4120ef2b | 11118 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 11119 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11120 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
11121 | { "_wxWindowID","_size_t",0}, |
11122 | { "_wxWindowID","_EBool",0}, | |
11123 | { "_wxWindowID","_uint",0}, | |
11124 | { "_wxWindowID","_int",0}, | |
11125 | { "_wxWindowID","_signed_int",0}, | |
11126 | { "_wxWindowID","_unsigned_int",0}, | |
9df61a29 RD |
11127 | { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject}, |
11128 | { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
11129 | { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject}, | |
11130 | { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
11131 | { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject}, | |
11132 | { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
11133 | { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject}, | |
11134 | { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
11135 | { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject}, | |
11136 | { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
11137 | { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject}, | |
11138 | { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
11139 | { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject}, | |
11140 | { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
11141 | { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
11142 | { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
4120ef2b | 11143 | { "_int","_wxCoord",0}, |
2d091820 | 11144 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11145 | { "_int","_time_t",0}, |
2d091820 RD |
11146 | { "_int","_size_t",0}, |
11147 | { "_int","_EBool",0}, | |
11148 | { "_int","_uint",0}, | |
11149 | { "_int","_wxWindowID",0}, | |
11150 | { "_int","_unsigned_int",0}, | |
11151 | { "_int","_signed_int",0}, | |
c368d904 RD |
11152 | { "_time_t","_wxCoord",0}, |
11153 | { "_time_t","_wxPrintQuality",0}, | |
11154 | { "_time_t","_unsigned_int",0}, | |
11155 | { "_time_t","_int",0}, | |
11156 | { "_time_t","_wxWindowID",0}, | |
11157 | { "_time_t","_uint",0}, | |
11158 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
11159 | { "_wxCoord","_int",0}, |
11160 | { "_wxCoord","_signed_int",0}, | |
11161 | { "_wxCoord","_unsigned_int",0}, | |
11162 | { "_wxCoord","_wxWindowID",0}, | |
11163 | { "_wxCoord","_uint",0}, | |
11164 | { "_wxCoord","_EBool",0}, | |
11165 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11166 | { "_wxCoord","_time_t",0}, |
4120ef2b | 11167 | { "_wxCoord","_wxPrintQuality",0}, |
2d091820 RD |
11168 | {0,0,0}}; |
11169 | ||
70551f47 RD |
11170 | static PyObject *SWIG_globals; |
11171 | #ifdef __cplusplus | |
11172 | extern "C" | |
11173 | #endif | |
2d091820 | 11174 | SWIGEXPORT(void) initgdic() { |
70551f47 RD |
11175 | PyObject *m, *d; |
11176 | SWIG_globals = SWIG_newvarlink(); | |
11177 | m = Py_InitModule("gdic", gdicMethods); | |
11178 | d = PyModule_GetDict(m); | |
059a841c RD |
11179 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
11180 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
11181 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
11182 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
11183 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
11184 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
11185 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
11186 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
11187 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); | |
11188 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
11189 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
11190 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
11191 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
11192 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
11193 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
11194 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
134d79dc RD |
11195 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
11196 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
11197 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
11198 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
11199 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
11200 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
11201 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
11202 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
11203 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
11204 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
11205 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
11206 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
11207 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
11208 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
11209 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
11210 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
11211 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
059a841c | 11212 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
134d79dc RD |
11213 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
11214 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
11215 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
11216 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
11217 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
11218 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
11219 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
11220 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
059a841c | 11221 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
134d79dc RD |
11222 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
11223 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
11224 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
059a841c RD |
11225 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
11226 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
11227 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
11228 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
11229 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
11230 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
11231 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
11232 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
11233 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
134d79dc | 11234 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
70551f47 RD |
11235 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
11236 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
11237 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
11238 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
11239 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
11240 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
11241 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
11242 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
11243 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
11244 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
11245 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
11246 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
11247 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
11248 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
11249 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
11250 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
11251 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
11252 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
11253 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
11254 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
11255 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
11256 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
11257 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
11258 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
11259 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
11260 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
11261 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
11262 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
11263 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
11264 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
11265 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
11266 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
11267 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
11268 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
11269 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
11270 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
11271 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
11272 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
11273 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
11274 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
11275 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
11276 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
11277 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
5e40f9dd RD |
11278 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
11279 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
11280 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
11281 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
21f8d7ea RD |
11282 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
11283 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
11284 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
11285 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
11286 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
11287 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
11288 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
9df61a29 RD |
11289 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); |
11290 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
11291 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
2d091820 RD |
11292 | { |
11293 | int i; | |
11294 | for (i = 0; _swig_mapping[i].n1; i++) | |
11295 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11296 | } | |
70551f47 | 11297 | } |