]>
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 |
70551f47 RD |
64 | |
65 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
5e40f9dd | 67 | if (!target) { |
70551f47 | 68 | target = o; |
5e40f9dd | 69 | } else if (target == Py_None) { |
70551f47 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
5e40f9dd | 72 | } else { |
70551f47 RD |
73 | if (!PyList_Check(target)) { |
74 | o2 = target; | |
75 | target = PyList_New(0); | |
76 | PyList_Append(target, o2); | |
77 | Py_XDECREF(o2); | |
78 | } | |
79 | PyList_Append(target,o); | |
80 | Py_XDECREF(o); | |
81 | } | |
82 | return target; | |
83 | } | |
84 | ||
85 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
86 | PyObject* o2; | |
87 | PyObject* o3; | |
88 | ||
5e40f9dd | 89 | if (!target) { |
70551f47 | 90 | target = o; |
5e40f9dd | 91 | } else if (target == Py_None) { |
70551f47 RD |
92 | Py_DECREF(Py_None); |
93 | target = o; | |
5e40f9dd | 94 | } else { |
70551f47 RD |
95 | if (!PyTuple_Check(target)) { |
96 | o2 = target; | |
97 | target = PyTuple_New(1); | |
98 | PyTuple_SetItem(target, 0, o2); | |
99 | } | |
5e40f9dd RD |
100 | o3 = PyTuple_New(1); |
101 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
102 | |
103 | o2 = target; | |
5e40f9dd RD |
104 | target = PySequence_Concat(o2, o3); |
105 | Py_DECREF(o2); | |
70551f47 RD |
106 | Py_DECREF(o3); |
107 | } | |
108 | return target; | |
109 | } | |
110 | ||
7a446686 RD |
111 | #if PYTHON_API_VERSION >= 1009 |
112 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
113 | #else | |
114 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
115 | #endif | |
b68dc582 RD |
116 | |
117 | static wxString wxPyEmptyStr(""); | |
fbcadfca RD |
118 | // Implementations of some alternate "constructors" |
119 | ||
70551f47 RD |
120 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
121 | return new wxBitmap(width, height, depth); | |
122 | } | |
123 | ||
fbcadfca RD |
124 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
125 | char** cArray = NULL; | |
126 | int count; | |
127 | ||
128 | if (!PyList_Check(listOfStrings)) { | |
129 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
130 | return NULL; | |
131 | } | |
132 | count = PyList_Size(listOfStrings); | |
133 | cArray = new char*[count]; | |
134 | ||
135 | for(int x=0; x<count; x++) { | |
136 | // TODO: Need some validation and error checking here | |
137 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
138 | } | |
139 | return cArray; | |
140 | } | |
141 | ||
142 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { | |
143 | char** cArray = NULL; | |
144 | wxBitmap* bmp; | |
145 | ||
146 | cArray = ConvertListOfStrings(listOfStrings); | |
147 | if (! cArray) | |
148 | return NULL; | |
149 | bmp = new wxBitmap(cArray); | |
150 | delete [] cArray; | |
151 | return bmp; | |
152 | } | |
153 | ||
154 | ||
155 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
156 | return new wxBitmap(icon); | |
157 | } | |
158 | ||
159 | ||
9e689c06 | 160 | |
8bf5d46e | 161 | #ifdef __WXMSW__ |
7ff49f0c | 162 | wxBitmap* wxBitmapFromData(PyObject* data, long type, |
8bf5d46e | 163 | int width, int height, int depth = 1) { |
7ff49f0c RD |
164 | if (! PyString_Check(data)) { |
165 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
166 | return NULL; | |
167 | } | |
168 | ||
169 | return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
8bf5d46e RD |
170 | } |
171 | #endif | |
172 | ||
70551f47 RD |
173 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
174 | return new wxMask(bitmap, colour); | |
fbcadfca RD |
175 | } |
176 | // Implementations of some alternate "constructors" | |
177 | wxIcon* wxEmptyIcon() { | |
178 | return new wxIcon(); | |
179 | } | |
180 | ||
181 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
182 | char** cArray = NULL; | |
183 | wxIcon* icon; | |
184 | ||
185 | cArray = ConvertListOfStrings(listOfStrings); | |
186 | if (! cArray) | |
187 | return NULL; | |
188 | icon = new wxIcon(cArray); | |
189 | delete [] cArray; | |
190 | return icon; | |
70551f47 RD |
191 | } |
192 | // Alternate 'constructor' | |
b26e2dc4 | 193 | wxCursor* wxPyStockCursor(int id) { |
70551f47 RD |
194 | return new wxCursor(id); |
195 | } | |
134d79dc RD |
196 | |
197 | wxFontEncoding wxFont_GetDefaultEncoding() { | |
198 | return wxFont::GetDefaultEncoding(); | |
199 | } | |
200 | ||
201 | void wxFont_SetDefaultEncoding(wxFontEncoding encoding) { | |
202 | wxFont::SetDefaultEncoding(encoding); | |
203 | } | |
70551f47 RD |
204 | // Alternate 'constructor' |
205 | wxColour* wxNamedColour(const wxString& colorName) { | |
206 | return new wxColour(colorName); | |
207 | } | |
208 | // Alternate 'constructor' | |
209 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
210 | return new wxMemoryDC(oldDC); | |
211 | } | |
21f8d7ea RD |
212 | |
213 | #if 0 | |
70551f47 RD |
214 | extern wxFont * wxNORMAL_FONT; |
215 | extern wxFont * wxSMALL_FONT; | |
216 | extern wxFont * wxITALIC_FONT; | |
217 | extern wxFont * wxSWISS_FONT; | |
218 | extern wxPen * wxRED_PEN; | |
219 | extern wxPen * wxCYAN_PEN; | |
220 | extern wxPen * wxGREEN_PEN; | |
221 | extern wxPen * wxBLACK_PEN; | |
222 | extern wxPen * wxWHITE_PEN; | |
223 | extern wxPen * wxTRANSPARENT_PEN; | |
224 | extern wxPen * wxBLACK_DASHED_PEN; | |
225 | extern wxPen * wxGREY_PEN; | |
226 | extern wxPen * wxMEDIUM_GREY_PEN; | |
227 | extern wxPen * wxLIGHT_GREY_PEN; | |
228 | extern wxBrush * wxBLUE_BRUSH; | |
229 | extern wxBrush * wxGREEN_BRUSH; | |
230 | extern wxBrush * wxWHITE_BRUSH; | |
231 | extern wxBrush * wxBLACK_BRUSH; | |
232 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
233 | extern wxBrush * wxCYAN_BRUSH; | |
234 | extern wxBrush * wxRED_BRUSH; | |
235 | extern wxBrush * wxGREY_BRUSH; | |
236 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
237 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
238 | extern wxColour * wxBLACK; | |
239 | extern wxColour * wxWHITE; | |
240 | extern wxColour * wxRED; | |
241 | extern wxColour * wxBLUE; | |
242 | extern wxColour * wxGREEN; | |
243 | extern wxColour * wxCYAN; | |
244 | extern wxColour * wxLIGHT_GREY; | |
245 | extern wxCursor * wxSTANDARD_CURSOR; | |
246 | extern wxCursor * wxHOURGLASS_CURSOR; | |
247 | extern wxCursor * wxCROSS_CURSOR; | |
248 | extern wxBitmap wxNullBitmap; | |
249 | extern wxIcon wxNullIcon; | |
250 | extern wxCursor wxNullCursor; | |
251 | extern wxPen wxNullPen; | |
252 | extern wxBrush wxNullBrush; | |
253 | extern wxPalette wxNullPalette; | |
254 | extern wxFont wxNullFont; | |
255 | extern wxColour wxNullColour; | |
5e40f9dd RD |
256 | extern wxFontList * wxTheFontList; |
257 | extern wxPenList * wxThePenList; | |
258 | extern wxBrushlist * wxTheBrushList; | |
259 | extern wxColourDatabase * wxTheColourDatabase; | |
21f8d7ea | 260 | |
2d091820 RD |
261 | #endif |
262 | #ifdef __cplusplus | |
263 | extern "C" { | |
21f8d7ea | 264 | #endif |
107e4716 | 265 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
266 | PyObject * _resultobj; |
267 | wxBitmap * _result; | |
268 | int _arg0; | |
269 | int _arg1; | |
2d091820 | 270 | int _arg2 = (int ) -1; |
107e4716 | 271 | char *_kwnames[] = { "width","height","depth", NULL }; |
70551f47 RD |
272 | char _ptemp[128]; |
273 | ||
274 | self = self; | |
107e4716 | 275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 276 | return NULL; |
ab9bc19b RD |
277 | { |
278 | wxPy_BEGIN_ALLOW_THREADS; | |
279 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
280 | ||
281 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
282 | } if (_result) { |
283 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
284 | _resultobj = Py_BuildValue("s",_ptemp); | |
285 | } else { | |
286 | Py_INCREF(Py_None); | |
287 | _resultobj = Py_None; | |
288 | } | |
70551f47 RD |
289 | return _resultobj; |
290 | } | |
291 | ||
fbcadfca RD |
292 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
293 | PyObject * _resultobj; | |
294 | wxBitmap * _result; | |
295 | PyObject * _arg0; | |
296 | PyObject * _obj0 = 0; | |
297 | char *_kwnames[] = { "listOfStrings", NULL }; | |
298 | char _ptemp[128]; | |
299 | ||
300 | self = self; | |
301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
302 | return NULL; | |
303 | { | |
304 | _arg0 = _obj0; | |
305 | } | |
306 | { | |
307 | wxPy_BEGIN_ALLOW_THREADS; | |
308 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
309 | ||
310 | wxPy_END_ALLOW_THREADS; | |
311 | } if (_result) { | |
312 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
313 | _resultobj = Py_BuildValue("s",_ptemp); | |
314 | } else { | |
315 | Py_INCREF(Py_None); | |
316 | _resultobj = Py_None; | |
317 | } | |
318 | return _resultobj; | |
319 | } | |
320 | ||
321 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
322 | PyObject * _resultobj; | |
323 | wxBitmap * _result; | |
324 | wxIcon * _arg0; | |
325 | PyObject * _argo0 = 0; | |
326 | char *_kwnames[] = { "icon", NULL }; | |
327 | char _ptemp[128]; | |
328 | ||
329 | self = self; | |
330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
331 | return NULL; | |
332 | if (_argo0) { | |
333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
336 | return NULL; | |
337 | } | |
338 | } | |
339 | { | |
340 | wxPy_BEGIN_ALLOW_THREADS; | |
341 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
342 | ||
343 | wxPy_END_ALLOW_THREADS; | |
344 | } if (_result) { | |
345 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
346 | _resultobj = Py_BuildValue("s",_ptemp); | |
347 | } else { | |
348 | Py_INCREF(Py_None); | |
349 | _resultobj = Py_None; | |
350 | } | |
351 | return _resultobj; | |
352 | } | |
353 | ||
107e4716 | 354 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
355 | PyObject * _resultobj; |
356 | wxMask * _result; | |
357 | wxBitmap * _arg0; | |
358 | wxColour * _arg1; | |
2d091820 | 359 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
360 | wxColour temp; |
361 | PyObject * _obj1 = 0; | |
107e4716 | 362 | char *_kwnames[] = { "bitmap","colour", NULL }; |
70551f47 RD |
363 | char _ptemp[128]; |
364 | ||
365 | self = self; | |
f6bcfd97 | 366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 367 | return NULL; |
2d091820 RD |
368 | if (_argo0) { |
369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
372 | return NULL; | |
373 | } | |
374 | } | |
f6bcfd97 BP |
375 | { |
376 | _arg1 = &temp; | |
377 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 378 | return NULL; |
f6bcfd97 | 379 | } |
ab9bc19b RD |
380 | { |
381 | wxPy_BEGIN_ALLOW_THREADS; | |
382 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
383 | ||
384 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
385 | } if (_result) { |
386 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
387 | _resultobj = Py_BuildValue("s",_ptemp); | |
388 | } else { | |
389 | Py_INCREF(Py_None); | |
390 | _resultobj = Py_None; | |
391 | } | |
70551f47 RD |
392 | return _resultobj; |
393 | } | |
394 | ||
fbcadfca RD |
395 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
396 | PyObject * _resultobj; | |
397 | wxIcon * _result; | |
398 | char *_kwnames[] = { NULL }; | |
399 | char _ptemp[128]; | |
400 | ||
401 | self = self; | |
402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
403 | return NULL; | |
404 | { | |
405 | wxPy_BEGIN_ALLOW_THREADS; | |
406 | _result = (wxIcon *)wxEmptyIcon(); | |
407 | ||
408 | wxPy_END_ALLOW_THREADS; | |
409 | } if (_result) { | |
410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
411 | _resultobj = Py_BuildValue("s",_ptemp); | |
412 | } else { | |
413 | Py_INCREF(Py_None); | |
414 | _resultobj = Py_None; | |
415 | } | |
416 | return _resultobj; | |
417 | } | |
418 | ||
419 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
420 | PyObject * _resultobj; | |
421 | wxIcon * _result; | |
422 | PyObject * _arg0; | |
423 | PyObject * _obj0 = 0; | |
424 | char *_kwnames[] = { "listOfStrings", NULL }; | |
425 | char _ptemp[128]; | |
426 | ||
427 | self = self; | |
428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
429 | return NULL; | |
430 | { | |
431 | _arg0 = _obj0; | |
432 | } | |
433 | { | |
434 | wxPy_BEGIN_ALLOW_THREADS; | |
435 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
436 | ||
437 | wxPy_END_ALLOW_THREADS; | |
438 | } if (_result) { | |
439 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
440 | _resultobj = Py_BuildValue("s",_ptemp); | |
441 | } else { | |
442 | Py_INCREF(Py_None); | |
443 | _resultobj = Py_None; | |
444 | } | |
445 | return _resultobj; | |
446 | } | |
447 | ||
107e4716 | 448 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
449 | PyObject * _resultobj; |
450 | wxCursor * _result; | |
451 | int _arg0; | |
107e4716 | 452 | char *_kwnames[] = { "id", NULL }; |
70551f47 RD |
453 | char _ptemp[128]; |
454 | ||
455 | self = self; | |
107e4716 | 456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
70551f47 | 457 | return NULL; |
ab9bc19b RD |
458 | { |
459 | wxPy_BEGIN_ALLOW_THREADS; | |
460 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
461 | ||
462 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
463 | } if (_result) { |
464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
465 | _resultobj = Py_BuildValue("s",_ptemp); | |
466 | } else { | |
467 | Py_INCREF(Py_None); | |
468 | _resultobj = Py_None; | |
469 | } | |
70551f47 RD |
470 | return _resultobj; |
471 | } | |
472 | ||
134d79dc RD |
473 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
474 | PyObject * _resultobj; | |
475 | wxFontEncoding _result; | |
476 | char *_kwnames[] = { NULL }; | |
477 | ||
478 | self = self; | |
479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
480 | return NULL; | |
481 | { | |
482 | wxPy_BEGIN_ALLOW_THREADS; | |
483 | _result = (wxFontEncoding )wxFont_GetDefaultEncoding(); | |
484 | ||
485 | wxPy_END_ALLOW_THREADS; | |
486 | } _resultobj = Py_BuildValue("i",_result); | |
487 | return _resultobj; | |
488 | } | |
489 | ||
490 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
491 | PyObject * _resultobj; | |
492 | wxFontEncoding _arg0; | |
493 | char *_kwnames[] = { "encoding", NULL }; | |
494 | ||
495 | self = self; | |
496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
497 | return NULL; | |
498 | { | |
499 | wxPy_BEGIN_ALLOW_THREADS; | |
500 | wxFont_SetDefaultEncoding(_arg0); | |
501 | ||
502 | wxPy_END_ALLOW_THREADS; | |
503 | } Py_INCREF(Py_None); | |
504 | _resultobj = Py_None; | |
505 | return _resultobj; | |
506 | } | |
507 | ||
107e4716 | 508 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
509 | PyObject * _resultobj; |
510 | wxColour * _result; | |
511 | wxString * _arg0; | |
512 | PyObject * _obj0 = 0; | |
107e4716 | 513 | char *_kwnames[] = { "colorName", NULL }; |
70551f47 RD |
514 | char _ptemp[128]; |
515 | ||
516 | self = self; | |
107e4716 | 517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
70551f47 RD |
518 | return NULL; |
519 | { | |
2cd2fac8 RD |
520 | #if PYTHON_API_VERSION >= 1009 |
521 | char* tmpPtr; int tmpSize; | |
522 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 523 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
524 | return NULL; |
525 | } | |
526 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
527 | return NULL; | |
528 | _arg0 = new wxString(tmpPtr, tmpSize); | |
529 | #else | |
70551f47 RD |
530 | if (!PyString_Check(_obj0)) { |
531 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
532 | return NULL; | |
533 | } | |
2cd2fac8 RD |
534 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
535 | #endif | |
70551f47 | 536 | } |
ab9bc19b RD |
537 | { |
538 | wxPy_BEGIN_ALLOW_THREADS; | |
539 | _result = (wxColour *)wxNamedColour(*_arg0); | |
540 | ||
541 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
542 | } if (_result) { |
543 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
544 | _resultobj = Py_BuildValue("s",_ptemp); | |
545 | } else { | |
546 | Py_INCREF(Py_None); | |
547 | _resultobj = Py_None; | |
548 | } | |
70551f47 RD |
549 | { |
550 | if (_obj0) | |
551 | delete _arg0; | |
552 | } | |
553 | return _resultobj; | |
554 | } | |
555 | ||
107e4716 | 556 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
557 | PyObject * _resultobj; |
558 | wxMemoryDC * _result; | |
559 | wxDC * _arg0; | |
2d091820 | 560 | PyObject * _argo0 = 0; |
107e4716 | 561 | char *_kwnames[] = { "oldDC", NULL }; |
70551f47 RD |
562 | char _ptemp[128]; |
563 | ||
564 | self = self; | |
107e4716 | 565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
70551f47 | 566 | return NULL; |
2d091820 RD |
567 | if (_argo0) { |
568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
571 | return NULL; | |
572 | } | |
573 | } | |
ab9bc19b RD |
574 | { |
575 | wxPy_BEGIN_ALLOW_THREADS; | |
576 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
577 | ||
578 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
579 | } if (_result) { |
580 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
581 | _resultobj = Py_BuildValue("s",_ptemp); | |
582 | } else { | |
583 | Py_INCREF(Py_None); | |
584 | _resultobj = Py_None; | |
585 | } | |
70551f47 RD |
586 | return _resultobj; |
587 | } | |
588 | ||
589 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
590 | ||
591 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
592 | return 1; | |
593 | } | |
594 | ||
595 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
596 | PyObject * pyobj; | |
597 | char ptemp[128]; | |
598 | ||
599 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
600 | pyobj = PyString_FromString(ptemp); | |
601 | return pyobj; | |
602 | } | |
603 | ||
604 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
605 | ||
606 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
607 | return 1; | |
608 | } | |
609 | ||
610 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
611 | PyObject * pyobj; | |
612 | char ptemp[128]; | |
613 | ||
614 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
615 | pyobj = PyString_FromString(ptemp); | |
616 | return pyobj; | |
617 | } | |
618 | ||
619 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
620 | ||
621 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
622 | return 1; | |
623 | } | |
624 | ||
625 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
626 | PyObject * pyobj; | |
627 | char ptemp[128]; | |
628 | ||
629 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
630 | pyobj = PyString_FromString(ptemp); | |
631 | return pyobj; | |
632 | } | |
633 | ||
634 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
635 | ||
636 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
637 | return 1; | |
638 | } | |
639 | ||
640 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
641 | PyObject * pyobj; | |
642 | char ptemp[128]; | |
643 | ||
644 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
645 | pyobj = PyString_FromString(ptemp); | |
646 | return pyobj; | |
647 | } | |
648 | ||
649 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
650 | ||
651 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
652 | return 1; | |
653 | } | |
654 | ||
655 | static PyObject *_wrap_wxRED_PEN_get() { | |
656 | PyObject * pyobj; | |
657 | char ptemp[128]; | |
658 | ||
659 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
660 | pyobj = PyString_FromString(ptemp); | |
661 | return pyobj; | |
662 | } | |
663 | ||
664 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
665 | ||
666 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
667 | return 1; | |
668 | } | |
669 | ||
670 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
671 | PyObject * pyobj; | |
672 | char ptemp[128]; | |
673 | ||
674 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
675 | pyobj = PyString_FromString(ptemp); | |
676 | return pyobj; | |
677 | } | |
678 | ||
679 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
680 | ||
681 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
682 | return 1; | |
683 | } | |
684 | ||
685 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
686 | PyObject * pyobj; | |
687 | char ptemp[128]; | |
688 | ||
689 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
690 | pyobj = PyString_FromString(ptemp); | |
691 | return pyobj; | |
692 | } | |
693 | ||
694 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
695 | ||
696 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
697 | return 1; | |
698 | } | |
699 | ||
700 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
701 | PyObject * pyobj; | |
702 | char ptemp[128]; | |
703 | ||
704 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
705 | pyobj = PyString_FromString(ptemp); | |
706 | return pyobj; | |
707 | } | |
708 | ||
709 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
710 | ||
711 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
712 | return 1; | |
713 | } | |
714 | ||
715 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
716 | PyObject * pyobj; | |
717 | char ptemp[128]; | |
718 | ||
719 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
720 | pyobj = PyString_FromString(ptemp); | |
721 | return pyobj; | |
722 | } | |
723 | ||
724 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
725 | ||
726 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
727 | return 1; | |
728 | } | |
729 | ||
730 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
731 | PyObject * pyobj; | |
732 | char ptemp[128]; | |
733 | ||
734 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
735 | pyobj = PyString_FromString(ptemp); | |
736 | return pyobj; | |
737 | } | |
738 | ||
739 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
740 | ||
741 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
742 | return 1; | |
743 | } | |
744 | ||
745 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
746 | PyObject * pyobj; | |
747 | char ptemp[128]; | |
748 | ||
749 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
750 | pyobj = PyString_FromString(ptemp); | |
751 | return pyobj; | |
752 | } | |
753 | ||
754 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
755 | ||
756 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
757 | return 1; | |
758 | } | |
759 | ||
760 | static PyObject *_wrap_wxGREY_PEN_get() { | |
761 | PyObject * pyobj; | |
762 | char ptemp[128]; | |
763 | ||
764 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
765 | pyobj = PyString_FromString(ptemp); | |
766 | return pyobj; | |
767 | } | |
768 | ||
769 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
770 | ||
771 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
772 | return 1; | |
773 | } | |
774 | ||
775 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
776 | PyObject * pyobj; | |
777 | char ptemp[128]; | |
778 | ||
779 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
780 | pyobj = PyString_FromString(ptemp); | |
781 | return pyobj; | |
782 | } | |
783 | ||
784 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
785 | ||
786 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
787 | return 1; | |
788 | } | |
789 | ||
790 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
791 | PyObject * pyobj; | |
792 | char ptemp[128]; | |
793 | ||
794 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
795 | pyobj = PyString_FromString(ptemp); | |
796 | return pyobj; | |
797 | } | |
798 | ||
799 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
800 | ||
801 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
802 | return 1; | |
803 | } | |
804 | ||
805 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
806 | PyObject * pyobj; | |
807 | char ptemp[128]; | |
808 | ||
809 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
810 | pyobj = PyString_FromString(ptemp); | |
811 | return pyobj; | |
812 | } | |
813 | ||
814 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
815 | ||
816 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
817 | return 1; | |
818 | } | |
819 | ||
820 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
821 | PyObject * pyobj; | |
822 | char ptemp[128]; | |
823 | ||
824 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
825 | pyobj = PyString_FromString(ptemp); | |
826 | return pyobj; | |
827 | } | |
828 | ||
829 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
830 | ||
831 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
832 | return 1; | |
833 | } | |
834 | ||
835 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
836 | PyObject * pyobj; | |
837 | char ptemp[128]; | |
838 | ||
839 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
840 | pyobj = PyString_FromString(ptemp); | |
841 | return pyobj; | |
842 | } | |
843 | ||
844 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
845 | ||
846 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
847 | return 1; | |
848 | } | |
849 | ||
850 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
851 | PyObject * pyobj; | |
852 | char ptemp[128]; | |
853 | ||
854 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
855 | pyobj = PyString_FromString(ptemp); | |
856 | return pyobj; | |
857 | } | |
858 | ||
859 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
860 | ||
861 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
862 | return 1; | |
863 | } | |
864 | ||
865 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
866 | PyObject * pyobj; | |
867 | char ptemp[128]; | |
868 | ||
869 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
870 | pyobj = PyString_FromString(ptemp); | |
871 | return pyobj; | |
872 | } | |
873 | ||
874 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
875 | ||
876 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
877 | return 1; | |
878 | } | |
879 | ||
880 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
881 | PyObject * pyobj; | |
882 | char ptemp[128]; | |
883 | ||
884 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
885 | pyobj = PyString_FromString(ptemp); | |
886 | return pyobj; | |
887 | } | |
888 | ||
889 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
890 | ||
891 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
892 | return 1; | |
893 | } | |
894 | ||
895 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
896 | PyObject * pyobj; | |
897 | char ptemp[128]; | |
898 | ||
899 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
900 | pyobj = PyString_FromString(ptemp); | |
901 | return pyobj; | |
902 | } | |
903 | ||
904 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
905 | ||
906 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
907 | return 1; | |
908 | } | |
909 | ||
910 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
911 | PyObject * pyobj; | |
912 | char ptemp[128]; | |
913 | ||
914 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
915 | pyobj = PyString_FromString(ptemp); | |
916 | return pyobj; | |
917 | } | |
918 | ||
919 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
920 | ||
921 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
922 | return 1; | |
923 | } | |
924 | ||
925 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
926 | PyObject * pyobj; | |
927 | char ptemp[128]; | |
928 | ||
929 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
930 | pyobj = PyString_FromString(ptemp); | |
931 | return pyobj; | |
932 | } | |
933 | ||
934 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
935 | ||
936 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
937 | return 1; | |
938 | } | |
939 | ||
940 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
941 | PyObject * pyobj; | |
942 | char ptemp[128]; | |
943 | ||
944 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
945 | pyobj = PyString_FromString(ptemp); | |
946 | return pyobj; | |
947 | } | |
948 | ||
949 | static int _wrap_wxBLACK_set(PyObject *val) { | |
950 | ||
951 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
952 | return 1; | |
953 | } | |
954 | ||
955 | static PyObject *_wrap_wxBLACK_get() { | |
956 | PyObject * pyobj; | |
957 | char ptemp[128]; | |
958 | ||
959 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
960 | pyobj = PyString_FromString(ptemp); | |
961 | return pyobj; | |
962 | } | |
963 | ||
964 | static int _wrap_wxWHITE_set(PyObject *val) { | |
965 | ||
966 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
967 | return 1; | |
968 | } | |
969 | ||
970 | static PyObject *_wrap_wxWHITE_get() { | |
971 | PyObject * pyobj; | |
972 | char ptemp[128]; | |
973 | ||
974 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
975 | pyobj = PyString_FromString(ptemp); | |
976 | return pyobj; | |
977 | } | |
978 | ||
979 | static int _wrap_wxRED_set(PyObject *val) { | |
980 | ||
981 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
982 | return 1; | |
983 | } | |
984 | ||
985 | static PyObject *_wrap_wxRED_get() { | |
986 | PyObject * pyobj; | |
987 | char ptemp[128]; | |
988 | ||
989 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
990 | pyobj = PyString_FromString(ptemp); | |
991 | return pyobj; | |
992 | } | |
993 | ||
994 | static int _wrap_wxBLUE_set(PyObject *val) { | |
995 | ||
996 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
997 | return 1; | |
998 | } | |
999 | ||
1000 | static PyObject *_wrap_wxBLUE_get() { | |
1001 | PyObject * pyobj; | |
1002 | char ptemp[128]; | |
1003 | ||
1004 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1005 | pyobj = PyString_FromString(ptemp); | |
1006 | return pyobj; | |
1007 | } | |
1008 | ||
1009 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1010 | ||
1011 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1012 | return 1; | |
1013 | } | |
1014 | ||
1015 | static PyObject *_wrap_wxGREEN_get() { | |
1016 | PyObject * pyobj; | |
1017 | char ptemp[128]; | |
1018 | ||
1019 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1020 | pyobj = PyString_FromString(ptemp); | |
1021 | return pyobj; | |
1022 | } | |
1023 | ||
1024 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1025 | ||
1026 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1027 | return 1; | |
1028 | } | |
1029 | ||
1030 | static PyObject *_wrap_wxCYAN_get() { | |
1031 | PyObject * pyobj; | |
1032 | char ptemp[128]; | |
1033 | ||
1034 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1035 | pyobj = PyString_FromString(ptemp); | |
1036 | return pyobj; | |
1037 | } | |
1038 | ||
1039 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1040 | ||
1041 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1042 | return 1; | |
1043 | } | |
1044 | ||
1045 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1046 | PyObject * pyobj; | |
1047 | char ptemp[128]; | |
1048 | ||
1049 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1050 | pyobj = PyString_FromString(ptemp); | |
1051 | return pyobj; | |
1052 | } | |
1053 | ||
1054 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1055 | ||
1056 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1057 | return 1; | |
1058 | } | |
1059 | ||
1060 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1061 | PyObject * pyobj; | |
1062 | char ptemp[128]; | |
1063 | ||
1064 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1065 | pyobj = PyString_FromString(ptemp); | |
1066 | return pyobj; | |
1067 | } | |
1068 | ||
1069 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1070 | ||
1071 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1072 | return 1; | |
1073 | } | |
1074 | ||
1075 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1076 | PyObject * pyobj; | |
1077 | char ptemp[128]; | |
1078 | ||
1079 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1080 | pyobj = PyString_FromString(ptemp); | |
1081 | return pyobj; | |
1082 | } | |
1083 | ||
1084 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1085 | ||
1086 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1087 | return 1; | |
1088 | } | |
1089 | ||
1090 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1091 | PyObject * pyobj; | |
1092 | char ptemp[128]; | |
1093 | ||
1094 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1095 | pyobj = PyString_FromString(ptemp); | |
1096 | return pyobj; | |
1097 | } | |
1098 | ||
1099 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1100 | ||
1101 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1102 | return 1; | |
1103 | } | |
1104 | ||
1105 | static PyObject *_wrap_wxNullBitmap_get() { | |
1106 | PyObject * pyobj; | |
1107 | char ptemp[128]; | |
1108 | ||
1109 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1110 | pyobj = PyString_FromString(ptemp); | |
1111 | return pyobj; | |
1112 | } | |
1113 | ||
1114 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1115 | ||
1116 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1117 | return 1; | |
1118 | } | |
1119 | ||
1120 | static PyObject *_wrap_wxNullIcon_get() { | |
1121 | PyObject * pyobj; | |
1122 | char ptemp[128]; | |
1123 | ||
1124 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1125 | pyobj = PyString_FromString(ptemp); | |
1126 | return pyobj; | |
1127 | } | |
1128 | ||
1129 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1130 | ||
1131 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1132 | return 1; | |
1133 | } | |
1134 | ||
1135 | static PyObject *_wrap_wxNullCursor_get() { | |
1136 | PyObject * pyobj; | |
1137 | char ptemp[128]; | |
1138 | ||
1139 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1140 | pyobj = PyString_FromString(ptemp); | |
1141 | return pyobj; | |
1142 | } | |
1143 | ||
1144 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1145 | ||
1146 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1147 | return 1; | |
1148 | } | |
1149 | ||
1150 | static PyObject *_wrap_wxNullPen_get() { | |
1151 | PyObject * pyobj; | |
1152 | char ptemp[128]; | |
1153 | ||
1154 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1155 | pyobj = PyString_FromString(ptemp); | |
1156 | return pyobj; | |
1157 | } | |
1158 | ||
1159 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1160 | ||
1161 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1162 | return 1; | |
1163 | } | |
1164 | ||
1165 | static PyObject *_wrap_wxNullBrush_get() { | |
1166 | PyObject * pyobj; | |
1167 | char ptemp[128]; | |
1168 | ||
1169 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1170 | pyobj = PyString_FromString(ptemp); | |
1171 | return pyobj; | |
1172 | } | |
1173 | ||
1174 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1175 | ||
1176 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1177 | return 1; | |
1178 | } | |
1179 | ||
1180 | static PyObject *_wrap_wxNullPalette_get() { | |
1181 | PyObject * pyobj; | |
1182 | char ptemp[128]; | |
1183 | ||
1184 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1185 | pyobj = PyString_FromString(ptemp); | |
1186 | return pyobj; | |
1187 | } | |
1188 | ||
1189 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1190 | ||
1191 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1192 | return 1; | |
1193 | } | |
1194 | ||
1195 | static PyObject *_wrap_wxNullFont_get() { | |
1196 | PyObject * pyobj; | |
1197 | char ptemp[128]; | |
1198 | ||
1199 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1200 | pyobj = PyString_FromString(ptemp); | |
1201 | return pyobj; | |
1202 | } | |
1203 | ||
1204 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1205 | ||
1206 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1207 | return 1; | |
1208 | } | |
1209 | ||
1210 | static PyObject *_wrap_wxNullColour_get() { | |
1211 | PyObject * pyobj; | |
1212 | char ptemp[128]; | |
1213 | ||
1214 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1215 | pyobj = PyString_FromString(ptemp); | |
1216 | return pyobj; | |
1217 | } | |
1218 | ||
5e40f9dd RD |
1219 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1220 | ||
1221 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1222 | return 1; | |
1223 | } | |
1224 | ||
1225 | static PyObject *_wrap_wxTheFontList_get() { | |
1226 | PyObject * pyobj; | |
1227 | char ptemp[128]; | |
1228 | ||
1229 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1230 | pyobj = PyString_FromString(ptemp); | |
1231 | return pyobj; | |
1232 | } | |
1233 | ||
1234 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1235 | ||
1236 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1237 | return 1; | |
1238 | } | |
1239 | ||
1240 | static PyObject *_wrap_wxThePenList_get() { | |
1241 | PyObject * pyobj; | |
1242 | char ptemp[128]; | |
1243 | ||
1244 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1245 | pyobj = PyString_FromString(ptemp); | |
1246 | return pyobj; | |
1247 | } | |
1248 | ||
1249 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1250 | ||
1251 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1252 | return 1; | |
1253 | } | |
1254 | ||
1255 | static PyObject *_wrap_wxTheBrushList_get() { | |
1256 | PyObject * pyobj; | |
1257 | char ptemp[128]; | |
1258 | ||
1259 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p"); | |
1260 | pyobj = PyString_FromString(ptemp); | |
1261 | return pyobj; | |
1262 | } | |
1263 | ||
1264 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1265 | ||
1266 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1267 | return 1; | |
1268 | } | |
1269 | ||
1270 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1271 | PyObject * pyobj; | |
1272 | char ptemp[128]; | |
1273 | ||
1274 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1275 | pyobj = PyString_FromString(ptemp); | |
1276 | return pyobj; | |
1277 | } | |
1278 | ||
70551f47 | 1279 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
107e4716 | 1280 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1281 | PyObject * _resultobj; |
1282 | wxBitmap * _result; | |
1283 | wxString * _arg0; | |
df05452e | 1284 | wxBitmapType _arg1; |
70551f47 | 1285 | PyObject * _obj0 = 0; |
107e4716 | 1286 | char *_kwnames[] = { "name","type", NULL }; |
70551f47 RD |
1287 | char _ptemp[128]; |
1288 | ||
1289 | self = self; | |
df05452e | 1290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
70551f47 RD |
1291 | return NULL; |
1292 | { | |
2cd2fac8 RD |
1293 | #if PYTHON_API_VERSION >= 1009 |
1294 | char* tmpPtr; int tmpSize; | |
1295 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1296 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1297 | return NULL; |
1298 | } | |
1299 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1300 | return NULL; | |
1301 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1302 | #else | |
70551f47 RD |
1303 | if (!PyString_Check(_obj0)) { |
1304 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1305 | return NULL; | |
1306 | } | |
2cd2fac8 RD |
1307 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1308 | #endif | |
70551f47 | 1309 | } |
ab9bc19b RD |
1310 | { |
1311 | wxPy_BEGIN_ALLOW_THREADS; | |
1312 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
1313 | ||
1314 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1315 | } if (_result) { |
1316 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1317 | _resultobj = Py_BuildValue("s",_ptemp); | |
1318 | } else { | |
1319 | Py_INCREF(Py_None); | |
1320 | _resultobj = Py_None; | |
1321 | } | |
70551f47 RD |
1322 | { |
1323 | if (_obj0) | |
1324 | delete _arg0; | |
1325 | } | |
1326 | return _resultobj; | |
1327 | } | |
1328 | ||
1329 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
107e4716 | 1330 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1331 | PyObject * _resultobj; |
1332 | wxBitmap * _arg0; | |
2d091820 | 1333 | PyObject * _argo0 = 0; |
107e4716 | 1334 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1335 | |
1336 | self = self; | |
107e4716 | 1337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
70551f47 | 1338 | return NULL; |
2d091820 RD |
1339 | if (_argo0) { |
1340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
1343 | return NULL; | |
1344 | } | |
1345 | } | |
ab9bc19b RD |
1346 | { |
1347 | wxPy_BEGIN_ALLOW_THREADS; | |
1348 | delete_wxBitmap(_arg0); | |
1349 | ||
1350 | wxPy_END_ALLOW_THREADS; | |
1351 | } Py_INCREF(Py_None); | |
70551f47 RD |
1352 | _resultobj = Py_None; |
1353 | return _resultobj; | |
1354 | } | |
1355 | ||
70551f47 | 1356 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
107e4716 | 1357 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1358 | PyObject * _resultobj; |
1359 | wxPalette * _result; | |
1360 | wxBitmap * _arg0; | |
2d091820 | 1361 | PyObject * _argo0 = 0; |
107e4716 | 1362 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1363 | char _ptemp[128]; |
1364 | ||
1365 | self = self; | |
107e4716 | 1366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
70551f47 | 1367 | return NULL; |
2d091820 RD |
1368 | if (_argo0) { |
1369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
1372 | return NULL; | |
1373 | } | |
1374 | } | |
ab9bc19b RD |
1375 | { |
1376 | wxPy_BEGIN_ALLOW_THREADS; | |
1377 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1378 | ||
1379 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1380 | } if (_result) { |
1381 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1382 | _resultobj = Py_BuildValue("s",_ptemp); | |
1383 | } else { | |
1384 | Py_INCREF(Py_None); | |
1385 | _resultobj = Py_None; | |
1386 | } | |
70551f47 RD |
1387 | return _resultobj; |
1388 | } | |
1389 | ||
1390 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
107e4716 | 1391 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1392 | PyObject * _resultobj; |
1393 | wxMask * _result; | |
1394 | wxBitmap * _arg0; | |
2d091820 | 1395 | PyObject * _argo0 = 0; |
107e4716 | 1396 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1397 | char _ptemp[128]; |
1398 | ||
1399 | self = self; | |
107e4716 | 1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
70551f47 | 1401 | return NULL; |
2d091820 RD |
1402 | if (_argo0) { |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
ab9bc19b RD |
1409 | { |
1410 | wxPy_BEGIN_ALLOW_THREADS; | |
1411 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1412 | ||
1413 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1414 | } if (_result) { |
1415 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1416 | _resultobj = Py_BuildValue("s",_ptemp); | |
1417 | } else { | |
1418 | Py_INCREF(Py_None); | |
1419 | _resultobj = Py_None; | |
1420 | } | |
70551f47 RD |
1421 | return _resultobj; |
1422 | } | |
1423 | ||
56f5d962 RD |
1424 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1425 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1426 | PyObject * _resultobj; |
56f5d962 | 1427 | bool _result; |
70551f47 | 1428 | wxBitmap * _arg0; |
56f5d962 RD |
1429 | wxString * _arg1; |
1430 | long _arg2; | |
2d091820 | 1431 | PyObject * _argo0 = 0; |
56f5d962 RD |
1432 | PyObject * _obj1 = 0; |
1433 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
1434 | |
1435 | self = self; | |
56f5d962 | 1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1437 | return NULL; |
2d091820 RD |
1438 | if (_argo0) { |
1439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); |
70551f47 RD |
1442 | return NULL; |
1443 | } | |
1444 | } | |
56f5d962 | 1445 | { |
2cd2fac8 RD |
1446 | #if PYTHON_API_VERSION >= 1009 |
1447 | char* tmpPtr; int tmpSize; | |
1448 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1449 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1450 | return NULL; |
1451 | } | |
1452 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1453 | return NULL; | |
1454 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1455 | #else | |
56f5d962 RD |
1456 | if (!PyString_Check(_obj1)) { |
1457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1458 | return NULL; | |
1459 | } | |
2cd2fac8 RD |
1460 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1461 | #endif | |
56f5d962 | 1462 | } |
ab9bc19b RD |
1463 | { |
1464 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1465 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b RD |
1466 | |
1467 | wxPy_END_ALLOW_THREADS; | |
1468 | } _resultobj = Py_BuildValue("i",_result); | |
56f5d962 RD |
1469 | { |
1470 | if (_obj1) | |
1471 | delete _arg1; | |
1472 | } | |
70551f47 RD |
1473 | return _resultobj; |
1474 | } | |
1475 | ||
56f5d962 RD |
1476 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1477 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1478 | PyObject * _resultobj; |
1479 | bool _result; | |
1480 | wxBitmap * _arg0; | |
1481 | wxString * _arg1; | |
56f5d962 RD |
1482 | int _arg2; |
1483 | wxPalette * _arg3 = (wxPalette *) NULL; | |
2d091820 | 1484 | PyObject * _argo0 = 0; |
70551f47 | 1485 | PyObject * _obj1 = 0; |
56f5d962 RD |
1486 | PyObject * _argo3 = 0; |
1487 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
70551f47 RD |
1488 | |
1489 | self = self; | |
56f5d962 | 1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
70551f47 | 1491 | return NULL; |
2d091820 RD |
1492 | if (_argo0) { |
1493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); |
70551f47 RD |
1496 | return NULL; |
1497 | } | |
1498 | } | |
1499 | { | |
2cd2fac8 RD |
1500 | #if PYTHON_API_VERSION >= 1009 |
1501 | char* tmpPtr; int tmpSize; | |
1502 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1503 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1504 | return NULL; |
1505 | } | |
1506 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1507 | return NULL; | |
1508 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1509 | #else | |
70551f47 RD |
1510 | if (!PyString_Check(_obj1)) { |
1511 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1512 | return NULL; | |
1513 | } | |
2cd2fac8 RD |
1514 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1515 | #endif | |
70551f47 | 1516 | } |
56f5d962 RD |
1517 | if (_argo3) { |
1518 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1519 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1521 | return NULL; | |
1522 | } | |
1523 | } | |
ab9bc19b RD |
1524 | { |
1525 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1526 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b RD |
1527 | |
1528 | wxPy_END_ALLOW_THREADS; | |
1529 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1530 | { |
1531 | if (_obj1) | |
1532 | delete _arg1; | |
1533 | } | |
1534 | return _resultobj; | |
1535 | } | |
1536 | ||
56f5d962 RD |
1537 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1538 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1539 | PyObject * _resultobj; | |
1540 | wxBitmap * _arg0; | |
1541 | wxMask * _arg1; | |
1542 | PyObject * _argo0 = 0; | |
1543 | PyObject * _argo1 = 0; | |
1544 | char *_kwnames[] = { "self","mask", NULL }; | |
1545 | ||
1546 | self = self; | |
1547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1548 | return NULL; | |
1549 | if (_argo0) { | |
1550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1553 | return NULL; | |
1554 | } | |
1555 | } | |
1556 | if (_argo1) { | |
1557 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1558 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1560 | return NULL; | |
1561 | } | |
1562 | } | |
1563 | { | |
1564 | wxPy_BEGIN_ALLOW_THREADS; | |
1565 | wxBitmap_SetMask(_arg0,_arg1); | |
1566 | ||
1567 | wxPy_END_ALLOW_THREADS; | |
1568 | } Py_INCREF(Py_None); | |
1569 | _resultobj = Py_None; | |
1570 | return _resultobj; | |
1571 | } | |
1572 | ||
70551f47 | 1573 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) |
107e4716 | 1574 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1575 | PyObject * _resultobj; |
1576 | bool _result; | |
1577 | wxBitmap * _arg0; | |
2d091820 | 1578 | PyObject * _argo0 = 0; |
107e4716 | 1579 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1580 | |
1581 | self = self; | |
107e4716 | 1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) |
70551f47 | 1583 | return NULL; |
2d091820 RD |
1584 | if (_argo0) { |
1585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); |
1588 | return NULL; | |
1589 | } | |
1590 | } | |
ab9bc19b RD |
1591 | { |
1592 | wxPy_BEGIN_ALLOW_THREADS; | |
1593 | _result = (bool )wxBitmap_Ok(_arg0); | |
1594 | ||
1595 | wxPy_END_ALLOW_THREADS; | |
1596 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1597 | return _resultobj; |
1598 | } | |
1599 | ||
56f5d962 RD |
1600 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) |
1601 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1602 | PyObject * _resultobj; |
56f5d962 | 1603 | int _result; |
70551f47 | 1604 | wxBitmap * _arg0; |
2d091820 | 1605 | PyObject * _argo0 = 0; |
56f5d962 | 1606 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1607 | |
1608 | self = self; | |
56f5d962 | 1609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) |
70551f47 | 1610 | return NULL; |
2d091820 RD |
1611 | if (_argo0) { |
1612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1615 | return NULL; |
1616 | } | |
1617 | } | |
1618 | { | |
56f5d962 RD |
1619 | wxPy_BEGIN_ALLOW_THREADS; |
1620 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1621 | ||
1622 | wxPy_END_ALLOW_THREADS; | |
1623 | } _resultobj = Py_BuildValue("i",_result); | |
1624 | return _resultobj; | |
70551f47 | 1625 | } |
56f5d962 RD |
1626 | |
1627 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1628 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject * _resultobj; | |
1630 | int _result; | |
1631 | wxBitmap * _arg0; | |
1632 | PyObject * _argo0 = 0; | |
1633 | char *_kwnames[] = { "self", NULL }; | |
1634 | ||
1635 | self = self; | |
1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1637 | return NULL; | |
1638 | if (_argo0) { | |
1639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
70551f47 RD |
1642 | return NULL; |
1643 | } | |
1644 | } | |
ab9bc19b RD |
1645 | { |
1646 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1647 | _result = (int )wxBitmap_GetHeight(_arg0); |
ab9bc19b RD |
1648 | |
1649 | wxPy_END_ALLOW_THREADS; | |
1650 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1651 | return _resultobj; |
1652 | } | |
1653 | ||
56f5d962 RD |
1654 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1655 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1656 | PyObject * _resultobj; |
56f5d962 | 1657 | int _result; |
70551f47 | 1658 | wxBitmap * _arg0; |
2d091820 | 1659 | PyObject * _argo0 = 0; |
56f5d962 | 1660 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1661 | |
1662 | self = self; | |
56f5d962 | 1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
70551f47 | 1664 | return NULL; |
2d091820 RD |
1665 | if (_argo0) { |
1666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1669 | return NULL; |
1670 | } | |
1671 | } | |
ab9bc19b RD |
1672 | { |
1673 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1674 | _result = (int )wxBitmap_GetDepth(_arg0); |
ab9bc19b RD |
1675 | |
1676 | wxPy_END_ALLOW_THREADS; | |
56f5d962 | 1677 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1678 | return _resultobj; |
1679 | } | |
1680 | ||
56f5d962 RD |
1681 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
1682 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1683 | PyObject * _resultobj; |
1684 | wxBitmap * _arg0; | |
1685 | int _arg1; | |
2d091820 | 1686 | PyObject * _argo0 = 0; |
56f5d962 | 1687 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
1688 | |
1689 | self = self; | |
56f5d962 | 1690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1691 | return NULL; |
2d091820 RD |
1692 | if (_argo0) { |
1693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1696 | return NULL; |
1697 | } | |
1698 | } | |
ab9bc19b RD |
1699 | { |
1700 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1701 | wxBitmap_SetWidth(_arg0,_arg1); |
ab9bc19b RD |
1702 | |
1703 | wxPy_END_ALLOW_THREADS; | |
1704 | } Py_INCREF(Py_None); | |
70551f47 RD |
1705 | _resultobj = Py_None; |
1706 | return _resultobj; | |
1707 | } | |
1708 | ||
56f5d962 RD |
1709 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1710 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1711 | PyObject * _resultobj; |
1712 | wxBitmap * _arg0; | |
56f5d962 | 1713 | int _arg1; |
2d091820 | 1714 | PyObject * _argo0 = 0; |
56f5d962 | 1715 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
1716 | |
1717 | self = self; | |
56f5d962 | 1718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1719 | return NULL; |
2d091820 RD |
1720 | if (_argo0) { |
1721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); |
70551f47 RD |
1724 | return NULL; |
1725 | } | |
1726 | } | |
ab9bc19b RD |
1727 | { |
1728 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1729 | wxBitmap_SetHeight(_arg0,_arg1); |
ab9bc19b RD |
1730 | |
1731 | wxPy_END_ALLOW_THREADS; | |
1732 | } Py_INCREF(Py_None); | |
70551f47 RD |
1733 | _resultobj = Py_None; |
1734 | return _resultobj; | |
1735 | } | |
1736 | ||
56f5d962 RD |
1737 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
1738 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1739 | PyObject * _resultobj; |
1740 | wxBitmap * _arg0; | |
1741 | int _arg1; | |
2d091820 | 1742 | PyObject * _argo0 = 0; |
56f5d962 | 1743 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
1744 | |
1745 | self = self; | |
56f5d962 | 1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1747 | return NULL; |
2d091820 RD |
1748 | if (_argo0) { |
1749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1752 | return NULL; |
1753 | } | |
1754 | } | |
ab9bc19b RD |
1755 | { |
1756 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1757 | wxBitmap_SetDepth(_arg0,_arg1); |
ab9bc19b RD |
1758 | |
1759 | wxPy_END_ALLOW_THREADS; | |
1760 | } Py_INCREF(Py_None); | |
70551f47 RD |
1761 | _resultobj = Py_None; |
1762 | return _resultobj; | |
1763 | } | |
1764 | ||
f6bcfd97 BP |
1765 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
1766 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1767 | PyObject * _resultobj; | |
1768 | wxBitmap * _result; | |
1769 | wxBitmap * _arg0; | |
1770 | wxRect * _arg1; | |
1771 | PyObject * _argo0 = 0; | |
1772 | wxRect temp; | |
1773 | PyObject * _obj1 = 0; | |
1774 | char *_kwnames[] = { "self","rect", NULL }; | |
1775 | char _ptemp[128]; | |
1776 | ||
1777 | self = self; | |
1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1779 | return NULL; | |
1780 | if (_argo0) { | |
1781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1784 | return NULL; | |
1785 | } | |
1786 | } | |
1787 | { | |
1788 | _arg1 = &temp; | |
1789 | if (! wxRect_helper(_obj1, &_arg1)) | |
1790 | return NULL; | |
1791 | } | |
1792 | { | |
1793 | wxPy_BEGIN_ALLOW_THREADS; | |
1794 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
1795 | ||
1796 | wxPy_END_ALLOW_THREADS; | |
1797 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1798 | _resultobj = Py_BuildValue("s",_ptemp); | |
1799 | return _resultobj; | |
1800 | } | |
1801 | ||
70551f47 | 1802 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
107e4716 | 1803 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1804 | PyObject * _resultobj; |
1805 | wxMask * _result; | |
1806 | wxBitmap * _arg0; | |
2d091820 | 1807 | PyObject * _argo0 = 0; |
107e4716 | 1808 | char *_kwnames[] = { "bitmap", NULL }; |
70551f47 RD |
1809 | char _ptemp[128]; |
1810 | ||
1811 | self = self; | |
107e4716 | 1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) |
70551f47 | 1813 | return NULL; |
2d091820 RD |
1814 | if (_argo0) { |
1815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); |
1818 | return NULL; | |
1819 | } | |
1820 | } | |
ab9bc19b RD |
1821 | { |
1822 | wxPy_BEGIN_ALLOW_THREADS; | |
1823 | _result = (wxMask *)new_wxMask(*_arg0); | |
1824 | ||
1825 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1826 | } if (_result) { |
1827 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1828 | _resultobj = Py_BuildValue("s",_ptemp); | |
1829 | } else { | |
1830 | Py_INCREF(Py_None); | |
1831 | _resultobj = Py_None; | |
1832 | } | |
70551f47 RD |
1833 | return _resultobj; |
1834 | } | |
1835 | ||
fbcadfca RD |
1836 | static void wxMask_Destroy(wxMask *self) { delete self; } |
1837 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1838 | PyObject * _resultobj; | |
1839 | wxMask * _arg0; | |
1840 | PyObject * _argo0 = 0; | |
1841 | char *_kwnames[] = { "self", NULL }; | |
1842 | ||
1843 | self = self; | |
1844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
1845 | return NULL; | |
1846 | if (_argo0) { | |
1847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
1849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
1850 | return NULL; | |
1851 | } | |
1852 | } | |
1853 | { | |
1854 | wxPy_BEGIN_ALLOW_THREADS; | |
1855 | wxMask_Destroy(_arg0); | |
1856 | ||
1857 | wxPy_END_ALLOW_THREADS; | |
1858 | } Py_INCREF(Py_None); | |
1859 | _resultobj = Py_None; | |
1860 | return _resultobj; | |
1861 | } | |
1862 | ||
8bf5d46e | 1863 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 1864 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
1865 | PyObject * _resultobj; |
1866 | wxIcon * _result; | |
1867 | wxString * _arg0; | |
1868 | long _arg1; | |
2d091820 RD |
1869 | int _arg2 = (int ) -1; |
1870 | int _arg3 = (int ) -1; | |
8bf5d46e | 1871 | PyObject * _obj0 = 0; |
107e4716 | 1872 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8bf5d46e RD |
1873 | char _ptemp[128]; |
1874 | ||
1875 | self = self; | |
107e4716 | 1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
1877 | return NULL; |
1878 | { | |
2cd2fac8 RD |
1879 | #if PYTHON_API_VERSION >= 1009 |
1880 | char* tmpPtr; int tmpSize; | |
1881 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1882 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1883 | return NULL; |
1884 | } | |
1885 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1886 | return NULL; | |
1887 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1888 | #else | |
8bf5d46e RD |
1889 | if (!PyString_Check(_obj0)) { |
1890 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1891 | return NULL; | |
1892 | } | |
2cd2fac8 RD |
1893 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1894 | #endif | |
8bf5d46e RD |
1895 | } |
1896 | { | |
1897 | wxPy_BEGIN_ALLOW_THREADS; | |
1898 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); | |
1899 | ||
1900 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1901 | } if (_result) { |
1902 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
1903 | _resultobj = Py_BuildValue("s",_ptemp); | |
1904 | } else { | |
1905 | Py_INCREF(Py_None); | |
1906 | _resultobj = Py_None; | |
1907 | } | |
8bf5d46e RD |
1908 | { |
1909 | if (_obj0) | |
1910 | delete _arg0; | |
1911 | } | |
1912 | return _resultobj; | |
1913 | } | |
1914 | ||
70551f47 | 1915 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
107e4716 | 1916 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1917 | PyObject * _resultobj; |
1918 | wxIcon * _arg0; | |
2d091820 | 1919 | PyObject * _argo0 = 0; |
107e4716 | 1920 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1921 | |
1922 | self = self; | |
107e4716 | 1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
70551f47 | 1924 | return NULL; |
2d091820 RD |
1925 | if (_argo0) { |
1926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
1928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); |
1929 | return NULL; | |
1930 | } | |
1931 | } | |
ab9bc19b RD |
1932 | { |
1933 | wxPy_BEGIN_ALLOW_THREADS; | |
1934 | delete_wxIcon(_arg0); | |
1935 | ||
1936 | wxPy_END_ALLOW_THREADS; | |
1937 | } Py_INCREF(Py_None); | |
70551f47 RD |
1938 | _resultobj = Py_None; |
1939 | return _resultobj; | |
1940 | } | |
1941 | ||
56f5d962 RD |
1942 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1943 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1944 | PyObject * _resultobj; |
56f5d962 | 1945 | bool _result; |
70551f47 | 1946 | wxIcon * _arg0; |
56f5d962 RD |
1947 | wxString * _arg1; |
1948 | long _arg2; | |
2d091820 | 1949 | PyObject * _argo0 = 0; |
56f5d962 RD |
1950 | PyObject * _obj1 = 0; |
1951 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
1952 | |
1953 | self = self; | |
56f5d962 | 1954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1955 | return NULL; |
2d091820 RD |
1956 | if (_argo0) { |
1957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 1959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); |
70551f47 RD |
1960 | return NULL; |
1961 | } | |
1962 | } | |
56f5d962 | 1963 | { |
2cd2fac8 RD |
1964 | #if PYTHON_API_VERSION >= 1009 |
1965 | char* tmpPtr; int tmpSize; | |
1966 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1967 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1968 | return NULL; |
1969 | } | |
1970 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1971 | return NULL; | |
1972 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1973 | #else | |
56f5d962 RD |
1974 | if (!PyString_Check(_obj1)) { |
1975 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1976 | return NULL; | |
1977 | } | |
2cd2fac8 RD |
1978 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1979 | #endif | |
56f5d962 | 1980 | } |
ab9bc19b RD |
1981 | { |
1982 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1983 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b RD |
1984 | |
1985 | wxPy_END_ALLOW_THREADS; | |
1986 | } _resultobj = Py_BuildValue("i",_result); | |
56f5d962 RD |
1987 | { |
1988 | if (_obj1) | |
1989 | delete _arg1; | |
1990 | } | |
70551f47 RD |
1991 | return _resultobj; |
1992 | } | |
1993 | ||
56f5d962 RD |
1994 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
1995 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1996 | PyObject * _resultobj; |
56f5d962 | 1997 | bool _result; |
70551f47 | 1998 | wxIcon * _arg0; |
2d091820 | 1999 | PyObject * _argo0 = 0; |
107e4716 | 2000 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2001 | |
2002 | self = self; | |
56f5d962 | 2003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) |
70551f47 | 2004 | return NULL; |
2d091820 RD |
2005 | if (_argo0) { |
2006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); |
70551f47 RD |
2009 | return NULL; |
2010 | } | |
2011 | } | |
ab9bc19b RD |
2012 | { |
2013 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2014 | _result = (bool )wxIcon_Ok(_arg0); |
ab9bc19b RD |
2015 | |
2016 | wxPy_END_ALLOW_THREADS; | |
2017 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2018 | return _resultobj; |
2019 | } | |
2020 | ||
2021 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 2022 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2023 | PyObject * _resultobj; |
2024 | int _result; | |
2025 | wxIcon * _arg0; | |
2d091820 | 2026 | PyObject * _argo0 = 0; |
107e4716 | 2027 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2028 | |
2029 | self = self; | |
107e4716 | 2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) |
70551f47 | 2031 | return NULL; |
2d091820 RD |
2032 | if (_argo0) { |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); |
2036 | return NULL; | |
2037 | } | |
2038 | } | |
ab9bc19b RD |
2039 | { |
2040 | wxPy_BEGIN_ALLOW_THREADS; | |
2041 | _result = (int )wxIcon_GetWidth(_arg0); | |
2042 | ||
2043 | wxPy_END_ALLOW_THREADS; | |
2044 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2045 | return _resultobj; |
2046 | } | |
2047 | ||
56f5d962 RD |
2048 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) |
2049 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2050 | PyObject * _resultobj; |
56f5d962 | 2051 | int _result; |
70551f47 | 2052 | wxIcon * _arg0; |
2d091820 | 2053 | PyObject * _argo0 = 0; |
56f5d962 | 2054 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2055 | |
2056 | self = self; | |
56f5d962 | 2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) |
70551f47 | 2058 | return NULL; |
2d091820 RD |
2059 | if (_argo0) { |
2060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); |
70551f47 RD |
2063 | return NULL; |
2064 | } | |
2065 | } | |
ab9bc19b RD |
2066 | { |
2067 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2068 | _result = (int )wxIcon_GetHeight(_arg0); |
ab9bc19b RD |
2069 | |
2070 | wxPy_END_ALLOW_THREADS; | |
2071 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2072 | return _resultobj; |
2073 | } | |
2074 | ||
56f5d962 RD |
2075 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) |
2076 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2077 | PyObject * _resultobj; |
56f5d962 | 2078 | int _result; |
70551f47 | 2079 | wxIcon * _arg0; |
2d091820 | 2080 | PyObject * _argo0 = 0; |
107e4716 | 2081 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2082 | |
2083 | self = self; | |
56f5d962 | 2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) |
70551f47 | 2085 | return NULL; |
2d091820 RD |
2086 | if (_argo0) { |
2087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2090 | return NULL; |
2091 | } | |
2092 | } | |
ab9bc19b RD |
2093 | { |
2094 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2095 | _result = (int )wxIcon_GetDepth(_arg0); |
ab9bc19b RD |
2096 | |
2097 | wxPy_END_ALLOW_THREADS; | |
2098 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2099 | return _resultobj; |
2100 | } | |
2101 | ||
56f5d962 RD |
2102 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
2103 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2104 | PyObject * _resultobj; |
2105 | wxIcon * _arg0; | |
2106 | int _arg1; | |
2d091820 | 2107 | PyObject * _argo0 = 0; |
56f5d962 | 2108 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
2109 | |
2110 | self = self; | |
56f5d962 | 2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2112 | return NULL; |
2d091820 RD |
2113 | if (_argo0) { |
2114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); |
70551f47 RD |
2117 | return NULL; |
2118 | } | |
2119 | } | |
ab9bc19b RD |
2120 | { |
2121 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2122 | wxIcon_SetWidth(_arg0,_arg1); |
ab9bc19b RD |
2123 | |
2124 | wxPy_END_ALLOW_THREADS; | |
2125 | } Py_INCREF(Py_None); | |
70551f47 RD |
2126 | _resultobj = Py_None; |
2127 | return _resultobj; | |
2128 | } | |
2129 | ||
2130 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
107e4716 | 2131 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2132 | PyObject * _resultobj; |
2133 | wxIcon * _arg0; | |
2134 | int _arg1; | |
2d091820 | 2135 | PyObject * _argo0 = 0; |
56f5d962 | 2136 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
2137 | |
2138 | self = self; | |
107e4716 | 2139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2140 | return NULL; |
2d091820 RD |
2141 | if (_argo0) { |
2142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); |
2145 | return NULL; | |
2146 | } | |
2147 | } | |
ab9bc19b RD |
2148 | { |
2149 | wxPy_BEGIN_ALLOW_THREADS; | |
2150 | wxIcon_SetHeight(_arg0,_arg1); | |
2151 | ||
2152 | wxPy_END_ALLOW_THREADS; | |
2153 | } Py_INCREF(Py_None); | |
70551f47 RD |
2154 | _resultobj = Py_None; |
2155 | return _resultobj; | |
2156 | } | |
2157 | ||
56f5d962 RD |
2158 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
2159 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2160 | PyObject * _resultobj; |
2161 | wxIcon * _arg0; | |
2162 | int _arg1; | |
2d091820 | 2163 | PyObject * _argo0 = 0; |
56f5d962 | 2164 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
2165 | |
2166 | self = self; | |
56f5d962 | 2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2168 | return NULL; |
2d091820 RD |
2169 | if (_argo0) { |
2170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2173 | return NULL; |
2174 | } | |
2175 | } | |
ab9bc19b RD |
2176 | { |
2177 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 2178 | wxIcon_SetDepth(_arg0,_arg1); |
ab9bc19b RD |
2179 | |
2180 | wxPy_END_ALLOW_THREADS; | |
2181 | } Py_INCREF(Py_None); | |
70551f47 RD |
2182 | _resultobj = Py_None; |
2183 | return _resultobj; | |
2184 | } | |
2185 | ||
fbcadfca RD |
2186 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2187 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject * _resultobj; | |
2189 | wxIcon * _arg0; | |
2190 | wxBitmap * _arg1; | |
2191 | PyObject * _argo0 = 0; | |
2192 | PyObject * _argo1 = 0; | |
2193 | char *_kwnames[] = { "self","bmp", NULL }; | |
2194 | ||
2195 | self = self; | |
2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2197 | return NULL; | |
2198 | if (_argo0) { | |
2199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2202 | return NULL; | |
2203 | } | |
2204 | } | |
2205 | if (_argo1) { | |
2206 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2207 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2209 | return NULL; | |
2210 | } | |
2211 | } | |
2212 | { | |
2213 | wxPy_BEGIN_ALLOW_THREADS; | |
2214 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2215 | ||
2216 | wxPy_END_ALLOW_THREADS; | |
2217 | } Py_INCREF(Py_None); | |
2218 | _resultobj = Py_None; | |
2219 | return _resultobj; | |
2220 | } | |
2221 | ||
70551f47 | 2222 | #define delete_wxCursor(_swigobj) (delete _swigobj) |
107e4716 | 2223 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2224 | PyObject * _resultobj; |
2225 | wxCursor * _arg0; | |
2d091820 | 2226 | PyObject * _argo0 = 0; |
107e4716 | 2227 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2228 | |
2229 | self = self; | |
107e4716 | 2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) |
70551f47 | 2231 | return NULL; |
2d091820 RD |
2232 | if (_argo0) { |
2233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); |
2236 | return NULL; | |
2237 | } | |
2238 | } | |
ab9bc19b RD |
2239 | { |
2240 | wxPy_BEGIN_ALLOW_THREADS; | |
2241 | delete_wxCursor(_arg0); | |
2242 | ||
2243 | wxPy_END_ALLOW_THREADS; | |
2244 | } Py_INCREF(Py_None); | |
70551f47 RD |
2245 | _resultobj = Py_None; |
2246 | return _resultobj; | |
2247 | } | |
2248 | ||
2249 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 2250 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2251 | PyObject * _resultobj; |
2252 | bool _result; | |
2253 | wxCursor * _arg0; | |
2d091820 | 2254 | PyObject * _argo0 = 0; |
107e4716 | 2255 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2256 | |
2257 | self = self; | |
107e4716 | 2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) |
70551f47 | 2259 | return NULL; |
2d091820 RD |
2260 | if (_argo0) { |
2261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); |
2264 | return NULL; | |
2265 | } | |
2266 | } | |
ab9bc19b RD |
2267 | { |
2268 | wxPy_BEGIN_ALLOW_THREADS; | |
2269 | _result = (bool )wxCursor_Ok(_arg0); | |
2270 | ||
2271 | wxPy_END_ALLOW_THREADS; | |
2272 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2273 | return _resultobj; |
2274 | } | |
2275 | ||
5e40f9dd | 2276 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 2277 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2278 | PyObject * _resultobj; |
2279 | wxFont * _result; | |
2280 | int _arg0; | |
2281 | int _arg1; | |
2282 | int _arg2; | |
2283 | int _arg3; | |
2d091820 RD |
2284 | int _arg4 = (int ) FALSE; |
2285 | char * _arg5 = (char *) ""; | |
134d79dc RD |
2286 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); |
2287 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
70551f47 RD |
2288 | char _ptemp[128]; |
2289 | ||
2290 | self = self; | |
134d79dc | 2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 2292 | return NULL; |
ab9bc19b RD |
2293 | { |
2294 | wxPy_BEGIN_ALLOW_THREADS; | |
134d79dc | 2295 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b RD |
2296 | |
2297 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
2298 | } if (_result) { |
2299 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
2300 | _resultobj = Py_BuildValue("s",_ptemp); | |
2301 | } else { | |
2302 | Py_INCREF(Py_None); | |
2303 | _resultobj = Py_None; | |
2304 | } | |
70551f47 RD |
2305 | return _resultobj; |
2306 | } | |
2307 | ||
5e40f9dd RD |
2308 | #define delete_wxFont(_swigobj) (delete _swigobj) |
2309 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2310 | PyObject * _resultobj; | |
2311 | wxFont * _arg0; | |
2312 | PyObject * _argo0 = 0; | |
2313 | char *_kwnames[] = { "self", NULL }; | |
2314 | ||
2315 | self = self; | |
2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
2317 | return NULL; | |
2318 | if (_argo0) { | |
2319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
2322 | return NULL; | |
2323 | } | |
2324 | } | |
2325 | { | |
2326 | wxPy_BEGIN_ALLOW_THREADS; | |
2327 | delete_wxFont(_arg0); | |
2328 | ||
2329 | wxPy_END_ALLOW_THREADS; | |
2330 | } Py_INCREF(Py_None); | |
2331 | _resultobj = Py_None; | |
2332 | return _resultobj; | |
2333 | } | |
2334 | ||
d29aba2f RD |
2335 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) |
2336 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2337 | PyObject * _resultobj; | |
2338 | bool _result; | |
2339 | wxFont * _arg0; | |
2340 | PyObject * _argo0 = 0; | |
2341 | char *_kwnames[] = { "self", NULL }; | |
2342 | ||
2343 | self = self; | |
2344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
2345 | return NULL; | |
2346 | if (_argo0) { | |
2347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
2350 | return NULL; | |
2351 | } | |
2352 | } | |
2353 | { | |
2354 | wxPy_BEGIN_ALLOW_THREADS; | |
2355 | _result = (bool )wxFont_Ok(_arg0); | |
2356 | ||
2357 | wxPy_END_ALLOW_THREADS; | |
2358 | } _resultobj = Py_BuildValue("i",_result); | |
2359 | return _resultobj; | |
2360 | } | |
2361 | ||
70551f47 | 2362 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
107e4716 | 2363 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2364 | PyObject * _resultobj; |
2365 | wxString * _result; | |
2366 | wxFont * _arg0; | |
2d091820 | 2367 | PyObject * _argo0 = 0; |
107e4716 | 2368 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2369 | |
2370 | self = self; | |
107e4716 | 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
70551f47 | 2372 | return NULL; |
2d091820 RD |
2373 | if (_argo0) { |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
2377 | return NULL; | |
2378 | } | |
2379 | } | |
70551f47 | 2380 | { |
ab9bc19b RD |
2381 | wxPy_BEGIN_ALLOW_THREADS; |
2382 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
2383 | ||
2384 | wxPy_END_ALLOW_THREADS; | |
2385 | }{ | |
e02c03a4 | 2386 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
2387 | } |
2388 | { | |
2389 | delete _result; | |
2390 | } | |
2391 | return _resultobj; | |
2392 | } | |
2393 | ||
2394 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
107e4716 | 2395 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2396 | PyObject * _resultobj; |
2397 | int _result; | |
2398 | wxFont * _arg0; | |
2d091820 | 2399 | PyObject * _argo0 = 0; |
107e4716 | 2400 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2401 | |
2402 | self = self; | |
107e4716 | 2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
70551f47 | 2404 | return NULL; |
2d091820 RD |
2405 | if (_argo0) { |
2406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
2409 | return NULL; | |
2410 | } | |
2411 | } | |
ab9bc19b RD |
2412 | { |
2413 | wxPy_BEGIN_ALLOW_THREADS; | |
2414 | _result = (int )wxFont_GetFamily(_arg0); | |
2415 | ||
2416 | wxPy_END_ALLOW_THREADS; | |
2417 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2418 | return _resultobj; |
2419 | } | |
2420 | ||
70551f47 | 2421 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) |
107e4716 | 2422 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2423 | PyObject * _resultobj; |
2424 | int _result; | |
2425 | wxFont * _arg0; | |
2d091820 | 2426 | PyObject * _argo0 = 0; |
107e4716 | 2427 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2428 | |
2429 | self = self; | |
107e4716 | 2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) |
70551f47 | 2431 | return NULL; |
2d091820 RD |
2432 | if (_argo0) { |
2433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); |
2436 | return NULL; | |
2437 | } | |
2438 | } | |
ab9bc19b RD |
2439 | { |
2440 | wxPy_BEGIN_ALLOW_THREADS; | |
2441 | _result = (int )wxFont_GetPointSize(_arg0); | |
2442 | ||
2443 | wxPy_END_ALLOW_THREADS; | |
2444 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2445 | return _resultobj; |
2446 | } | |
2447 | ||
2448 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 2449 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2450 | PyObject * _resultobj; |
2451 | int _result; | |
2452 | wxFont * _arg0; | |
2d091820 | 2453 | PyObject * _argo0 = 0; |
107e4716 | 2454 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2455 | |
2456 | self = self; | |
107e4716 | 2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
70551f47 | 2458 | return NULL; |
2d091820 RD |
2459 | if (_argo0) { |
2460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
2463 | return NULL; | |
2464 | } | |
2465 | } | |
ab9bc19b RD |
2466 | { |
2467 | wxPy_BEGIN_ALLOW_THREADS; | |
2468 | _result = (int )wxFont_GetStyle(_arg0); | |
2469 | ||
2470 | wxPy_END_ALLOW_THREADS; | |
2471 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2472 | return _resultobj; |
2473 | } | |
2474 | ||
2475 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
107e4716 | 2476 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2477 | PyObject * _resultobj; |
2478 | bool _result; | |
2479 | wxFont * _arg0; | |
2d091820 | 2480 | PyObject * _argo0 = 0; |
107e4716 | 2481 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2482 | |
2483 | self = self; | |
107e4716 | 2484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
70551f47 | 2485 | return NULL; |
2d091820 RD |
2486 | if (_argo0) { |
2487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
2490 | return NULL; | |
2491 | } | |
2492 | } | |
ab9bc19b RD |
2493 | { |
2494 | wxPy_BEGIN_ALLOW_THREADS; | |
2495 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
2496 | ||
2497 | wxPy_END_ALLOW_THREADS; | |
2498 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2499 | return _resultobj; |
2500 | } | |
2501 | ||
2502 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
107e4716 | 2503 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2504 | PyObject * _resultobj; |
2505 | int _result; | |
2506 | wxFont * _arg0; | |
2d091820 | 2507 | PyObject * _argo0 = 0; |
107e4716 | 2508 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2509 | |
2510 | self = self; | |
107e4716 | 2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
70551f47 | 2512 | return NULL; |
2d091820 RD |
2513 | if (_argo0) { |
2514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
2517 | return NULL; | |
2518 | } | |
2519 | } | |
ab9bc19b RD |
2520 | { |
2521 | wxPy_BEGIN_ALLOW_THREADS; | |
2522 | _result = (int )wxFont_GetWeight(_arg0); | |
2523 | ||
2524 | wxPy_END_ALLOW_THREADS; | |
2525 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2526 | return _resultobj; |
2527 | } | |
2528 | ||
134d79dc RD |
2529 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
2530 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2531 | PyObject * _resultobj; | |
2532 | wxFontEncoding _result; | |
2533 | wxFont * _arg0; | |
2534 | PyObject * _argo0 = 0; | |
2535 | char *_kwnames[] = { "self", NULL }; | |
2536 | ||
2537 | self = self; | |
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
2539 | return NULL; | |
2540 | if (_argo0) { | |
2541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
2544 | return NULL; | |
2545 | } | |
2546 | } | |
2547 | { | |
2548 | wxPy_BEGIN_ALLOW_THREADS; | |
2549 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
2550 | ||
2551 | wxPy_END_ALLOW_THREADS; | |
2552 | } _resultobj = Py_BuildValue("i",_result); | |
2553 | return _resultobj; | |
2554 | } | |
2555 | ||
d3b4d113 | 2556 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
107e4716 | 2557 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2558 | PyObject * _resultobj; |
2559 | wxFont * _arg0; | |
2560 | wxString * _arg1; | |
2d091820 | 2561 | PyObject * _argo0 = 0; |
d3b4d113 | 2562 | PyObject * _obj1 = 0; |
107e4716 | 2563 | char *_kwnames[] = { "self","faceName", NULL }; |
d3b4d113 RR |
2564 | |
2565 | self = self; | |
107e4716 | 2566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) |
d3b4d113 | 2567 | return NULL; |
2d091820 RD |
2568 | if (_argo0) { |
2569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); |
2572 | return NULL; | |
2573 | } | |
2574 | } | |
2575 | { | |
2cd2fac8 RD |
2576 | #if PYTHON_API_VERSION >= 1009 |
2577 | char* tmpPtr; int tmpSize; | |
2578 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2579 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2580 | return NULL; |
2581 | } | |
2582 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2583 | return NULL; | |
2584 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2585 | #else | |
d3b4d113 RR |
2586 | if (!PyString_Check(_obj1)) { |
2587 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2588 | return NULL; | |
2589 | } | |
2cd2fac8 RD |
2590 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2591 | #endif | |
d3b4d113 | 2592 | } |
ab9bc19b RD |
2593 | { |
2594 | wxPy_BEGIN_ALLOW_THREADS; | |
2595 | wxFont_SetFaceName(_arg0,*_arg1); | |
2596 | ||
2597 | wxPy_END_ALLOW_THREADS; | |
2598 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2599 | _resultobj = Py_None; |
2600 | { | |
2601 | if (_obj1) | |
2602 | delete _arg1; | |
2603 | } | |
2604 | return _resultobj; | |
2605 | } | |
2606 | ||
2607 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
107e4716 | 2608 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2609 | PyObject * _resultobj; |
2610 | wxFont * _arg0; | |
2611 | int _arg1; | |
2d091820 | 2612 | PyObject * _argo0 = 0; |
107e4716 | 2613 | char *_kwnames[] = { "self","family", NULL }; |
d3b4d113 RR |
2614 | |
2615 | self = self; | |
107e4716 | 2616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2617 | return NULL; |
2d091820 RD |
2618 | if (_argo0) { |
2619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
2622 | return NULL; | |
2623 | } | |
2624 | } | |
ab9bc19b RD |
2625 | { |
2626 | wxPy_BEGIN_ALLOW_THREADS; | |
2627 | wxFont_SetFamily(_arg0,_arg1); | |
2628 | ||
2629 | wxPy_END_ALLOW_THREADS; | |
2630 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2631 | _resultobj = Py_None; |
2632 | return _resultobj; | |
2633 | } | |
2634 | ||
2635 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
107e4716 | 2636 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2637 | PyObject * _resultobj; |
2638 | wxFont * _arg0; | |
2639 | int _arg1; | |
2d091820 | 2640 | PyObject * _argo0 = 0; |
107e4716 | 2641 | char *_kwnames[] = { "self","pointSize", NULL }; |
d3b4d113 RR |
2642 | |
2643 | self = self; | |
107e4716 | 2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2645 | return NULL; |
2d091820 RD |
2646 | if (_argo0) { |
2647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); |
2650 | return NULL; | |
2651 | } | |
2652 | } | |
ab9bc19b RD |
2653 | { |
2654 | wxPy_BEGIN_ALLOW_THREADS; | |
2655 | wxFont_SetPointSize(_arg0,_arg1); | |
2656 | ||
2657 | wxPy_END_ALLOW_THREADS; | |
2658 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2659 | _resultobj = Py_None; |
2660 | return _resultobj; | |
2661 | } | |
2662 | ||
2663 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 2664 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2665 | PyObject * _resultobj; |
2666 | wxFont * _arg0; | |
2667 | int _arg1; | |
2d091820 | 2668 | PyObject * _argo0 = 0; |
107e4716 | 2669 | char *_kwnames[] = { "self","style", NULL }; |
d3b4d113 RR |
2670 | |
2671 | self = self; | |
107e4716 | 2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2673 | return NULL; |
2d091820 RD |
2674 | if (_argo0) { |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
ab9bc19b RD |
2681 | { |
2682 | wxPy_BEGIN_ALLOW_THREADS; | |
2683 | wxFont_SetStyle(_arg0,_arg1); | |
2684 | ||
2685 | wxPy_END_ALLOW_THREADS; | |
2686 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2687 | _resultobj = Py_None; |
2688 | return _resultobj; | |
2689 | } | |
2690 | ||
2691 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
107e4716 | 2692 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2693 | PyObject * _resultobj; |
2694 | wxFont * _arg0; | |
2695 | bool _arg1; | |
2d091820 | 2696 | PyObject * _argo0 = 0; |
d3b4d113 | 2697 | int tempbool1; |
107e4716 | 2698 | char *_kwnames[] = { "self","underlined", NULL }; |
d3b4d113 RR |
2699 | |
2700 | self = self; | |
107e4716 | 2701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
d3b4d113 | 2702 | return NULL; |
2d091820 RD |
2703 | if (_argo0) { |
2704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
2707 | return NULL; | |
2708 | } | |
2709 | } | |
2710 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
2711 | { |
2712 | wxPy_BEGIN_ALLOW_THREADS; | |
2713 | wxFont_SetUnderlined(_arg0,_arg1); | |
2714 | ||
2715 | wxPy_END_ALLOW_THREADS; | |
2716 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2717 | _resultobj = Py_None; |
2718 | return _resultobj; | |
2719 | } | |
2720 | ||
2721 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
107e4716 | 2722 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2723 | PyObject * _resultobj; |
2724 | wxFont * _arg0; | |
2725 | int _arg1; | |
2d091820 | 2726 | PyObject * _argo0 = 0; |
107e4716 | 2727 | char *_kwnames[] = { "self","weight", NULL }; |
d3b4d113 RR |
2728 | |
2729 | self = self; | |
107e4716 | 2730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2731 | return NULL; |
2d091820 RD |
2732 | if (_argo0) { |
2733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
2736 | return NULL; | |
2737 | } | |
2738 | } | |
ab9bc19b RD |
2739 | { |
2740 | wxPy_BEGIN_ALLOW_THREADS; | |
2741 | wxFont_SetWeight(_arg0,_arg1); | |
2742 | ||
2743 | wxPy_END_ALLOW_THREADS; | |
2744 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2745 | _resultobj = Py_None; |
2746 | return _resultobj; | |
2747 | } | |
2748 | ||
134d79dc RD |
2749 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
2750 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2751 | PyObject * _resultobj; | |
2752 | wxFont * _arg0; | |
2753 | wxFontEncoding _arg1; | |
2754 | PyObject * _argo0 = 0; | |
2755 | char *_kwnames[] = { "self","encoding", NULL }; | |
2756 | ||
2757 | self = self; | |
2758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
2759 | return NULL; | |
2760 | if (_argo0) { | |
2761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
2764 | return NULL; | |
2765 | } | |
2766 | } | |
2767 | { | |
2768 | wxPy_BEGIN_ALLOW_THREADS; | |
2769 | wxFont_SetEncoding(_arg0,_arg1); | |
2770 | ||
2771 | wxPy_END_ALLOW_THREADS; | |
2772 | } Py_INCREF(Py_None); | |
2773 | _resultobj = Py_None; | |
2774 | return _resultobj; | |
2775 | } | |
2776 | ||
2777 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
2778 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2779 | PyObject * _resultobj; | |
2780 | wxString * _result; | |
2781 | wxFont * _arg0; | |
2782 | PyObject * _argo0 = 0; | |
2783 | char *_kwnames[] = { "self", NULL }; | |
2784 | ||
2785 | self = self; | |
2786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
2787 | return NULL; | |
2788 | if (_argo0) { | |
2789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
2792 | return NULL; | |
2793 | } | |
2794 | } | |
2795 | { | |
2796 | wxPy_BEGIN_ALLOW_THREADS; | |
2797 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
2798 | ||
2799 | wxPy_END_ALLOW_THREADS; | |
2800 | }{ | |
e02c03a4 | 2801 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
2802 | } |
2803 | { | |
2804 | delete _result; | |
2805 | } | |
2806 | return _resultobj; | |
2807 | } | |
2808 | ||
2809 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
2810 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject * _resultobj; | |
2812 | wxString * _result; | |
2813 | wxFont * _arg0; | |
2814 | PyObject * _argo0 = 0; | |
2815 | char *_kwnames[] = { "self", NULL }; | |
2816 | ||
2817 | self = self; | |
2818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
2819 | return NULL; | |
2820 | if (_argo0) { | |
2821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
2824 | return NULL; | |
2825 | } | |
2826 | } | |
2827 | { | |
2828 | wxPy_BEGIN_ALLOW_THREADS; | |
2829 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
2830 | ||
2831 | wxPy_END_ALLOW_THREADS; | |
2832 | }{ | |
e02c03a4 | 2833 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
2834 | } |
2835 | { | |
2836 | delete _result; | |
2837 | } | |
2838 | return _resultobj; | |
2839 | } | |
2840 | ||
2841 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
2842 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2843 | PyObject * _resultobj; | |
2844 | wxString * _result; | |
2845 | wxFont * _arg0; | |
2846 | PyObject * _argo0 = 0; | |
2847 | char *_kwnames[] = { "self", NULL }; | |
2848 | ||
2849 | self = self; | |
2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
2851 | return NULL; | |
2852 | if (_argo0) { | |
2853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
2856 | return NULL; | |
2857 | } | |
2858 | } | |
2859 | { | |
2860 | wxPy_BEGIN_ALLOW_THREADS; | |
2861 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
2862 | ||
2863 | wxPy_END_ALLOW_THREADS; | |
2864 | }{ | |
e02c03a4 | 2865 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
2866 | } |
2867 | { | |
2868 | delete _result; | |
2869 | } | |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
5e40f9dd RD |
2873 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
2874 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject * _resultobj; | |
2876 | wxFontList * _arg0; | |
2877 | wxFont * _arg1; | |
2878 | PyObject * _argo0 = 0; | |
2879 | PyObject * _argo1 = 0; | |
2880 | char *_kwnames[] = { "self","font", NULL }; | |
2881 | ||
2882 | self = self; | |
2883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
2884 | return NULL; | |
2885 | if (_argo0) { | |
2886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
2888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
2889 | return NULL; | |
2890 | } | |
2891 | } | |
2892 | if (_argo1) { | |
2893 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2894 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
2895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
2896 | return NULL; | |
2897 | } | |
2898 | } | |
2899 | { | |
2900 | wxPy_BEGIN_ALLOW_THREADS; | |
2901 | wxFontList_AddFont(_arg0,_arg1); | |
2902 | ||
2903 | wxPy_END_ALLOW_THREADS; | |
2904 | } Py_INCREF(Py_None); | |
2905 | _resultobj = Py_None; | |
2906 | return _resultobj; | |
2907 | } | |
2908 | ||
2909 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2910 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | wxFont * _result; | |
2913 | wxFontList * _arg0; | |
2914 | int _arg1; | |
2915 | int _arg2; | |
2916 | int _arg3; | |
2917 | int _arg4; | |
2918 | bool _arg5 = (bool ) FALSE; | |
2919 | char * _arg6 = (char *) NULL; | |
2920 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
2921 | PyObject * _argo0 = 0; | |
2922 | int tempbool5 = (int) FALSE; | |
2923 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
2924 | char _ptemp[128]; | |
2925 | ||
2926 | self = self; | |
2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
2928 | return NULL; | |
2929 | if (_argo0) { | |
2930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
2932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
2933 | return NULL; | |
2934 | } | |
2935 | } | |
2936 | _arg5 = (bool ) tempbool5; | |
2937 | { | |
2938 | wxPy_BEGIN_ALLOW_THREADS; | |
2939 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
2940 | ||
2941 | wxPy_END_ALLOW_THREADS; | |
2942 | } if (_result) { | |
2943 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
2944 | _resultobj = Py_BuildValue("s",_ptemp); | |
2945 | } else { | |
2946 | Py_INCREF(Py_None); | |
2947 | _resultobj = Py_None; | |
2948 | } | |
2949 | return _resultobj; | |
2950 | } | |
2951 | ||
2952 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
2953 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject * _resultobj; | |
2955 | wxFontList * _arg0; | |
2956 | wxFont * _arg1; | |
2957 | PyObject * _argo0 = 0; | |
2958 | PyObject * _argo1 = 0; | |
2959 | char *_kwnames[] = { "self","font", NULL }; | |
2960 | ||
2961 | self = self; | |
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
2963 | return NULL; | |
2964 | if (_argo0) { | |
2965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
2967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
2968 | return NULL; | |
2969 | } | |
2970 | } | |
2971 | if (_argo1) { | |
2972 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2973 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
2974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
2975 | return NULL; | |
2976 | } | |
2977 | } | |
2978 | { | |
2979 | wxPy_BEGIN_ALLOW_THREADS; | |
2980 | wxFontList_RemoveFont(_arg0,_arg1); | |
2981 | ||
2982 | wxPy_END_ALLOW_THREADS; | |
2983 | } Py_INCREF(Py_None); | |
2984 | _resultobj = Py_None; | |
2985 | return _resultobj; | |
2986 | } | |
2987 | ||
70551f47 | 2988 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 2989 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2990 | PyObject * _resultobj; |
2991 | wxColour * _result; | |
2d091820 RD |
2992 | unsigned char _arg0 = (unsigned char ) 0; |
2993 | unsigned char _arg1 = (unsigned char ) 0; | |
2994 | unsigned char _arg2 = (unsigned char ) 0; | |
107e4716 | 2995 | char *_kwnames[] = { "red","green","blue", NULL }; |
70551f47 RD |
2996 | char _ptemp[128]; |
2997 | ||
2998 | self = self; | |
107e4716 | 2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 3000 | return NULL; |
ab9bc19b RD |
3001 | { |
3002 | wxPy_BEGIN_ALLOW_THREADS; | |
3003 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
3004 | ||
3005 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
3006 | } if (_result) { |
3007 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3008 | _resultobj = Py_BuildValue("s",_ptemp); | |
3009 | } else { | |
3010 | Py_INCREF(Py_None); | |
3011 | _resultobj = Py_None; | |
3012 | } | |
70551f47 RD |
3013 | return _resultobj; |
3014 | } | |
3015 | ||
3016 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
107e4716 | 3017 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3018 | PyObject * _resultobj; |
3019 | wxColour * _arg0; | |
f6bcfd97 BP |
3020 | wxColour temp; |
3021 | PyObject * _obj0 = 0; | |
107e4716 | 3022 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3023 | |
3024 | self = self; | |
f6bcfd97 | 3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
70551f47 | 3026 | return NULL; |
f6bcfd97 BP |
3027 | { |
3028 | _arg0 = &temp; | |
3029 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3030 | return NULL; |
f6bcfd97 | 3031 | } |
ab9bc19b RD |
3032 | { |
3033 | wxPy_BEGIN_ALLOW_THREADS; | |
3034 | delete_wxColour(_arg0); | |
3035 | ||
3036 | wxPy_END_ALLOW_THREADS; | |
3037 | } Py_INCREF(Py_None); | |
70551f47 RD |
3038 | _resultobj = Py_None; |
3039 | return _resultobj; | |
3040 | } | |
3041 | ||
3042 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
107e4716 | 3043 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3044 | PyObject * _resultobj; |
3045 | unsigned char _result; | |
3046 | wxColour * _arg0; | |
f6bcfd97 BP |
3047 | wxColour temp; |
3048 | PyObject * _obj0 = 0; | |
107e4716 | 3049 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3050 | |
3051 | self = self; | |
f6bcfd97 | 3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
70551f47 | 3053 | return NULL; |
f6bcfd97 BP |
3054 | { |
3055 | _arg0 = &temp; | |
3056 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3057 | return NULL; |
f6bcfd97 | 3058 | } |
ab9bc19b RD |
3059 | { |
3060 | wxPy_BEGIN_ALLOW_THREADS; | |
3061 | _result = (unsigned char )wxColour_Red(_arg0); | |
3062 | ||
3063 | wxPy_END_ALLOW_THREADS; | |
3064 | } _resultobj = Py_BuildValue("b",_result); | |
70551f47 RD |
3065 | return _resultobj; |
3066 | } | |
3067 | ||
3068 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
107e4716 | 3069 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3070 | PyObject * _resultobj; |
3071 | unsigned char _result; | |
3072 | wxColour * _arg0; | |
f6bcfd97 BP |
3073 | wxColour temp; |
3074 | PyObject * _obj0 = 0; | |
107e4716 | 3075 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3076 | |
3077 | self = self; | |
f6bcfd97 | 3078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
70551f47 | 3079 | return NULL; |
f6bcfd97 BP |
3080 | { |
3081 | _arg0 = &temp; | |
3082 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3083 | return NULL; |
f6bcfd97 | 3084 | } |
ab9bc19b RD |
3085 | { |
3086 | wxPy_BEGIN_ALLOW_THREADS; | |
3087 | _result = (unsigned char )wxColour_Green(_arg0); | |
3088 | ||
3089 | wxPy_END_ALLOW_THREADS; | |
3090 | } _resultobj = Py_BuildValue("b",_result); | |
70551f47 RD |
3091 | return _resultobj; |
3092 | } | |
3093 | ||
3094 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
107e4716 | 3095 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3096 | PyObject * _resultobj; |
3097 | unsigned char _result; | |
3098 | wxColour * _arg0; | |
f6bcfd97 BP |
3099 | wxColour temp; |
3100 | PyObject * _obj0 = 0; | |
107e4716 | 3101 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3102 | |
3103 | self = self; | |
f6bcfd97 | 3104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
70551f47 | 3105 | return NULL; |
f6bcfd97 BP |
3106 | { |
3107 | _arg0 = &temp; | |
3108 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3109 | return NULL; |
f6bcfd97 | 3110 | } |
ab9bc19b RD |
3111 | { |
3112 | wxPy_BEGIN_ALLOW_THREADS; | |
3113 | _result = (unsigned char )wxColour_Blue(_arg0); | |
3114 | ||
3115 | wxPy_END_ALLOW_THREADS; | |
3116 | } _resultobj = Py_BuildValue("b",_result); | |
70551f47 RD |
3117 | return _resultobj; |
3118 | } | |
3119 | ||
3120 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 3121 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3122 | PyObject * _resultobj; |
3123 | bool _result; | |
3124 | wxColour * _arg0; | |
f6bcfd97 BP |
3125 | wxColour temp; |
3126 | PyObject * _obj0 = 0; | |
107e4716 | 3127 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3128 | |
3129 | self = self; | |
f6bcfd97 | 3130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
70551f47 | 3131 | return NULL; |
f6bcfd97 BP |
3132 | { |
3133 | _arg0 = &temp; | |
3134 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3135 | return NULL; |
f6bcfd97 | 3136 | } |
ab9bc19b RD |
3137 | { |
3138 | wxPy_BEGIN_ALLOW_THREADS; | |
3139 | _result = (bool )wxColour_Ok(_arg0); | |
3140 | ||
3141 | wxPy_END_ALLOW_THREADS; | |
3142 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3143 | return _resultobj; |
3144 | } | |
3145 | ||
3146 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 3147 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3148 | PyObject * _resultobj; |
3149 | wxColour * _arg0; | |
3150 | unsigned char _arg1; | |
3151 | unsigned char _arg2; | |
3152 | unsigned char _arg3; | |
f6bcfd97 BP |
3153 | wxColour temp; |
3154 | PyObject * _obj0 = 0; | |
107e4716 | 3155 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
70551f47 RD |
3156 | |
3157 | self = self; | |
f6bcfd97 | 3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
70551f47 | 3159 | return NULL; |
f6bcfd97 BP |
3160 | { |
3161 | _arg0 = &temp; | |
3162 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3163 | return NULL; |
f6bcfd97 | 3164 | } |
ab9bc19b RD |
3165 | { |
3166 | wxPy_BEGIN_ALLOW_THREADS; | |
3167 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
3168 | ||
3169 | wxPy_END_ALLOW_THREADS; | |
3170 | } Py_INCREF(Py_None); | |
70551f47 RD |
3171 | _resultobj = Py_None; |
3172 | return _resultobj; | |
3173 | } | |
3174 | ||
3175 | static PyObject * wxColour_Get(wxColour *self) { | |
3176 | PyObject* rv = PyTuple_New(3); | |
3177 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3178 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3179 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3180 | return rv; | |
3181 | } | |
107e4716 | 3182 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3183 | PyObject * _resultobj; |
3184 | PyObject * _result; | |
3185 | wxColour * _arg0; | |
f6bcfd97 BP |
3186 | wxColour temp; |
3187 | PyObject * _obj0 = 0; | |
107e4716 | 3188 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3189 | |
3190 | self = self; | |
f6bcfd97 | 3191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
70551f47 | 3192 | return NULL; |
f6bcfd97 BP |
3193 | { |
3194 | _arg0 = &temp; | |
3195 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3196 | return NULL; |
f6bcfd97 | 3197 | } |
70551f47 | 3198 | { |
ab9bc19b RD |
3199 | wxPy_BEGIN_ALLOW_THREADS; |
3200 | _result = (PyObject *)wxColour_Get(_arg0); | |
3201 | ||
3202 | wxPy_END_ALLOW_THREADS; | |
3203 | }{ | |
70551f47 RD |
3204 | _resultobj = _result; |
3205 | } | |
3206 | return _resultobj; | |
3207 | } | |
3208 | ||
5e40f9dd RD |
3209 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
3210 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3211 | PyObject * _resultobj; |
5e40f9dd RD |
3212 | wxColour * _result; |
3213 | wxColourDatabase * _arg0; | |
3214 | wxString * _arg1; | |
3215 | PyObject * _argo0 = 0; | |
3216 | PyObject * _obj1 = 0; | |
3217 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
3218 | char _ptemp[128]; |
3219 | ||
3220 | self = self; | |
5e40f9dd RD |
3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) |
3222 | return NULL; | |
3223 | if (_argo0) { | |
3224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
70551f47 | 3227 | return NULL; |
5e40f9dd RD |
3228 | } |
3229 | } | |
f6bcfd97 | 3230 | { |
5e40f9dd RD |
3231 | #if PYTHON_API_VERSION >= 1009 |
3232 | char* tmpPtr; int tmpSize; | |
3233 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3234 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
5e40f9dd RD |
3235 | return NULL; |
3236 | } | |
3237 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3238 | return NULL; | |
3239 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3240 | #else | |
3241 | if (!PyString_Check(_obj1)) { | |
3242 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
70551f47 | 3243 | return NULL; |
5e40f9dd RD |
3244 | } |
3245 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3246 | #endif | |
f6bcfd97 | 3247 | } |
ab9bc19b RD |
3248 | { |
3249 | wxPy_BEGIN_ALLOW_THREADS; | |
5e40f9dd | 3250 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
ab9bc19b RD |
3251 | |
3252 | wxPy_END_ALLOW_THREADS; | |
2d091820 | 3253 | } if (_result) { |
5e40f9dd | 3254 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); |
2d091820 RD |
3255 | _resultobj = Py_BuildValue("s",_ptemp); |
3256 | } else { | |
3257 | Py_INCREF(Py_None); | |
3258 | _resultobj = Py_None; | |
3259 | } | |
5e40f9dd RD |
3260 | { |
3261 | if (_obj1) | |
3262 | delete _arg1; | |
3263 | } | |
70551f47 RD |
3264 | return _resultobj; |
3265 | } | |
3266 | ||
5e40f9dd RD |
3267 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) |
3268 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3269 | PyObject * _resultobj; |
5e40f9dd RD |
3270 | wxString * _result; |
3271 | wxColourDatabase * _arg0; | |
3272 | wxColour * _arg1; | |
2d091820 | 3273 | PyObject * _argo0 = 0; |
5e40f9dd RD |
3274 | wxColour temp; |
3275 | PyObject * _obj1 = 0; | |
3276 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
3277 | |
3278 | self = self; | |
5e40f9dd | 3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3280 | return NULL; |
2d091820 RD |
3281 | if (_argo0) { |
3282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
3283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
3284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
70551f47 RD |
3285 | return NULL; |
3286 | } | |
3287 | } | |
5e40f9dd RD |
3288 | { |
3289 | _arg1 = &temp; | |
3290 | if (! wxColour_helper(_obj1, &_arg1)) | |
3291 | return NULL; | |
3292 | } | |
ab9bc19b RD |
3293 | { |
3294 | wxPy_BEGIN_ALLOW_THREADS; | |
5e40f9dd | 3295 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
ab9bc19b RD |
3296 | |
3297 | wxPy_END_ALLOW_THREADS; | |
5e40f9dd RD |
3298 | }{ |
3299 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3300 | } | |
3301 | { | |
3302 | delete _result; | |
3303 | } | |
70551f47 RD |
3304 | return _resultobj; |
3305 | } | |
3306 | ||
5e40f9dd RD |
3307 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { |
3308 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
3309 | } | |
3310 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3311 | PyObject * _resultobj; |
5e40f9dd RD |
3312 | wxColourDatabase * _arg0; |
3313 | wxString * _arg1; | |
3314 | int _arg2; | |
3315 | int _arg3; | |
3316 | int _arg4; | |
2d091820 | 3317 | PyObject * _argo0 = 0; |
5e40f9dd RD |
3318 | PyObject * _obj1 = 0; |
3319 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
70551f47 RD |
3320 | |
3321 | self = self; | |
5e40f9dd | 3322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 3323 | return NULL; |
2d091820 RD |
3324 | if (_argo0) { |
3325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
3326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
3327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
70551f47 RD |
3328 | return NULL; |
3329 | } | |
3330 | } | |
ab9bc19b | 3331 | { |
5e40f9dd RD |
3332 | #if PYTHON_API_VERSION >= 1009 |
3333 | char* tmpPtr; int tmpSize; | |
3334 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3335 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
5e40f9dd RD |
3336 | return NULL; |
3337 | } | |
3338 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3339 | return NULL; | |
3340 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3341 | #else | |
3342 | if (!PyString_Check(_obj1)) { | |
3343 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3344 | return NULL; | |
3345 | } | |
3346 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3347 | #endif | |
3348 | } | |
3349 | { | |
3350 | wxPy_BEGIN_ALLOW_THREADS; | |
3351 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3352 | ||
3353 | wxPy_END_ALLOW_THREADS; | |
3354 | } Py_INCREF(Py_None); | |
3355 | _resultobj = Py_None; | |
3356 | { | |
3357 | if (_obj1) | |
3358 | delete _arg1; | |
3359 | } | |
3360 | return _resultobj; | |
3361 | } | |
3362 | ||
3363 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
3364 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3365 | PyObject * _resultobj; | |
3366 | wxPen * _result; | |
3367 | wxColour * _arg0; | |
3368 | int _arg1 = (int ) 1; | |
3369 | int _arg2 = (int ) wxSOLID; | |
3370 | wxColour temp; | |
3371 | PyObject * _obj0 = 0; | |
3372 | char *_kwnames[] = { "colour","width","style", NULL }; | |
3373 | char _ptemp[128]; | |
3374 | ||
3375 | self = self; | |
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
3377 | return NULL; | |
3378 | { | |
3379 | _arg0 = &temp; | |
3380 | if (! wxColour_helper(_obj0, &_arg0)) | |
3381 | return NULL; | |
3382 | } | |
3383 | { | |
3384 | wxPy_BEGIN_ALLOW_THREADS; | |
3385 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); | |
3386 | ||
3387 | wxPy_END_ALLOW_THREADS; | |
3388 | } if (_result) { | |
3389 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3390 | _resultobj = Py_BuildValue("s",_ptemp); | |
3391 | } else { | |
3392 | Py_INCREF(Py_None); | |
3393 | _resultobj = Py_None; | |
3394 | } | |
3395 | return _resultobj; | |
3396 | } | |
3397 | ||
3398 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
3399 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3400 | PyObject * _resultobj; | |
3401 | wxPen * _arg0; | |
3402 | PyObject * _argo0 = 0; | |
3403 | char *_kwnames[] = { "self", NULL }; | |
3404 | ||
3405 | self = self; | |
3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
3407 | return NULL; | |
3408 | if (_argo0) { | |
3409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
3412 | return NULL; | |
3413 | } | |
3414 | } | |
3415 | { | |
3416 | wxPy_BEGIN_ALLOW_THREADS; | |
3417 | delete_wxPen(_arg0); | |
3418 | ||
3419 | wxPy_END_ALLOW_THREADS; | |
3420 | } Py_INCREF(Py_None); | |
3421 | _resultobj = Py_None; | |
3422 | return _resultobj; | |
3423 | } | |
3424 | ||
3425 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
3426 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject * _resultobj; | |
3428 | int _result; | |
3429 | wxPen * _arg0; | |
3430 | PyObject * _argo0 = 0; | |
3431 | char *_kwnames[] = { "self", NULL }; | |
3432 | ||
3433 | self = self; | |
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
3435 | return NULL; | |
3436 | if (_argo0) { | |
3437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
3440 | return NULL; | |
3441 | } | |
3442 | } | |
3443 | { | |
3444 | wxPy_BEGIN_ALLOW_THREADS; | |
3445 | _result = (int )wxPen_GetCap(_arg0); | |
3446 | ||
3447 | wxPy_END_ALLOW_THREADS; | |
3448 | } _resultobj = Py_BuildValue("i",_result); | |
3449 | return _resultobj; | |
3450 | } | |
3451 | ||
3452 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
3453 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3454 | PyObject * _resultobj; | |
3455 | wxColour * _result; | |
3456 | wxPen * _arg0; | |
3457 | PyObject * _argo0 = 0; | |
3458 | char *_kwnames[] = { "self", NULL }; | |
3459 | char _ptemp[128]; | |
3460 | ||
3461 | self = self; | |
3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
3463 | return NULL; | |
3464 | if (_argo0) { | |
3465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
3468 | return NULL; | |
3469 | } | |
3470 | } | |
3471 | { | |
3472 | wxPy_BEGIN_ALLOW_THREADS; | |
3473 | wxColour & _result_ref = wxPen_GetColour(_arg0); | |
3474 | _result = (wxColour *) &_result_ref; | |
3475 | ||
3476 | wxPy_END_ALLOW_THREADS; | |
3477 | } if (_result) { | |
3478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3479 | _resultobj = Py_BuildValue("s",_ptemp); | |
3480 | } else { | |
3481 | Py_INCREF(Py_None); | |
2d091820 RD |
3482 | _resultobj = Py_None; |
3483 | } | |
70551f47 RD |
3484 | return _resultobj; |
3485 | } | |
3486 | ||
3487 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
107e4716 | 3488 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3489 | PyObject * _resultobj; |
3490 | int _result; | |
3491 | wxPen * _arg0; | |
2d091820 | 3492 | PyObject * _argo0 = 0; |
107e4716 | 3493 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3494 | |
3495 | self = self; | |
107e4716 | 3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
70551f47 | 3497 | return NULL; |
2d091820 RD |
3498 | if (_argo0) { |
3499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
3502 | return NULL; | |
3503 | } | |
3504 | } | |
ab9bc19b RD |
3505 | { |
3506 | wxPy_BEGIN_ALLOW_THREADS; | |
3507 | _result = (int )wxPen_GetJoin(_arg0); | |
3508 | ||
3509 | wxPy_END_ALLOW_THREADS; | |
3510 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3511 | return _resultobj; |
3512 | } | |
3513 | ||
3514 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 3515 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3516 | PyObject * _resultobj; |
3517 | int _result; | |
3518 | wxPen * _arg0; | |
2d091820 | 3519 | PyObject * _argo0 = 0; |
107e4716 | 3520 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3521 | |
3522 | self = self; | |
107e4716 | 3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
70551f47 | 3524 | return NULL; |
2d091820 RD |
3525 | if (_argo0) { |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
ab9bc19b RD |
3532 | { |
3533 | wxPy_BEGIN_ALLOW_THREADS; | |
3534 | _result = (int )wxPen_GetStyle(_arg0); | |
3535 | ||
3536 | wxPy_END_ALLOW_THREADS; | |
3537 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3538 | return _resultobj; |
3539 | } | |
3540 | ||
3541 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 3542 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3543 | PyObject * _resultobj; |
3544 | int _result; | |
3545 | wxPen * _arg0; | |
2d091820 | 3546 | PyObject * _argo0 = 0; |
107e4716 | 3547 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3548 | |
3549 | self = self; | |
107e4716 | 3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
70551f47 | 3551 | return NULL; |
2d091820 RD |
3552 | if (_argo0) { |
3553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
3556 | return NULL; | |
3557 | } | |
3558 | } | |
ab9bc19b RD |
3559 | { |
3560 | wxPy_BEGIN_ALLOW_THREADS; | |
3561 | _result = (int )wxPen_GetWidth(_arg0); | |
3562 | ||
3563 | wxPy_END_ALLOW_THREADS; | |
3564 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3565 | return _resultobj; |
3566 | } | |
3567 | ||
3568 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 3569 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3570 | PyObject * _resultobj; |
3571 | bool _result; | |
3572 | wxPen * _arg0; | |
2d091820 | 3573 | PyObject * _argo0 = 0; |
107e4716 | 3574 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3575 | |
3576 | self = self; | |
107e4716 | 3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
70551f47 | 3578 | return NULL; |
2d091820 RD |
3579 | if (_argo0) { |
3580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
3583 | return NULL; | |
3584 | } | |
3585 | } | |
ab9bc19b RD |
3586 | { |
3587 | wxPy_BEGIN_ALLOW_THREADS; | |
3588 | _result = (bool )wxPen_Ok(_arg0); | |
3589 | ||
3590 | wxPy_END_ALLOW_THREADS; | |
3591 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3592 | return _resultobj; |
3593 | } | |
3594 | ||
3595 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
107e4716 | 3596 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3597 | PyObject * _resultobj; |
3598 | wxPen * _arg0; | |
3599 | int _arg1; | |
2d091820 | 3600 | PyObject * _argo0 = 0; |
107e4716 | 3601 | char *_kwnames[] = { "self","cap_style", NULL }; |
70551f47 RD |
3602 | |
3603 | self = self; | |
107e4716 | 3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3605 | return NULL; |
2d091820 RD |
3606 | if (_argo0) { |
3607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
3610 | return NULL; | |
3611 | } | |
3612 | } | |
ab9bc19b RD |
3613 | { |
3614 | wxPy_BEGIN_ALLOW_THREADS; | |
3615 | wxPen_SetCap(_arg0,_arg1); | |
3616 | ||
3617 | wxPy_END_ALLOW_THREADS; | |
3618 | } Py_INCREF(Py_None); | |
70551f47 RD |
3619 | _resultobj = Py_None; |
3620 | return _resultobj; | |
3621 | } | |
3622 | ||
3623 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 3624 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3625 | PyObject * _resultobj; |
3626 | wxPen * _arg0; | |
3627 | wxColour * _arg1; | |
2d091820 | 3628 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3629 | wxColour temp; |
3630 | PyObject * _obj1 = 0; | |
107e4716 | 3631 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
3632 | |
3633 | self = self; | |
f6bcfd97 | 3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3635 | return NULL; |
2d091820 RD |
3636 | if (_argo0) { |
3637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
3640 | return NULL; | |
3641 | } | |
3642 | } | |
f6bcfd97 BP |
3643 | { |
3644 | _arg1 = &temp; | |
3645 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 3646 | return NULL; |
f6bcfd97 | 3647 | } |
ab9bc19b RD |
3648 | { |
3649 | wxPy_BEGIN_ALLOW_THREADS; | |
3650 | wxPen_SetColour(_arg0,*_arg1); | |
3651 | ||
3652 | wxPy_END_ALLOW_THREADS; | |
3653 | } Py_INCREF(Py_None); | |
70551f47 RD |
3654 | _resultobj = Py_None; |
3655 | return _resultobj; | |
3656 | } | |
3657 | ||
3658 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
107e4716 | 3659 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3660 | PyObject * _resultobj; |
3661 | wxPen * _arg0; | |
3662 | int _arg1; | |
2d091820 | 3663 | PyObject * _argo0 = 0; |
107e4716 | 3664 | char *_kwnames[] = { "self","join_style", NULL }; |
70551f47 RD |
3665 | |
3666 | self = self; | |
107e4716 | 3667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3668 | return NULL; |
2d091820 RD |
3669 | if (_argo0) { |
3670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
3673 | return NULL; | |
3674 | } | |
3675 | } | |
ab9bc19b RD |
3676 | { |
3677 | wxPy_BEGIN_ALLOW_THREADS; | |
3678 | wxPen_SetJoin(_arg0,_arg1); | |
3679 | ||
3680 | wxPy_END_ALLOW_THREADS; | |
3681 | } Py_INCREF(Py_None); | |
70551f47 RD |
3682 | _resultobj = Py_None; |
3683 | return _resultobj; | |
3684 | } | |
3685 | ||
3686 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 3687 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3688 | PyObject * _resultobj; |
3689 | wxPen * _arg0; | |
3690 | int _arg1; | |
2d091820 | 3691 | PyObject * _argo0 = 0; |
107e4716 | 3692 | char *_kwnames[] = { "self","style", NULL }; |
70551f47 RD |
3693 | |
3694 | self = self; | |
107e4716 | 3695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3696 | return NULL; |
2d091820 RD |
3697 | if (_argo0) { |
3698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
3701 | return NULL; | |
3702 | } | |
3703 | } | |
ab9bc19b RD |
3704 | { |
3705 | wxPy_BEGIN_ALLOW_THREADS; | |
3706 | wxPen_SetStyle(_arg0,_arg1); | |
3707 | ||
3708 | wxPy_END_ALLOW_THREADS; | |
3709 | } Py_INCREF(Py_None); | |
70551f47 RD |
3710 | _resultobj = Py_None; |
3711 | return _resultobj; | |
3712 | } | |
3713 | ||
3714 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
107e4716 | 3715 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3716 | PyObject * _resultobj; |
3717 | wxPen * _arg0; | |
3718 | int _arg1; | |
2d091820 | 3719 | PyObject * _argo0 = 0; |
107e4716 | 3720 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
3721 | |
3722 | self = self; | |
107e4716 | 3723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3724 | return NULL; |
2d091820 RD |
3725 | if (_argo0) { |
3726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
3729 | return NULL; | |
3730 | } | |
3731 | } | |
ab9bc19b RD |
3732 | { |
3733 | wxPy_BEGIN_ALLOW_THREADS; | |
3734 | wxPen_SetWidth(_arg0,_arg1); | |
3735 | ||
3736 | wxPy_END_ALLOW_THREADS; | |
3737 | } Py_INCREF(Py_None); | |
70551f47 RD |
3738 | _resultobj = Py_None; |
3739 | return _resultobj; | |
3740 | } | |
3741 | ||
56f5d962 RD |
3742 | #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0)) |
3743 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3744 | PyObject * _resultobj; | |
3745 | int _result; | |
3746 | wxPen * _arg0; | |
3747 | wxDash ** _arg1; | |
3748 | PyObject * _argo0 = 0; | |
3749 | PyObject * _argo1 = 0; | |
3750 | char *_kwnames[] = { "self","dashes", NULL }; | |
3751 | ||
3752 | self = self; | |
3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1)) | |
3754 | return NULL; | |
3755 | if (_argo0) { | |
3756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
3759 | return NULL; | |
3760 | } | |
3761 | } | |
3762 | if (_argo1) { | |
3763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) { | |
3765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp."); | |
3766 | return NULL; | |
3767 | } | |
3768 | } | |
3769 | { | |
3770 | wxPy_BEGIN_ALLOW_THREADS; | |
3771 | _result = (int )wxPen_GetDashes(_arg0,_arg1); | |
3772 | ||
3773 | wxPy_END_ALLOW_THREADS; | |
3774 | } _resultobj = Py_BuildValue("i",_result); | |
3775 | return _resultobj; | |
3776 | } | |
3777 | ||
3778 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
3779 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3780 | PyObject * _resultobj; | |
3781 | wxPen * _arg0; | |
3782 | int _arg1; | |
3783 | wxDash * _arg2; | |
3784 | PyObject * _argo0 = 0; | |
3785 | PyObject * _obj2 = 0; | |
e02c03a4 | 3786 | char *_kwnames[] = { "self","choices", NULL }; |
56f5d962 RD |
3787 | |
3788 | self = self; | |
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
3790 | return NULL; | |
3791 | if (_argo0) { | |
3792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
3795 | return NULL; | |
3796 | } | |
3797 | } | |
3798 | if (_obj2) | |
3799 | { | |
41073357 | 3800 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
56f5d962 RD |
3801 | if (_arg2 == NULL) { |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
3805 | { | |
3806 | if (_obj2) { | |
3807 | _arg1 = PyList_Size(_obj2); | |
3808 | } | |
3809 | else { | |
3810 | _arg1 = 0; | |
3811 | } | |
3812 | } | |
3813 | { | |
3814 | wxPy_BEGIN_ALLOW_THREADS; | |
3815 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
3816 | ||
3817 | wxPy_END_ALLOW_THREADS; | |
3818 | } Py_INCREF(Py_None); | |
3819 | _resultobj = Py_None; | |
3820 | { | |
3821 | delete [] _arg2; | |
3822 | } | |
3823 | return _resultobj; | |
3824 | } | |
3825 | ||
5e40f9dd RD |
3826 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
3827 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3828 | PyObject * _resultobj; | |
3829 | wxPenList * _arg0; | |
3830 | wxPen * _arg1; | |
3831 | PyObject * _argo0 = 0; | |
3832 | PyObject * _argo1 = 0; | |
3833 | char *_kwnames[] = { "self","pen", NULL }; | |
3834 | ||
3835 | self = self; | |
3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
3837 | return NULL; | |
3838 | if (_argo0) { | |
3839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
3842 | return NULL; | |
70551f47 | 3843 | } |
5e40f9dd RD |
3844 | } |
3845 | if (_argo1) { | |
3846 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3847 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
3848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
3849 | return NULL; | |
3850 | } | |
3851 | } | |
3852 | { | |
3853 | wxPy_BEGIN_ALLOW_THREADS; | |
3854 | wxPenList_AddPen(_arg0,_arg1); | |
70551f47 | 3855 | |
5e40f9dd RD |
3856 | wxPy_END_ALLOW_THREADS; |
3857 | } Py_INCREF(Py_None); | |
3858 | _resultobj = Py_None; | |
3859 | return _resultobj; | |
3860 | } | |
3861 | ||
3862 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
3863 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3864 | PyObject * _resultobj; | |
3865 | wxPen * _result; | |
3866 | wxPenList * _arg0; | |
3867 | wxColour * _arg1; | |
3868 | int _arg2; | |
3869 | int _arg3; | |
3870 | PyObject * _argo0 = 0; | |
3871 | wxColour temp; | |
3872 | PyObject * _obj1 = 0; | |
3873 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
3874 | char _ptemp[128]; | |
3875 | ||
3876 | self = self; | |
3877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
3878 | return NULL; | |
3879 | if (_argo0) { | |
3880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
3883 | return NULL; | |
3884 | } | |
3885 | } | |
3886 | { | |
3887 | _arg1 = &temp; | |
3888 | if (! wxColour_helper(_obj1, &_arg1)) | |
3889 | return NULL; | |
3890 | } | |
3891 | { | |
3892 | wxPy_BEGIN_ALLOW_THREADS; | |
3893 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
3894 | ||
3895 | wxPy_END_ALLOW_THREADS; | |
3896 | } if (_result) { | |
3897 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3898 | _resultobj = Py_BuildValue("s",_ptemp); | |
3899 | } else { | |
3900 | Py_INCREF(Py_None); | |
3901 | _resultobj = Py_None; | |
3902 | } | |
3903 | return _resultobj; | |
3904 | } | |
3905 | ||
3906 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
3907 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3908 | PyObject * _resultobj; | |
3909 | wxPenList * _arg0; | |
3910 | wxPen * _arg1; | |
3911 | PyObject * _argo0 = 0; | |
3912 | PyObject * _argo1 = 0; | |
3913 | char *_kwnames[] = { "self","pen", NULL }; | |
3914 | ||
3915 | self = self; | |
3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
3917 | return NULL; | |
3918 | if (_argo0) { | |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
3925 | if (_argo1) { | |
3926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
3928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
3929 | return NULL; | |
3930 | } | |
3931 | } | |
3932 | { | |
3933 | wxPy_BEGIN_ALLOW_THREADS; | |
3934 | wxPenList_RemovePen(_arg0,_arg1); | |
3935 | ||
3936 | wxPy_END_ALLOW_THREADS; | |
3937 | } Py_INCREF(Py_None); | |
3938 | _resultobj = Py_None; | |
3939 | return _resultobj; | |
3940 | } | |
3941 | ||
3942 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
107e4716 | 3943 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3944 | PyObject * _resultobj; |
3945 | wxBrush * _result; | |
3946 | wxColour * _arg0; | |
2d091820 | 3947 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
3948 | wxColour temp; |
3949 | PyObject * _obj0 = 0; | |
107e4716 | 3950 | char *_kwnames[] = { "colour","style", NULL }; |
70551f47 RD |
3951 | char _ptemp[128]; |
3952 | ||
3953 | self = self; | |
f6bcfd97 | 3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
70551f47 | 3955 | return NULL; |
f6bcfd97 BP |
3956 | { |
3957 | _arg0 = &temp; | |
3958 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3959 | return NULL; |
f6bcfd97 | 3960 | } |
ab9bc19b RD |
3961 | { |
3962 | wxPy_BEGIN_ALLOW_THREADS; | |
5e40f9dd | 3963 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
ab9bc19b RD |
3964 | |
3965 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
3966 | } if (_result) { |
3967 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
3968 | _resultobj = Py_BuildValue("s",_ptemp); | |
3969 | } else { | |
3970 | Py_INCREF(Py_None); | |
3971 | _resultobj = Py_None; | |
3972 | } | |
70551f47 RD |
3973 | return _resultobj; |
3974 | } | |
3975 | ||
5e40f9dd RD |
3976 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
3977 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3978 | PyObject * _resultobj; | |
3979 | wxBrush * _arg0; | |
3980 | PyObject * _argo0 = 0; | |
3981 | char *_kwnames[] = { "self", NULL }; | |
3982 | ||
3983 | self = self; | |
3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
3985 | return NULL; | |
3986 | if (_argo0) { | |
3987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
3989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
3990 | return NULL; | |
3991 | } | |
3992 | } | |
3993 | { | |
3994 | wxPy_BEGIN_ALLOW_THREADS; | |
3995 | delete_wxBrush(_arg0); | |
3996 | ||
3997 | wxPy_END_ALLOW_THREADS; | |
3998 | } Py_INCREF(Py_None); | |
3999 | _resultobj = Py_None; | |
4000 | return _resultobj; | |
4001 | } | |
4002 | ||
70551f47 | 4003 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
107e4716 | 4004 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4005 | PyObject * _resultobj; |
4006 | wxColour * _result; | |
4007 | wxBrush * _arg0; | |
2d091820 | 4008 | PyObject * _argo0 = 0; |
107e4716 | 4009 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4010 | char _ptemp[128]; |
4011 | ||
4012 | self = self; | |
107e4716 | 4013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
70551f47 | 4014 | return NULL; |
2d091820 RD |
4015 | if (_argo0) { |
4016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
4019 | return NULL; | |
4020 | } | |
4021 | } | |
ab9bc19b RD |
4022 | { |
4023 | wxPy_BEGIN_ALLOW_THREADS; | |
4024 | wxColour & _result_ref = wxBrush_GetColour(_arg0); | |
70551f47 | 4025 | _result = (wxColour *) &_result_ref; |
ab9bc19b RD |
4026 | |
4027 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4028 | } if (_result) { |
4029 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4030 | _resultobj = Py_BuildValue("s",_ptemp); | |
4031 | } else { | |
4032 | Py_INCREF(Py_None); | |
4033 | _resultobj = Py_None; | |
4034 | } | |
70551f47 RD |
4035 | return _resultobj; |
4036 | } | |
4037 | ||
4038 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
107e4716 | 4039 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4040 | PyObject * _resultobj; |
4041 | wxBitmap * _result; | |
4042 | wxBrush * _arg0; | |
2d091820 | 4043 | PyObject * _argo0 = 0; |
107e4716 | 4044 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4045 | char _ptemp[128]; |
4046 | ||
4047 | self = self; | |
107e4716 | 4048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
70551f47 | 4049 | return NULL; |
2d091820 RD |
4050 | if (_argo0) { |
4051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
4054 | return NULL; | |
4055 | } | |
4056 | } | |
ab9bc19b RD |
4057 | { |
4058 | wxPy_BEGIN_ALLOW_THREADS; | |
4059 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
4060 | ||
4061 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4062 | } if (_result) { |
4063 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4064 | _resultobj = Py_BuildValue("s",_ptemp); | |
4065 | } else { | |
4066 | Py_INCREF(Py_None); | |
4067 | _resultobj = Py_None; | |
4068 | } | |
70551f47 RD |
4069 | return _resultobj; |
4070 | } | |
4071 | ||
4072 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 4073 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4074 | PyObject * _resultobj; |
4075 | int _result; | |
4076 | wxBrush * _arg0; | |
2d091820 | 4077 | PyObject * _argo0 = 0; |
107e4716 | 4078 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4079 | |
4080 | self = self; | |
107e4716 | 4081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
70551f47 | 4082 | return NULL; |
2d091820 RD |
4083 | if (_argo0) { |
4084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
4087 | return NULL; | |
4088 | } | |
4089 | } | |
ab9bc19b RD |
4090 | { |
4091 | wxPy_BEGIN_ALLOW_THREADS; | |
4092 | _result = (int )wxBrush_GetStyle(_arg0); | |
4093 | ||
4094 | wxPy_END_ALLOW_THREADS; | |
4095 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4096 | return _resultobj; |
4097 | } | |
4098 | ||
4099 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 4100 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4101 | PyObject * _resultobj; |
4102 | bool _result; | |
4103 | wxBrush * _arg0; | |
2d091820 | 4104 | PyObject * _argo0 = 0; |
107e4716 | 4105 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4106 | |
4107 | self = self; | |
107e4716 | 4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
70551f47 | 4109 | return NULL; |
2d091820 RD |
4110 | if (_argo0) { |
4111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
4113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
4114 | return NULL; | |
4115 | } | |
4116 | } | |
ab9bc19b RD |
4117 | { |
4118 | wxPy_BEGIN_ALLOW_THREADS; | |
4119 | _result = (bool )wxBrush_Ok(_arg0); | |
4120 | ||
4121 | wxPy_END_ALLOW_THREADS; | |
4122 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4123 | return _resultobj; |
4124 | } | |
4125 | ||
c95e68d8 | 4126 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) |
107e4716 | 4127 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4128 | PyObject * _resultobj; |
4129 | wxBrush * _arg0; | |
4130 | wxColour * _arg1; | |
2d091820 | 4131 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4132 | wxColour temp; |
4133 | PyObject * _obj1 = 0; | |
107e4716 | 4134 | char *_kwnames[] = { "self","colour", NULL }; |
c95e68d8 RD |
4135 | |
4136 | self = self; | |
f6bcfd97 | 4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 4138 | return NULL; |
2d091820 RD |
4139 | if (_argo0) { |
4140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
4142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
4143 | return NULL; | |
4144 | } | |
4145 | } | |
f6bcfd97 BP |
4146 | { |
4147 | _arg1 = &temp; | |
4148 | if (! wxColour_helper(_obj1, &_arg1)) | |
c95e68d8 | 4149 | return NULL; |
f6bcfd97 | 4150 | } |
ab9bc19b RD |
4151 | { |
4152 | wxPy_BEGIN_ALLOW_THREADS; | |
4153 | wxBrush_SetColour(_arg0,*_arg1); | |
4154 | ||
4155 | wxPy_END_ALLOW_THREADS; | |
4156 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
4157 | _resultobj = Py_None; |
4158 | return _resultobj; | |
4159 | } | |
4160 | ||
4161 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
107e4716 | 4162 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4163 | PyObject * _resultobj; |
4164 | wxBrush * _arg0; | |
4165 | wxBitmap * _arg1; | |
2d091820 RD |
4166 | PyObject * _argo0 = 0; |
4167 | PyObject * _argo1 = 0; | |
107e4716 | 4168 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
4169 | |
4170 | self = self; | |
107e4716 | 4171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 4172 | return NULL; |
2d091820 RD |
4173 | if (_argo0) { |
4174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
4176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
4177 | return NULL; | |
4178 | } | |
4179 | } | |
2d091820 RD |
4180 | if (_argo1) { |
4181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
4183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
4184 | return NULL; | |
4185 | } | |
4186 | } | |
ab9bc19b RD |
4187 | { |
4188 | wxPy_BEGIN_ALLOW_THREADS; | |
4189 | wxBrush_SetStipple(_arg0,*_arg1); | |
4190 | ||
4191 | wxPy_END_ALLOW_THREADS; | |
4192 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
4193 | _resultobj = Py_None; |
4194 | return _resultobj; | |
4195 | } | |
4196 | ||
4197 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 4198 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
4199 | PyObject * _resultobj; |
4200 | wxBrush * _arg0; | |
4201 | int _arg1; | |
2d091820 | 4202 | PyObject * _argo0 = 0; |
107e4716 | 4203 | char *_kwnames[] = { "self","style", NULL }; |
c95e68d8 RD |
4204 | |
4205 | self = self; | |
107e4716 | 4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 4207 | return NULL; |
2d091820 RD |
4208 | if (_argo0) { |
4209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
4211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
4212 | return NULL; | |
4213 | } | |
4214 | } | |
ab9bc19b RD |
4215 | { |
4216 | wxPy_BEGIN_ALLOW_THREADS; | |
4217 | wxBrush_SetStyle(_arg0,_arg1); | |
4218 | ||
4219 | wxPy_END_ALLOW_THREADS; | |
4220 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
4221 | _resultobj = Py_None; |
4222 | return _resultobj; | |
4223 | } | |
4224 | ||
5e40f9dd RD |
4225 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
4226 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4227 | PyObject * _resultobj; | |
4228 | wxBrushList * _arg0; | |
4229 | wxBrush * _arg1; | |
4230 | PyObject * _argo0 = 0; | |
4231 | PyObject * _argo1 = 0; | |
4232 | char *_kwnames[] = { "self","brush", NULL }; | |
4233 | ||
4234 | self = self; | |
4235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
4236 | return NULL; | |
4237 | if (_argo0) { | |
4238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
4241 | return NULL; | |
4242 | } | |
4243 | } | |
4244 | if (_argo1) { | |
4245 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4246 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
4248 | return NULL; | |
4249 | } | |
4250 | } | |
4251 | { | |
4252 | wxPy_BEGIN_ALLOW_THREADS; | |
4253 | wxBrushList_AddBrush(_arg0,_arg1); | |
4254 | ||
4255 | wxPy_END_ALLOW_THREADS; | |
4256 | } Py_INCREF(Py_None); | |
4257 | _resultobj = Py_None; | |
4258 | return _resultobj; | |
4259 | } | |
4260 | ||
4261 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
4262 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4263 | PyObject * _resultobj; | |
4264 | wxBrush * _result; | |
4265 | wxBrushList * _arg0; | |
4266 | wxColour * _arg1; | |
4267 | int _arg2; | |
4268 | PyObject * _argo0 = 0; | |
4269 | wxColour temp; | |
4270 | PyObject * _obj1 = 0; | |
4271 | char *_kwnames[] = { "self","colour","style", NULL }; | |
4272 | char _ptemp[128]; | |
4273 | ||
4274 | self = self; | |
4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4276 | return NULL; | |
4277 | if (_argo0) { | |
4278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
4281 | return NULL; | |
4282 | } | |
4283 | } | |
4284 | { | |
4285 | _arg1 = &temp; | |
4286 | if (! wxColour_helper(_obj1, &_arg1)) | |
4287 | return NULL; | |
4288 | } | |
4289 | { | |
4290 | wxPy_BEGIN_ALLOW_THREADS; | |
4291 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
4292 | ||
4293 | wxPy_END_ALLOW_THREADS; | |
4294 | } if (_result) { | |
4295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4296 | _resultobj = Py_BuildValue("s",_ptemp); | |
4297 | } else { | |
4298 | Py_INCREF(Py_None); | |
4299 | _resultobj = Py_None; | |
4300 | } | |
4301 | return _resultobj; | |
4302 | } | |
4303 | ||
4304 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
4305 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject * _resultobj; | |
4307 | wxBrushList * _arg0; | |
4308 | wxBrush * _arg1; | |
4309 | PyObject * _argo0 = 0; | |
4310 | PyObject * _argo1 = 0; | |
4311 | char *_kwnames[] = { "self","brush", NULL }; | |
4312 | ||
4313 | self = self; | |
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
4315 | return NULL; | |
4316 | if (_argo0) { | |
4317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
4320 | return NULL; | |
4321 | } | |
4322 | } | |
4323 | if (_argo1) { | |
4324 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4325 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
4327 | return NULL; | |
4328 | } | |
4329 | } | |
4330 | { | |
4331 | wxPy_BEGIN_ALLOW_THREADS; | |
4332 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
4333 | ||
4334 | wxPy_END_ALLOW_THREADS; | |
4335 | } Py_INCREF(Py_None); | |
4336 | _resultobj = Py_None; | |
4337 | return _resultobj; | |
4338 | } | |
4339 | ||
70551f47 | 4340 | #define delete_wxDC(_swigobj) (delete _swigobj) |
107e4716 | 4341 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4342 | PyObject * _resultobj; |
4343 | wxDC * _arg0; | |
2d091820 | 4344 | PyObject * _argo0 = 0; |
107e4716 | 4345 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4346 | |
4347 | self = self; | |
107e4716 | 4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
70551f47 | 4349 | return NULL; |
2d091820 RD |
4350 | if (_argo0) { |
4351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
4354 | return NULL; | |
4355 | } | |
4356 | } | |
ab9bc19b RD |
4357 | { |
4358 | wxPy_BEGIN_ALLOW_THREADS; | |
4359 | delete_wxDC(_arg0); | |
4360 | ||
4361 | wxPy_END_ALLOW_THREADS; | |
4362 | } Py_INCREF(Py_None); | |
70551f47 RD |
4363 | _resultobj = Py_None; |
4364 | return _resultobj; | |
4365 | } | |
4366 | ||
4367 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
107e4716 | 4368 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4369 | PyObject * _resultobj; |
4370 | wxDC * _arg0; | |
2d091820 | 4371 | PyObject * _argo0 = 0; |
107e4716 | 4372 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4373 | |
4374 | self = self; | |
107e4716 | 4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
70551f47 | 4376 | return NULL; |
2d091820 RD |
4377 | if (_argo0) { |
4378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
4381 | return NULL; | |
4382 | } | |
4383 | } | |
ab9bc19b RD |
4384 | { |
4385 | wxPy_BEGIN_ALLOW_THREADS; | |
4386 | wxDC_BeginDrawing(_arg0); | |
4387 | ||
4388 | wxPy_END_ALLOW_THREADS; | |
4389 | } Py_INCREF(Py_None); | |
70551f47 RD |
4390 | _resultobj = Py_None; |
4391 | return _resultobj; | |
4392 | } | |
4393 | ||
107e4716 RD |
4394 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4395 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
4396 | PyObject * _resultobj; |
4397 | bool _result; | |
4398 | wxDC * _arg0; | |
4399 | long _arg1; | |
4400 | long _arg2; | |
4401 | long _arg3; | |
4402 | long _arg4; | |
4403 | wxDC * _arg5; | |
4404 | long _arg6; | |
4405 | long _arg7; | |
107e4716 RD |
4406 | int _arg8 = (int ) wxCOPY; |
4407 | int _arg9 = (int ) FALSE; | |
2d091820 RD |
4408 | PyObject * _argo0 = 0; |
4409 | PyObject * _argo5 = 0; | |
107e4716 | 4410 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
70551f47 RD |
4411 | |
4412 | self = self; | |
107e4716 | 4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
70551f47 | 4414 | return NULL; |
2d091820 RD |
4415 | if (_argo0) { |
4416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
4419 | return NULL; | |
4420 | } | |
4421 | } | |
2d091820 RD |
4422 | if (_argo5) { |
4423 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
4424 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
70551f47 RD |
4425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
4426 | return NULL; | |
4427 | } | |
4428 | } | |
ab9bc19b RD |
4429 | { |
4430 | wxPy_BEGIN_ALLOW_THREADS; | |
107e4716 | 4431 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
ab9bc19b RD |
4432 | |
4433 | wxPy_END_ALLOW_THREADS; | |
4434 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4435 | return _resultobj; |
4436 | } | |
4437 | ||
4438 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 4439 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4440 | PyObject * _resultobj; |
4441 | wxDC * _arg0; | |
2d091820 | 4442 | PyObject * _argo0 = 0; |
107e4716 | 4443 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4444 | |
4445 | self = self; | |
107e4716 | 4446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
70551f47 | 4447 | return NULL; |
2d091820 RD |
4448 | if (_argo0) { |
4449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
4452 | return NULL; | |
4453 | } | |
4454 | } | |
ab9bc19b RD |
4455 | { |
4456 | wxPy_BEGIN_ALLOW_THREADS; | |
4457 | wxDC_Clear(_arg0); | |
4458 | ||
4459 | wxPy_END_ALLOW_THREADS; | |
4460 | } Py_INCREF(Py_None); | |
70551f47 RD |
4461 | _resultobj = Py_None; |
4462 | return _resultobj; | |
4463 | } | |
4464 | ||
4465 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
107e4716 | 4466 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4467 | PyObject * _resultobj; |
4468 | wxDC * _arg0; | |
4469 | long _arg1; | |
4470 | long _arg2; | |
2d091820 | 4471 | PyObject * _argo0 = 0; |
107e4716 | 4472 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
4473 | |
4474 | self = self; | |
107e4716 | 4475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 4476 | return NULL; |
2d091820 RD |
4477 | if (_argo0) { |
4478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
4481 | return NULL; | |
4482 | } | |
4483 | } | |
ab9bc19b RD |
4484 | { |
4485 | wxPy_BEGIN_ALLOW_THREADS; | |
4486 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
4487 | ||
4488 | wxPy_END_ALLOW_THREADS; | |
4489 | } Py_INCREF(Py_None); | |
70551f47 RD |
4490 | _resultobj = Py_None; |
4491 | return _resultobj; | |
4492 | } | |
4493 | ||
4494 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
107e4716 | 4495 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4496 | PyObject * _resultobj; |
4497 | wxDC * _arg0; | |
2d091820 | 4498 | PyObject * _argo0 = 0; |
107e4716 | 4499 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4500 | |
4501 | self = self; | |
107e4716 | 4502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
70551f47 | 4503 | return NULL; |
2d091820 RD |
4504 | if (_argo0) { |
4505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
4508 | return NULL; | |
4509 | } | |
4510 | } | |
ab9bc19b RD |
4511 | { |
4512 | wxPy_BEGIN_ALLOW_THREADS; | |
4513 | wxDC_DestroyClippingRegion(_arg0); | |
4514 | ||
4515 | wxPy_END_ALLOW_THREADS; | |
4516 | } Py_INCREF(Py_None); | |
70551f47 RD |
4517 | _resultobj = Py_None; |
4518 | return _resultobj; | |
4519 | } | |
4520 | ||
4521 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
107e4716 | 4522 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4523 | PyObject * _resultobj; |
4524 | long _result; | |
4525 | wxDC * _arg0; | |
4526 | long _arg1; | |
2d091820 | 4527 | PyObject * _argo0 = 0; |
107e4716 | 4528 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
4529 | |
4530 | self = self; | |
107e4716 | 4531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4532 | return NULL; |
2d091820 RD |
4533 | if (_argo0) { |
4534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
4537 | return NULL; | |
4538 | } | |
4539 | } | |
ab9bc19b RD |
4540 | { |
4541 | wxPy_BEGIN_ALLOW_THREADS; | |
4542 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
4543 | ||
4544 | wxPy_END_ALLOW_THREADS; | |
4545 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
4546 | return _resultobj; |
4547 | } | |
4548 | ||
4549 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
107e4716 | 4550 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4551 | PyObject * _resultobj; |
4552 | long _result; | |
4553 | wxDC * _arg0; | |
4554 | long _arg1; | |
2d091820 | 4555 | PyObject * _argo0 = 0; |
107e4716 | 4556 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
4557 | |
4558 | self = self; | |
107e4716 | 4559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4560 | return NULL; |
2d091820 RD |
4561 | if (_argo0) { |
4562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
4565 | return NULL; | |
4566 | } | |
4567 | } | |
ab9bc19b RD |
4568 | { |
4569 | wxPy_BEGIN_ALLOW_THREADS; | |
4570 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
4571 | ||
4572 | wxPy_END_ALLOW_THREADS; | |
4573 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
4574 | return _resultobj; |
4575 | } | |
4576 | ||
4577 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
107e4716 | 4578 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4579 | PyObject * _resultobj; |
4580 | long _result; | |
4581 | wxDC * _arg0; | |
4582 | long _arg1; | |
2d091820 | 4583 | PyObject * _argo0 = 0; |
107e4716 | 4584 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
4585 | |
4586 | self = self; | |
107e4716 | 4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4588 | return NULL; |
2d091820 RD |
4589 | if (_argo0) { |
4590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
4593 | return NULL; | |
4594 | } | |
4595 | } | |
ab9bc19b RD |
4596 | { |
4597 | wxPy_BEGIN_ALLOW_THREADS; | |
4598 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
4599 | ||
4600 | wxPy_END_ALLOW_THREADS; | |
4601 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
4602 | return _resultobj; |
4603 | } | |
4604 | ||
4605 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
107e4716 | 4606 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4607 | PyObject * _resultobj; |
4608 | long _result; | |
4609 | wxDC * _arg0; | |
4610 | long _arg1; | |
2d091820 | 4611 | PyObject * _argo0 = 0; |
107e4716 | 4612 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
4613 | |
4614 | self = self; | |
107e4716 | 4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4616 | return NULL; |
2d091820 RD |
4617 | if (_argo0) { |
4618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
4621 | return NULL; | |
4622 | } | |
4623 | } | |
ab9bc19b RD |
4624 | { |
4625 | wxPy_BEGIN_ALLOW_THREADS; | |
4626 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
4627 | ||
4628 | wxPy_END_ALLOW_THREADS; | |
4629 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
4630 | return _resultobj; |
4631 | } | |
4632 | ||
4633 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 4634 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4635 | PyObject * _resultobj; |
4636 | wxDC * _arg0; | |
4637 | long _arg1; | |
4638 | long _arg2; | |
4639 | long _arg3; | |
4640 | long _arg4; | |
4641 | long _arg5; | |
4642 | long _arg6; | |
2d091820 | 4643 | PyObject * _argo0 = 0; |
107e4716 | 4644 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
70551f47 RD |
4645 | |
4646 | self = self; | |
107e4716 | 4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 4648 | return NULL; |
2d091820 RD |
4649 | if (_argo0) { |
4650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
4653 | return NULL; | |
4654 | } | |
4655 | } | |
ab9bc19b RD |
4656 | { |
4657 | wxPy_BEGIN_ALLOW_THREADS; | |
4658 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4659 | ||
4660 | wxPy_END_ALLOW_THREADS; | |
4661 | } Py_INCREF(Py_None); | |
70551f47 RD |
4662 | _resultobj = Py_None; |
4663 | return _resultobj; | |
4664 | } | |
4665 | ||
d24a34bb | 4666 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 4667 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4668 | PyObject * _resultobj; |
4669 | wxDC * _arg0; | |
4670 | long _arg1; | |
4671 | long _arg2; | |
4672 | long _arg3; | |
2d091820 | 4673 | PyObject * _argo0 = 0; |
107e4716 | 4674 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
d24a34bb RD |
4675 | |
4676 | self = self; | |
107e4716 | 4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
d24a34bb | 4678 | return NULL; |
2d091820 RD |
4679 | if (_argo0) { |
4680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
4682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
4683 | return NULL; | |
4684 | } | |
4685 | } | |
4686 | { | |
4687 | wxPy_BEGIN_ALLOW_THREADS; | |
4688 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
4689 | ||
4690 | wxPy_END_ALLOW_THREADS; | |
4691 | } Py_INCREF(Py_None); | |
4692 | _resultobj = Py_None; | |
4693 | return _resultobj; | |
4694 | } | |
4695 | ||
70551f47 | 4696 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 4697 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4698 | PyObject * _resultobj; |
4699 | wxDC * _arg0; | |
4700 | long _arg1; | |
4701 | long _arg2; | |
4702 | long _arg3; | |
4703 | long _arg4; | |
2d091820 | 4704 | PyObject * _argo0 = 0; |
107e4716 | 4705 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
4706 | |
4707 | self = self; | |
107e4716 | 4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4709 | return NULL; |
2d091820 RD |
4710 | if (_argo0) { |
4711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
4714 | return NULL; | |
4715 | } | |
4716 | } | |
ab9bc19b RD |
4717 | { |
4718 | wxPy_BEGIN_ALLOW_THREADS; | |
4719 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4720 | ||
4721 | wxPy_END_ALLOW_THREADS; | |
4722 | } Py_INCREF(Py_None); | |
70551f47 RD |
4723 | _resultobj = Py_None; |
4724 | return _resultobj; | |
4725 | } | |
4726 | ||
4727 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 4728 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4729 | PyObject * _resultobj; |
4730 | wxDC * _arg0; | |
4731 | long _arg1; | |
4732 | long _arg2; | |
4733 | long _arg3; | |
4734 | long _arg4; | |
4735 | long _arg5; | |
4736 | long _arg6; | |
2d091820 | 4737 | PyObject * _argo0 = 0; |
107e4716 | 4738 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
70551f47 RD |
4739 | |
4740 | self = self; | |
107e4716 | 4741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 4742 | return NULL; |
2d091820 RD |
4743 | if (_argo0) { |
4744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
4747 | return NULL; | |
4748 | } | |
4749 | } | |
ab9bc19b RD |
4750 | { |
4751 | wxPy_BEGIN_ALLOW_THREADS; | |
4752 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4753 | ||
4754 | wxPy_END_ALLOW_THREADS; | |
4755 | } Py_INCREF(Py_None); | |
70551f47 RD |
4756 | _resultobj = Py_None; |
4757 | return _resultobj; | |
4758 | } | |
4759 | ||
4760 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 4761 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4762 | PyObject * _resultobj; |
4763 | wxDC * _arg0; | |
4764 | wxIcon * _arg1; | |
4765 | long _arg2; | |
4766 | long _arg3; | |
2d091820 RD |
4767 | PyObject * _argo0 = 0; |
4768 | PyObject * _argo1 = 0; | |
107e4716 | 4769 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
70551f47 RD |
4770 | |
4771 | self = self; | |
107e4716 | 4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
70551f47 | 4773 | return NULL; |
2d091820 RD |
4774 | if (_argo0) { |
4775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
4778 | return NULL; | |
4779 | } | |
4780 | } | |
2d091820 RD |
4781 | if (_argo1) { |
4782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
70551f47 RD |
4784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
4785 | return NULL; | |
4786 | } | |
4787 | } | |
ab9bc19b RD |
4788 | { |
4789 | wxPy_BEGIN_ALLOW_THREADS; | |
4790 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
4791 | ||
4792 | wxPy_END_ALLOW_THREADS; | |
4793 | } Py_INCREF(Py_None); | |
70551f47 RD |
4794 | _resultobj = Py_None; |
4795 | return _resultobj; | |
4796 | } | |
4797 | ||
4798 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 4799 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4800 | PyObject * _resultobj; |
4801 | wxDC * _arg0; | |
4802 | long _arg1; | |
4803 | long _arg2; | |
4804 | long _arg3; | |
4805 | long _arg4; | |
2d091820 | 4806 | PyObject * _argo0 = 0; |
107e4716 | 4807 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
70551f47 RD |
4808 | |
4809 | self = self; | |
107e4716 | 4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4811 | return NULL; |
2d091820 RD |
4812 | if (_argo0) { |
4813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
4816 | return NULL; | |
4817 | } | |
4818 | } | |
ab9bc19b RD |
4819 | { |
4820 | wxPy_BEGIN_ALLOW_THREADS; | |
4821 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4822 | ||
4823 | wxPy_END_ALLOW_THREADS; | |
4824 | } Py_INCREF(Py_None); | |
70551f47 RD |
4825 | _resultobj = Py_None; |
4826 | return _resultobj; | |
4827 | } | |
4828 | ||
4829 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 4830 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4831 | PyObject * _resultobj; |
4832 | wxDC * _arg0; | |
4833 | int _arg1; | |
4834 | wxPoint * _arg2; | |
2d091820 RD |
4835 | long _arg3 = (long ) 0; |
4836 | long _arg4 = (long ) 0; | |
4837 | PyObject * _argo0 = 0; | |
1c09ae54 | 4838 | int NPOINTS; |
70551f47 | 4839 | PyObject * _obj2 = 0; |
e02c03a4 | 4840 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
70551f47 RD |
4841 | |
4842 | self = self; | |
107e4716 | 4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
70551f47 | 4844 | return NULL; |
2d091820 RD |
4845 | if (_argo0) { |
4846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
4849 | return NULL; | |
4850 | } | |
4851 | } | |
4852 | if (_obj2) | |
4853 | { | |
1c09ae54 RD |
4854 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
4855 | if (_arg2 == NULL) { | |
4856 | return NULL; | |
4857 | } | |
70551f47 RD |
4858 | } |
4859 | { | |
1c09ae54 | 4860 | _arg1 = NPOINTS; |
70551f47 | 4861 | } |
ab9bc19b RD |
4862 | { |
4863 | wxPy_BEGIN_ALLOW_THREADS; | |
4864 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4865 | ||
4866 | wxPy_END_ALLOW_THREADS; | |
4867 | } Py_INCREF(Py_None); | |
70551f47 RD |
4868 | _resultobj = Py_None; |
4869 | { | |
4870 | delete [] _arg2; | |
4871 | } | |
4872 | return _resultobj; | |
4873 | } | |
4874 | ||
4875 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 4876 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4877 | PyObject * _resultobj; |
4878 | wxDC * _arg0; | |
4879 | int _arg1; | |
4880 | wxPoint * _arg2; | |
2d091820 RD |
4881 | long _arg3 = (long ) 0; |
4882 | long _arg4 = (long ) 0; | |
4883 | int _arg5 = (int ) wxODDEVEN_RULE; | |
4884 | PyObject * _argo0 = 0; | |
1c09ae54 | 4885 | int NPOINTS; |
70551f47 | 4886 | PyObject * _obj2 = 0; |
e02c03a4 | 4887 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
70551f47 RD |
4888 | |
4889 | self = self; | |
107e4716 | 4890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 4891 | return NULL; |
2d091820 RD |
4892 | if (_argo0) { |
4893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
4896 | return NULL; | |
4897 | } | |
4898 | } | |
4899 | if (_obj2) | |
4900 | { | |
1c09ae54 RD |
4901 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
4902 | if (_arg2 == NULL) { | |
4903 | return NULL; | |
4904 | } | |
70551f47 RD |
4905 | } |
4906 | { | |
1c09ae54 | 4907 | _arg1 = NPOINTS; |
70551f47 | 4908 | } |
ab9bc19b RD |
4909 | { |
4910 | wxPy_BEGIN_ALLOW_THREADS; | |
4911 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4912 | ||
4913 | wxPy_END_ALLOW_THREADS; | |
4914 | } Py_INCREF(Py_None); | |
70551f47 RD |
4915 | _resultobj = Py_None; |
4916 | { | |
4917 | delete [] _arg2; | |
4918 | } | |
4919 | return _resultobj; | |
4920 | } | |
4921 | ||
4922 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
107e4716 | 4923 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4924 | PyObject * _resultobj; |
4925 | wxDC * _arg0; | |
4926 | long _arg1; | |
4927 | long _arg2; | |
2d091820 | 4928 | PyObject * _argo0 = 0; |
107e4716 | 4929 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
4930 | |
4931 | self = self; | |
107e4716 | 4932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 4933 | return NULL; |
2d091820 RD |
4934 | if (_argo0) { |
4935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
4938 | return NULL; | |
4939 | } | |
4940 | } | |
ab9bc19b RD |
4941 | { |
4942 | wxPy_BEGIN_ALLOW_THREADS; | |
4943 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
4944 | ||
4945 | wxPy_END_ALLOW_THREADS; | |
4946 | } Py_INCREF(Py_None); | |
70551f47 RD |
4947 | _resultobj = Py_None; |
4948 | return _resultobj; | |
4949 | } | |
4950 | ||
4951 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 4952 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4953 | PyObject * _resultobj; |
4954 | wxDC * _arg0; | |
4955 | long _arg1; | |
4956 | long _arg2; | |
4957 | long _arg3; | |
4958 | long _arg4; | |
2d091820 | 4959 | PyObject * _argo0 = 0; |
107e4716 | 4960 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
4961 | |
4962 | self = self; | |
107e4716 | 4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4964 | return NULL; |
2d091820 RD |
4965 | if (_argo0) { |
4966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
4969 | return NULL; | |
4970 | } | |
4971 | } | |
ab9bc19b RD |
4972 | { |
4973 | wxPy_BEGIN_ALLOW_THREADS; | |
4974 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4975 | ||
4976 | wxPy_END_ALLOW_THREADS; | |
4977 | } Py_INCREF(Py_None); | |
70551f47 RD |
4978 | _resultobj = Py_None; |
4979 | return _resultobj; | |
4980 | } | |
4981 | ||
56f5d962 RD |
4982 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4983 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4984 | PyObject * _resultobj; | |
4985 | wxDC * _arg0; | |
4986 | wxString * _arg1; | |
4987 | wxCoord _arg2; | |
4988 | wxCoord _arg3; | |
4989 | double _arg4; | |
4990 | PyObject * _argo0 = 0; | |
4991 | PyObject * _obj1 = 0; | |
4992 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
4993 | ||
4994 | self = self; | |
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
4996 | return NULL; | |
4997 | if (_argo0) { | |
4998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
5001 | return NULL; | |
5002 | } | |
5003 | } | |
5004 | { | |
2cd2fac8 RD |
5005 | #if PYTHON_API_VERSION >= 1009 |
5006 | char* tmpPtr; int tmpSize; | |
5007 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5009 | return NULL; |
5010 | } | |
5011 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5012 | return NULL; | |
5013 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5014 | #else | |
56f5d962 RD |
5015 | if (!PyString_Check(_obj1)) { |
5016 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5017 | return NULL; | |
5018 | } | |
2cd2fac8 RD |
5019 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5020 | #endif | |
56f5d962 RD |
5021 | } |
5022 | { | |
5023 | wxPy_BEGIN_ALLOW_THREADS; | |
5024 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
5025 | ||
5026 | wxPy_END_ALLOW_THREADS; | |
5027 | } Py_INCREF(Py_None); | |
5028 | _resultobj = Py_None; | |
5029 | { | |
5030 | if (_obj1) | |
5031 | delete _arg1; | |
5032 | } | |
5033 | return _resultobj; | |
5034 | } | |
5035 | ||
70551f47 | 5036 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 5037 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5038 | PyObject * _resultobj; |
5039 | wxDC * _arg0; | |
5040 | long _arg1; | |
5041 | long _arg2; | |
5042 | long _arg3; | |
5043 | long _arg4; | |
2d091820 RD |
5044 | long _arg5 = (long ) 20; |
5045 | PyObject * _argo0 = 0; | |
107e4716 | 5046 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
70551f47 RD |
5047 | |
5048 | self = self; | |
107e4716 | 5049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 5050 | return NULL; |
2d091820 RD |
5051 | if (_argo0) { |
5052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
5055 | return NULL; | |
5056 | } | |
5057 | } | |
ab9bc19b RD |
5058 | { |
5059 | wxPy_BEGIN_ALLOW_THREADS; | |
5060 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5061 | ||
5062 | wxPy_END_ALLOW_THREADS; | |
5063 | } Py_INCREF(Py_None); | |
70551f47 RD |
5064 | _resultobj = Py_None; |
5065 | return _resultobj; | |
5066 | } | |
5067 | ||
5068 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
107e4716 | 5069 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5070 | PyObject * _resultobj; |
5071 | wxDC * _arg0; | |
5072 | int _arg1; | |
5073 | wxPoint * _arg2; | |
2d091820 | 5074 | PyObject * _argo0 = 0; |
1c09ae54 | 5075 | int NPOINTS; |
70551f47 | 5076 | PyObject * _obj2 = 0; |
e02c03a4 | 5077 | char *_kwnames[] = { "self","points", NULL }; |
70551f47 RD |
5078 | |
5079 | self = self; | |
107e4716 | 5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
70551f47 | 5081 | return NULL; |
2d091820 RD |
5082 | if (_argo0) { |
5083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
5086 | return NULL; | |
5087 | } | |
5088 | } | |
5089 | if (_obj2) | |
5090 | { | |
1c09ae54 RD |
5091 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
5092 | if (_arg2 == NULL) { | |
5093 | return NULL; | |
5094 | } | |
70551f47 RD |
5095 | } |
5096 | { | |
1c09ae54 | 5097 | _arg1 = NPOINTS; |
70551f47 | 5098 | } |
ab9bc19b RD |
5099 | { |
5100 | wxPy_BEGIN_ALLOW_THREADS; | |
5101 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
5102 | ||
5103 | wxPy_END_ALLOW_THREADS; | |
5104 | } Py_INCREF(Py_None); | |
70551f47 RD |
5105 | _resultobj = Py_None; |
5106 | { | |
5107 | delete [] _arg2; | |
5108 | } | |
5109 | return _resultobj; | |
5110 | } | |
5111 | ||
5112 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 5113 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5114 | PyObject * _resultobj; |
5115 | wxDC * _arg0; | |
5116 | wxString * _arg1; | |
5117 | long _arg2; | |
5118 | long _arg3; | |
2d091820 | 5119 | PyObject * _argo0 = 0; |
70551f47 | 5120 | PyObject * _obj1 = 0; |
107e4716 | 5121 | char *_kwnames[] = { "self","text","x","y", NULL }; |
70551f47 RD |
5122 | |
5123 | self = self; | |
107e4716 | 5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
70551f47 | 5125 | return NULL; |
2d091820 RD |
5126 | if (_argo0) { |
5127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
5130 | return NULL; | |
5131 | } | |
5132 | } | |
5133 | { | |
2cd2fac8 RD |
5134 | #if PYTHON_API_VERSION >= 1009 |
5135 | char* tmpPtr; int tmpSize; | |
5136 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5137 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5138 | return NULL; |
5139 | } | |
5140 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5141 | return NULL; | |
5142 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5143 | #else | |
70551f47 RD |
5144 | if (!PyString_Check(_obj1)) { |
5145 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5146 | return NULL; | |
5147 | } | |
2cd2fac8 RD |
5148 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5149 | #endif | |
70551f47 | 5150 | } |
ab9bc19b RD |
5151 | { |
5152 | wxPy_BEGIN_ALLOW_THREADS; | |
5153 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
5154 | ||
5155 | wxPy_END_ALLOW_THREADS; | |
5156 | } Py_INCREF(Py_None); | |
70551f47 RD |
5157 | _resultobj = Py_None; |
5158 | { | |
5159 | if (_obj1) | |
5160 | delete _arg1; | |
5161 | } | |
5162 | return _resultobj; | |
5163 | } | |
5164 | ||
5165 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
107e4716 | 5166 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5167 | PyObject * _resultobj; |
5168 | wxDC * _arg0; | |
2d091820 | 5169 | PyObject * _argo0 = 0; |
107e4716 | 5170 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5171 | |
5172 | self = self; | |
107e4716 | 5173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
70551f47 | 5174 | return NULL; |
2d091820 RD |
5175 | if (_argo0) { |
5176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
5179 | return NULL; | |
5180 | } | |
5181 | } | |
ab9bc19b RD |
5182 | { |
5183 | wxPy_BEGIN_ALLOW_THREADS; | |
5184 | wxDC_EndDoc(_arg0); | |
5185 | ||
5186 | wxPy_END_ALLOW_THREADS; | |
5187 | } Py_INCREF(Py_None); | |
70551f47 RD |
5188 | _resultobj = Py_None; |
5189 | return _resultobj; | |
5190 | } | |
5191 | ||
5192 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
107e4716 | 5193 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5194 | PyObject * _resultobj; |
5195 | wxDC * _arg0; | |
2d091820 | 5196 | PyObject * _argo0 = 0; |
107e4716 | 5197 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5198 | |
5199 | self = self; | |
107e4716 | 5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
70551f47 | 5201 | return NULL; |
2d091820 RD |
5202 | if (_argo0) { |
5203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
5206 | return NULL; | |
5207 | } | |
5208 | } | |
ab9bc19b RD |
5209 | { |
5210 | wxPy_BEGIN_ALLOW_THREADS; | |
5211 | wxDC_EndDrawing(_arg0); | |
5212 | ||
5213 | wxPy_END_ALLOW_THREADS; | |
5214 | } Py_INCREF(Py_None); | |
70551f47 RD |
5215 | _resultobj = Py_None; |
5216 | return _resultobj; | |
5217 | } | |
5218 | ||
5219 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
107e4716 | 5220 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5221 | PyObject * _resultobj; |
5222 | wxDC * _arg0; | |
2d091820 | 5223 | PyObject * _argo0 = 0; |
107e4716 | 5224 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5225 | |
5226 | self = self; | |
107e4716 | 5227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
70551f47 | 5228 | return NULL; |
2d091820 RD |
5229 | if (_argo0) { |
5230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
5233 | return NULL; | |
5234 | } | |
5235 | } | |
ab9bc19b RD |
5236 | { |
5237 | wxPy_BEGIN_ALLOW_THREADS; | |
5238 | wxDC_EndPage(_arg0); | |
5239 | ||
5240 | wxPy_END_ALLOW_THREADS; | |
5241 | } Py_INCREF(Py_None); | |
70551f47 RD |
5242 | _resultobj = Py_None; |
5243 | return _resultobj; | |
5244 | } | |
5245 | ||
5246 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5247 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5248 | PyObject * _resultobj; |
5249 | wxDC * _arg0; | |
5250 | long _arg1; | |
5251 | long _arg2; | |
5252 | wxColour * _arg3; | |
2d091820 RD |
5253 | int _arg4 = (int ) wxFLOOD_SURFACE; |
5254 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
5255 | wxColour temp; |
5256 | PyObject * _obj3 = 0; | |
107e4716 | 5257 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
70551f47 RD |
5258 | |
5259 | self = self; | |
f6bcfd97 | 5260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
70551f47 | 5261 | return NULL; |
2d091820 RD |
5262 | if (_argo0) { |
5263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
5266 | return NULL; | |
5267 | } | |
5268 | } | |
f6bcfd97 BP |
5269 | { |
5270 | _arg3 = &temp; | |
5271 | if (! wxColour_helper(_obj3, &_arg3)) | |
70551f47 | 5272 | return NULL; |
f6bcfd97 | 5273 | } |
ab9bc19b RD |
5274 | { |
5275 | wxPy_BEGIN_ALLOW_THREADS; | |
5276 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
5277 | ||
5278 | wxPy_END_ALLOW_THREADS; | |
5279 | } Py_INCREF(Py_None); | |
70551f47 RD |
5280 | _resultobj = Py_None; |
5281 | return _resultobj; | |
5282 | } | |
5283 | ||
5284 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
107e4716 | 5285 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5286 | PyObject * _resultobj; |
5287 | wxBrush * _result; | |
5288 | wxDC * _arg0; | |
2d091820 | 5289 | PyObject * _argo0 = 0; |
107e4716 | 5290 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5291 | char _ptemp[128]; |
5292 | ||
5293 | self = self; | |
107e4716 | 5294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
70551f47 | 5295 | return NULL; |
2d091820 RD |
5296 | if (_argo0) { |
5297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
5300 | return NULL; | |
5301 | } | |
5302 | } | |
ab9bc19b RD |
5303 | { |
5304 | wxPy_BEGIN_ALLOW_THREADS; | |
5305 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
c95e68d8 | 5306 | _result = (wxBrush *) &_result_ref; |
ab9bc19b RD |
5307 | |
5308 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5309 | } if (_result) { |
5310 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5311 | _resultobj = Py_BuildValue("s",_ptemp); | |
5312 | } else { | |
5313 | Py_INCREF(Py_None); | |
5314 | _resultobj = Py_None; | |
5315 | } | |
70551f47 RD |
5316 | return _resultobj; |
5317 | } | |
5318 | ||
5319 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
107e4716 | 5320 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5321 | PyObject * _resultobj; |
5322 | wxBrush * _result; | |
5323 | wxDC * _arg0; | |
2d091820 | 5324 | PyObject * _argo0 = 0; |
107e4716 | 5325 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5326 | char _ptemp[128]; |
5327 | ||
5328 | self = self; | |
107e4716 | 5329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
70551f47 | 5330 | return NULL; |
2d091820 RD |
5331 | if (_argo0) { |
5332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
5335 | return NULL; | |
5336 | } | |
5337 | } | |
ab9bc19b RD |
5338 | { |
5339 | wxPy_BEGIN_ALLOW_THREADS; | |
5340 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
c95e68d8 | 5341 | _result = (wxBrush *) &_result_ref; |
ab9bc19b RD |
5342 | |
5343 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5344 | } if (_result) { |
5345 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5346 | _resultobj = Py_BuildValue("s",_ptemp); | |
5347 | } else { | |
5348 | Py_INCREF(Py_None); | |
5349 | _resultobj = Py_None; | |
5350 | } | |
70551f47 RD |
5351 | return _resultobj; |
5352 | } | |
5353 | ||
5354 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
107e4716 | 5355 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5356 | PyObject * _resultobj; |
5357 | long _result; | |
5358 | wxDC * _arg0; | |
2d091820 | 5359 | PyObject * _argo0 = 0; |
107e4716 | 5360 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5361 | |
5362 | self = self; | |
107e4716 | 5363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
70551f47 | 5364 | return NULL; |
2d091820 RD |
5365 | if (_argo0) { |
5366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
5369 | return NULL; | |
5370 | } | |
5371 | } | |
ab9bc19b RD |
5372 | { |
5373 | wxPy_BEGIN_ALLOW_THREADS; | |
5374 | _result = (long )wxDC_GetCharHeight(_arg0); | |
5375 | ||
5376 | wxPy_END_ALLOW_THREADS; | |
5377 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5378 | return _resultobj; |
5379 | } | |
5380 | ||
5381 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
107e4716 | 5382 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5383 | PyObject * _resultobj; |
5384 | long _result; | |
5385 | wxDC * _arg0; | |
2d091820 | 5386 | PyObject * _argo0 = 0; |
107e4716 | 5387 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5388 | |
5389 | self = self; | |
107e4716 | 5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
70551f47 | 5391 | return NULL; |
2d091820 RD |
5392 | if (_argo0) { |
5393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
5396 | return NULL; | |
5397 | } | |
5398 | } | |
ab9bc19b RD |
5399 | { |
5400 | wxPy_BEGIN_ALLOW_THREADS; | |
5401 | _result = (long )wxDC_GetCharWidth(_arg0); | |
5402 | ||
5403 | wxPy_END_ALLOW_THREADS; | |
5404 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5405 | return _resultobj; |
5406 | } | |
5407 | ||
5408 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5409 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5410 | PyObject * _resultobj; |
5411 | wxDC * _arg0; | |
5412 | long * _arg1; | |
5413 | long temp; | |
5414 | long * _arg2; | |
5415 | long temp0; | |
5416 | long * _arg3; | |
5417 | long temp1; | |
5418 | long * _arg4; | |
5419 | long temp2; | |
2d091820 | 5420 | PyObject * _argo0 = 0; |
107e4716 | 5421 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5422 | |
5423 | self = self; | |
5424 | { | |
5425 | _arg1 = &temp; | |
5426 | } | |
5427 | { | |
5428 | _arg2 = &temp0; | |
5429 | } | |
5430 | { | |
5431 | _arg3 = &temp1; | |
5432 | } | |
5433 | { | |
5434 | _arg4 = &temp2; | |
5435 | } | |
107e4716 | 5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
70551f47 | 5437 | return NULL; |
2d091820 RD |
5438 | if (_argo0) { |
5439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
5442 | return NULL; | |
5443 | } | |
5444 | } | |
ab9bc19b RD |
5445 | { |
5446 | wxPy_BEGIN_ALLOW_THREADS; | |
5447 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5448 | ||
5449 | wxPy_END_ALLOW_THREADS; | |
5450 | } Py_INCREF(Py_None); | |
70551f47 RD |
5451 | _resultobj = Py_None; |
5452 | { | |
5453 | PyObject *o; | |
5454 | o = PyInt_FromLong((long) (*_arg1)); | |
5455 | _resultobj = t_output_helper(_resultobj, o); | |
5456 | } | |
5457 | { | |
5458 | PyObject *o; | |
5459 | o = PyInt_FromLong((long) (*_arg2)); | |
5460 | _resultobj = t_output_helper(_resultobj, o); | |
5461 | } | |
5462 | { | |
5463 | PyObject *o; | |
5464 | o = PyInt_FromLong((long) (*_arg3)); | |
5465 | _resultobj = t_output_helper(_resultobj, o); | |
5466 | } | |
5467 | { | |
5468 | PyObject *o; | |
5469 | o = PyInt_FromLong((long) (*_arg4)); | |
5470 | _resultobj = t_output_helper(_resultobj, o); | |
5471 | } | |
5472 | return _resultobj; | |
5473 | } | |
5474 | ||
5475 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
107e4716 | 5476 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5477 | PyObject * _resultobj; |
5478 | wxFont * _result; | |
5479 | wxDC * _arg0; | |
2d091820 | 5480 | PyObject * _argo0 = 0; |
107e4716 | 5481 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5482 | char _ptemp[128]; |
5483 | ||
5484 | self = self; | |
107e4716 | 5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
70551f47 | 5486 | return NULL; |
2d091820 RD |
5487 | if (_argo0) { |
5488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
5491 | return NULL; | |
5492 | } | |
5493 | } | |
ab9bc19b RD |
5494 | { |
5495 | wxPy_BEGIN_ALLOW_THREADS; | |
5496 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
c95e68d8 | 5497 | _result = (wxFont *) &_result_ref; |
ab9bc19b RD |
5498 | |
5499 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5500 | } if (_result) { |
5501 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5502 | _resultobj = Py_BuildValue("s",_ptemp); | |
5503 | } else { | |
5504 | Py_INCREF(Py_None); | |
5505 | _resultobj = Py_None; | |
5506 | } | |
70551f47 RD |
5507 | return _resultobj; |
5508 | } | |
5509 | ||
5510 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
107e4716 | 5511 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5512 | PyObject * _resultobj; |
5513 | int _result; | |
5514 | wxDC * _arg0; | |
2d091820 | 5515 | PyObject * _argo0 = 0; |
107e4716 | 5516 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5517 | |
5518 | self = self; | |
107e4716 | 5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
70551f47 | 5520 | return NULL; |
2d091820 RD |
5521 | if (_argo0) { |
5522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
5525 | return NULL; | |
5526 | } | |
5527 | } | |
ab9bc19b RD |
5528 | { |
5529 | wxPy_BEGIN_ALLOW_THREADS; | |
5530 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
5531 | ||
5532 | wxPy_END_ALLOW_THREADS; | |
5533 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5534 | return _resultobj; |
5535 | } | |
5536 | ||
e02c03a4 RD |
5537 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
5538 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject * _resultobj; | |
5540 | wxDC * _arg0; | |
5541 | double * _arg1; | |
5542 | double temp; | |
5543 | double * _arg2; | |
5544 | double temp0; | |
5545 | PyObject * _argo0 = 0; | |
5546 | char *_kwnames[] = { "self", NULL }; | |
5547 | ||
5548 | self = self; | |
5549 | { | |
5550 | _arg1 = &temp; | |
5551 | } | |
5552 | { | |
5553 | _arg2 = &temp0; | |
5554 | } | |
5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
5556 | return NULL; | |
5557 | if (_argo0) { | |
5558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
5561 | return NULL; | |
5562 | } | |
5563 | } | |
5564 | { | |
5565 | wxPy_BEGIN_ALLOW_THREADS; | |
5566 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
5567 | ||
5568 | wxPy_END_ALLOW_THREADS; | |
5569 | } Py_INCREF(Py_None); | |
5570 | _resultobj = Py_None; | |
5571 | { | |
5572 | PyObject *o; | |
5573 | o = PyFloat_FromDouble((double) (*_arg1)); | |
5574 | _resultobj = t_output_helper(_resultobj, o); | |
5575 | } | |
5576 | { | |
5577 | PyObject *o; | |
5578 | o = PyFloat_FromDouble((double) (*_arg2)); | |
5579 | _resultobj = t_output_helper(_resultobj, o); | |
5580 | } | |
5581 | return _resultobj; | |
5582 | } | |
5583 | ||
70551f47 | 5584 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
107e4716 | 5585 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5586 | PyObject * _resultobj; |
5587 | int _result; | |
5588 | wxDC * _arg0; | |
2d091820 | 5589 | PyObject * _argo0 = 0; |
107e4716 | 5590 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5591 | |
5592 | self = self; | |
107e4716 | 5593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
70551f47 | 5594 | return NULL; |
2d091820 RD |
5595 | if (_argo0) { |
5596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
5599 | return NULL; | |
5600 | } | |
5601 | } | |
ab9bc19b RD |
5602 | { |
5603 | wxPy_BEGIN_ALLOW_THREADS; | |
5604 | _result = (int )wxDC_GetMapMode(_arg0); | |
5605 | ||
5606 | wxPy_END_ALLOW_THREADS; | |
5607 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5608 | return _resultobj; |
5609 | } | |
5610 | ||
5611 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
107e4716 | 5612 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5613 | PyObject * _resultobj; |
5614 | bool _result; | |
5615 | wxDC * _arg0; | |
2d091820 | 5616 | PyObject * _argo0 = 0; |
107e4716 | 5617 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5618 | |
5619 | self = self; | |
107e4716 | 5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
70551f47 | 5621 | return NULL; |
2d091820 RD |
5622 | if (_argo0) { |
5623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
5626 | return NULL; | |
5627 | } | |
5628 | } | |
ab9bc19b RD |
5629 | { |
5630 | wxPy_BEGIN_ALLOW_THREADS; | |
5631 | _result = (bool )wxDC_GetOptimization(_arg0); | |
5632 | ||
5633 | wxPy_END_ALLOW_THREADS; | |
5634 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5635 | return _resultobj; |
5636 | } | |
5637 | ||
5638 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
107e4716 | 5639 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5640 | PyObject * _resultobj; |
5641 | wxPen * _result; | |
5642 | wxDC * _arg0; | |
2d091820 | 5643 | PyObject * _argo0 = 0; |
107e4716 | 5644 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5645 | char _ptemp[128]; |
5646 | ||
5647 | self = self; | |
107e4716 | 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
70551f47 | 5649 | return NULL; |
2d091820 RD |
5650 | if (_argo0) { |
5651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
ab9bc19b RD |
5657 | { |
5658 | wxPy_BEGIN_ALLOW_THREADS; | |
5659 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
c95e68d8 | 5660 | _result = (wxPen *) &_result_ref; |
ab9bc19b RD |
5661 | |
5662 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5663 | } if (_result) { |
5664 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5665 | _resultobj = Py_BuildValue("s",_ptemp); | |
5666 | } else { | |
5667 | Py_INCREF(Py_None); | |
5668 | _resultobj = Py_None; | |
5669 | } | |
70551f47 RD |
5670 | return _resultobj; |
5671 | } | |
5672 | ||
5673 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
5674 | wxColour* wc = new wxColour(); | |
5675 | self->GetPixel(x, y, wc); | |
5676 | return wc; | |
5677 | } | |
107e4716 | 5678 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5679 | PyObject * _resultobj; |
5680 | wxColour * _result; | |
5681 | wxDC * _arg0; | |
5682 | long _arg1; | |
5683 | long _arg2; | |
2d091820 | 5684 | PyObject * _argo0 = 0; |
107e4716 | 5685 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
5686 | char _ptemp[128]; |
5687 | ||
5688 | self = self; | |
107e4716 | 5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5690 | return NULL; |
2d091820 RD |
5691 | if (_argo0) { |
5692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
5695 | return NULL; | |
5696 | } | |
5697 | } | |
ab9bc19b RD |
5698 | { |
5699 | wxPy_BEGIN_ALLOW_THREADS; | |
5700 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
5701 | ||
5702 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5703 | } if (_result) { |
5704 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5705 | _resultobj = Py_BuildValue("s",_ptemp); | |
5706 | } else { | |
5707 | Py_INCREF(Py_None); | |
5708 | _resultobj = Py_None; | |
5709 | } | |
70551f47 RD |
5710 | return _resultobj; |
5711 | } | |
5712 | ||
d24a34bb | 5713 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
107e4716 | 5714 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5715 | PyObject * _resultobj; |
5716 | wxDC * _arg0; | |
5717 | int * _arg1; | |
5718 | int temp; | |
5719 | int * _arg2; | |
5720 | int temp0; | |
2d091820 | 5721 | PyObject * _argo0 = 0; |
107e4716 | 5722 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5723 | |
5724 | self = self; | |
5725 | { | |
5726 | _arg1 = &temp; | |
5727 | } | |
5728 | { | |
5729 | _arg2 = &temp0; | |
5730 | } | |
107e4716 | 5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
70551f47 | 5732 | return NULL; |
2d091820 RD |
5733 | if (_argo0) { |
5734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb | 5736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
70551f47 RD |
5737 | return NULL; |
5738 | } | |
5739 | } | |
ab9bc19b RD |
5740 | { |
5741 | wxPy_BEGIN_ALLOW_THREADS; | |
d24a34bb | 5742 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
ab9bc19b RD |
5743 | |
5744 | wxPy_END_ALLOW_THREADS; | |
5745 | } Py_INCREF(Py_None); | |
70551f47 RD |
5746 | _resultobj = Py_None; |
5747 | { | |
5748 | PyObject *o; | |
5749 | o = PyInt_FromLong((long) (*_arg1)); | |
5750 | _resultobj = t_output_helper(_resultobj, o); | |
5751 | } | |
5752 | { | |
5753 | PyObject *o; | |
5754 | o = PyInt_FromLong((long) (*_arg2)); | |
5755 | _resultobj = t_output_helper(_resultobj, o); | |
5756 | } | |
5757 | return _resultobj; | |
5758 | } | |
5759 | ||
d24a34bb | 5760 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
107e4716 | 5761 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
5762 | PyObject * _resultobj; |
5763 | wxSize * _result; | |
5764 | wxDC * _arg0; | |
2d091820 | 5765 | PyObject * _argo0 = 0; |
107e4716 | 5766 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5767 | char _ptemp[128]; |
5768 | ||
5769 | self = self; | |
107e4716 | 5770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
d24a34bb | 5771 | return NULL; |
2d091820 RD |
5772 | if (_argo0) { |
5773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
5775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
5776 | return NULL; | |
5777 | } | |
5778 | } | |
5779 | { | |
5780 | wxPy_BEGIN_ALLOW_THREADS; | |
5781 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
5782 | ||
5783 | wxPy_END_ALLOW_THREADS; | |
5784 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5785 | _resultobj = Py_BuildValue("s",_ptemp); | |
5786 | return _resultobj; | |
5787 | } | |
5788 | ||
e02c03a4 RD |
5789 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
5790 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5791 | PyObject * _resultobj; | |
5792 | wxSize * _result; | |
5793 | wxDC * _arg0; | |
5794 | PyObject * _argo0 = 0; | |
5795 | char *_kwnames[] = { "self", NULL }; | |
5796 | char _ptemp[128]; | |
5797 | ||
5798 | self = self; | |
5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
5800 | return NULL; | |
5801 | if (_argo0) { | |
5802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
5805 | return NULL; | |
5806 | } | |
5807 | } | |
5808 | { | |
5809 | wxPy_BEGIN_ALLOW_THREADS; | |
5810 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
5811 | ||
5812 | wxPy_END_ALLOW_THREADS; | |
5813 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5814 | _resultobj = Py_BuildValue("s",_ptemp); | |
5815 | return _resultobj; | |
5816 | } | |
5817 | ||
70551f47 | 5818 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
107e4716 | 5819 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5820 | PyObject * _resultobj; |
5821 | wxColour * _result; | |
5822 | wxDC * _arg0; | |
2d091820 | 5823 | PyObject * _argo0 = 0; |
107e4716 | 5824 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5825 | char _ptemp[128]; |
5826 | ||
5827 | self = self; | |
107e4716 | 5828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
70551f47 | 5829 | return NULL; |
2d091820 RD |
5830 | if (_argo0) { |
5831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
5834 | return NULL; | |
5835 | } | |
5836 | } | |
ab9bc19b RD |
5837 | { |
5838 | wxPy_BEGIN_ALLOW_THREADS; | |
5839 | wxColour & _result_ref = wxDC_GetTextBackground(_arg0); | |
70551f47 | 5840 | _result = (wxColour *) &_result_ref; |
ab9bc19b RD |
5841 | |
5842 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5843 | } if (_result) { |
5844 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5845 | _resultobj = Py_BuildValue("s",_ptemp); | |
5846 | } else { | |
5847 | Py_INCREF(Py_None); | |
5848 | _resultobj = Py_None; | |
5849 | } | |
70551f47 RD |
5850 | return _resultobj; |
5851 | } | |
5852 | ||
21f8d7ea | 5853 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 5854 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
5855 | PyObject * _resultobj; |
5856 | wxDC * _arg0; | |
5857 | wxString * _arg1; | |
5858 | long * _arg2; | |
5859 | long temp; | |
5860 | long * _arg3; | |
5861 | long temp0; | |
2d091820 | 5862 | PyObject * _argo0 = 0; |
21f8d7ea | 5863 | PyObject * _obj1 = 0; |
107e4716 | 5864 | char *_kwnames[] = { "self","string", NULL }; |
21f8d7ea RD |
5865 | |
5866 | self = self; | |
5867 | { | |
5868 | _arg2 = &temp; | |
5869 | } | |
5870 | { | |
5871 | _arg3 = &temp0; | |
5872 | } | |
107e4716 | 5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 5874 | return NULL; |
2d091820 RD |
5875 | if (_argo0) { |
5876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea RD |
5878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
5879 | return NULL; | |
5880 | } | |
5881 | } | |
5882 | { | |
2cd2fac8 RD |
5883 | #if PYTHON_API_VERSION >= 1009 |
5884 | char* tmpPtr; int tmpSize; | |
5885 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5886 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5887 | return NULL; |
5888 | } | |
5889 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5890 | return NULL; | |
5891 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5892 | #else | |
21f8d7ea RD |
5893 | if (!PyString_Check(_obj1)) { |
5894 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5895 | return NULL; | |
5896 | } | |
2cd2fac8 RD |
5897 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5898 | #endif | |
21f8d7ea | 5899 | } |
ab9bc19b RD |
5900 | { |
5901 | wxPy_BEGIN_ALLOW_THREADS; | |
5902 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
5903 | ||
5904 | wxPy_END_ALLOW_THREADS; | |
5905 | } Py_INCREF(Py_None); | |
21f8d7ea RD |
5906 | _resultobj = Py_None; |
5907 | { | |
5908 | PyObject *o; | |
5909 | o = PyInt_FromLong((long) (*_arg2)); | |
5910 | _resultobj = t_output_helper(_resultobj, o); | |
5911 | } | |
5912 | { | |
5913 | PyObject *o; | |
5914 | o = PyInt_FromLong((long) (*_arg3)); | |
5915 | _resultobj = t_output_helper(_resultobj, o); | |
5916 | } | |
5917 | { | |
5918 | if (_obj1) | |
5919 | delete _arg1; | |
5920 | } | |
5921 | return _resultobj; | |
5922 | } | |
5923 | ||
5924 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 5925 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5926 | PyObject * _resultobj; |
5927 | wxDC * _arg0; | |
5928 | wxString * _arg1; | |
5929 | long * _arg2; | |
5930 | long temp; | |
5931 | long * _arg3; | |
5932 | long temp0; | |
5933 | long * _arg4; | |
5934 | long temp1; | |
5935 | long * _arg5; | |
5936 | long temp2; | |
2d091820 RD |
5937 | wxFont * _arg6 = (wxFont *) NULL; |
5938 | PyObject * _argo0 = 0; | |
70551f47 | 5939 | PyObject * _obj1 = 0; |
2d091820 | 5940 | PyObject * _argo6 = 0; |
107e4716 | 5941 | char *_kwnames[] = { "self","string","font", NULL }; |
70551f47 RD |
5942 | |
5943 | self = self; | |
5944 | { | |
5945 | _arg2 = &temp; | |
5946 | } | |
5947 | { | |
5948 | _arg3 = &temp0; | |
5949 | } | |
5950 | { | |
5951 | _arg4 = &temp1; | |
5952 | } | |
5953 | { | |
5954 | _arg5 = &temp2; | |
5955 | } | |
107e4716 | 5956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
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")) { | |
21f8d7ea | 5961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
70551f47 RD |
5962 | return NULL; |
5963 | } | |
5964 | } | |
5965 | { | |
2cd2fac8 RD |
5966 | #if PYTHON_API_VERSION >= 1009 |
5967 | char* tmpPtr; int tmpSize; | |
5968 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5969 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5970 | return NULL; |
5971 | } | |
5972 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5973 | return NULL; | |
5974 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5975 | #else | |
70551f47 RD |
5976 | if (!PyString_Check(_obj1)) { |
5977 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5978 | return NULL; | |
5979 | } | |
2cd2fac8 RD |
5980 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5981 | #endif | |
70551f47 | 5982 | } |
2d091820 RD |
5983 | if (_argo6) { |
5984 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5985 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
21f8d7ea RD |
5986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
5987 | return NULL; | |
5988 | } | |
5989 | } | |
ab9bc19b RD |
5990 | { |
5991 | wxPy_BEGIN_ALLOW_THREADS; | |
5992 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5993 | ||
5994 | wxPy_END_ALLOW_THREADS; | |
5995 | } Py_INCREF(Py_None); | |
70551f47 RD |
5996 | _resultobj = Py_None; |
5997 | { | |
5998 | PyObject *o; | |
5999 | o = PyInt_FromLong((long) (*_arg2)); | |
6000 | _resultobj = t_output_helper(_resultobj, o); | |
6001 | } | |
6002 | { | |
6003 | PyObject *o; | |
6004 | o = PyInt_FromLong((long) (*_arg3)); | |
6005 | _resultobj = t_output_helper(_resultobj, o); | |
6006 | } | |
6007 | { | |
6008 | PyObject *o; | |
6009 | o = PyInt_FromLong((long) (*_arg4)); | |
6010 | _resultobj = t_output_helper(_resultobj, o); | |
6011 | } | |
6012 | { | |
6013 | PyObject *o; | |
6014 | o = PyInt_FromLong((long) (*_arg5)); | |
6015 | _resultobj = t_output_helper(_resultobj, o); | |
6016 | } | |
6017 | { | |
6018 | if (_obj1) | |
6019 | delete _arg1; | |
6020 | } | |
6021 | return _resultobj; | |
6022 | } | |
6023 | ||
6024 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
107e4716 | 6025 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6026 | PyObject * _resultobj; |
6027 | wxColour * _result; | |
6028 | wxDC * _arg0; | |
2d091820 | 6029 | PyObject * _argo0 = 0; |
107e4716 | 6030 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6031 | char _ptemp[128]; |
6032 | ||
6033 | self = self; | |
107e4716 | 6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
70551f47 | 6035 | return NULL; |
2d091820 RD |
6036 | if (_argo0) { |
6037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
6040 | return NULL; | |
6041 | } | |
6042 | } | |
ab9bc19b RD |
6043 | { |
6044 | wxPy_BEGIN_ALLOW_THREADS; | |
6045 | wxColour & _result_ref = wxDC_GetTextForeground(_arg0); | |
70551f47 | 6046 | _result = (wxColour *) &_result_ref; |
ab9bc19b RD |
6047 | |
6048 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6049 | } if (_result) { |
6050 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6051 | _resultobj = Py_BuildValue("s",_ptemp); | |
6052 | } else { | |
6053 | Py_INCREF(Py_None); | |
6054 | _resultobj = Py_None; | |
6055 | } | |
70551f47 RD |
6056 | return _resultobj; |
6057 | } | |
6058 | ||
e02c03a4 RD |
6059 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
6060 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6061 | PyObject * _resultobj; | |
6062 | wxDC * _arg0; | |
6063 | double * _arg1; | |
6064 | double temp; | |
6065 | double * _arg2; | |
6066 | double temp0; | |
6067 | PyObject * _argo0 = 0; | |
6068 | char *_kwnames[] = { "self", NULL }; | |
6069 | ||
6070 | self = self; | |
6071 | { | |
6072 | _arg1 = &temp; | |
6073 | } | |
6074 | { | |
6075 | _arg2 = &temp0; | |
6076 | } | |
6077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
6078 | return NULL; | |
6079 | if (_argo0) { | |
6080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
6083 | return NULL; | |
6084 | } | |
6085 | } | |
6086 | { | |
6087 | wxPy_BEGIN_ALLOW_THREADS; | |
6088 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
6089 | ||
6090 | wxPy_END_ALLOW_THREADS; | |
6091 | } Py_INCREF(Py_None); | |
6092 | _resultobj = Py_None; | |
6093 | { | |
6094 | PyObject *o; | |
6095 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6096 | _resultobj = t_output_helper(_resultobj, o); | |
6097 | } | |
6098 | { | |
6099 | PyObject *o; | |
6100 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6101 | _resultobj = t_output_helper(_resultobj, o); | |
6102 | } | |
6103 | return _resultobj; | |
6104 | } | |
6105 | ||
70551f47 | 6106 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
107e4716 | 6107 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6108 | PyObject * _resultobj; |
6109 | long _result; | |
6110 | wxDC * _arg0; | |
6111 | long _arg1; | |
2d091820 | 6112 | PyObject * _argo0 = 0; |
107e4716 | 6113 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6114 | |
6115 | self = self; | |
107e4716 | 6116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6117 | return NULL; |
2d091820 RD |
6118 | if (_argo0) { |
6119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
6122 | return NULL; | |
6123 | } | |
6124 | } | |
ab9bc19b RD |
6125 | { |
6126 | wxPy_BEGIN_ALLOW_THREADS; | |
6127 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
6128 | ||
6129 | wxPy_END_ALLOW_THREADS; | |
6130 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6131 | return _resultobj; |
6132 | } | |
6133 | ||
6134 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
107e4716 | 6135 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6136 | PyObject * _resultobj; |
6137 | long _result; | |
6138 | wxDC * _arg0; | |
6139 | long _arg1; | |
2d091820 | 6140 | PyObject * _argo0 = 0; |
107e4716 | 6141 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6142 | |
6143 | self = self; | |
107e4716 | 6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6145 | return NULL; |
2d091820 RD |
6146 | if (_argo0) { |
6147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
6150 | return NULL; | |
6151 | } | |
6152 | } | |
ab9bc19b RD |
6153 | { |
6154 | wxPy_BEGIN_ALLOW_THREADS; | |
6155 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
6156 | ||
6157 | wxPy_END_ALLOW_THREADS; | |
6158 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6159 | return _resultobj; |
6160 | } | |
6161 | ||
6162 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
107e4716 | 6163 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6164 | PyObject * _resultobj; |
6165 | long _result; | |
6166 | wxDC * _arg0; | |
6167 | long _arg1; | |
2d091820 | 6168 | PyObject * _argo0 = 0; |
107e4716 | 6169 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6170 | |
6171 | self = self; | |
107e4716 | 6172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6173 | return NULL; |
2d091820 RD |
6174 | if (_argo0) { |
6175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
6178 | return NULL; | |
6179 | } | |
6180 | } | |
ab9bc19b RD |
6181 | { |
6182 | wxPy_BEGIN_ALLOW_THREADS; | |
6183 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
6184 | ||
6185 | wxPy_END_ALLOW_THREADS; | |
6186 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6187 | return _resultobj; |
6188 | } | |
6189 | ||
6190 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
107e4716 | 6191 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6192 | PyObject * _resultobj; |
6193 | long _result; | |
6194 | wxDC * _arg0; | |
6195 | long _arg1; | |
2d091820 | 6196 | PyObject * _argo0 = 0; |
107e4716 | 6197 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6198 | |
6199 | self = self; | |
107e4716 | 6200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6201 | return NULL; |
2d091820 RD |
6202 | if (_argo0) { |
6203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
6206 | return NULL; | |
6207 | } | |
6208 | } | |
ab9bc19b RD |
6209 | { |
6210 | wxPy_BEGIN_ALLOW_THREADS; | |
6211 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
6212 | ||
6213 | wxPy_END_ALLOW_THREADS; | |
6214 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6215 | return _resultobj; |
6216 | } | |
6217 | ||
6218 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
107e4716 | 6219 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6220 | PyObject * _resultobj; |
6221 | long _result; | |
6222 | wxDC * _arg0; | |
2d091820 | 6223 | PyObject * _argo0 = 0; |
107e4716 | 6224 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6225 | |
6226 | self = self; | |
107e4716 | 6227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
70551f47 | 6228 | return NULL; |
2d091820 RD |
6229 | if (_argo0) { |
6230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
6233 | return NULL; | |
6234 | } | |
6235 | } | |
ab9bc19b RD |
6236 | { |
6237 | wxPy_BEGIN_ALLOW_THREADS; | |
6238 | _result = (long )wxDC_MaxX(_arg0); | |
6239 | ||
6240 | wxPy_END_ALLOW_THREADS; | |
6241 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6242 | return _resultobj; |
6243 | } | |
6244 | ||
6245 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
107e4716 | 6246 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6247 | PyObject * _resultobj; |
6248 | long _result; | |
6249 | wxDC * _arg0; | |
2d091820 | 6250 | PyObject * _argo0 = 0; |
107e4716 | 6251 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6252 | |
6253 | self = self; | |
107e4716 | 6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
70551f47 | 6255 | return NULL; |
2d091820 RD |
6256 | if (_argo0) { |
6257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
6260 | return NULL; | |
6261 | } | |
6262 | } | |
ab9bc19b RD |
6263 | { |
6264 | wxPy_BEGIN_ALLOW_THREADS; | |
6265 | _result = (long )wxDC_MaxY(_arg0); | |
6266 | ||
6267 | wxPy_END_ALLOW_THREADS; | |
6268 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6269 | return _resultobj; |
6270 | } | |
6271 | ||
6272 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
107e4716 | 6273 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6274 | PyObject * _resultobj; |
6275 | long _result; | |
6276 | wxDC * _arg0; | |
2d091820 | 6277 | PyObject * _argo0 = 0; |
107e4716 | 6278 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6279 | |
6280 | self = self; | |
107e4716 | 6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
70551f47 | 6282 | return NULL; |
2d091820 RD |
6283 | if (_argo0) { |
6284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
6287 | return NULL; | |
6288 | } | |
6289 | } | |
ab9bc19b RD |
6290 | { |
6291 | wxPy_BEGIN_ALLOW_THREADS; | |
6292 | _result = (long )wxDC_MinX(_arg0); | |
6293 | ||
6294 | wxPy_END_ALLOW_THREADS; | |
6295 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6296 | return _resultobj; |
6297 | } | |
6298 | ||
6299 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
107e4716 | 6300 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6301 | PyObject * _resultobj; |
6302 | long _result; | |
6303 | wxDC * _arg0; | |
2d091820 | 6304 | PyObject * _argo0 = 0; |
107e4716 | 6305 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6306 | |
6307 | self = self; | |
107e4716 | 6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
70551f47 | 6309 | return NULL; |
2d091820 RD |
6310 | if (_argo0) { |
6311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
6314 | return NULL; | |
6315 | } | |
6316 | } | |
ab9bc19b RD |
6317 | { |
6318 | wxPy_BEGIN_ALLOW_THREADS; | |
6319 | _result = (long )wxDC_MinY(_arg0); | |
6320 | ||
6321 | wxPy_END_ALLOW_THREADS; | |
6322 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
6323 | return _resultobj; |
6324 | } | |
6325 | ||
6326 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 6327 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6328 | PyObject * _resultobj; |
6329 | bool _result; | |
6330 | wxDC * _arg0; | |
2d091820 | 6331 | PyObject * _argo0 = 0; |
107e4716 | 6332 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6333 | |
6334 | self = self; | |
107e4716 | 6335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
70551f47 | 6336 | return NULL; |
2d091820 RD |
6337 | if (_argo0) { |
6338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
6341 | return NULL; | |
6342 | } | |
6343 | } | |
ab9bc19b RD |
6344 | { |
6345 | wxPy_BEGIN_ALLOW_THREADS; | |
6346 | _result = (bool )wxDC_Ok(_arg0); | |
6347 | ||
6348 | wxPy_END_ALLOW_THREADS; | |
6349 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6350 | return _resultobj; |
6351 | } | |
6352 | ||
6353 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
107e4716 | 6354 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6355 | PyObject * _resultobj; |
6356 | wxDC * _arg0; | |
6357 | long _arg1; | |
6358 | long _arg2; | |
2d091820 | 6359 | PyObject * _argo0 = 0; |
107e4716 | 6360 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6361 | |
6362 | self = self; | |
107e4716 | 6363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6364 | return NULL; |
2d091820 RD |
6365 | if (_argo0) { |
6366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
6369 | return NULL; | |
6370 | } | |
6371 | } | |
ab9bc19b RD |
6372 | { |
6373 | wxPy_BEGIN_ALLOW_THREADS; | |
6374 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
6375 | ||
6376 | wxPy_END_ALLOW_THREADS; | |
6377 | } Py_INCREF(Py_None); | |
70551f47 RD |
6378 | _resultobj = Py_None; |
6379 | return _resultobj; | |
6380 | } | |
6381 | ||
6382 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
107e4716 | 6383 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6384 | PyObject * _resultobj; |
6385 | wxDC * _arg0; | |
6386 | wxBrush * _arg1; | |
2d091820 RD |
6387 | PyObject * _argo0 = 0; |
6388 | PyObject * _argo1 = 0; | |
107e4716 | 6389 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
6390 | |
6391 | self = self; | |
107e4716 | 6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6393 | return NULL; |
2d091820 RD |
6394 | if (_argo0) { |
6395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
6398 | return NULL; | |
6399 | } | |
6400 | } | |
2d091820 RD |
6401 | if (_argo1) { |
6402 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6403 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
6404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
6405 | return NULL; | |
6406 | } | |
6407 | } | |
ab9bc19b RD |
6408 | { |
6409 | wxPy_BEGIN_ALLOW_THREADS; | |
6410 | wxDC_SetBackground(_arg0,*_arg1); | |
6411 | ||
6412 | wxPy_END_ALLOW_THREADS; | |
6413 | } Py_INCREF(Py_None); | |
70551f47 RD |
6414 | _resultobj = Py_None; |
6415 | return _resultobj; | |
6416 | } | |
6417 | ||
6418 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
107e4716 | 6419 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6420 | PyObject * _resultobj; |
6421 | wxDC * _arg0; | |
6422 | int _arg1; | |
2d091820 | 6423 | PyObject * _argo0 = 0; |
107e4716 | 6424 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
6425 | |
6426 | self = self; | |
107e4716 | 6427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6428 | return NULL; |
2d091820 RD |
6429 | if (_argo0) { |
6430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
6433 | return NULL; | |
6434 | } | |
6435 | } | |
ab9bc19b RD |
6436 | { |
6437 | wxPy_BEGIN_ALLOW_THREADS; | |
6438 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
6439 | ||
6440 | wxPy_END_ALLOW_THREADS; | |
6441 | } Py_INCREF(Py_None); | |
70551f47 RD |
6442 | _resultobj = Py_None; |
6443 | return _resultobj; | |
6444 | } | |
6445 | ||
6446 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6447 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6448 | PyObject * _resultobj; |
6449 | wxDC * _arg0; | |
6450 | long _arg1; | |
6451 | long _arg2; | |
6452 | long _arg3; | |
6453 | long _arg4; | |
2d091820 | 6454 | PyObject * _argo0 = 0; |
107e4716 | 6455 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
6456 | |
6457 | self = self; | |
107e4716 | 6458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6459 | return NULL; |
2d091820 RD |
6460 | if (_argo0) { |
6461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
6464 | return NULL; | |
6465 | } | |
6466 | } | |
ab9bc19b RD |
6467 | { |
6468 | wxPy_BEGIN_ALLOW_THREADS; | |
6469 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6470 | ||
6471 | wxPy_END_ALLOW_THREADS; | |
6472 | } Py_INCREF(Py_None); | |
70551f47 RD |
6473 | _resultobj = Py_None; |
6474 | return _resultobj; | |
6475 | } | |
6476 | ||
6477 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
107e4716 | 6478 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6479 | PyObject * _resultobj; |
6480 | wxDC * _arg0; | |
6481 | wxPalette * _arg1; | |
2d091820 RD |
6482 | PyObject * _argo0 = 0; |
6483 | PyObject * _argo1 = 0; | |
107e4716 | 6484 | char *_kwnames[] = { "self","colourMap", NULL }; |
70551f47 RD |
6485 | |
6486 | self = self; | |
107e4716 | 6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6488 | return NULL; |
2d091820 RD |
6489 | if (_argo0) { |
6490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
6493 | return NULL; | |
6494 | } | |
6495 | } | |
2d091820 RD |
6496 | if (_argo1) { |
6497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
70551f47 RD |
6499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
6500 | return NULL; | |
6501 | } | |
6502 | } | |
ab9bc19b RD |
6503 | { |
6504 | wxPy_BEGIN_ALLOW_THREADS; | |
6505 | wxDC_SetPalette(_arg0,*_arg1); | |
6506 | ||
6507 | wxPy_END_ALLOW_THREADS; | |
6508 | } Py_INCREF(Py_None); | |
70551f47 RD |
6509 | _resultobj = Py_None; |
6510 | return _resultobj; | |
6511 | } | |
6512 | ||
6513 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
107e4716 | 6514 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6515 | PyObject * _resultobj; |
6516 | wxDC * _arg0; | |
6517 | wxBrush * _arg1; | |
2d091820 RD |
6518 | PyObject * _argo0 = 0; |
6519 | PyObject * _argo1 = 0; | |
107e4716 | 6520 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
6521 | |
6522 | self = self; | |
107e4716 | 6523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6524 | return NULL; |
2d091820 RD |
6525 | if (_argo0) { |
6526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
6529 | return NULL; | |
6530 | } | |
6531 | } | |
2d091820 RD |
6532 | if (_argo1) { |
6533 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
6535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
6536 | return NULL; | |
6537 | } | |
6538 | } | |
ab9bc19b RD |
6539 | { |
6540 | wxPy_BEGIN_ALLOW_THREADS; | |
6541 | wxDC_SetBrush(_arg0,*_arg1); | |
6542 | ||
6543 | wxPy_END_ALLOW_THREADS; | |
6544 | } Py_INCREF(Py_None); | |
70551f47 RD |
6545 | _resultobj = Py_None; |
6546 | return _resultobj; | |
6547 | } | |
6548 | ||
6549 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
107e4716 | 6550 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6551 | PyObject * _resultobj; |
6552 | wxDC * _arg0; | |
6553 | wxFont * _arg1; | |
2d091820 RD |
6554 | PyObject * _argo0 = 0; |
6555 | PyObject * _argo1 = 0; | |
107e4716 | 6556 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
6557 | |
6558 | self = self; | |
107e4716 | 6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6560 | return NULL; |
2d091820 RD |
6561 | if (_argo0) { |
6562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
6565 | return NULL; | |
6566 | } | |
6567 | } | |
2d091820 RD |
6568 | if (_argo1) { |
6569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
6571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
6572 | return NULL; | |
6573 | } | |
6574 | } | |
ab9bc19b RD |
6575 | { |
6576 | wxPy_BEGIN_ALLOW_THREADS; | |
6577 | wxDC_SetFont(_arg0,*_arg1); | |
6578 | ||
6579 | wxPy_END_ALLOW_THREADS; | |
6580 | } Py_INCREF(Py_None); | |
70551f47 RD |
6581 | _resultobj = Py_None; |
6582 | return _resultobj; | |
6583 | } | |
6584 | ||
6585 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
107e4716 | 6586 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6587 | PyObject * _resultobj; |
6588 | wxDC * _arg0; | |
6589 | int _arg1; | |
2d091820 | 6590 | PyObject * _argo0 = 0; |
107e4716 | 6591 | char *_kwnames[] = { "self","function", NULL }; |
70551f47 RD |
6592 | |
6593 | self = self; | |
107e4716 | 6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6595 | return NULL; |
2d091820 RD |
6596 | if (_argo0) { |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
6600 | return NULL; | |
6601 | } | |
6602 | } | |
ab9bc19b RD |
6603 | { |
6604 | wxPy_BEGIN_ALLOW_THREADS; | |
6605 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
6606 | ||
6607 | wxPy_END_ALLOW_THREADS; | |
6608 | } Py_INCREF(Py_None); | |
70551f47 RD |
6609 | _resultobj = Py_None; |
6610 | return _resultobj; | |
6611 | } | |
6612 | ||
e02c03a4 RD |
6613 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
6614 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6615 | PyObject * _resultobj; | |
6616 | wxDC * _arg0; | |
6617 | double _arg1; | |
6618 | double _arg2; | |
6619 | PyObject * _argo0 = 0; | |
6620 | char *_kwnames[] = { "self","x","y", NULL }; | |
6621 | ||
6622 | self = self; | |
6623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6624 | return NULL; | |
6625 | if (_argo0) { | |
6626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
6629 | return NULL; | |
6630 | } | |
6631 | } | |
6632 | { | |
6633 | wxPy_BEGIN_ALLOW_THREADS; | |
6634 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
6635 | ||
6636 | wxPy_END_ALLOW_THREADS; | |
6637 | } Py_INCREF(Py_None); | |
6638 | _resultobj = Py_None; | |
6639 | return _resultobj; | |
6640 | } | |
6641 | ||
70551f47 | 6642 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
107e4716 | 6643 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6644 | PyObject * _resultobj; |
6645 | wxDC * _arg0; | |
6646 | int _arg1; | |
2d091820 | 6647 | PyObject * _argo0 = 0; |
107e4716 | 6648 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
6649 | |
6650 | self = self; | |
107e4716 | 6651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6652 | return NULL; |
2d091820 RD |
6653 | if (_argo0) { |
6654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
6657 | return NULL; | |
6658 | } | |
6659 | } | |
ab9bc19b RD |
6660 | { |
6661 | wxPy_BEGIN_ALLOW_THREADS; | |
6662 | wxDC_SetMapMode(_arg0,_arg1); | |
6663 | ||
6664 | wxPy_END_ALLOW_THREADS; | |
6665 | } Py_INCREF(Py_None); | |
70551f47 RD |
6666 | _resultobj = Py_None; |
6667 | return _resultobj; | |
6668 | } | |
6669 | ||
6670 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
107e4716 | 6671 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6672 | PyObject * _resultobj; |
6673 | wxDC * _arg0; | |
6674 | bool _arg1; | |
2d091820 | 6675 | PyObject * _argo0 = 0; |
70551f47 | 6676 | int tempbool1; |
107e4716 | 6677 | char *_kwnames[] = { "self","optimize", NULL }; |
70551f47 RD |
6678 | |
6679 | self = self; | |
107e4716 | 6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 6681 | return NULL; |
2d091820 RD |
6682 | if (_argo0) { |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
6689 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
6690 | { |
6691 | wxPy_BEGIN_ALLOW_THREADS; | |
6692 | wxDC_SetOptimization(_arg0,_arg1); | |
6693 | ||
6694 | wxPy_END_ALLOW_THREADS; | |
6695 | } Py_INCREF(Py_None); | |
70551f47 RD |
6696 | _resultobj = Py_None; |
6697 | return _resultobj; | |
6698 | } | |
6699 | ||
6700 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
107e4716 | 6701 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6702 | PyObject * _resultobj; |
6703 | wxDC * _arg0; | |
6704 | wxPen * _arg1; | |
2d091820 RD |
6705 | PyObject * _argo0 = 0; |
6706 | PyObject * _argo1 = 0; | |
107e4716 | 6707 | char *_kwnames[] = { "self","pen", NULL }; |
70551f47 RD |
6708 | |
6709 | self = self; | |
107e4716 | 6710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6711 | return NULL; |
2d091820 RD |
6712 | if (_argo0) { |
6713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
6716 | return NULL; | |
6717 | } | |
6718 | } | |
2d091820 RD |
6719 | if (_argo1) { |
6720 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
70551f47 RD |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
ab9bc19b RD |
6726 | { |
6727 | wxPy_BEGIN_ALLOW_THREADS; | |
6728 | wxDC_SetPen(_arg0,*_arg1); | |
6729 | ||
6730 | wxPy_END_ALLOW_THREADS; | |
6731 | } Py_INCREF(Py_None); | |
70551f47 RD |
6732 | _resultobj = Py_None; |
6733 | return _resultobj; | |
6734 | } | |
6735 | ||
6736 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
107e4716 | 6737 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6738 | PyObject * _resultobj; |
6739 | wxDC * _arg0; | |
6740 | wxColour * _arg1; | |
2d091820 | 6741 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6742 | wxColour temp; |
6743 | PyObject * _obj1 = 0; | |
107e4716 | 6744 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
6745 | |
6746 | self = self; | |
f6bcfd97 | 6747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6748 | return NULL; |
2d091820 RD |
6749 | if (_argo0) { |
6750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
6753 | return NULL; | |
6754 | } | |
6755 | } | |
f6bcfd97 BP |
6756 | { |
6757 | _arg1 = &temp; | |
6758 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 6759 | return NULL; |
f6bcfd97 | 6760 | } |
ab9bc19b RD |
6761 | { |
6762 | wxPy_BEGIN_ALLOW_THREADS; | |
6763 | wxDC_SetTextBackground(_arg0,*_arg1); | |
6764 | ||
6765 | wxPy_END_ALLOW_THREADS; | |
6766 | } Py_INCREF(Py_None); | |
70551f47 RD |
6767 | _resultobj = Py_None; |
6768 | return _resultobj; | |
6769 | } | |
6770 | ||
6771 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
107e4716 | 6772 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6773 | PyObject * _resultobj; |
6774 | wxDC * _arg0; | |
6775 | wxColour * _arg1; | |
2d091820 | 6776 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6777 | wxColour temp; |
6778 | PyObject * _obj1 = 0; | |
107e4716 | 6779 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
6780 | |
6781 | self = self; | |
f6bcfd97 | 6782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6783 | return NULL; |
2d091820 RD |
6784 | if (_argo0) { |
6785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
6788 | return NULL; | |
6789 | } | |
6790 | } | |
f6bcfd97 BP |
6791 | { |
6792 | _arg1 = &temp; | |
6793 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 6794 | return NULL; |
f6bcfd97 | 6795 | } |
ab9bc19b RD |
6796 | { |
6797 | wxPy_BEGIN_ALLOW_THREADS; | |
6798 | wxDC_SetTextForeground(_arg0,*_arg1); | |
6799 | ||
6800 | wxPy_END_ALLOW_THREADS; | |
6801 | } Py_INCREF(Py_None); | |
70551f47 RD |
6802 | _resultobj = Py_None; |
6803 | return _resultobj; | |
6804 | } | |
6805 | ||
6806 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
107e4716 | 6807 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6808 | PyObject * _resultobj; |
6809 | wxDC * _arg0; | |
6810 | double _arg1; | |
6811 | double _arg2; | |
2d091820 | 6812 | PyObject * _argo0 = 0; |
107e4716 | 6813 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
70551f47 RD |
6814 | |
6815 | self = self; | |
107e4716 | 6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6817 | return NULL; |
2d091820 RD |
6818 | if (_argo0) { |
6819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
6822 | return NULL; | |
6823 | } | |
6824 | } | |
ab9bc19b RD |
6825 | { |
6826 | wxPy_BEGIN_ALLOW_THREADS; | |
6827 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
6828 | ||
6829 | wxPy_END_ALLOW_THREADS; | |
6830 | } Py_INCREF(Py_None); | |
70551f47 RD |
6831 | _resultobj = Py_None; |
6832 | return _resultobj; | |
6833 | } | |
6834 | ||
6835 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
107e4716 | 6836 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6837 | PyObject * _resultobj; |
6838 | bool _result; | |
6839 | wxDC * _arg0; | |
6840 | wxString * _arg1; | |
2d091820 | 6841 | PyObject * _argo0 = 0; |
70551f47 | 6842 | PyObject * _obj1 = 0; |
107e4716 | 6843 | char *_kwnames[] = { "self","message", NULL }; |
70551f47 RD |
6844 | |
6845 | self = self; | |
107e4716 | 6846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6847 | return NULL; |
2d091820 RD |
6848 | if (_argo0) { |
6849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
6852 | return NULL; | |
6853 | } | |
6854 | } | |
6855 | { | |
2cd2fac8 RD |
6856 | #if PYTHON_API_VERSION >= 1009 |
6857 | char* tmpPtr; int tmpSize; | |
6858 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 6859 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6860 | return NULL; |
6861 | } | |
6862 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6863 | return NULL; | |
6864 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6865 | #else | |
70551f47 RD |
6866 | if (!PyString_Check(_obj1)) { |
6867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6868 | return NULL; | |
6869 | } | |
2cd2fac8 RD |
6870 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6871 | #endif | |
70551f47 | 6872 | } |
ab9bc19b RD |
6873 | { |
6874 | wxPy_BEGIN_ALLOW_THREADS; | |
6875 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
6876 | ||
6877 | wxPy_END_ALLOW_THREADS; | |
6878 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6879 | { |
6880 | if (_obj1) | |
6881 | delete _arg1; | |
6882 | } | |
6883 | return _resultobj; | |
6884 | } | |
6885 | ||
6886 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
107e4716 | 6887 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6888 | PyObject * _resultobj; |
6889 | wxDC * _arg0; | |
2d091820 | 6890 | PyObject * _argo0 = 0; |
107e4716 | 6891 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6892 | |
6893 | self = self; | |
107e4716 | 6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
70551f47 | 6895 | return NULL; |
2d091820 RD |
6896 | if (_argo0) { |
6897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
6900 | return NULL; | |
6901 | } | |
6902 | } | |
ab9bc19b RD |
6903 | { |
6904 | wxPy_BEGIN_ALLOW_THREADS; | |
6905 | wxDC_StartPage(_arg0); | |
6906 | ||
6907 | wxPy_END_ALLOW_THREADS; | |
6908 | } Py_INCREF(Py_None); | |
70551f47 RD |
6909 | _resultobj = Py_None; |
6910 | return _resultobj; | |
6911 | } | |
6912 | ||
107e4716 RD |
6913 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6914 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6915 | PyObject * _resultobj; |
6916 | wxDC * _arg0; | |
6917 | wxBitmap * _arg1; | |
6918 | long _arg2; | |
6919 | long _arg3; | |
107e4716 | 6920 | int _arg4 = (int ) FALSE; |
2d091820 RD |
6921 | PyObject * _argo0 = 0; |
6922 | PyObject * _argo1 = 0; | |
107e4716 | 6923 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
70551f47 RD |
6924 | |
6925 | self = self; | |
107e4716 | 6926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6927 | return NULL; |
2d091820 RD |
6928 | if (_argo0) { |
6929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
6932 | return NULL; | |
6933 | } | |
6934 | } | |
2d091820 RD |
6935 | if (_argo1) { |
6936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
6938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
6939 | return NULL; | |
6940 | } | |
6941 | } | |
ab9bc19b RD |
6942 | { |
6943 | wxPy_BEGIN_ALLOW_THREADS; | |
6944 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
6945 | ||
6946 | wxPy_END_ALLOW_THREADS; | |
6947 | } Py_INCREF(Py_None); | |
70551f47 RD |
6948 | _resultobj = Py_None; |
6949 | return _resultobj; | |
6950 | } | |
6951 | ||
e02c03a4 RD |
6952 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
6953 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6954 | PyObject * _resultobj; | |
6955 | bool _result; | |
6956 | wxDC * _arg0; | |
6957 | PyObject * _argo0 = 0; | |
6958 | char *_kwnames[] = { "self", NULL }; | |
6959 | ||
6960 | self = self; | |
6961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
6962 | return NULL; | |
6963 | if (_argo0) { | |
6964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
6967 | return NULL; | |
6968 | } | |
6969 | } | |
6970 | { | |
6971 | wxPy_BEGIN_ALLOW_THREADS; | |
6972 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
6973 | ||
6974 | wxPy_END_ALLOW_THREADS; | |
6975 | } _resultobj = Py_BuildValue("i",_result); | |
6976 | return _resultobj; | |
6977 | } | |
6978 | ||
6979 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
6980 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6981 | PyObject * _resultobj; | |
6982 | bool _result; | |
6983 | wxDC * _arg0; | |
6984 | PyObject * _argo0 = 0; | |
6985 | char *_kwnames[] = { "self", NULL }; | |
6986 | ||
6987 | self = self; | |
6988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
6989 | return NULL; | |
6990 | if (_argo0) { | |
6991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
6994 | return NULL; | |
6995 | } | |
6996 | } | |
6997 | { | |
6998 | wxPy_BEGIN_ALLOW_THREADS; | |
6999 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
7000 | ||
7001 | wxPy_END_ALLOW_THREADS; | |
7002 | } _resultobj = Py_BuildValue("i",_result); | |
7003 | return _resultobj; | |
7004 | } | |
7005 | ||
7006 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
7007 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7008 | PyObject * _resultobj; | |
7009 | int _result; | |
7010 | wxDC * _arg0; | |
7011 | PyObject * _argo0 = 0; | |
7012 | char *_kwnames[] = { "self", NULL }; | |
7013 | ||
7014 | self = self; | |
7015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
7016 | return NULL; | |
7017 | if (_argo0) { | |
7018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
7021 | return NULL; | |
7022 | } | |
7023 | } | |
7024 | { | |
7025 | wxPy_BEGIN_ALLOW_THREADS; | |
7026 | _result = (int )wxDC_GetDepth(_arg0); | |
7027 | ||
7028 | wxPy_END_ALLOW_THREADS; | |
7029 | } _resultobj = Py_BuildValue("i",_result); | |
7030 | return _resultobj; | |
7031 | } | |
7032 | ||
7033 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
7034 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7035 | PyObject * _resultobj; | |
7036 | wxSize * _result; | |
7037 | wxDC * _arg0; | |
7038 | PyObject * _argo0 = 0; | |
7039 | char *_kwnames[] = { "self", NULL }; | |
7040 | char _ptemp[128]; | |
7041 | ||
7042 | self = self; | |
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
7044 | return NULL; | |
7045 | if (_argo0) { | |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
7052 | { | |
7053 | wxPy_BEGIN_ALLOW_THREADS; | |
7054 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
7055 | ||
7056 | wxPy_END_ALLOW_THREADS; | |
7057 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7058 | _resultobj = Py_BuildValue("s",_ptemp); | |
7059 | return _resultobj; | |
7060 | } | |
7061 | ||
7062 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
7063 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7064 | PyObject * _resultobj; | |
7065 | wxDC * _arg0; | |
7066 | int * _arg1; | |
7067 | int temp; | |
7068 | int * _arg2; | |
7069 | int temp0; | |
7070 | PyObject * _argo0 = 0; | |
7071 | char *_kwnames[] = { "self", NULL }; | |
7072 | ||
7073 | self = self; | |
7074 | { | |
7075 | _arg1 = &temp; | |
7076 | } | |
7077 | { | |
7078 | _arg2 = &temp0; | |
7079 | } | |
7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
7081 | return NULL; | |
7082 | if (_argo0) { | |
7083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
7086 | return NULL; | |
7087 | } | |
7088 | } | |
7089 | { | |
7090 | wxPy_BEGIN_ALLOW_THREADS; | |
7091 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
7092 | ||
7093 | wxPy_END_ALLOW_THREADS; | |
7094 | } Py_INCREF(Py_None); | |
7095 | _resultobj = Py_None; | |
7096 | { | |
7097 | PyObject *o; | |
7098 | o = PyInt_FromLong((long) (*_arg1)); | |
7099 | _resultobj = t_output_helper(_resultobj, o); | |
7100 | } | |
7101 | { | |
7102 | PyObject *o; | |
7103 | o = PyInt_FromLong((long) (*_arg2)); | |
7104 | _resultobj = t_output_helper(_resultobj, o); | |
7105 | } | |
7106 | return _resultobj; | |
7107 | } | |
7108 | ||
7109 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
7110 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject * _resultobj; | |
7112 | wxDC * _arg0; | |
7113 | int _arg1; | |
7114 | int _arg2; | |
7115 | PyObject * _argo0 = 0; | |
7116 | char *_kwnames[] = { "self","x","y", NULL }; | |
7117 | ||
7118 | self = self; | |
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7120 | return NULL; | |
7121 | if (_argo0) { | |
7122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
7125 | return NULL; | |
7126 | } | |
7127 | } | |
7128 | { | |
7129 | wxPy_BEGIN_ALLOW_THREADS; | |
7130 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
7131 | ||
7132 | wxPy_END_ALLOW_THREADS; | |
7133 | } Py_INCREF(Py_None); | |
7134 | _resultobj = Py_None; | |
7135 | return _resultobj; | |
7136 | } | |
7137 | ||
7138 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
7139 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject * _resultobj; | |
7141 | wxDC * _arg0; | |
7142 | int * _arg1; | |
7143 | int temp; | |
7144 | int * _arg2; | |
7145 | int temp0; | |
7146 | PyObject * _argo0 = 0; | |
7147 | char *_kwnames[] = { "self", NULL }; | |
7148 | ||
7149 | self = self; | |
7150 | { | |
7151 | _arg1 = &temp; | |
7152 | } | |
7153 | { | |
7154 | _arg2 = &temp0; | |
7155 | } | |
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
7157 | return NULL; | |
7158 | if (_argo0) { | |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
7165 | { | |
7166 | wxPy_BEGIN_ALLOW_THREADS; | |
7167 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
7168 | ||
7169 | wxPy_END_ALLOW_THREADS; | |
7170 | } Py_INCREF(Py_None); | |
7171 | _resultobj = Py_None; | |
7172 | { | |
7173 | PyObject *o; | |
7174 | o = PyInt_FromLong((long) (*_arg1)); | |
7175 | _resultobj = t_output_helper(_resultobj, o); | |
7176 | } | |
7177 | { | |
7178 | PyObject *o; | |
7179 | o = PyInt_FromLong((long) (*_arg2)); | |
7180 | _resultobj = t_output_helper(_resultobj, o); | |
7181 | } | |
7182 | return _resultobj; | |
7183 | } | |
7184 | ||
7185 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
7186 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7187 | PyObject * _resultobj; | |
7188 | wxDC * _arg0; | |
7189 | bool _arg1; | |
7190 | bool _arg2; | |
7191 | PyObject * _argo0 = 0; | |
7192 | int tempbool1; | |
7193 | int tempbool2; | |
7194 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
7195 | ||
7196 | self = self; | |
7197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7198 | return NULL; | |
7199 | if (_argo0) { | |
7200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
7203 | return NULL; | |
7204 | } | |
7205 | } | |
7206 | _arg1 = (bool ) tempbool1; | |
7207 | _arg2 = (bool ) tempbool2; | |
7208 | { | |
7209 | wxPy_BEGIN_ALLOW_THREADS; | |
7210 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
7211 | ||
7212 | wxPy_END_ALLOW_THREADS; | |
7213 | } Py_INCREF(Py_None); | |
7214 | _resultobj = Py_None; | |
7215 | return _resultobj; | |
7216 | } | |
7217 | ||
f6bcfd97 BP |
7218 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
7219 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7220 | PyObject * _resultobj; | |
7221 | wxDC * _arg0; | |
7222 | int _arg1; | |
7223 | int _arg2; | |
7224 | PyObject * _argo0 = 0; | |
7225 | char *_kwnames[] = { "self","x","y", NULL }; | |
7226 | ||
7227 | self = self; | |
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7229 | return NULL; | |
7230 | if (_argo0) { | |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | { | |
7238 | wxPy_BEGIN_ALLOW_THREADS; | |
7239 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
7240 | ||
7241 | wxPy_END_ALLOW_THREADS; | |
7242 | } Py_INCREF(Py_None); | |
7243 | _resultobj = Py_None; | |
7244 | return _resultobj; | |
7245 | } | |
7246 | ||
7247 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
7248 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7249 | PyObject * _resultobj; | |
7250 | wxDC * _arg0; | |
7251 | PyObject * _argo0 = 0; | |
7252 | char *_kwnames[] = { "self", NULL }; | |
7253 | ||
7254 | self = self; | |
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
7256 | return NULL; | |
7257 | if (_argo0) { | |
7258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
7261 | return NULL; | |
7262 | } | |
7263 | } | |
7264 | { | |
7265 | wxPy_BEGIN_ALLOW_THREADS; | |
7266 | wxDC_ResetBoundingBox(_arg0); | |
7267 | ||
7268 | wxPy_END_ALLOW_THREADS; | |
7269 | } Py_INCREF(Py_None); | |
7270 | _resultobj = Py_None; | |
7271 | return _resultobj; | |
7272 | } | |
7273 | ||
70551f47 RD |
7274 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
7275 | wxMemoryDC *src; | |
7276 | wxDC *dest; | |
7277 | src = (wxMemoryDC *) ptr; | |
7278 | dest = (wxDC *) src; | |
7279 | return (void *) dest; | |
7280 | } | |
7281 | ||
7282 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
107e4716 | 7283 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7284 | PyObject * _resultobj; |
7285 | wxMemoryDC * _result; | |
107e4716 | 7286 | char *_kwnames[] = { NULL }; |
70551f47 RD |
7287 | char _ptemp[128]; |
7288 | ||
7289 | self = self; | |
107e4716 | 7290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
70551f47 | 7291 | return NULL; |
ab9bc19b RD |
7292 | { |
7293 | wxPy_BEGIN_ALLOW_THREADS; | |
7294 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
7295 | ||
7296 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7297 | } if (_result) { |
7298 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
7299 | _resultobj = Py_BuildValue("s",_ptemp); | |
7300 | } else { | |
7301 | Py_INCREF(Py_None); | |
7302 | _resultobj = Py_None; | |
7303 | } | |
70551f47 RD |
7304 | return _resultobj; |
7305 | } | |
7306 | ||
7307 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
107e4716 | 7308 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7309 | PyObject * _resultobj; |
7310 | wxMemoryDC * _arg0; | |
7311 | wxBitmap * _arg1; | |
2d091820 RD |
7312 | PyObject * _argo0 = 0; |
7313 | PyObject * _argo1 = 0; | |
107e4716 | 7314 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
7315 | |
7316 | self = self; | |
107e4716 | 7317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7318 | return NULL; |
2d091820 RD |
7319 | if (_argo0) { |
7320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
70551f47 RD |
7322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
7323 | return NULL; | |
7324 | } | |
7325 | } | |
2d091820 RD |
7326 | if (_argo1) { |
7327 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7328 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
7329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
7330 | return NULL; | |
7331 | } | |
7332 | } | |
ab9bc19b RD |
7333 | { |
7334 | wxPy_BEGIN_ALLOW_THREADS; | |
7335 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
7336 | ||
7337 | wxPy_END_ALLOW_THREADS; | |
7338 | } Py_INCREF(Py_None); | |
70551f47 RD |
7339 | _resultobj = Py_None; |
7340 | return _resultobj; | |
7341 | } | |
7342 | ||
7343 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
7344 | wxScreenDC *src; | |
7345 | wxDC *dest; | |
7346 | src = (wxScreenDC *) ptr; | |
7347 | dest = (wxDC *) src; | |
7348 | return (void *) dest; | |
7349 | } | |
7350 | ||
7351 | #define new_wxScreenDC() (new wxScreenDC()) | |
107e4716 | 7352 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7353 | PyObject * _resultobj; |
7354 | wxScreenDC * _result; | |
107e4716 | 7355 | char *_kwnames[] = { NULL }; |
70551f47 RD |
7356 | char _ptemp[128]; |
7357 | ||
7358 | self = self; | |
107e4716 | 7359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
70551f47 | 7360 | return NULL; |
ab9bc19b RD |
7361 | { |
7362 | wxPy_BEGIN_ALLOW_THREADS; | |
7363 | _result = (wxScreenDC *)new_wxScreenDC(); | |
7364 | ||
7365 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7366 | } if (_result) { |
7367 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
7368 | _resultobj = Py_BuildValue("s",_ptemp); | |
7369 | } else { | |
7370 | Py_INCREF(Py_None); | |
7371 | _resultobj = Py_None; | |
7372 | } | |
70551f47 RD |
7373 | return _resultobj; |
7374 | } | |
7375 | ||
2fc99549 RD |
7376 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
7377 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7378 | PyObject * _resultobj; |
7379 | bool _result; | |
7380 | wxScreenDC * _arg0; | |
7381 | wxWindow * _arg1; | |
2d091820 RD |
7382 | PyObject * _argo0 = 0; |
7383 | PyObject * _argo1 = 0; | |
107e4716 | 7384 | char *_kwnames[] = { "self","window", NULL }; |
70551f47 RD |
7385 | |
7386 | self = self; | |
2fc99549 | 7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7388 | return NULL; |
2d091820 RD |
7389 | if (_argo0) { |
7390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
70551f47 RD |
7393 | return NULL; |
7394 | } | |
7395 | } | |
2d091820 RD |
7396 | if (_argo1) { |
7397 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7398 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2fc99549 | 7399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
70551f47 RD |
7400 | return NULL; |
7401 | } | |
7402 | } | |
ab9bc19b RD |
7403 | { |
7404 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 7405 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
ab9bc19b RD |
7406 | |
7407 | wxPy_END_ALLOW_THREADS; | |
7408 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
7409 | return _resultobj; |
7410 | } | |
7411 | ||
2fc99549 RD |
7412 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
7413 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7414 | PyObject * _resultobj; |
7415 | bool _result; | |
7416 | wxScreenDC * _arg0; | |
2d091820 RD |
7417 | wxRect * _arg1 = (wxRect *) NULL; |
7418 | PyObject * _argo0 = 0; | |
37f6a977 RD |
7419 | wxRect temp; |
7420 | PyObject * _obj1 = 0; | |
107e4716 | 7421 | char *_kwnames[] = { "self","rect", NULL }; |
70551f47 RD |
7422 | |
7423 | self = self; | |
2fc99549 | 7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7425 | return NULL; |
2d091820 RD |
7426 | if (_argo0) { |
7427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
70551f47 RD |
7430 | return NULL; |
7431 | } | |
7432 | } | |
37f6a977 RD |
7433 | if (_obj1) |
7434 | { | |
7435 | _arg1 = &temp; | |
7436 | if (! wxRect_helper(_obj1, &_arg1)) | |
70551f47 | 7437 | return NULL; |
37f6a977 | 7438 | } |
ab9bc19b RD |
7439 | { |
7440 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 7441 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
ab9bc19b RD |
7442 | |
7443 | wxPy_END_ALLOW_THREADS; | |
7444 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
7445 | return _resultobj; |
7446 | } | |
7447 | ||
7448 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
107e4716 | 7449 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7450 | PyObject * _resultobj; |
7451 | bool _result; | |
7452 | wxScreenDC * _arg0; | |
2d091820 | 7453 | PyObject * _argo0 = 0; |
107e4716 | 7454 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7455 | |
7456 | self = self; | |
107e4716 | 7457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
70551f47 | 7458 | return NULL; |
2d091820 RD |
7459 | if (_argo0) { |
7460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
70551f47 RD |
7462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
7463 | return NULL; | |
7464 | } | |
7465 | } | |
ab9bc19b RD |
7466 | { |
7467 | wxPy_BEGIN_ALLOW_THREADS; | |
7468 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
7469 | ||
7470 | wxPy_END_ALLOW_THREADS; | |
7471 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
7472 | return _resultobj; |
7473 | } | |
7474 | ||
7475 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
7476 | wxClientDC *src; | |
7477 | wxDC *dest; | |
7478 | src = (wxClientDC *) ptr; | |
7479 | dest = (wxDC *) src; | |
7480 | return (void *) dest; | |
7481 | } | |
7482 | ||
7483 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
107e4716 | 7484 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7485 | PyObject * _resultobj; |
7486 | wxClientDC * _result; | |
7487 | wxWindow * _arg0; | |
2d091820 | 7488 | PyObject * _argo0 = 0; |
107e4716 | 7489 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
7490 | char _ptemp[128]; |
7491 | ||
7492 | self = self; | |
107e4716 | 7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
70551f47 | 7494 | return NULL; |
2d091820 RD |
7495 | if (_argo0) { |
7496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
7499 | return NULL; | |
7500 | } | |
7501 | } | |
ab9bc19b RD |
7502 | { |
7503 | wxPy_BEGIN_ALLOW_THREADS; | |
7504 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
7505 | ||
7506 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7507 | } if (_result) { |
7508 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
7509 | _resultobj = Py_BuildValue("s",_ptemp); | |
7510 | } else { | |
7511 | Py_INCREF(Py_None); | |
7512 | _resultobj = Py_None; | |
7513 | } | |
70551f47 RD |
7514 | return _resultobj; |
7515 | } | |
7516 | ||
7517 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
7518 | wxPaintDC *src; | |
7519 | wxDC *dest; | |
7520 | src = (wxPaintDC *) ptr; | |
7521 | dest = (wxDC *) src; | |
7522 | return (void *) dest; | |
7523 | } | |
7524 | ||
7525 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
107e4716 | 7526 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7527 | PyObject * _resultobj; |
7528 | wxPaintDC * _result; | |
7529 | wxWindow * _arg0; | |
2d091820 | 7530 | PyObject * _argo0 = 0; |
107e4716 | 7531 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
7532 | char _ptemp[128]; |
7533 | ||
7534 | self = self; | |
107e4716 | 7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
70551f47 | 7536 | return NULL; |
2d091820 RD |
7537 | if (_argo0) { |
7538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
7541 | return NULL; | |
7542 | } | |
7543 | } | |
ab9bc19b RD |
7544 | { |
7545 | wxPy_BEGIN_ALLOW_THREADS; | |
7546 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
7547 | ||
7548 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7549 | } if (_result) { |
7550 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
7551 | _resultobj = Py_BuildValue("s",_ptemp); | |
7552 | } else { | |
7553 | Py_INCREF(Py_None); | |
7554 | _resultobj = Py_None; | |
7555 | } | |
70551f47 RD |
7556 | return _resultobj; |
7557 | } | |
7558 | ||
c95e68d8 RD |
7559 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
7560 | wxWindowDC *src; | |
7561 | wxDC *dest; | |
7562 | src = (wxWindowDC *) ptr; | |
7563 | dest = (wxDC *) src; | |
7564 | return (void *) dest; | |
7565 | } | |
7566 | ||
7567 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
107e4716 | 7568 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
7569 | PyObject * _resultobj; |
7570 | wxWindowDC * _result; | |
7571 | wxWindow * _arg0; | |
2d091820 | 7572 | PyObject * _argo0 = 0; |
107e4716 | 7573 | char *_kwnames[] = { "win", NULL }; |
c95e68d8 RD |
7574 | char _ptemp[128]; |
7575 | ||
7576 | self = self; | |
107e4716 | 7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
c95e68d8 | 7578 | return NULL; |
2d091820 RD |
7579 | if (_argo0) { |
7580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
7583 | return NULL; | |
7584 | } | |
7585 | } | |
ab9bc19b RD |
7586 | { |
7587 | wxPy_BEGIN_ALLOW_THREADS; | |
7588 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
7589 | ||
7590 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7591 | } if (_result) { |
7592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
7593 | _resultobj = Py_BuildValue("s",_ptemp); | |
7594 | } else { | |
7595 | Py_INCREF(Py_None); | |
7596 | _resultobj = Py_None; | |
7597 | } | |
c95e68d8 RD |
7598 | return _resultobj; |
7599 | } | |
7600 | ||
70551f47 RD |
7601 | static void *SwigwxPostScriptDCTowxDC(void *ptr) { |
7602 | wxPostScriptDC *src; | |
7603 | wxDC *dest; | |
7604 | src = (wxPostScriptDC *) ptr; | |
7605 | dest = (wxDC *) src; | |
7606 | return (void *) dest; | |
7607 | } | |
7608 | ||
7609 | #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 7610 | static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7611 | PyObject * _resultobj; |
7612 | wxPostScriptDC * _result; | |
7613 | wxString * _arg0; | |
2d091820 RD |
7614 | bool _arg1 = (bool ) TRUE; |
7615 | wxWindow * _arg2 = (wxWindow *) NULL; | |
70551f47 | 7616 | PyObject * _obj0 = 0; |
2d091820 RD |
7617 | int tempbool1 = (int) TRUE; |
7618 | PyObject * _argo2 = 0; | |
107e4716 | 7619 | char *_kwnames[] = { "output","interactive","win", NULL }; |
70551f47 RD |
7620 | char _ptemp[128]; |
7621 | ||
7622 | self = self; | |
107e4716 | 7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC",_kwnames,&_obj0,&tempbool1,&_argo2)) |
70551f47 RD |
7624 | return NULL; |
7625 | { | |
2cd2fac8 RD |
7626 | #if PYTHON_API_VERSION >= 1009 |
7627 | char* tmpPtr; int tmpSize; | |
7628 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 7629 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7630 | return NULL; |
7631 | } | |
7632 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7633 | return NULL; | |
7634 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7635 | #else | |
70551f47 RD |
7636 | if (!PyString_Check(_obj0)) { |
7637 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7638 | return NULL; | |
7639 | } | |
2cd2fac8 RD |
7640 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
7641 | #endif | |
70551f47 RD |
7642 | } |
7643 | _arg1 = (bool ) tempbool1; | |
2d091820 RD |
7644 | if (_argo2) { |
7645 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7646 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
70551f47 RD |
7647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p."); |
7648 | return NULL; | |
7649 | } | |
7650 | } | |
ab9bc19b RD |
7651 | { |
7652 | wxPy_BEGIN_ALLOW_THREADS; | |
7653 | _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2); | |
7654 | ||
7655 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7656 | } if (_result) { |
7657 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p"); | |
7658 | _resultobj = Py_BuildValue("s",_ptemp); | |
7659 | } else { | |
7660 | Py_INCREF(Py_None); | |
7661 | _resultobj = Py_None; | |
7662 | } | |
70551f47 RD |
7663 | { |
7664 | if (_obj0) | |
7665 | delete _arg0; | |
7666 | } | |
7667 | return _resultobj; | |
7668 | } | |
7669 | ||
105e45b9 | 7670 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 7671 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
7672 | PyObject * _resultobj; |
7673 | wxPalette * _result; | |
7674 | int _arg0; | |
7675 | byte * _arg1; | |
7676 | byte * _arg2; | |
7677 | byte * _arg3; | |
7678 | PyObject * _obj1 = 0; | |
7679 | PyObject * _obj2 = 0; | |
7680 | PyObject * _obj3 = 0; | |
e02c03a4 | 7681 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
105e45b9 RD |
7682 | char _ptemp[128]; |
7683 | ||
7684 | self = self; | |
107e4716 | 7685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
105e45b9 RD |
7686 | return NULL; |
7687 | { | |
7688 | _arg1 = byte_LIST_helper(_obj1); | |
7689 | if (_arg1 == NULL) { | |
7690 | return NULL; | |
7691 | } | |
7692 | } | |
7693 | { | |
7694 | _arg2 = byte_LIST_helper(_obj2); | |
7695 | if (_arg2 == NULL) { | |
7696 | return NULL; | |
7697 | } | |
7698 | } | |
7699 | if (_obj3) | |
7700 | { | |
7701 | _arg3 = byte_LIST_helper(_obj3); | |
7702 | if (_arg3 == NULL) { | |
7703 | return NULL; | |
7704 | } | |
7705 | } | |
7706 | { | |
ab9bc19b RD |
7707 | if (_obj1) { |
7708 | _arg0 = PyList_Size(_obj1); | |
7709 | } | |
7710 | else { | |
7711 | _arg0 = 0; | |
7712 | } | |
105e45b9 | 7713 | } |
ab9bc19b RD |
7714 | { |
7715 | wxPy_BEGIN_ALLOW_THREADS; | |
7716 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
7717 | ||
7718 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7719 | } if (_result) { |
7720 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
7721 | _resultobj = Py_BuildValue("s",_ptemp); | |
7722 | } else { | |
7723 | Py_INCREF(Py_None); | |
7724 | _resultobj = Py_None; | |
7725 | } | |
105e45b9 RD |
7726 | { |
7727 | delete [] _arg1; | |
7728 | } | |
7729 | { | |
7730 | delete [] _arg2; | |
7731 | } | |
7732 | { | |
7733 | delete [] _arg3; | |
7734 | } | |
7735 | return _resultobj; | |
7736 | } | |
7737 | ||
7738 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
107e4716 | 7739 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
7740 | PyObject * _resultobj; |
7741 | wxPalette * _arg0; | |
2d091820 | 7742 | PyObject * _argo0 = 0; |
107e4716 | 7743 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
7744 | |
7745 | self = self; | |
107e4716 | 7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
105e45b9 | 7747 | return NULL; |
2d091820 RD |
7748 | if (_argo0) { |
7749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
7751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
7752 | return NULL; | |
7753 | } | |
7754 | } | |
ab9bc19b RD |
7755 | { |
7756 | wxPy_BEGIN_ALLOW_THREADS; | |
7757 | delete_wxPalette(_arg0); | |
7758 | ||
7759 | wxPy_END_ALLOW_THREADS; | |
7760 | } Py_INCREF(Py_None); | |
105e45b9 RD |
7761 | _resultobj = Py_None; |
7762 | return _resultobj; | |
7763 | } | |
7764 | ||
7765 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 7766 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
7767 | PyObject * _resultobj; |
7768 | int _result; | |
7769 | wxPalette * _arg0; | |
7770 | byte _arg1; | |
7771 | byte _arg2; | |
7772 | byte _arg3; | |
2d091820 | 7773 | PyObject * _argo0 = 0; |
107e4716 | 7774 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
105e45b9 RD |
7775 | |
7776 | self = self; | |
107e4716 | 7777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
105e45b9 | 7778 | return NULL; |
2d091820 RD |
7779 | if (_argo0) { |
7780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
7782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
7783 | return NULL; | |
7784 | } | |
7785 | } | |
ab9bc19b RD |
7786 | { |
7787 | wxPy_BEGIN_ALLOW_THREADS; | |
7788 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
7789 | ||
7790 | wxPy_END_ALLOW_THREADS; | |
7791 | } _resultobj = Py_BuildValue("i",_result); | |
105e45b9 RD |
7792 | return _resultobj; |
7793 | } | |
7794 | ||
7795 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 7796 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
7797 | PyObject * _resultobj; |
7798 | bool _result; | |
7799 | wxPalette * _arg0; | |
7800 | int _arg1; | |
7801 | byte * _arg2; | |
7802 | byte * _arg3; | |
7803 | byte * _arg4; | |
2d091820 RD |
7804 | PyObject * _argo0 = 0; |
7805 | PyObject * _argo2 = 0; | |
7806 | PyObject * _argo3 = 0; | |
7807 | PyObject * _argo4 = 0; | |
107e4716 | 7808 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
105e45b9 RD |
7809 | |
7810 | self = self; | |
107e4716 | 7811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
105e45b9 | 7812 | return NULL; |
2d091820 RD |
7813 | if (_argo0) { |
7814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
7816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
7817 | return NULL; | |
7818 | } | |
7819 | } | |
2d091820 RD |
7820 | if (_argo2) { |
7821 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7822 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
105e45b9 RD |
7823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
7824 | return NULL; | |
7825 | } | |
7826 | } | |
2d091820 RD |
7827 | if (_argo3) { |
7828 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7829 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
105e45b9 RD |
7830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
7831 | return NULL; | |
7832 | } | |
7833 | } | |
2d091820 RD |
7834 | if (_argo4) { |
7835 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7836 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
105e45b9 RD |
7837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
7838 | return NULL; | |
7839 | } | |
7840 | } | |
ab9bc19b RD |
7841 | { |
7842 | wxPy_BEGIN_ALLOW_THREADS; | |
7843 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7844 | ||
7845 | wxPy_END_ALLOW_THREADS; | |
7846 | } _resultobj = Py_BuildValue("i",_result); | |
105e45b9 RD |
7847 | return _resultobj; |
7848 | } | |
7849 | ||
7850 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 7851 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
7852 | PyObject * _resultobj; |
7853 | bool _result; | |
7854 | wxPalette * _arg0; | |
2d091820 | 7855 | PyObject * _argo0 = 0; |
107e4716 | 7856 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
7857 | |
7858 | self = self; | |
107e4716 | 7859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
105e45b9 | 7860 | return NULL; |
2d091820 RD |
7861 | if (_argo0) { |
7862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
7864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
7865 | return NULL; | |
7866 | } | |
7867 | } | |
ab9bc19b RD |
7868 | { |
7869 | wxPy_BEGIN_ALLOW_THREADS; | |
7870 | _result = (bool )wxPalette_Ok(_arg0); | |
7871 | ||
7872 | wxPy_END_ALLOW_THREADS; | |
7873 | } _resultobj = Py_BuildValue("i",_result); | |
105e45b9 RD |
7874 | return _resultobj; |
7875 | } | |
7876 | ||
21f8d7ea | 7877 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 7878 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7879 | PyObject * _resultobj; |
7880 | wxImageList * _result; | |
7881 | int _arg0; | |
7882 | int _arg1; | |
7ff49f0c | 7883 | int _arg2 = (int ) TRUE; |
2d091820 | 7884 | int _arg3 = (int ) 1; |
107e4716 | 7885 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
21f8d7ea RD |
7886 | char _ptemp[128]; |
7887 | ||
7888 | self = self; | |
56f5d962 | 7889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
21f8d7ea | 7890 | return NULL; |
ab9bc19b RD |
7891 | { |
7892 | wxPy_BEGIN_ALLOW_THREADS; | |
7893 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
7894 | ||
7895 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
7896 | } if (_result) { |
7897 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
7898 | _resultobj = Py_BuildValue("s",_ptemp); | |
7899 | } else { | |
7900 | Py_INCREF(Py_None); | |
7901 | _resultobj = Py_None; | |
7902 | } | |
21f8d7ea RD |
7903 | return _resultobj; |
7904 | } | |
7905 | ||
7906 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
107e4716 | 7907 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7908 | PyObject * _resultobj; |
7909 | wxImageList * _arg0; | |
2d091820 | 7910 | PyObject * _argo0 = 0; |
107e4716 | 7911 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
7912 | |
7913 | self = self; | |
107e4716 | 7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
21f8d7ea | 7915 | return NULL; |
2d091820 RD |
7916 | if (_argo0) { |
7917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
7919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
7920 | return NULL; | |
7921 | } | |
7922 | } | |
ab9bc19b RD |
7923 | { |
7924 | wxPy_BEGIN_ALLOW_THREADS; | |
7925 | delete_wxImageList(_arg0); | |
7926 | ||
7927 | wxPy_END_ALLOW_THREADS; | |
7928 | } Py_INCREF(Py_None); | |
21f8d7ea RD |
7929 | _resultobj = Py_None; |
7930 | return _resultobj; | |
7931 | } | |
7932 | ||
f6bcfd97 | 7933 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) |
107e4716 | 7934 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7935 | PyObject * _resultobj; |
7936 | int _result; | |
7937 | wxImageList * _arg0; | |
7938 | wxBitmap * _arg1; | |
f6bcfd97 | 7939 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
2d091820 RD |
7940 | PyObject * _argo0 = 0; |
7941 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7942 | PyObject * _argo2 = 0; |
7943 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
21f8d7ea RD |
7944 | |
7945 | self = self; | |
f6bcfd97 | 7946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
21f8d7ea | 7947 | return NULL; |
2d091820 RD |
7948 | if (_argo0) { |
7949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
7951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
7952 | return NULL; | |
7953 | } | |
7954 | } | |
2d091820 RD |
7955 | if (_argo1) { |
7956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
21f8d7ea RD |
7958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
7959 | return NULL; | |
7960 | } | |
7961 | } | |
f6bcfd97 BP |
7962 | if (_argo2) { |
7963 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7964 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
7965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
7966 | return NULL; | |
7967 | } | |
7968 | } | |
7969 | { | |
7970 | wxPy_BEGIN_ALLOW_THREADS; | |
7971 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
7972 | ||
7973 | wxPy_END_ALLOW_THREADS; | |
7974 | } _resultobj = Py_BuildValue("i",_result); | |
7975 | return _resultobj; | |
7976 | } | |
7977 | ||
7978 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
7979 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7980 | PyObject * _resultobj; | |
7981 | int _result; | |
7982 | wxImageList * _arg0; | |
7983 | wxBitmap * _arg1; | |
7984 | wxColour * _arg2; | |
7985 | PyObject * _argo0 = 0; | |
7986 | PyObject * _argo1 = 0; | |
7987 | wxColour temp; | |
7988 | PyObject * _obj2 = 0; | |
7989 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
7990 | ||
7991 | self = self; | |
7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7993 | return NULL; | |
7994 | if (_argo0) { | |
7995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
7998 | return NULL; | |
7999 | } | |
8000 | } | |
8001 | if (_argo1) { | |
8002 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8003 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
8005 | return NULL; | |
8006 | } | |
8007 | } | |
8008 | { | |
8009 | _arg2 = &temp; | |
8010 | if (! wxColour_helper(_obj2, &_arg2)) | |
8011 | return NULL; | |
8012 | } | |
ab9bc19b RD |
8013 | { |
8014 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
8015 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
8016 | ||
8017 | wxPy_END_ALLOW_THREADS; | |
8018 | } _resultobj = Py_BuildValue("i",_result); | |
8019 | return _resultobj; | |
8020 | } | |
8021 | ||
8022 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
8023 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8024 | PyObject * _resultobj; | |
8025 | int _result; | |
8026 | wxImageList * _arg0; | |
8027 | wxIcon * _arg1; | |
8028 | PyObject * _argo0 = 0; | |
8029 | PyObject * _argo1 = 0; | |
8030 | char *_kwnames[] = { "self","icon", NULL }; | |
8031 | ||
8032 | self = self; | |
8033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
8034 | return NULL; | |
8035 | if (_argo0) { | |
8036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
8039 | return NULL; | |
8040 | } | |
8041 | } | |
8042 | if (_argo1) { | |
8043 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8044 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
8046 | return NULL; | |
8047 | } | |
8048 | } | |
8049 | { | |
8050 | wxPy_BEGIN_ALLOW_THREADS; | |
8051 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
ab9bc19b RD |
8052 | |
8053 | wxPy_END_ALLOW_THREADS; | |
8054 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
8055 | return _resultobj; |
8056 | } | |
8057 | ||
8058 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
107e4716 | 8059 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8060 | PyObject * _resultobj; |
8061 | bool _result; | |
8062 | wxImageList * _arg0; | |
8063 | int _arg1; | |
8064 | wxBitmap * _arg2; | |
2d091820 RD |
8065 | PyObject * _argo0 = 0; |
8066 | PyObject * _argo2 = 0; | |
107e4716 | 8067 | char *_kwnames[] = { "self","index","bitmap", NULL }; |
21f8d7ea RD |
8068 | |
8069 | self = self; | |
107e4716 | 8070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) |
21f8d7ea | 8071 | return NULL; |
2d091820 RD |
8072 | if (_argo0) { |
8073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
8076 | return NULL; | |
8077 | } | |
8078 | } | |
2d091820 RD |
8079 | if (_argo2) { |
8080 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8081 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea RD |
8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
8083 | return NULL; | |
8084 | } | |
8085 | } | |
ab9bc19b RD |
8086 | { |
8087 | wxPy_BEGIN_ALLOW_THREADS; | |
8088 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); | |
8089 | ||
8090 | wxPy_END_ALLOW_THREADS; | |
8091 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
8092 | return _resultobj; |
8093 | } | |
8094 | ||
8095 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 8096 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8097 | PyObject * _resultobj; |
8098 | bool _result; | |
8099 | wxImageList * _arg0; | |
8100 | int _arg1; | |
8101 | wxDC * _arg2; | |
8102 | int _arg3; | |
8103 | int _arg4; | |
2d091820 RD |
8104 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
8105 | bool _arg6 = (bool ) FALSE; | |
8106 | PyObject * _argo0 = 0; | |
8107 | PyObject * _argo2 = 0; | |
8108 | int tempbool6 = (int) FALSE; | |
107e4716 | 8109 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
21f8d7ea RD |
8110 | |
8111 | self = self; | |
107e4716 | 8112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
21f8d7ea | 8113 | return NULL; |
2d091820 RD |
8114 | if (_argo0) { |
8115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
8118 | return NULL; | |
8119 | } | |
8120 | } | |
2d091820 RD |
8121 | if (_argo2) { |
8122 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8123 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
8124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
8125 | return NULL; | |
8126 | } | |
8127 | } | |
8128 | _arg6 = (bool ) tempbool6; | |
ab9bc19b RD |
8129 | { |
8130 | wxPy_BEGIN_ALLOW_THREADS; | |
8131 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
8132 | ||
8133 | wxPy_END_ALLOW_THREADS; | |
8134 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
8135 | return _resultobj; |
8136 | } | |
8137 | ||
8138 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
107e4716 | 8139 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8140 | PyObject * _resultobj; |
8141 | int _result; | |
8142 | wxImageList * _arg0; | |
2d091820 | 8143 | PyObject * _argo0 = 0; |
107e4716 | 8144 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
8145 | |
8146 | self = self; | |
107e4716 | 8147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
21f8d7ea | 8148 | return NULL; |
2d091820 RD |
8149 | if (_argo0) { |
8150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
8153 | return NULL; | |
8154 | } | |
8155 | } | |
ab9bc19b RD |
8156 | { |
8157 | wxPy_BEGIN_ALLOW_THREADS; | |
8158 | _result = (int )wxImageList_GetImageCount(_arg0); | |
8159 | ||
8160 | wxPy_END_ALLOW_THREADS; | |
8161 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
8162 | return _resultobj; |
8163 | } | |
8164 | ||
8165 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
107e4716 | 8166 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8167 | PyObject * _resultobj; |
8168 | bool _result; | |
8169 | wxImageList * _arg0; | |
8170 | int _arg1; | |
2d091820 | 8171 | PyObject * _argo0 = 0; |
107e4716 | 8172 | char *_kwnames[] = { "self","index", NULL }; |
21f8d7ea RD |
8173 | |
8174 | self = self; | |
107e4716 | 8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
21f8d7ea | 8176 | return NULL; |
2d091820 RD |
8177 | if (_argo0) { |
8178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
8181 | return NULL; | |
8182 | } | |
8183 | } | |
ab9bc19b RD |
8184 | { |
8185 | wxPy_BEGIN_ALLOW_THREADS; | |
8186 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
8187 | ||
8188 | wxPy_END_ALLOW_THREADS; | |
8189 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
8190 | return _resultobj; |
8191 | } | |
8192 | ||
8193 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
107e4716 | 8194 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
8195 | PyObject * _resultobj; |
8196 | bool _result; | |
8197 | wxImageList * _arg0; | |
2d091820 | 8198 | PyObject * _argo0 = 0; |
107e4716 | 8199 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
8200 | |
8201 | self = self; | |
107e4716 | 8202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
21f8d7ea | 8203 | return NULL; |
2d091820 RD |
8204 | if (_argo0) { |
8205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
8207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
8208 | return NULL; | |
8209 | } | |
8210 | } | |
ab9bc19b RD |
8211 | { |
8212 | wxPy_BEGIN_ALLOW_THREADS; | |
8213 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
8214 | ||
8215 | wxPy_END_ALLOW_THREADS; | |
8216 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
8217 | return _resultobj; |
8218 | } | |
8219 | ||
f6bcfd97 BP |
8220 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
8221 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8222 | PyObject * _resultobj; | |
8223 | wxImageList * _arg0; | |
8224 | int _arg1; | |
8225 | int * _arg2; | |
8226 | int temp; | |
8227 | int * _arg3; | |
8228 | int temp0; | |
8229 | PyObject * _argo0 = 0; | |
8230 | char *_kwnames[] = { "self","index", NULL }; | |
8231 | ||
8232 | self = self; | |
8233 | { | |
8234 | _arg2 = &temp; | |
8235 | } | |
8236 | { | |
8237 | _arg3 = &temp0; | |
8238 | } | |
8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
8240 | return NULL; | |
8241 | if (_argo0) { | |
8242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
8245 | return NULL; | |
8246 | } | |
8247 | } | |
8248 | { | |
8249 | wxPy_BEGIN_ALLOW_THREADS; | |
8250 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
8251 | ||
8252 | wxPy_END_ALLOW_THREADS; | |
8253 | } Py_INCREF(Py_None); | |
8254 | _resultobj = Py_None; | |
8255 | { | |
8256 | PyObject *o; | |
8257 | o = PyInt_FromLong((long) (*_arg2)); | |
8258 | _resultobj = t_output_helper(_resultobj, o); | |
8259 | } | |
8260 | { | |
8261 | PyObject *o; | |
8262 | o = PyInt_FromLong((long) (*_arg3)); | |
8263 | _resultobj = t_output_helper(_resultobj, o); | |
8264 | } | |
8265 | return _resultobj; | |
8266 | } | |
8267 | ||
70551f47 | 8268 | static PyMethodDef gdicMethods[] = { |
f6bcfd97 | 8269 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8270 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
8271 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8272 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
8273 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
8274 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8275 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, |
8276 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8277 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, |
8278 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
8279 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
8280 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8281 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
8282 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
8283 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
8284 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
8285 | { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
8286 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, | |
8287 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
8288 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
8289 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 8290 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 8291 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8292 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
8293 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
8294 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8295 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
8296 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
8297 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
8298 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8299 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8300 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8301 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
8302 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
8303 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8304 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8305 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
8306 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
8307 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
8308 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
8309 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
8310 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
8311 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
8312 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
8313 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 8314 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8315 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
8316 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8317 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
8318 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
8319 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
8320 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
8321 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
8322 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8323 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8324 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
8325 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
8326 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
8327 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
8328 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
8329 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
8330 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
8331 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 8332 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8333 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
8334 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8335 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8336 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 8337 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8338 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
8339 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
8340 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
8341 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
8342 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
8343 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 8344 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8345 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
8346 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8347 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
8348 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
8349 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
8350 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
8351 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
8352 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
8353 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
8354 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
8355 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
8356 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
8357 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
8358 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 8359 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8360 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
8361 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
8362 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
8363 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
8364 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
8365 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
8366 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
8367 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
8368 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
8369 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
8370 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
8371 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
8372 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
8373 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
8374 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
8375 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
8376 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8377 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
8378 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
8379 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd RD |
8380 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
8381 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
8382 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8383 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
8384 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
8385 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
8386 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8387 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8388 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
8389 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 8390 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 8391 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
8392 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
8393 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
8394 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 RD |
8395 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
8396 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8397 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
8398 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8399 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
8400 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
8401 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
8402 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8403 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8404 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8405 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
8406 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
8407 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 8408 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 8409 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
8410 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
8411 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
8412 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8413 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
8414 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
8415 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8416 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
8417 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
8418 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
8419 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
8420 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd RD |
8421 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
8422 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
8423 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc RD |
8424 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
8425 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
8426 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
8427 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8428 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, |
8429 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
8430 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8431 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
8432 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
8433 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc | 8434 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8435 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
8436 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
8437 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8438 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
8439 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
8440 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
d29aba2f | 8441 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd | 8442 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8443 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
8444 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8445 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 8446 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 8447 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
8448 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, |
8449 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8450 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
8451 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
8452 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8453 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, |
8454 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8455 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
8456 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 8457 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 8458 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 8459 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
8460 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
8461 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 8462 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
8463 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, |
8464 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
8465 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8466 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 8467 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 8468 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 8469 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
8470 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
8471 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
8472 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
8473 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
8474 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
8475 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc RD |
8476 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
8477 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 8478 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
8479 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
8480 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 8481 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
8482 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
8483 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 8484 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
8485 | { NULL, NULL } |
8486 | }; | |
2d091820 RD |
8487 | #ifdef __cplusplus |
8488 | } | |
8489 | #endif | |
8490 | /* | |
8491 | * This table is used by the pointer type-checker | |
8492 | */ | |
8493 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8494 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8495 | { "_signed_long","_long",0}, | |
4120ef2b | 8496 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
8497 | { "_wxPrintQuality","_int",0}, |
8498 | { "_wxPrintQuality","_signed_int",0}, | |
8499 | { "_wxPrintQuality","_unsigned_int",0}, | |
8500 | { "_wxPrintQuality","_wxWindowID",0}, | |
8501 | { "_wxPrintQuality","_uint",0}, | |
8502 | { "_wxPrintQuality","_EBool",0}, | |
8503 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8504 | { "_wxPrintQuality","_time_t",0}, |
2d091820 RD |
8505 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
8506 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8507 | { "_wxCursor","_class_wxCursor",0}, | |
8508 | { "_wxMask","_class_wxMask",0}, | |
8509 | { "_wxPen","_class_wxPen",0}, | |
8510 | { "_byte","_unsigned_char",0}, | |
5e40f9dd | 8511 | { "_wxColourDatabase","_class_wxColourDatabase",0}, |
2d091820 RD |
8512 | { "_long","_unsigned_long",0}, |
8513 | { "_long","_signed_long",0}, | |
8514 | { "_wxImageList","_class_wxImageList",0}, | |
8515 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
8516 | { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
8517 | { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
8518 | { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
8519 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
8520 | { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
8521 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
8522 | { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
8523 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
8524 | { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
8525 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
8526 | { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
8527 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
8528 | { "_wxDC","_class_wxDC",0}, | |
4120ef2b | 8529 | { "_size_t","_wxCoord",0}, |
2d091820 | 8530 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8531 | { "_size_t","_time_t",0}, |
2d091820 RD |
8532 | { "_size_t","_unsigned_int",0}, |
8533 | { "_size_t","_int",0}, | |
8534 | { "_size_t","_wxWindowID",0}, | |
8535 | { "_size_t","_uint",0}, | |
8536 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
8537 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
8538 | { "_class_wxMask","_wxMask",0}, | |
8539 | { "_wxColour","_class_wxColour",0}, | |
8540 | { "_wxBrush","_class_wxBrush",0}, | |
4120ef2b | 8541 | { "_uint","_wxCoord",0}, |
2d091820 | 8542 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8543 | { "_uint","_time_t",0}, |
2d091820 RD |
8544 | { "_uint","_size_t",0}, |
8545 | { "_uint","_unsigned_int",0}, | |
8546 | { "_uint","_int",0}, | |
8547 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8548 | { "_wxChar","_char",0}, |
2d091820 RD |
8549 | { "_wxRect","_class_wxRect",0}, |
8550 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 8551 | { "_char","_wxChar",0}, |
2d091820 | 8552 | { "_wxBitmap","_class_wxBitmap",0}, |
5e40f9dd | 8553 | { "_wxPenList","_class_wxPenList",0}, |
2d091820 RD |
8554 | { "_wxWindowDC","_class_wxWindowDC",0}, |
8555 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
5e40f9dd | 8556 | { "_class_wxColourDatabase","_wxColourDatabase",0}, |
4120ef2b | 8557 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
8558 | { "_EBool","_wxPrintQuality",0}, |
8559 | { "_EBool","_signed_int",0}, | |
8560 | { "_EBool","_int",0}, | |
8561 | { "_EBool","_wxWindowID",0}, | |
8562 | { "_class_wxRegion","_wxRegion",0}, | |
8563 | { "_wxFont","_class_wxFont",0}, | |
2d091820 RD |
8564 | { "_unsigned_long","_long",0}, |
8565 | { "_class_wxRect","_wxRect",0}, | |
8566 | { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
8567 | { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
8568 | { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
8569 | { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
8570 | { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
8571 | { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
8572 | { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
8573 | { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
8574 | { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
8575 | { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
8576 | { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
8577 | { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
8578 | { "_class_wxDC","_wxDC",0}, | |
5e40f9dd RD |
8579 | { "_class_wxBrushList","_wxBrushList",0}, |
8580 | { "_class_wxPenList","_wxPenList",0}, | |
2d091820 | 8581 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
4120ef2b | 8582 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
8583 | { "_signed_int","_wxPrintQuality",0}, |
8584 | { "_signed_int","_EBool",0}, | |
8585 | { "_signed_int","_wxWindowID",0}, | |
8586 | { "_signed_int","_int",0}, | |
8587 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
8588 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8589 | { "_WXTYPE","_short",0}, | |
8590 | { "_WXTYPE","_signed_short",0}, | |
8591 | { "_WXTYPE","_unsigned_short",0}, | |
8592 | { "_class_wxBrush","_wxBrush",0}, | |
8593 | { "_unsigned_short","_WXTYPE",0}, | |
8594 | { "_unsigned_short","_short",0}, | |
8595 | { "_class_wxFont","_wxFont",0}, | |
4120ef2b | 8596 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
5e40f9dd | 8597 | { "_wxFontList","_class_wxFontList",0}, |
2d091820 RD |
8598 | { "_wxClientDC","_class_wxClientDC",0}, |
8599 | { "_class_wxPoint","_wxPoint",0}, | |
8600 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8601 | { "_signed_short","_WXTYPE",0}, | |
8602 | { "_signed_short","_short",0}, | |
8603 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
8604 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
8605 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8606 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8607 | { "_class_wxCursor","_wxCursor",0}, | |
8608 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
8609 | { "_unsigned_char","_byte",0}, | |
4120ef2b | 8610 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 8611 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8612 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
8613 | { "_unsigned_int","_size_t",0}, |
8614 | { "_unsigned_int","_uint",0}, | |
8615 | { "_unsigned_int","_wxWindowID",0}, | |
8616 | { "_unsigned_int","_int",0}, | |
8617 | { "_wxIcon","_class_wxIcon",0}, | |
8618 | { "_class_wxPen","_wxPen",0}, | |
8619 | { "_short","_WXTYPE",0}, | |
8620 | { "_short","_unsigned_short",0}, | |
8621 | { "_short","_signed_short",0}, | |
8622 | { "_class_wxImageList","_wxImageList",0}, | |
4120ef2b | 8623 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 8624 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8625 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
8626 | { "_wxWindowID","_size_t",0}, |
8627 | { "_wxWindowID","_EBool",0}, | |
8628 | { "_wxWindowID","_uint",0}, | |
8629 | { "_wxWindowID","_int",0}, | |
8630 | { "_wxWindowID","_signed_int",0}, | |
8631 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 8632 | { "_int","_wxCoord",0}, |
2d091820 | 8633 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8634 | { "_int","_time_t",0}, |
2d091820 RD |
8635 | { "_int","_size_t",0}, |
8636 | { "_int","_EBool",0}, | |
8637 | { "_int","_uint",0}, | |
8638 | { "_int","_wxWindowID",0}, | |
8639 | { "_int","_unsigned_int",0}, | |
8640 | { "_int","_signed_int",0}, | |
c368d904 RD |
8641 | { "_time_t","_wxCoord",0}, |
8642 | { "_time_t","_wxPrintQuality",0}, | |
8643 | { "_time_t","_unsigned_int",0}, | |
8644 | { "_time_t","_int",0}, | |
8645 | { "_time_t","_wxWindowID",0}, | |
8646 | { "_time_t","_uint",0}, | |
8647 | { "_time_t","_size_t",0}, | |
2d091820 RD |
8648 | { "_wxSize","_class_wxSize",0}, |
8649 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
8650 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
8651 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
8652 | { "_class_wxIcon","_wxIcon",0}, | |
8653 | { "_class_wxColour","_wxColour",0}, | |
8654 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8655 | { "_wxPalette","_class_wxPalette",0}, | |
4120ef2b RD |
8656 | { "_wxCoord","_int",0}, |
8657 | { "_wxCoord","_signed_int",0}, | |
8658 | { "_wxCoord","_unsigned_int",0}, | |
8659 | { "_wxCoord","_wxWindowID",0}, | |
8660 | { "_wxCoord","_uint",0}, | |
8661 | { "_wxCoord","_EBool",0}, | |
8662 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8663 | { "_wxCoord","_time_t",0}, |
4120ef2b | 8664 | { "_wxCoord","_wxPrintQuality",0}, |
2d091820 | 8665 | { "_wxRegion","_class_wxRegion",0}, |
4120ef2b | 8666 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
5e40f9dd | 8667 | { "_class_wxFontList","_wxFontList",0}, |
2d091820 | 8668 | { "_class_wxClientDC","_wxClientDC",0}, |
5e40f9dd | 8669 | { "_wxBrushList","_class_wxBrushList",0}, |
2d091820 | 8670 | { "_class_wxSize","_wxSize",0}, |
2d091820 RD |
8671 | { "_class_wxBitmap","_wxBitmap",0}, |
8672 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
2d091820 RD |
8673 | { "_class_wxPalette","_wxPalette",0}, |
8674 | {0,0,0}}; | |
8675 | ||
70551f47 RD |
8676 | static PyObject *SWIG_globals; |
8677 | #ifdef __cplusplus | |
8678 | extern "C" | |
8679 | #endif | |
2d091820 | 8680 | SWIGEXPORT(void) initgdic() { |
70551f47 RD |
8681 | PyObject *m, *d; |
8682 | SWIG_globals = SWIG_newvarlink(); | |
8683 | m = Py_InitModule("gdic", gdicMethods); | |
8684 | d = PyModule_GetDict(m); | |
134d79dc RD |
8685 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
8686 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
8687 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
8688 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
8689 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
8690 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
8691 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
8692 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
8693 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
8694 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
8695 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
8696 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
8697 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
8698 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
8699 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
8700 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
8701 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
8702 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
8703 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
8704 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
8705 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
8706 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
8707 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
8708 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
8709 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
8710 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); | |
8711 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
8712 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
8713 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
70551f47 RD |
8714 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
8715 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
8716 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
8717 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
8718 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
8719 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
8720 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
8721 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
8722 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
8723 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
8724 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
8725 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
8726 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
8727 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
8728 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
8729 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
8730 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
8731 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
8732 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
8733 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
8734 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
8735 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
8736 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
8737 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
8738 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
8739 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
8740 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
8741 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
8742 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
8743 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
8744 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
8745 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
8746 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
8747 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
8748 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
8749 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
8750 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
8751 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
8752 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
8753 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
8754 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
8755 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
8756 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
5e40f9dd RD |
8757 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
8758 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
8759 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
8760 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
21f8d7ea RD |
8761 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
8762 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
8763 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
8764 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
8765 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
8766 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
8767 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
2d091820 RD |
8768 | { |
8769 | int i; | |
8770 | for (i = 0; _swig_mapping[i].n1; i++) | |
8771 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8772 | } | |
70551f47 | 8773 | } |