]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
1 | /* |
2 | * FILE : gtk/gdi.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
9cce9de1 | 6 | * Version 1.1 (Build 810) |
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__) | |
2d091820 | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
2d091820 | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
2d091820 | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
70551f47 RD |
52 | #define SWIG_init initgdic |
53 | ||
54 | #define SWIG_name "gdic" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <wx/metafile.h> | |
21f8d7ea | 58 | #include <wx/imaglist.h> |
105e45b9 | 59 | #ifndef __WXMSW__ |
dd9a3de8 | 60 | #include <wx/dcps.h> |
105e45b9 | 61 | #endif |
70551f47 RD |
62 | |
63 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | if (!target) { | |
67 | target = o; | |
68 | } else if (target == Py_None) { | |
69 | Py_DECREF(Py_None); | |
70 | target = o; | |
71 | } else { | |
72 | if (!PyList_Check(target)) { | |
73 | o2 = target; | |
74 | target = PyList_New(0); | |
75 | PyList_Append(target, o2); | |
76 | Py_XDECREF(o2); | |
77 | } | |
78 | PyList_Append(target,o); | |
79 | Py_XDECREF(o); | |
80 | } | |
81 | return target; | |
82 | } | |
83 | ||
84 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
85 | PyObject* o2; | |
86 | PyObject* o3; | |
87 | ||
88 | if (!target) { | |
89 | target = o; | |
90 | } else if (target == Py_None) { | |
91 | Py_DECREF(Py_None); | |
92 | target = o; | |
93 | } else { | |
94 | if (!PyTuple_Check(target)) { | |
95 | o2 = target; | |
96 | target = PyTuple_New(1); | |
97 | PyTuple_SetItem(target, 0, o2); | |
98 | } | |
99 | o3 = PyTuple_New(1); | |
100 | PyTuple_SetItem(o3, 0, o); | |
101 | ||
102 | o2 = target; | |
103 | target = PySequence_Concat(o2, o3); | |
104 | Py_DECREF(o2); | |
105 | Py_DECREF(o3); | |
106 | } | |
107 | return target; | |
108 | } | |
109 | ||
70551f47 RD |
110 | static char* wxStringErrorMsg = "string type is required for parameter"; |
111 | // Alternate 'constructor' | |
112 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { | |
113 | return new wxBitmap(width, height, depth); | |
114 | } | |
115 | ||
8bf5d46e | 116 | #ifdef __WXMSW__ |
7ff49f0c | 117 | wxBitmap* wxBitmapFromData(PyObject* data, long type, |
8bf5d46e | 118 | int width, int height, int depth = 1) { |
7ff49f0c RD |
119 | if (! PyString_Check(data)) { |
120 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
121 | return NULL; | |
122 | } | |
123 | ||
124 | return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
8bf5d46e RD |
125 | } |
126 | #endif | |
127 | ||
70551f47 RD |
128 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
129 | return new wxMask(bitmap, colour); | |
130 | } | |
131 | // Alternate 'constructor' | |
b26e2dc4 | 132 | wxCursor* wxPyStockCursor(int id) { |
70551f47 RD |
133 | return new wxCursor(id); |
134 | } | |
134d79dc RD |
135 | |
136 | wxFontEncoding wxFont_GetDefaultEncoding() { | |
137 | return wxFont::GetDefaultEncoding(); | |
138 | } | |
139 | ||
140 | void wxFont_SetDefaultEncoding(wxFontEncoding encoding) { | |
141 | wxFont::SetDefaultEncoding(encoding); | |
142 | } | |
70551f47 RD |
143 | // Alternate 'constructor' |
144 | wxColour* wxNamedColour(const wxString& colorName) { | |
145 | return new wxColour(colorName); | |
146 | } | |
147 | // Alternate 'constructor' | |
148 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
149 | return new wxMemoryDC(oldDC); | |
150 | } | |
21f8d7ea RD |
151 | |
152 | #if 0 | |
70551f47 RD |
153 | extern wxFont * wxNORMAL_FONT; |
154 | extern wxFont * wxSMALL_FONT; | |
155 | extern wxFont * wxITALIC_FONT; | |
156 | extern wxFont * wxSWISS_FONT; | |
157 | extern wxPen * wxRED_PEN; | |
158 | extern wxPen * wxCYAN_PEN; | |
159 | extern wxPen * wxGREEN_PEN; | |
160 | extern wxPen * wxBLACK_PEN; | |
161 | extern wxPen * wxWHITE_PEN; | |
162 | extern wxPen * wxTRANSPARENT_PEN; | |
163 | extern wxPen * wxBLACK_DASHED_PEN; | |
164 | extern wxPen * wxGREY_PEN; | |
165 | extern wxPen * wxMEDIUM_GREY_PEN; | |
166 | extern wxPen * wxLIGHT_GREY_PEN; | |
167 | extern wxBrush * wxBLUE_BRUSH; | |
168 | extern wxBrush * wxGREEN_BRUSH; | |
169 | extern wxBrush * wxWHITE_BRUSH; | |
170 | extern wxBrush * wxBLACK_BRUSH; | |
171 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
172 | extern wxBrush * wxCYAN_BRUSH; | |
173 | extern wxBrush * wxRED_BRUSH; | |
174 | extern wxBrush * wxGREY_BRUSH; | |
175 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
176 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
177 | extern wxColour * wxBLACK; | |
178 | extern wxColour * wxWHITE; | |
179 | extern wxColour * wxRED; | |
180 | extern wxColour * wxBLUE; | |
181 | extern wxColour * wxGREEN; | |
182 | extern wxColour * wxCYAN; | |
183 | extern wxColour * wxLIGHT_GREY; | |
184 | extern wxCursor * wxSTANDARD_CURSOR; | |
185 | extern wxCursor * wxHOURGLASS_CURSOR; | |
186 | extern wxCursor * wxCROSS_CURSOR; | |
187 | extern wxBitmap wxNullBitmap; | |
188 | extern wxIcon wxNullIcon; | |
189 | extern wxCursor wxNullCursor; | |
190 | extern wxPen wxNullPen; | |
191 | extern wxBrush wxNullBrush; | |
192 | extern wxPalette wxNullPalette; | |
193 | extern wxFont wxNullFont; | |
194 | extern wxColour wxNullColour; | |
21f8d7ea | 195 | |
2d091820 RD |
196 | #endif |
197 | #ifdef __cplusplus | |
198 | extern "C" { | |
21f8d7ea | 199 | #endif |
107e4716 | 200 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
201 | PyObject * _resultobj; |
202 | wxBitmap * _result; | |
203 | int _arg0; | |
204 | int _arg1; | |
2d091820 | 205 | int _arg2 = (int ) -1; |
107e4716 | 206 | char *_kwnames[] = { "width","height","depth", NULL }; |
70551f47 RD |
207 | char _ptemp[128]; |
208 | ||
209 | self = self; | |
107e4716 | 210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 211 | return NULL; |
ab9bc19b RD |
212 | { |
213 | wxPy_BEGIN_ALLOW_THREADS; | |
214 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
215 | ||
216 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
217 | } if (_result) { |
218 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
219 | _resultobj = Py_BuildValue("s",_ptemp); | |
220 | } else { | |
221 | Py_INCREF(Py_None); | |
222 | _resultobj = Py_None; | |
223 | } | |
70551f47 RD |
224 | return _resultobj; |
225 | } | |
226 | ||
107e4716 | 227 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
228 | PyObject * _resultobj; |
229 | wxMask * _result; | |
230 | wxBitmap * _arg0; | |
231 | wxColour * _arg1; | |
2d091820 | 232 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
233 | wxColour temp; |
234 | PyObject * _obj1 = 0; | |
107e4716 | 235 | char *_kwnames[] = { "bitmap","colour", NULL }; |
70551f47 RD |
236 | char _ptemp[128]; |
237 | ||
238 | self = self; | |
f6bcfd97 | 239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 240 | return NULL; |
2d091820 RD |
241 | if (_argo0) { |
242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
245 | return NULL; | |
246 | } | |
247 | } | |
f6bcfd97 BP |
248 | { |
249 | _arg1 = &temp; | |
250 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 251 | return NULL; |
f6bcfd97 | 252 | } |
ab9bc19b RD |
253 | { |
254 | wxPy_BEGIN_ALLOW_THREADS; | |
255 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
256 | ||
257 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
258 | } if (_result) { |
259 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
260 | _resultobj = Py_BuildValue("s",_ptemp); | |
261 | } else { | |
262 | Py_INCREF(Py_None); | |
263 | _resultobj = Py_None; | |
264 | } | |
70551f47 RD |
265 | return _resultobj; |
266 | } | |
267 | ||
107e4716 | 268 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
269 | PyObject * _resultobj; |
270 | wxCursor * _result; | |
271 | int _arg0; | |
107e4716 | 272 | char *_kwnames[] = { "id", NULL }; |
70551f47 RD |
273 | char _ptemp[128]; |
274 | ||
275 | self = self; | |
107e4716 | 276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
70551f47 | 277 | return NULL; |
ab9bc19b RD |
278 | { |
279 | wxPy_BEGIN_ALLOW_THREADS; | |
280 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
281 | ||
282 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
283 | } if (_result) { |
284 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
285 | _resultobj = Py_BuildValue("s",_ptemp); | |
286 | } else { | |
287 | Py_INCREF(Py_None); | |
288 | _resultobj = Py_None; | |
289 | } | |
70551f47 RD |
290 | return _resultobj; |
291 | } | |
292 | ||
134d79dc RD |
293 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
294 | PyObject * _resultobj; | |
295 | wxFontEncoding _result; | |
296 | char *_kwnames[] = { NULL }; | |
297 | ||
298 | self = self; | |
299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
300 | return NULL; | |
301 | { | |
302 | wxPy_BEGIN_ALLOW_THREADS; | |
303 | _result = (wxFontEncoding )wxFont_GetDefaultEncoding(); | |
304 | ||
305 | wxPy_END_ALLOW_THREADS; | |
306 | } _resultobj = Py_BuildValue("i",_result); | |
307 | return _resultobj; | |
308 | } | |
309 | ||
310 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
311 | PyObject * _resultobj; | |
312 | wxFontEncoding _arg0; | |
313 | char *_kwnames[] = { "encoding", NULL }; | |
314 | ||
315 | self = self; | |
316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
317 | return NULL; | |
318 | { | |
319 | wxPy_BEGIN_ALLOW_THREADS; | |
320 | wxFont_SetDefaultEncoding(_arg0); | |
321 | ||
322 | wxPy_END_ALLOW_THREADS; | |
323 | } Py_INCREF(Py_None); | |
324 | _resultobj = Py_None; | |
325 | return _resultobj; | |
326 | } | |
327 | ||
107e4716 | 328 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
329 | PyObject * _resultobj; |
330 | wxColour * _result; | |
331 | wxString * _arg0; | |
332 | PyObject * _obj0 = 0; | |
107e4716 | 333 | char *_kwnames[] = { "colorName", NULL }; |
70551f47 RD |
334 | char _ptemp[128]; |
335 | ||
336 | self = self; | |
107e4716 | 337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
70551f47 RD |
338 | return NULL; |
339 | { | |
340 | if (!PyString_Check(_obj0)) { | |
341 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
342 | return NULL; | |
343 | } | |
ab9bc19b | 344 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); |
70551f47 | 345 | } |
ab9bc19b RD |
346 | { |
347 | wxPy_BEGIN_ALLOW_THREADS; | |
348 | _result = (wxColour *)wxNamedColour(*_arg0); | |
349 | ||
350 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
351 | } if (_result) { |
352 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
353 | _resultobj = Py_BuildValue("s",_ptemp); | |
354 | } else { | |
355 | Py_INCREF(Py_None); | |
356 | _resultobj = Py_None; | |
357 | } | |
70551f47 RD |
358 | { |
359 | if (_obj0) | |
360 | delete _arg0; | |
361 | } | |
362 | return _resultobj; | |
363 | } | |
364 | ||
107e4716 | 365 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
366 | PyObject * _resultobj; |
367 | wxMemoryDC * _result; | |
368 | wxDC * _arg0; | |
2d091820 | 369 | PyObject * _argo0 = 0; |
107e4716 | 370 | char *_kwnames[] = { "oldDC", NULL }; |
70551f47 RD |
371 | char _ptemp[128]; |
372 | ||
373 | self = self; | |
107e4716 | 374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
70551f47 | 375 | return NULL; |
2d091820 RD |
376 | if (_argo0) { |
377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
380 | return NULL; | |
381 | } | |
382 | } | |
ab9bc19b RD |
383 | { |
384 | wxPy_BEGIN_ALLOW_THREADS; | |
385 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
386 | ||
387 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
388 | } if (_result) { |
389 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
390 | _resultobj = Py_BuildValue("s",_ptemp); | |
391 | } else { | |
392 | Py_INCREF(Py_None); | |
393 | _resultobj = Py_None; | |
394 | } | |
70551f47 RD |
395 | return _resultobj; |
396 | } | |
397 | ||
398 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
399 | ||
400 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
401 | return 1; | |
402 | } | |
403 | ||
404 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
405 | PyObject * pyobj; | |
406 | char ptemp[128]; | |
407 | ||
408 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
409 | pyobj = PyString_FromString(ptemp); | |
410 | return pyobj; | |
411 | } | |
412 | ||
413 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
414 | ||
415 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
416 | return 1; | |
417 | } | |
418 | ||
419 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
420 | PyObject * pyobj; | |
421 | char ptemp[128]; | |
422 | ||
423 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
424 | pyobj = PyString_FromString(ptemp); | |
425 | return pyobj; | |
426 | } | |
427 | ||
428 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
429 | ||
430 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
431 | return 1; | |
432 | } | |
433 | ||
434 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
435 | PyObject * pyobj; | |
436 | char ptemp[128]; | |
437 | ||
438 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
439 | pyobj = PyString_FromString(ptemp); | |
440 | return pyobj; | |
441 | } | |
442 | ||
443 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
444 | ||
445 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
446 | return 1; | |
447 | } | |
448 | ||
449 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
450 | PyObject * pyobj; | |
451 | char ptemp[128]; | |
452 | ||
453 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
454 | pyobj = PyString_FromString(ptemp); | |
455 | return pyobj; | |
456 | } | |
457 | ||
458 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
459 | ||
460 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
461 | return 1; | |
462 | } | |
463 | ||
464 | static PyObject *_wrap_wxRED_PEN_get() { | |
465 | PyObject * pyobj; | |
466 | char ptemp[128]; | |
467 | ||
468 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
469 | pyobj = PyString_FromString(ptemp); | |
470 | return pyobj; | |
471 | } | |
472 | ||
473 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
474 | ||
475 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
476 | return 1; | |
477 | } | |
478 | ||
479 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
480 | PyObject * pyobj; | |
481 | char ptemp[128]; | |
482 | ||
483 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
484 | pyobj = PyString_FromString(ptemp); | |
485 | return pyobj; | |
486 | } | |
487 | ||
488 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
489 | ||
490 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
491 | return 1; | |
492 | } | |
493 | ||
494 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
495 | PyObject * pyobj; | |
496 | char ptemp[128]; | |
497 | ||
498 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
499 | pyobj = PyString_FromString(ptemp); | |
500 | return pyobj; | |
501 | } | |
502 | ||
503 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
504 | ||
505 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
506 | return 1; | |
507 | } | |
508 | ||
509 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
510 | PyObject * pyobj; | |
511 | char ptemp[128]; | |
512 | ||
513 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
514 | pyobj = PyString_FromString(ptemp); | |
515 | return pyobj; | |
516 | } | |
517 | ||
518 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
519 | ||
520 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
521 | return 1; | |
522 | } | |
523 | ||
524 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
525 | PyObject * pyobj; | |
526 | char ptemp[128]; | |
527 | ||
528 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
529 | pyobj = PyString_FromString(ptemp); | |
530 | return pyobj; | |
531 | } | |
532 | ||
533 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
534 | ||
535 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
536 | return 1; | |
537 | } | |
538 | ||
539 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
540 | PyObject * pyobj; | |
541 | char ptemp[128]; | |
542 | ||
543 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
544 | pyobj = PyString_FromString(ptemp); | |
545 | return pyobj; | |
546 | } | |
547 | ||
548 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
549 | ||
550 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
551 | return 1; | |
552 | } | |
553 | ||
554 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
555 | PyObject * pyobj; | |
556 | char ptemp[128]; | |
557 | ||
558 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
559 | pyobj = PyString_FromString(ptemp); | |
560 | return pyobj; | |
561 | } | |
562 | ||
563 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
564 | ||
565 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
566 | return 1; | |
567 | } | |
568 | ||
569 | static PyObject *_wrap_wxGREY_PEN_get() { | |
570 | PyObject * pyobj; | |
571 | char ptemp[128]; | |
572 | ||
573 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
574 | pyobj = PyString_FromString(ptemp); | |
575 | return pyobj; | |
576 | } | |
577 | ||
578 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
579 | ||
580 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
581 | return 1; | |
582 | } | |
583 | ||
584 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
585 | PyObject * pyobj; | |
586 | char ptemp[128]; | |
587 | ||
588 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
589 | pyobj = PyString_FromString(ptemp); | |
590 | return pyobj; | |
591 | } | |
592 | ||
593 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
594 | ||
595 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
596 | return 1; | |
597 | } | |
598 | ||
599 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
600 | PyObject * pyobj; | |
601 | char ptemp[128]; | |
602 | ||
603 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
604 | pyobj = PyString_FromString(ptemp); | |
605 | return pyobj; | |
606 | } | |
607 | ||
608 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
609 | ||
610 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
611 | return 1; | |
612 | } | |
613 | ||
614 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
615 | PyObject * pyobj; | |
616 | char ptemp[128]; | |
617 | ||
618 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
619 | pyobj = PyString_FromString(ptemp); | |
620 | return pyobj; | |
621 | } | |
622 | ||
623 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
624 | ||
625 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
626 | return 1; | |
627 | } | |
628 | ||
629 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
630 | PyObject * pyobj; | |
631 | char ptemp[128]; | |
632 | ||
633 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
634 | pyobj = PyString_FromString(ptemp); | |
635 | return pyobj; | |
636 | } | |
637 | ||
638 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
639 | ||
640 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
641 | return 1; | |
642 | } | |
643 | ||
644 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
645 | PyObject * pyobj; | |
646 | char ptemp[128]; | |
647 | ||
648 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
649 | pyobj = PyString_FromString(ptemp); | |
650 | return pyobj; | |
651 | } | |
652 | ||
653 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
654 | ||
655 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
656 | return 1; | |
657 | } | |
658 | ||
659 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
660 | PyObject * pyobj; | |
661 | char ptemp[128]; | |
662 | ||
663 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
664 | pyobj = PyString_FromString(ptemp); | |
665 | return pyobj; | |
666 | } | |
667 | ||
668 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
669 | ||
670 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
671 | return 1; | |
672 | } | |
673 | ||
674 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
675 | PyObject * pyobj; | |
676 | char ptemp[128]; | |
677 | ||
678 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
679 | pyobj = PyString_FromString(ptemp); | |
680 | return pyobj; | |
681 | } | |
682 | ||
683 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
684 | ||
685 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
686 | return 1; | |
687 | } | |
688 | ||
689 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
690 | PyObject * pyobj; | |
691 | char ptemp[128]; | |
692 | ||
693 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
694 | pyobj = PyString_FromString(ptemp); | |
695 | return pyobj; | |
696 | } | |
697 | ||
698 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
699 | ||
700 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
701 | return 1; | |
702 | } | |
703 | ||
704 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
705 | PyObject * pyobj; | |
706 | char ptemp[128]; | |
707 | ||
708 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
709 | pyobj = PyString_FromString(ptemp); | |
710 | return pyobj; | |
711 | } | |
712 | ||
713 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
714 | ||
715 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
716 | return 1; | |
717 | } | |
718 | ||
719 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
720 | PyObject * pyobj; | |
721 | char ptemp[128]; | |
722 | ||
723 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
724 | pyobj = PyString_FromString(ptemp); | |
725 | return pyobj; | |
726 | } | |
727 | ||
728 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
729 | ||
730 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
731 | return 1; | |
732 | } | |
733 | ||
734 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
735 | PyObject * pyobj; | |
736 | char ptemp[128]; | |
737 | ||
738 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
739 | pyobj = PyString_FromString(ptemp); | |
740 | return pyobj; | |
741 | } | |
742 | ||
743 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
744 | ||
745 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
746 | return 1; | |
747 | } | |
748 | ||
749 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
750 | PyObject * pyobj; | |
751 | char ptemp[128]; | |
752 | ||
753 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
754 | pyobj = PyString_FromString(ptemp); | |
755 | return pyobj; | |
756 | } | |
757 | ||
758 | static int _wrap_wxBLACK_set(PyObject *val) { | |
759 | ||
760 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
761 | return 1; | |
762 | } | |
763 | ||
764 | static PyObject *_wrap_wxBLACK_get() { | |
765 | PyObject * pyobj; | |
766 | char ptemp[128]; | |
767 | ||
768 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
769 | pyobj = PyString_FromString(ptemp); | |
770 | return pyobj; | |
771 | } | |
772 | ||
773 | static int _wrap_wxWHITE_set(PyObject *val) { | |
774 | ||
775 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
776 | return 1; | |
777 | } | |
778 | ||
779 | static PyObject *_wrap_wxWHITE_get() { | |
780 | PyObject * pyobj; | |
781 | char ptemp[128]; | |
782 | ||
783 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
784 | pyobj = PyString_FromString(ptemp); | |
785 | return pyobj; | |
786 | } | |
787 | ||
788 | static int _wrap_wxRED_set(PyObject *val) { | |
789 | ||
790 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
791 | return 1; | |
792 | } | |
793 | ||
794 | static PyObject *_wrap_wxRED_get() { | |
795 | PyObject * pyobj; | |
796 | char ptemp[128]; | |
797 | ||
798 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
799 | pyobj = PyString_FromString(ptemp); | |
800 | return pyobj; | |
801 | } | |
802 | ||
803 | static int _wrap_wxBLUE_set(PyObject *val) { | |
804 | ||
805 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
806 | return 1; | |
807 | } | |
808 | ||
809 | static PyObject *_wrap_wxBLUE_get() { | |
810 | PyObject * pyobj; | |
811 | char ptemp[128]; | |
812 | ||
813 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
814 | pyobj = PyString_FromString(ptemp); | |
815 | return pyobj; | |
816 | } | |
817 | ||
818 | static int _wrap_wxGREEN_set(PyObject *val) { | |
819 | ||
820 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
821 | return 1; | |
822 | } | |
823 | ||
824 | static PyObject *_wrap_wxGREEN_get() { | |
825 | PyObject * pyobj; | |
826 | char ptemp[128]; | |
827 | ||
828 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
829 | pyobj = PyString_FromString(ptemp); | |
830 | return pyobj; | |
831 | } | |
832 | ||
833 | static int _wrap_wxCYAN_set(PyObject *val) { | |
834 | ||
835 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
836 | return 1; | |
837 | } | |
838 | ||
839 | static PyObject *_wrap_wxCYAN_get() { | |
840 | PyObject * pyobj; | |
841 | char ptemp[128]; | |
842 | ||
843 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
844 | pyobj = PyString_FromString(ptemp); | |
845 | return pyobj; | |
846 | } | |
847 | ||
848 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
849 | ||
850 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
851 | return 1; | |
852 | } | |
853 | ||
854 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
855 | PyObject * pyobj; | |
856 | char ptemp[128]; | |
857 | ||
858 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
859 | pyobj = PyString_FromString(ptemp); | |
860 | return pyobj; | |
861 | } | |
862 | ||
863 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
864 | ||
865 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
866 | return 1; | |
867 | } | |
868 | ||
869 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
870 | PyObject * pyobj; | |
871 | char ptemp[128]; | |
872 | ||
873 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
874 | pyobj = PyString_FromString(ptemp); | |
875 | return pyobj; | |
876 | } | |
877 | ||
878 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
879 | ||
880 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
881 | return 1; | |
882 | } | |
883 | ||
884 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
885 | PyObject * pyobj; | |
886 | char ptemp[128]; | |
887 | ||
888 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
889 | pyobj = PyString_FromString(ptemp); | |
890 | return pyobj; | |
891 | } | |
892 | ||
893 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
894 | ||
895 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
896 | return 1; | |
897 | } | |
898 | ||
899 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
900 | PyObject * pyobj; | |
901 | char ptemp[128]; | |
902 | ||
903 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
904 | pyobj = PyString_FromString(ptemp); | |
905 | return pyobj; | |
906 | } | |
907 | ||
908 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
909 | ||
910 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
911 | return 1; | |
912 | } | |
913 | ||
914 | static PyObject *_wrap_wxNullBitmap_get() { | |
915 | PyObject * pyobj; | |
916 | char ptemp[128]; | |
917 | ||
918 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
919 | pyobj = PyString_FromString(ptemp); | |
920 | return pyobj; | |
921 | } | |
922 | ||
923 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
924 | ||
925 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
926 | return 1; | |
927 | } | |
928 | ||
929 | static PyObject *_wrap_wxNullIcon_get() { | |
930 | PyObject * pyobj; | |
931 | char ptemp[128]; | |
932 | ||
933 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
934 | pyobj = PyString_FromString(ptemp); | |
935 | return pyobj; | |
936 | } | |
937 | ||
938 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
939 | ||
940 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
941 | return 1; | |
942 | } | |
943 | ||
944 | static PyObject *_wrap_wxNullCursor_get() { | |
945 | PyObject * pyobj; | |
946 | char ptemp[128]; | |
947 | ||
948 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
949 | pyobj = PyString_FromString(ptemp); | |
950 | return pyobj; | |
951 | } | |
952 | ||
953 | static int _wrap_wxNullPen_set(PyObject *val) { | |
954 | ||
955 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
956 | return 1; | |
957 | } | |
958 | ||
959 | static PyObject *_wrap_wxNullPen_get() { | |
960 | PyObject * pyobj; | |
961 | char ptemp[128]; | |
962 | ||
963 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
964 | pyobj = PyString_FromString(ptemp); | |
965 | return pyobj; | |
966 | } | |
967 | ||
968 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
969 | ||
970 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
971 | return 1; | |
972 | } | |
973 | ||
974 | static PyObject *_wrap_wxNullBrush_get() { | |
975 | PyObject * pyobj; | |
976 | char ptemp[128]; | |
977 | ||
978 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
979 | pyobj = PyString_FromString(ptemp); | |
980 | return pyobj; | |
981 | } | |
982 | ||
983 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
984 | ||
985 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
986 | return 1; | |
987 | } | |
988 | ||
989 | static PyObject *_wrap_wxNullPalette_get() { | |
990 | PyObject * pyobj; | |
991 | char ptemp[128]; | |
992 | ||
993 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
994 | pyobj = PyString_FromString(ptemp); | |
995 | return pyobj; | |
996 | } | |
997 | ||
998 | static int _wrap_wxNullFont_set(PyObject *val) { | |
999 | ||
1000 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1001 | return 1; | |
1002 | } | |
1003 | ||
1004 | static PyObject *_wrap_wxNullFont_get() { | |
1005 | PyObject * pyobj; | |
1006 | char ptemp[128]; | |
1007 | ||
1008 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1009 | pyobj = PyString_FromString(ptemp); | |
1010 | return pyobj; | |
1011 | } | |
1012 | ||
1013 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1014 | ||
1015 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1016 | return 1; | |
1017 | } | |
1018 | ||
1019 | static PyObject *_wrap_wxNullColour_get() { | |
1020 | PyObject * pyobj; | |
1021 | char ptemp[128]; | |
1022 | ||
1023 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1024 | pyobj = PyString_FromString(ptemp); | |
1025 | return pyobj; | |
1026 | } | |
1027 | ||
1028 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
107e4716 | 1029 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1030 | PyObject * _resultobj; |
1031 | wxBitmap * _result; | |
1032 | wxString * _arg0; | |
1033 | long _arg1; | |
1034 | PyObject * _obj0 = 0; | |
107e4716 | 1035 | char *_kwnames[] = { "name","type", NULL }; |
70551f47 RD |
1036 | char _ptemp[128]; |
1037 | ||
1038 | self = self; | |
107e4716 | 1039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
70551f47 RD |
1040 | return NULL; |
1041 | { | |
1042 | if (!PyString_Check(_obj0)) { | |
1043 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1044 | return NULL; | |
1045 | } | |
ab9bc19b | 1046 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); |
70551f47 | 1047 | } |
ab9bc19b RD |
1048 | { |
1049 | wxPy_BEGIN_ALLOW_THREADS; | |
1050 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
1051 | ||
1052 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1053 | } if (_result) { |
1054 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1055 | _resultobj = Py_BuildValue("s",_ptemp); | |
1056 | } else { | |
1057 | Py_INCREF(Py_None); | |
1058 | _resultobj = Py_None; | |
1059 | } | |
70551f47 RD |
1060 | { |
1061 | if (_obj0) | |
1062 | delete _arg0; | |
1063 | } | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
107e4716 | 1068 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1069 | PyObject * _resultobj; |
1070 | wxBitmap * _arg0; | |
2d091820 | 1071 | PyObject * _argo0 = 0; |
107e4716 | 1072 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1073 | |
1074 | self = self; | |
107e4716 | 1075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
70551f47 | 1076 | return NULL; |
2d091820 RD |
1077 | if (_argo0) { |
1078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
1081 | return NULL; | |
1082 | } | |
1083 | } | |
ab9bc19b RD |
1084 | { |
1085 | wxPy_BEGIN_ALLOW_THREADS; | |
1086 | delete_wxBitmap(_arg0); | |
1087 | ||
1088 | wxPy_END_ALLOW_THREADS; | |
1089 | } Py_INCREF(Py_None); | |
70551f47 RD |
1090 | _resultobj = Py_None; |
1091 | return _resultobj; | |
1092 | } | |
1093 | ||
70551f47 | 1094 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
107e4716 | 1095 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1096 | PyObject * _resultobj; |
1097 | wxPalette * _result; | |
1098 | wxBitmap * _arg0; | |
2d091820 | 1099 | PyObject * _argo0 = 0; |
107e4716 | 1100 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1101 | char _ptemp[128]; |
1102 | ||
1103 | self = self; | |
107e4716 | 1104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
70551f47 | 1105 | return NULL; |
2d091820 RD |
1106 | if (_argo0) { |
1107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
1110 | return NULL; | |
1111 | } | |
1112 | } | |
ab9bc19b RD |
1113 | { |
1114 | wxPy_BEGIN_ALLOW_THREADS; | |
1115 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1116 | ||
1117 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1118 | } if (_result) { |
1119 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1120 | _resultobj = Py_BuildValue("s",_ptemp); | |
1121 | } else { | |
1122 | Py_INCREF(Py_None); | |
1123 | _resultobj = Py_None; | |
1124 | } | |
70551f47 RD |
1125 | return _resultobj; |
1126 | } | |
1127 | ||
1128 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
107e4716 | 1129 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1130 | PyObject * _resultobj; |
1131 | wxMask * _result; | |
1132 | wxBitmap * _arg0; | |
2d091820 | 1133 | PyObject * _argo0 = 0; |
107e4716 | 1134 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1135 | char _ptemp[128]; |
1136 | ||
1137 | self = self; | |
107e4716 | 1138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
70551f47 | 1139 | return NULL; |
2d091820 RD |
1140 | if (_argo0) { |
1141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
1144 | return NULL; | |
1145 | } | |
1146 | } | |
ab9bc19b RD |
1147 | { |
1148 | wxPy_BEGIN_ALLOW_THREADS; | |
1149 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1150 | ||
1151 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1152 | } if (_result) { |
1153 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1154 | _resultobj = Py_BuildValue("s",_ptemp); | |
1155 | } else { | |
1156 | Py_INCREF(Py_None); | |
1157 | _resultobj = Py_None; | |
1158 | } | |
70551f47 RD |
1159 | return _resultobj; |
1160 | } | |
1161 | ||
56f5d962 RD |
1162 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1163 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1164 | PyObject * _resultobj; |
56f5d962 | 1165 | bool _result; |
70551f47 | 1166 | wxBitmap * _arg0; |
56f5d962 RD |
1167 | wxString * _arg1; |
1168 | long _arg2; | |
2d091820 | 1169 | PyObject * _argo0 = 0; |
56f5d962 RD |
1170 | PyObject * _obj1 = 0; |
1171 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
1172 | |
1173 | self = self; | |
56f5d962 | 1174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1175 | return NULL; |
2d091820 RD |
1176 | if (_argo0) { |
1177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); |
70551f47 RD |
1180 | return NULL; |
1181 | } | |
1182 | } | |
56f5d962 RD |
1183 | { |
1184 | if (!PyString_Check(_obj1)) { | |
1185 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1186 | return NULL; | |
1187 | } | |
1188 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1189 | } | |
ab9bc19b RD |
1190 | { |
1191 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1192 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b RD |
1193 | |
1194 | wxPy_END_ALLOW_THREADS; | |
1195 | } _resultobj = Py_BuildValue("i",_result); | |
56f5d962 RD |
1196 | { |
1197 | if (_obj1) | |
1198 | delete _arg1; | |
1199 | } | |
70551f47 RD |
1200 | return _resultobj; |
1201 | } | |
1202 | ||
56f5d962 RD |
1203 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1204 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1205 | PyObject * _resultobj; |
1206 | bool _result; | |
1207 | wxBitmap * _arg0; | |
1208 | wxString * _arg1; | |
56f5d962 RD |
1209 | int _arg2; |
1210 | wxPalette * _arg3 = (wxPalette *) NULL; | |
2d091820 | 1211 | PyObject * _argo0 = 0; |
70551f47 | 1212 | PyObject * _obj1 = 0; |
56f5d962 RD |
1213 | PyObject * _argo3 = 0; |
1214 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
70551f47 RD |
1215 | |
1216 | self = self; | |
56f5d962 | 1217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
70551f47 | 1218 | return NULL; |
2d091820 RD |
1219 | if (_argo0) { |
1220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); |
70551f47 RD |
1223 | return NULL; |
1224 | } | |
1225 | } | |
1226 | { | |
1227 | if (!PyString_Check(_obj1)) { | |
1228 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1229 | return NULL; | |
1230 | } | |
ab9bc19b | 1231 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 1232 | } |
56f5d962 RD |
1233 | if (_argo3) { |
1234 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1235 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1237 | return NULL; | |
1238 | } | |
1239 | } | |
ab9bc19b RD |
1240 | { |
1241 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1242 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b RD |
1243 | |
1244 | wxPy_END_ALLOW_THREADS; | |
1245 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1246 | { |
1247 | if (_obj1) | |
1248 | delete _arg1; | |
1249 | } | |
1250 | return _resultobj; | |
1251 | } | |
1252 | ||
56f5d962 RD |
1253 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1254 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1255 | PyObject * _resultobj; | |
1256 | wxBitmap * _arg0; | |
1257 | wxMask * _arg1; | |
1258 | PyObject * _argo0 = 0; | |
1259 | PyObject * _argo1 = 0; | |
1260 | char *_kwnames[] = { "self","mask", NULL }; | |
1261 | ||
1262 | self = self; | |
1263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1264 | return NULL; | |
1265 | if (_argo0) { | |
1266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1269 | return NULL; | |
1270 | } | |
1271 | } | |
1272 | if (_argo1) { | |
1273 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1274 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1276 | return NULL; | |
1277 | } | |
1278 | } | |
1279 | { | |
1280 | wxPy_BEGIN_ALLOW_THREADS; | |
1281 | wxBitmap_SetMask(_arg0,_arg1); | |
1282 | ||
1283 | wxPy_END_ALLOW_THREADS; | |
1284 | } Py_INCREF(Py_None); | |
1285 | _resultobj = Py_None; | |
1286 | return _resultobj; | |
1287 | } | |
1288 | ||
70551f47 | 1289 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) |
107e4716 | 1290 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1291 | PyObject * _resultobj; |
1292 | bool _result; | |
1293 | wxBitmap * _arg0; | |
2d091820 | 1294 | PyObject * _argo0 = 0; |
107e4716 | 1295 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1296 | |
1297 | self = self; | |
107e4716 | 1298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) |
70551f47 | 1299 | return NULL; |
2d091820 RD |
1300 | if (_argo0) { |
1301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); |
1304 | return NULL; | |
1305 | } | |
1306 | } | |
ab9bc19b RD |
1307 | { |
1308 | wxPy_BEGIN_ALLOW_THREADS; | |
1309 | _result = (bool )wxBitmap_Ok(_arg0); | |
1310 | ||
1311 | wxPy_END_ALLOW_THREADS; | |
1312 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1313 | return _resultobj; |
1314 | } | |
1315 | ||
56f5d962 RD |
1316 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) |
1317 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1318 | PyObject * _resultobj; |
56f5d962 | 1319 | int _result; |
70551f47 | 1320 | wxBitmap * _arg0; |
2d091820 | 1321 | PyObject * _argo0 = 0; |
56f5d962 | 1322 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1323 | |
1324 | self = self; | |
56f5d962 | 1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) |
70551f47 | 1326 | return NULL; |
2d091820 RD |
1327 | if (_argo0) { |
1328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1331 | return NULL; |
1332 | } | |
1333 | } | |
1334 | { | |
56f5d962 RD |
1335 | wxPy_BEGIN_ALLOW_THREADS; |
1336 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1337 | ||
1338 | wxPy_END_ALLOW_THREADS; | |
1339 | } _resultobj = Py_BuildValue("i",_result); | |
1340 | return _resultobj; | |
70551f47 | 1341 | } |
56f5d962 RD |
1342 | |
1343 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1344 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1345 | PyObject * _resultobj; | |
1346 | int _result; | |
1347 | wxBitmap * _arg0; | |
1348 | PyObject * _argo0 = 0; | |
1349 | char *_kwnames[] = { "self", NULL }; | |
1350 | ||
1351 | self = self; | |
1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1353 | return NULL; | |
1354 | if (_argo0) { | |
1355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
70551f47 RD |
1358 | return NULL; |
1359 | } | |
1360 | } | |
ab9bc19b RD |
1361 | { |
1362 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1363 | _result = (int )wxBitmap_GetHeight(_arg0); |
ab9bc19b RD |
1364 | |
1365 | wxPy_END_ALLOW_THREADS; | |
1366 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1367 | return _resultobj; |
1368 | } | |
1369 | ||
56f5d962 RD |
1370 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1371 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1372 | PyObject * _resultobj; |
56f5d962 | 1373 | int _result; |
70551f47 | 1374 | wxBitmap * _arg0; |
2d091820 | 1375 | PyObject * _argo0 = 0; |
56f5d962 | 1376 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1377 | |
1378 | self = self; | |
56f5d962 | 1379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
70551f47 | 1380 | return NULL; |
2d091820 RD |
1381 | if (_argo0) { |
1382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1385 | return NULL; |
1386 | } | |
1387 | } | |
ab9bc19b RD |
1388 | { |
1389 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1390 | _result = (int )wxBitmap_GetDepth(_arg0); |
ab9bc19b RD |
1391 | |
1392 | wxPy_END_ALLOW_THREADS; | |
56f5d962 | 1393 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1394 | return _resultobj; |
1395 | } | |
1396 | ||
56f5d962 RD |
1397 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
1398 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1399 | PyObject * _resultobj; |
1400 | wxBitmap * _arg0; | |
1401 | int _arg1; | |
2d091820 | 1402 | PyObject * _argo0 = 0; |
56f5d962 | 1403 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
1404 | |
1405 | self = self; | |
56f5d962 | 1406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1407 | return NULL; |
2d091820 RD |
1408 | if (_argo0) { |
1409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1412 | return NULL; |
1413 | } | |
1414 | } | |
ab9bc19b RD |
1415 | { |
1416 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1417 | wxBitmap_SetWidth(_arg0,_arg1); |
ab9bc19b RD |
1418 | |
1419 | wxPy_END_ALLOW_THREADS; | |
1420 | } Py_INCREF(Py_None); | |
70551f47 RD |
1421 | _resultobj = Py_None; |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
56f5d962 RD |
1425 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1426 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1427 | PyObject * _resultobj; |
1428 | wxBitmap * _arg0; | |
56f5d962 | 1429 | int _arg1; |
2d091820 | 1430 | PyObject * _argo0 = 0; |
56f5d962 | 1431 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
1432 | |
1433 | self = self; | |
56f5d962 | 1434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1435 | return NULL; |
2d091820 RD |
1436 | if (_argo0) { |
1437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); |
70551f47 RD |
1440 | return NULL; |
1441 | } | |
1442 | } | |
ab9bc19b RD |
1443 | { |
1444 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1445 | wxBitmap_SetHeight(_arg0,_arg1); |
ab9bc19b RD |
1446 | |
1447 | wxPy_END_ALLOW_THREADS; | |
1448 | } Py_INCREF(Py_None); | |
70551f47 RD |
1449 | _resultobj = Py_None; |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
56f5d962 RD |
1453 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
1454 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1455 | PyObject * _resultobj; |
1456 | wxBitmap * _arg0; | |
1457 | int _arg1; | |
2d091820 | 1458 | PyObject * _argo0 = 0; |
56f5d962 | 1459 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
1460 | |
1461 | self = self; | |
56f5d962 | 1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1463 | return NULL; |
2d091820 RD |
1464 | if (_argo0) { |
1465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1468 | return NULL; |
1469 | } | |
1470 | } | |
ab9bc19b RD |
1471 | { |
1472 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1473 | wxBitmap_SetDepth(_arg0,_arg1); |
ab9bc19b RD |
1474 | |
1475 | wxPy_END_ALLOW_THREADS; | |
1476 | } Py_INCREF(Py_None); | |
70551f47 RD |
1477 | _resultobj = Py_None; |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
f6bcfd97 BP |
1481 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
1482 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject * _resultobj; | |
1484 | wxBitmap * _result; | |
1485 | wxBitmap * _arg0; | |
1486 | wxRect * _arg1; | |
1487 | PyObject * _argo0 = 0; | |
1488 | wxRect temp; | |
1489 | PyObject * _obj1 = 0; | |
1490 | char *_kwnames[] = { "self","rect", NULL }; | |
1491 | char _ptemp[128]; | |
1492 | ||
1493 | self = self; | |
1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1495 | return NULL; | |
1496 | if (_argo0) { | |
1497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1500 | return NULL; | |
1501 | } | |
1502 | } | |
1503 | { | |
1504 | _arg1 = &temp; | |
1505 | if (! wxRect_helper(_obj1, &_arg1)) | |
1506 | return NULL; | |
1507 | } | |
1508 | { | |
1509 | wxPy_BEGIN_ALLOW_THREADS; | |
1510 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
1511 | ||
1512 | wxPy_END_ALLOW_THREADS; | |
1513 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1514 | _resultobj = Py_BuildValue("s",_ptemp); | |
1515 | return _resultobj; | |
1516 | } | |
1517 | ||
70551f47 | 1518 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
107e4716 | 1519 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1520 | PyObject * _resultobj; |
1521 | wxMask * _result; | |
1522 | wxBitmap * _arg0; | |
2d091820 | 1523 | PyObject * _argo0 = 0; |
107e4716 | 1524 | char *_kwnames[] = { "bitmap", NULL }; |
70551f47 RD |
1525 | char _ptemp[128]; |
1526 | ||
1527 | self = self; | |
107e4716 | 1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) |
70551f47 | 1529 | return NULL; |
2d091820 RD |
1530 | if (_argo0) { |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
ab9bc19b RD |
1537 | { |
1538 | wxPy_BEGIN_ALLOW_THREADS; | |
1539 | _result = (wxMask *)new_wxMask(*_arg0); | |
1540 | ||
1541 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1542 | } if (_result) { |
1543 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1544 | _resultobj = Py_BuildValue("s",_ptemp); | |
1545 | } else { | |
1546 | Py_INCREF(Py_None); | |
1547 | _resultobj = Py_None; | |
1548 | } | |
70551f47 RD |
1549 | return _resultobj; |
1550 | } | |
1551 | ||
8bf5d46e | 1552 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 1553 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
1554 | PyObject * _resultobj; |
1555 | wxIcon * _result; | |
1556 | wxString * _arg0; | |
1557 | long _arg1; | |
2d091820 RD |
1558 | int _arg2 = (int ) -1; |
1559 | int _arg3 = (int ) -1; | |
8bf5d46e | 1560 | PyObject * _obj0 = 0; |
107e4716 | 1561 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8bf5d46e RD |
1562 | char _ptemp[128]; |
1563 | ||
1564 | self = self; | |
107e4716 | 1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
1566 | return NULL; |
1567 | { | |
1568 | if (!PyString_Check(_obj0)) { | |
1569 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1570 | return NULL; | |
1571 | } | |
1572 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
1573 | } | |
1574 | { | |
1575 | wxPy_BEGIN_ALLOW_THREADS; | |
1576 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); | |
1577 | ||
1578 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1579 | } if (_result) { |
1580 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
1581 | _resultobj = Py_BuildValue("s",_ptemp); | |
1582 | } else { | |
1583 | Py_INCREF(Py_None); | |
1584 | _resultobj = Py_None; | |
1585 | } | |
8bf5d46e RD |
1586 | { |
1587 | if (_obj0) | |
1588 | delete _arg0; | |
1589 | } | |
1590 | return _resultobj; | |
1591 | } | |
1592 | ||
70551f47 | 1593 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
107e4716 | 1594 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1595 | PyObject * _resultobj; |
1596 | wxIcon * _arg0; | |
2d091820 | 1597 | PyObject * _argo0 = 0; |
107e4716 | 1598 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1599 | |
1600 | self = self; | |
107e4716 | 1601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
70551f47 | 1602 | return NULL; |
2d091820 RD |
1603 | if (_argo0) { |
1604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
1606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); |
1607 | return NULL; | |
1608 | } | |
1609 | } | |
ab9bc19b RD |
1610 | { |
1611 | wxPy_BEGIN_ALLOW_THREADS; | |
1612 | delete_wxIcon(_arg0); | |
1613 | ||
1614 | wxPy_END_ALLOW_THREADS; | |
1615 | } Py_INCREF(Py_None); | |
70551f47 RD |
1616 | _resultobj = Py_None; |
1617 | return _resultobj; | |
1618 | } | |
1619 | ||
56f5d962 RD |
1620 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1621 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1622 | PyObject * _resultobj; |
56f5d962 | 1623 | bool _result; |
70551f47 | 1624 | wxIcon * _arg0; |
56f5d962 RD |
1625 | wxString * _arg1; |
1626 | long _arg2; | |
2d091820 | 1627 | PyObject * _argo0 = 0; |
56f5d962 RD |
1628 | PyObject * _obj1 = 0; |
1629 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
1630 | |
1631 | self = self; | |
56f5d962 | 1632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1633 | return NULL; |
2d091820 RD |
1634 | if (_argo0) { |
1635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 1637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); |
70551f47 RD |
1638 | return NULL; |
1639 | } | |
1640 | } | |
56f5d962 RD |
1641 | { |
1642 | if (!PyString_Check(_obj1)) { | |
1643 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1644 | return NULL; | |
1645 | } | |
1646 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1647 | } | |
ab9bc19b RD |
1648 | { |
1649 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1650 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b RD |
1651 | |
1652 | wxPy_END_ALLOW_THREADS; | |
1653 | } _resultobj = Py_BuildValue("i",_result); | |
56f5d962 RD |
1654 | { |
1655 | if (_obj1) | |
1656 | delete _arg1; | |
1657 | } | |
70551f47 RD |
1658 | return _resultobj; |
1659 | } | |
1660 | ||
56f5d962 RD |
1661 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
1662 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1663 | PyObject * _resultobj; |
56f5d962 | 1664 | bool _result; |
70551f47 | 1665 | wxIcon * _arg0; |
2d091820 | 1666 | PyObject * _argo0 = 0; |
107e4716 | 1667 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1668 | |
1669 | self = self; | |
56f5d962 | 1670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) |
70551f47 | 1671 | return NULL; |
2d091820 RD |
1672 | if (_argo0) { |
1673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 1675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); |
70551f47 RD |
1676 | return NULL; |
1677 | } | |
1678 | } | |
ab9bc19b RD |
1679 | { |
1680 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1681 | _result = (bool )wxIcon_Ok(_arg0); |
ab9bc19b RD |
1682 | |
1683 | wxPy_END_ALLOW_THREADS; | |
1684 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1685 | return _resultobj; |
1686 | } | |
1687 | ||
1688 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 1689 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1690 | PyObject * _resultobj; |
1691 | int _result; | |
1692 | wxIcon * _arg0; | |
2d091820 | 1693 | PyObject * _argo0 = 0; |
107e4716 | 1694 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1695 | |
1696 | self = self; | |
107e4716 | 1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) |
70551f47 | 1698 | return NULL; |
2d091820 RD |
1699 | if (_argo0) { |
1700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
1702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); |
1703 | return NULL; | |
1704 | } | |
1705 | } | |
ab9bc19b RD |
1706 | { |
1707 | wxPy_BEGIN_ALLOW_THREADS; | |
1708 | _result = (int )wxIcon_GetWidth(_arg0); | |
1709 | ||
1710 | wxPy_END_ALLOW_THREADS; | |
1711 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1712 | return _resultobj; |
1713 | } | |
1714 | ||
56f5d962 RD |
1715 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) |
1716 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1717 | PyObject * _resultobj; |
56f5d962 | 1718 | int _result; |
70551f47 | 1719 | wxIcon * _arg0; |
2d091820 | 1720 | PyObject * _argo0 = 0; |
56f5d962 | 1721 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1722 | |
1723 | self = self; | |
56f5d962 | 1724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) |
70551f47 | 1725 | return NULL; |
2d091820 RD |
1726 | if (_argo0) { |
1727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 1729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); |
70551f47 RD |
1730 | return NULL; |
1731 | } | |
1732 | } | |
ab9bc19b RD |
1733 | { |
1734 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1735 | _result = (int )wxIcon_GetHeight(_arg0); |
ab9bc19b RD |
1736 | |
1737 | wxPy_END_ALLOW_THREADS; | |
1738 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1739 | return _resultobj; |
1740 | } | |
1741 | ||
56f5d962 RD |
1742 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1743 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1744 | PyObject * _resultobj; |
56f5d962 | 1745 | int _result; |
70551f47 | 1746 | wxIcon * _arg0; |
2d091820 | 1747 | PyObject * _argo0 = 0; |
107e4716 | 1748 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1749 | |
1750 | self = self; | |
56f5d962 | 1751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) |
70551f47 | 1752 | return NULL; |
2d091820 RD |
1753 | if (_argo0) { |
1754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 1756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); |
70551f47 RD |
1757 | return NULL; |
1758 | } | |
1759 | } | |
ab9bc19b RD |
1760 | { |
1761 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1762 | _result = (int )wxIcon_GetDepth(_arg0); |
ab9bc19b RD |
1763 | |
1764 | wxPy_END_ALLOW_THREADS; | |
1765 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1766 | return _resultobj; |
1767 | } | |
1768 | ||
56f5d962 RD |
1769 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
1770 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1771 | PyObject * _resultobj; |
1772 | wxIcon * _arg0; | |
1773 | int _arg1; | |
2d091820 | 1774 | PyObject * _argo0 = 0; |
56f5d962 | 1775 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
1776 | |
1777 | self = self; | |
56f5d962 | 1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1779 | return NULL; |
2d091820 RD |
1780 | if (_argo0) { |
1781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); |
70551f47 RD |
1784 | return NULL; |
1785 | } | |
1786 | } | |
ab9bc19b RD |
1787 | { |
1788 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1789 | wxIcon_SetWidth(_arg0,_arg1); |
ab9bc19b RD |
1790 | |
1791 | wxPy_END_ALLOW_THREADS; | |
1792 | } Py_INCREF(Py_None); | |
70551f47 RD |
1793 | _resultobj = Py_None; |
1794 | return _resultobj; | |
1795 | } | |
1796 | ||
1797 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
107e4716 | 1798 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1799 | PyObject * _resultobj; |
1800 | wxIcon * _arg0; | |
1801 | int _arg1; | |
2d091820 | 1802 | PyObject * _argo0 = 0; |
56f5d962 | 1803 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
1804 | |
1805 | self = self; | |
107e4716 | 1806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1807 | return NULL; |
2d091820 RD |
1808 | if (_argo0) { |
1809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
1811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); |
1812 | return NULL; | |
1813 | } | |
1814 | } | |
ab9bc19b RD |
1815 | { |
1816 | wxPy_BEGIN_ALLOW_THREADS; | |
1817 | wxIcon_SetHeight(_arg0,_arg1); | |
1818 | ||
1819 | wxPy_END_ALLOW_THREADS; | |
1820 | } Py_INCREF(Py_None); | |
70551f47 RD |
1821 | _resultobj = Py_None; |
1822 | return _resultobj; | |
1823 | } | |
1824 | ||
56f5d962 RD |
1825 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
1826 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1827 | PyObject * _resultobj; |
1828 | wxIcon * _arg0; | |
1829 | int _arg1; | |
2d091820 | 1830 | PyObject * _argo0 = 0; |
56f5d962 | 1831 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
1832 | |
1833 | self = self; | |
56f5d962 | 1834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1835 | return NULL; |
2d091820 RD |
1836 | if (_argo0) { |
1837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 1839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); |
70551f47 RD |
1840 | return NULL; |
1841 | } | |
1842 | } | |
ab9bc19b RD |
1843 | { |
1844 | wxPy_BEGIN_ALLOW_THREADS; | |
56f5d962 | 1845 | wxIcon_SetDepth(_arg0,_arg1); |
ab9bc19b RD |
1846 | |
1847 | wxPy_END_ALLOW_THREADS; | |
1848 | } Py_INCREF(Py_None); | |
70551f47 RD |
1849 | _resultobj = Py_None; |
1850 | return _resultobj; | |
1851 | } | |
1852 | ||
70551f47 | 1853 | #define delete_wxCursor(_swigobj) (delete _swigobj) |
107e4716 | 1854 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1855 | PyObject * _resultobj; |
1856 | wxCursor * _arg0; | |
2d091820 | 1857 | PyObject * _argo0 = 0; |
107e4716 | 1858 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1859 | |
1860 | self = self; | |
107e4716 | 1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) |
70551f47 | 1862 | return NULL; |
2d091820 RD |
1863 | if (_argo0) { |
1864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
1866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); |
1867 | return NULL; | |
1868 | } | |
1869 | } | |
ab9bc19b RD |
1870 | { |
1871 | wxPy_BEGIN_ALLOW_THREADS; | |
1872 | delete_wxCursor(_arg0); | |
1873 | ||
1874 | wxPy_END_ALLOW_THREADS; | |
1875 | } Py_INCREF(Py_None); | |
70551f47 RD |
1876 | _resultobj = Py_None; |
1877 | return _resultobj; | |
1878 | } | |
1879 | ||
1880 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 1881 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1882 | PyObject * _resultobj; |
1883 | bool _result; | |
1884 | wxCursor * _arg0; | |
2d091820 | 1885 | PyObject * _argo0 = 0; |
107e4716 | 1886 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1887 | |
1888 | self = self; | |
107e4716 | 1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) |
70551f47 | 1890 | return NULL; |
2d091820 RD |
1891 | if (_argo0) { |
1892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
1894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); |
1895 | return NULL; | |
1896 | } | |
1897 | } | |
ab9bc19b RD |
1898 | { |
1899 | wxPy_BEGIN_ALLOW_THREADS; | |
1900 | _result = (bool )wxCursor_Ok(_arg0); | |
1901 | ||
1902 | wxPy_END_ALLOW_THREADS; | |
1903 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1904 | return _resultobj; |
1905 | } | |
1906 | ||
134d79dc | 1907 | static wxFont *new_wxFont(int pointSize,int family,int style,int weight,int underline,char *faceName,wxFontEncoding encoding) { |
70551f47 RD |
1908 | |
1909 | return wxTheFontList->FindOrCreateFont(pointSize, family, style, weight, | |
d29aba2f | 1910 | underline, faceName, encoding); |
70551f47 RD |
1911 | } |
1912 | ||
107e4716 | 1913 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1914 | PyObject * _resultobj; |
1915 | wxFont * _result; | |
1916 | int _arg0; | |
1917 | int _arg1; | |
1918 | int _arg2; | |
1919 | int _arg3; | |
2d091820 RD |
1920 | int _arg4 = (int ) FALSE; |
1921 | char * _arg5 = (char *) ""; | |
134d79dc RD |
1922 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); |
1923 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
70551f47 RD |
1924 | char _ptemp[128]; |
1925 | ||
1926 | self = self; | |
134d79dc | 1927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 1928 | return NULL; |
ab9bc19b RD |
1929 | { |
1930 | wxPy_BEGIN_ALLOW_THREADS; | |
134d79dc | 1931 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b RD |
1932 | |
1933 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1934 | } if (_result) { |
1935 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1936 | _resultobj = Py_BuildValue("s",_ptemp); | |
1937 | } else { | |
1938 | Py_INCREF(Py_None); | |
1939 | _resultobj = Py_None; | |
1940 | } | |
70551f47 RD |
1941 | return _resultobj; |
1942 | } | |
1943 | ||
d29aba2f RD |
1944 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) |
1945 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1946 | PyObject * _resultobj; | |
1947 | bool _result; | |
1948 | wxFont * _arg0; | |
1949 | PyObject * _argo0 = 0; | |
1950 | char *_kwnames[] = { "self", NULL }; | |
1951 | ||
1952 | self = self; | |
1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
1954 | return NULL; | |
1955 | if (_argo0) { | |
1956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
1958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
1959 | return NULL; | |
1960 | } | |
1961 | } | |
1962 | { | |
1963 | wxPy_BEGIN_ALLOW_THREADS; | |
1964 | _result = (bool )wxFont_Ok(_arg0); | |
1965 | ||
1966 | wxPy_END_ALLOW_THREADS; | |
1967 | } _resultobj = Py_BuildValue("i",_result); | |
1968 | return _resultobj; | |
1969 | } | |
1970 | ||
70551f47 | 1971 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
107e4716 | 1972 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1973 | PyObject * _resultobj; |
1974 | wxString * _result; | |
1975 | wxFont * _arg0; | |
2d091820 | 1976 | PyObject * _argo0 = 0; |
107e4716 | 1977 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1978 | |
1979 | self = self; | |
107e4716 | 1980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
70551f47 | 1981 | return NULL; |
2d091820 RD |
1982 | if (_argo0) { |
1983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
1985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
1986 | return NULL; | |
1987 | } | |
1988 | } | |
70551f47 | 1989 | { |
ab9bc19b RD |
1990 | wxPy_BEGIN_ALLOW_THREADS; |
1991 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
1992 | ||
1993 | wxPy_END_ALLOW_THREADS; | |
1994 | }{ | |
e02c03a4 | 1995 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
1996 | } |
1997 | { | |
1998 | delete _result; | |
1999 | } | |
2000 | return _resultobj; | |
2001 | } | |
2002 | ||
2003 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
107e4716 | 2004 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2005 | PyObject * _resultobj; |
2006 | int _result; | |
2007 | wxFont * _arg0; | |
2d091820 | 2008 | PyObject * _argo0 = 0; |
107e4716 | 2009 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2010 | |
2011 | self = self; | |
107e4716 | 2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
70551f47 | 2013 | return NULL; |
2d091820 RD |
2014 | if (_argo0) { |
2015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
2018 | return NULL; | |
2019 | } | |
2020 | } | |
ab9bc19b RD |
2021 | { |
2022 | wxPy_BEGIN_ALLOW_THREADS; | |
2023 | _result = (int )wxFont_GetFamily(_arg0); | |
2024 | ||
2025 | wxPy_END_ALLOW_THREADS; | |
2026 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2027 | return _resultobj; |
2028 | } | |
2029 | ||
70551f47 | 2030 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) |
107e4716 | 2031 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2032 | PyObject * _resultobj; |
2033 | int _result; | |
2034 | wxFont * _arg0; | |
2d091820 | 2035 | PyObject * _argo0 = 0; |
107e4716 | 2036 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2037 | |
2038 | self = self; | |
107e4716 | 2039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) |
70551f47 | 2040 | return NULL; |
2d091820 RD |
2041 | if (_argo0) { |
2042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); |
2045 | return NULL; | |
2046 | } | |
2047 | } | |
ab9bc19b RD |
2048 | { |
2049 | wxPy_BEGIN_ALLOW_THREADS; | |
2050 | _result = (int )wxFont_GetPointSize(_arg0); | |
2051 | ||
2052 | wxPy_END_ALLOW_THREADS; | |
2053 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2054 | return _resultobj; |
2055 | } | |
2056 | ||
2057 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 2058 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2059 | PyObject * _resultobj; |
2060 | int _result; | |
2061 | wxFont * _arg0; | |
2d091820 | 2062 | PyObject * _argo0 = 0; |
107e4716 | 2063 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2064 | |
2065 | self = self; | |
107e4716 | 2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
70551f47 | 2067 | return NULL; |
2d091820 RD |
2068 | if (_argo0) { |
2069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
2072 | return NULL; | |
2073 | } | |
2074 | } | |
ab9bc19b RD |
2075 | { |
2076 | wxPy_BEGIN_ALLOW_THREADS; | |
2077 | _result = (int )wxFont_GetStyle(_arg0); | |
2078 | ||
2079 | wxPy_END_ALLOW_THREADS; | |
2080 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2081 | return _resultobj; |
2082 | } | |
2083 | ||
2084 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
107e4716 | 2085 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2086 | PyObject * _resultobj; |
2087 | bool _result; | |
2088 | wxFont * _arg0; | |
2d091820 | 2089 | PyObject * _argo0 = 0; |
107e4716 | 2090 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2091 | |
2092 | self = self; | |
107e4716 | 2093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
70551f47 | 2094 | return NULL; |
2d091820 RD |
2095 | if (_argo0) { |
2096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
2099 | return NULL; | |
2100 | } | |
2101 | } | |
ab9bc19b RD |
2102 | { |
2103 | wxPy_BEGIN_ALLOW_THREADS; | |
2104 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
2105 | ||
2106 | wxPy_END_ALLOW_THREADS; | |
2107 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2108 | return _resultobj; |
2109 | } | |
2110 | ||
2111 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
107e4716 | 2112 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2113 | PyObject * _resultobj; |
2114 | int _result; | |
2115 | wxFont * _arg0; | |
2d091820 | 2116 | PyObject * _argo0 = 0; |
107e4716 | 2117 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2118 | |
2119 | self = self; | |
107e4716 | 2120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
70551f47 | 2121 | return NULL; |
2d091820 RD |
2122 | if (_argo0) { |
2123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
70551f47 RD |
2125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
2126 | return NULL; | |
2127 | } | |
2128 | } | |
ab9bc19b RD |
2129 | { |
2130 | wxPy_BEGIN_ALLOW_THREADS; | |
2131 | _result = (int )wxFont_GetWeight(_arg0); | |
2132 | ||
2133 | wxPy_END_ALLOW_THREADS; | |
2134 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2135 | return _resultobj; |
2136 | } | |
2137 | ||
134d79dc RD |
2138 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
2139 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2140 | PyObject * _resultobj; | |
2141 | wxFontEncoding _result; | |
2142 | wxFont * _arg0; | |
2143 | PyObject * _argo0 = 0; | |
2144 | char *_kwnames[] = { "self", NULL }; | |
2145 | ||
2146 | self = self; | |
2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
2148 | return NULL; | |
2149 | if (_argo0) { | |
2150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
2153 | return NULL; | |
2154 | } | |
2155 | } | |
2156 | { | |
2157 | wxPy_BEGIN_ALLOW_THREADS; | |
2158 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
2159 | ||
2160 | wxPy_END_ALLOW_THREADS; | |
2161 | } _resultobj = Py_BuildValue("i",_result); | |
2162 | return _resultobj; | |
2163 | } | |
2164 | ||
d3b4d113 | 2165 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
107e4716 | 2166 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2167 | PyObject * _resultobj; |
2168 | wxFont * _arg0; | |
2169 | wxString * _arg1; | |
2d091820 | 2170 | PyObject * _argo0 = 0; |
d3b4d113 | 2171 | PyObject * _obj1 = 0; |
107e4716 | 2172 | char *_kwnames[] = { "self","faceName", NULL }; |
d3b4d113 RR |
2173 | |
2174 | self = self; | |
107e4716 | 2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) |
d3b4d113 | 2176 | return NULL; |
2d091820 RD |
2177 | if (_argo0) { |
2178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); |
2181 | return NULL; | |
2182 | } | |
2183 | } | |
2184 | { | |
2185 | if (!PyString_Check(_obj1)) { | |
2186 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2187 | return NULL; | |
2188 | } | |
ab9bc19b | 2189 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
d3b4d113 | 2190 | } |
ab9bc19b RD |
2191 | { |
2192 | wxPy_BEGIN_ALLOW_THREADS; | |
2193 | wxFont_SetFaceName(_arg0,*_arg1); | |
2194 | ||
2195 | wxPy_END_ALLOW_THREADS; | |
2196 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2197 | _resultobj = Py_None; |
2198 | { | |
2199 | if (_obj1) | |
2200 | delete _arg1; | |
2201 | } | |
2202 | return _resultobj; | |
2203 | } | |
2204 | ||
2205 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
107e4716 | 2206 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2207 | PyObject * _resultobj; |
2208 | wxFont * _arg0; | |
2209 | int _arg1; | |
2d091820 | 2210 | PyObject * _argo0 = 0; |
107e4716 | 2211 | char *_kwnames[] = { "self","family", NULL }; |
d3b4d113 RR |
2212 | |
2213 | self = self; | |
107e4716 | 2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2215 | return NULL; |
2d091820 RD |
2216 | if (_argo0) { |
2217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
2220 | return NULL; | |
2221 | } | |
2222 | } | |
ab9bc19b RD |
2223 | { |
2224 | wxPy_BEGIN_ALLOW_THREADS; | |
2225 | wxFont_SetFamily(_arg0,_arg1); | |
2226 | ||
2227 | wxPy_END_ALLOW_THREADS; | |
2228 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2229 | _resultobj = Py_None; |
2230 | return _resultobj; | |
2231 | } | |
2232 | ||
2233 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
107e4716 | 2234 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2235 | PyObject * _resultobj; |
2236 | wxFont * _arg0; | |
2237 | int _arg1; | |
2d091820 | 2238 | PyObject * _argo0 = 0; |
107e4716 | 2239 | char *_kwnames[] = { "self","pointSize", NULL }; |
d3b4d113 RR |
2240 | |
2241 | self = self; | |
107e4716 | 2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2243 | return NULL; |
2d091820 RD |
2244 | if (_argo0) { |
2245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); |
2248 | return NULL; | |
2249 | } | |
2250 | } | |
ab9bc19b RD |
2251 | { |
2252 | wxPy_BEGIN_ALLOW_THREADS; | |
2253 | wxFont_SetPointSize(_arg0,_arg1); | |
2254 | ||
2255 | wxPy_END_ALLOW_THREADS; | |
2256 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2257 | _resultobj = Py_None; |
2258 | return _resultobj; | |
2259 | } | |
2260 | ||
2261 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 2262 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2263 | PyObject * _resultobj; |
2264 | wxFont * _arg0; | |
2265 | int _arg1; | |
2d091820 | 2266 | PyObject * _argo0 = 0; |
107e4716 | 2267 | char *_kwnames[] = { "self","style", NULL }; |
d3b4d113 RR |
2268 | |
2269 | self = self; | |
107e4716 | 2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2271 | return NULL; |
2d091820 RD |
2272 | if (_argo0) { |
2273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
2276 | return NULL; | |
2277 | } | |
2278 | } | |
ab9bc19b RD |
2279 | { |
2280 | wxPy_BEGIN_ALLOW_THREADS; | |
2281 | wxFont_SetStyle(_arg0,_arg1); | |
2282 | ||
2283 | wxPy_END_ALLOW_THREADS; | |
2284 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2285 | _resultobj = Py_None; |
2286 | return _resultobj; | |
2287 | } | |
2288 | ||
2289 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
107e4716 | 2290 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2291 | PyObject * _resultobj; |
2292 | wxFont * _arg0; | |
2293 | bool _arg1; | |
2d091820 | 2294 | PyObject * _argo0 = 0; |
d3b4d113 | 2295 | int tempbool1; |
107e4716 | 2296 | char *_kwnames[] = { "self","underlined", NULL }; |
d3b4d113 RR |
2297 | |
2298 | self = self; | |
107e4716 | 2299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
d3b4d113 | 2300 | return NULL; |
2d091820 RD |
2301 | if (_argo0) { |
2302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
2305 | return NULL; | |
2306 | } | |
2307 | } | |
2308 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
2309 | { |
2310 | wxPy_BEGIN_ALLOW_THREADS; | |
2311 | wxFont_SetUnderlined(_arg0,_arg1); | |
2312 | ||
2313 | wxPy_END_ALLOW_THREADS; | |
2314 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2315 | _resultobj = Py_None; |
2316 | return _resultobj; | |
2317 | } | |
2318 | ||
2319 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
107e4716 | 2320 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
2321 | PyObject * _resultobj; |
2322 | wxFont * _arg0; | |
2323 | int _arg1; | |
2d091820 | 2324 | PyObject * _argo0 = 0; |
107e4716 | 2325 | char *_kwnames[] = { "self","weight", NULL }; |
d3b4d113 RR |
2326 | |
2327 | self = self; | |
107e4716 | 2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 2329 | return NULL; |
2d091820 RD |
2330 | if (_argo0) { |
2331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
2333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
2334 | return NULL; | |
2335 | } | |
2336 | } | |
ab9bc19b RD |
2337 | { |
2338 | wxPy_BEGIN_ALLOW_THREADS; | |
2339 | wxFont_SetWeight(_arg0,_arg1); | |
2340 | ||
2341 | wxPy_END_ALLOW_THREADS; | |
2342 | } Py_INCREF(Py_None); | |
d3b4d113 RR |
2343 | _resultobj = Py_None; |
2344 | return _resultobj; | |
2345 | } | |
2346 | ||
134d79dc RD |
2347 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
2348 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject * _resultobj; | |
2350 | wxFont * _arg0; | |
2351 | wxFontEncoding _arg1; | |
2352 | PyObject * _argo0 = 0; | |
2353 | char *_kwnames[] = { "self","encoding", NULL }; | |
2354 | ||
2355 | self = self; | |
2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
2357 | return NULL; | |
2358 | if (_argo0) { | |
2359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
2362 | return NULL; | |
2363 | } | |
2364 | } | |
2365 | { | |
2366 | wxPy_BEGIN_ALLOW_THREADS; | |
2367 | wxFont_SetEncoding(_arg0,_arg1); | |
2368 | ||
2369 | wxPy_END_ALLOW_THREADS; | |
2370 | } Py_INCREF(Py_None); | |
2371 | _resultobj = Py_None; | |
2372 | return _resultobj; | |
2373 | } | |
2374 | ||
2375 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
2376 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2377 | PyObject * _resultobj; | |
2378 | wxString * _result; | |
2379 | wxFont * _arg0; | |
2380 | PyObject * _argo0 = 0; | |
2381 | char *_kwnames[] = { "self", NULL }; | |
2382 | ||
2383 | self = self; | |
2384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
2385 | return NULL; | |
2386 | if (_argo0) { | |
2387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
2390 | return NULL; | |
2391 | } | |
2392 | } | |
2393 | { | |
2394 | wxPy_BEGIN_ALLOW_THREADS; | |
2395 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
2396 | ||
2397 | wxPy_END_ALLOW_THREADS; | |
2398 | }{ | |
e02c03a4 | 2399 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
2400 | } |
2401 | { | |
2402 | delete _result; | |
2403 | } | |
2404 | return _resultobj; | |
2405 | } | |
2406 | ||
2407 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
2408 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2409 | PyObject * _resultobj; | |
2410 | wxString * _result; | |
2411 | wxFont * _arg0; | |
2412 | PyObject * _argo0 = 0; | |
2413 | char *_kwnames[] = { "self", NULL }; | |
2414 | ||
2415 | self = self; | |
2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
2417 | return NULL; | |
2418 | if (_argo0) { | |
2419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
2422 | return NULL; | |
2423 | } | |
2424 | } | |
2425 | { | |
2426 | wxPy_BEGIN_ALLOW_THREADS; | |
2427 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
2428 | ||
2429 | wxPy_END_ALLOW_THREADS; | |
2430 | }{ | |
e02c03a4 | 2431 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
2432 | } |
2433 | { | |
2434 | delete _result; | |
2435 | } | |
2436 | return _resultobj; | |
2437 | } | |
2438 | ||
2439 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
2440 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject * _resultobj; | |
2442 | wxString * _result; | |
2443 | wxFont * _arg0; | |
2444 | PyObject * _argo0 = 0; | |
2445 | char *_kwnames[] = { "self", NULL }; | |
2446 | ||
2447 | self = self; | |
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
2449 | return NULL; | |
2450 | if (_argo0) { | |
2451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
2454 | return NULL; | |
2455 | } | |
2456 | } | |
2457 | { | |
2458 | wxPy_BEGIN_ALLOW_THREADS; | |
2459 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
2460 | ||
2461 | wxPy_END_ALLOW_THREADS; | |
2462 | }{ | |
e02c03a4 | 2463 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
134d79dc RD |
2464 | } |
2465 | { | |
2466 | delete _result; | |
2467 | } | |
2468 | return _resultobj; | |
2469 | } | |
2470 | ||
70551f47 | 2471 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 2472 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2473 | PyObject * _resultobj; |
2474 | wxColour * _result; | |
2d091820 RD |
2475 | unsigned char _arg0 = (unsigned char ) 0; |
2476 | unsigned char _arg1 = (unsigned char ) 0; | |
2477 | unsigned char _arg2 = (unsigned char ) 0; | |
107e4716 | 2478 | char *_kwnames[] = { "red","green","blue", NULL }; |
70551f47 RD |
2479 | char _ptemp[128]; |
2480 | ||
2481 | self = self; | |
107e4716 | 2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 2483 | return NULL; |
ab9bc19b RD |
2484 | { |
2485 | wxPy_BEGIN_ALLOW_THREADS; | |
2486 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
2487 | ||
2488 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
2489 | } if (_result) { |
2490 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
2491 | _resultobj = Py_BuildValue("s",_ptemp); | |
2492 | } else { | |
2493 | Py_INCREF(Py_None); | |
2494 | _resultobj = Py_None; | |
2495 | } | |
70551f47 RD |
2496 | return _resultobj; |
2497 | } | |
2498 | ||
2499 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
107e4716 | 2500 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2501 | PyObject * _resultobj; |
2502 | wxColour * _arg0; | |
f6bcfd97 BP |
2503 | wxColour temp; |
2504 | PyObject * _obj0 = 0; | |
107e4716 | 2505 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2506 | |
2507 | self = self; | |
f6bcfd97 | 2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
70551f47 | 2509 | return NULL; |
f6bcfd97 BP |
2510 | { |
2511 | _arg0 = &temp; | |
2512 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2513 | return NULL; |
f6bcfd97 | 2514 | } |
ab9bc19b RD |
2515 | { |
2516 | wxPy_BEGIN_ALLOW_THREADS; | |
2517 | delete_wxColour(_arg0); | |
2518 | ||
2519 | wxPy_END_ALLOW_THREADS; | |
2520 | } Py_INCREF(Py_None); | |
70551f47 RD |
2521 | _resultobj = Py_None; |
2522 | return _resultobj; | |
2523 | } | |
2524 | ||
2525 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
107e4716 | 2526 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2527 | PyObject * _resultobj; |
2528 | unsigned char _result; | |
2529 | wxColour * _arg0; | |
f6bcfd97 BP |
2530 | wxColour temp; |
2531 | PyObject * _obj0 = 0; | |
107e4716 | 2532 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2533 | |
2534 | self = self; | |
f6bcfd97 | 2535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
70551f47 | 2536 | return NULL; |
f6bcfd97 BP |
2537 | { |
2538 | _arg0 = &temp; | |
2539 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2540 | return NULL; |
f6bcfd97 | 2541 | } |
ab9bc19b RD |
2542 | { |
2543 | wxPy_BEGIN_ALLOW_THREADS; | |
2544 | _result = (unsigned char )wxColour_Red(_arg0); | |
2545 | ||
2546 | wxPy_END_ALLOW_THREADS; | |
2547 | } _resultobj = Py_BuildValue("b",_result); | |
70551f47 RD |
2548 | return _resultobj; |
2549 | } | |
2550 | ||
2551 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
107e4716 | 2552 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2553 | PyObject * _resultobj; |
2554 | unsigned char _result; | |
2555 | wxColour * _arg0; | |
f6bcfd97 BP |
2556 | wxColour temp; |
2557 | PyObject * _obj0 = 0; | |
107e4716 | 2558 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2559 | |
2560 | self = self; | |
f6bcfd97 | 2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
70551f47 | 2562 | return NULL; |
f6bcfd97 BP |
2563 | { |
2564 | _arg0 = &temp; | |
2565 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2566 | return NULL; |
f6bcfd97 | 2567 | } |
ab9bc19b RD |
2568 | { |
2569 | wxPy_BEGIN_ALLOW_THREADS; | |
2570 | _result = (unsigned char )wxColour_Green(_arg0); | |
2571 | ||
2572 | wxPy_END_ALLOW_THREADS; | |
2573 | } _resultobj = Py_BuildValue("b",_result); | |
70551f47 RD |
2574 | return _resultobj; |
2575 | } | |
2576 | ||
2577 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
107e4716 | 2578 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2579 | PyObject * _resultobj; |
2580 | unsigned char _result; | |
2581 | wxColour * _arg0; | |
f6bcfd97 BP |
2582 | wxColour temp; |
2583 | PyObject * _obj0 = 0; | |
107e4716 | 2584 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2585 | |
2586 | self = self; | |
f6bcfd97 | 2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
70551f47 | 2588 | return NULL; |
f6bcfd97 BP |
2589 | { |
2590 | _arg0 = &temp; | |
2591 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2592 | return NULL; |
f6bcfd97 | 2593 | } |
ab9bc19b RD |
2594 | { |
2595 | wxPy_BEGIN_ALLOW_THREADS; | |
2596 | _result = (unsigned char )wxColour_Blue(_arg0); | |
2597 | ||
2598 | wxPy_END_ALLOW_THREADS; | |
2599 | } _resultobj = Py_BuildValue("b",_result); | |
70551f47 RD |
2600 | return _resultobj; |
2601 | } | |
2602 | ||
2603 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 2604 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2605 | PyObject * _resultobj; |
2606 | bool _result; | |
2607 | wxColour * _arg0; | |
f6bcfd97 BP |
2608 | wxColour temp; |
2609 | PyObject * _obj0 = 0; | |
107e4716 | 2610 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2611 | |
2612 | self = self; | |
f6bcfd97 | 2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
70551f47 | 2614 | return NULL; |
f6bcfd97 BP |
2615 | { |
2616 | _arg0 = &temp; | |
2617 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2618 | return NULL; |
f6bcfd97 | 2619 | } |
ab9bc19b RD |
2620 | { |
2621 | wxPy_BEGIN_ALLOW_THREADS; | |
2622 | _result = (bool )wxColour_Ok(_arg0); | |
2623 | ||
2624 | wxPy_END_ALLOW_THREADS; | |
2625 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2626 | return _resultobj; |
2627 | } | |
2628 | ||
2629 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 2630 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2631 | PyObject * _resultobj; |
2632 | wxColour * _arg0; | |
2633 | unsigned char _arg1; | |
2634 | unsigned char _arg2; | |
2635 | unsigned char _arg3; | |
f6bcfd97 BP |
2636 | wxColour temp; |
2637 | PyObject * _obj0 = 0; | |
107e4716 | 2638 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
70551f47 RD |
2639 | |
2640 | self = self; | |
f6bcfd97 | 2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
70551f47 | 2642 | return NULL; |
f6bcfd97 BP |
2643 | { |
2644 | _arg0 = &temp; | |
2645 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2646 | return NULL; |
f6bcfd97 | 2647 | } |
ab9bc19b RD |
2648 | { |
2649 | wxPy_BEGIN_ALLOW_THREADS; | |
2650 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
2651 | ||
2652 | wxPy_END_ALLOW_THREADS; | |
2653 | } Py_INCREF(Py_None); | |
70551f47 RD |
2654 | _resultobj = Py_None; |
2655 | return _resultobj; | |
2656 | } | |
2657 | ||
2658 | static PyObject * wxColour_Get(wxColour *self) { | |
2659 | PyObject* rv = PyTuple_New(3); | |
2660 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
2661 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
2662 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
2663 | return rv; | |
2664 | } | |
107e4716 | 2665 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2666 | PyObject * _resultobj; |
2667 | PyObject * _result; | |
2668 | wxColour * _arg0; | |
f6bcfd97 BP |
2669 | wxColour temp; |
2670 | PyObject * _obj0 = 0; | |
107e4716 | 2671 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2672 | |
2673 | self = self; | |
f6bcfd97 | 2674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
70551f47 | 2675 | return NULL; |
f6bcfd97 BP |
2676 | { |
2677 | _arg0 = &temp; | |
2678 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2679 | return NULL; |
f6bcfd97 | 2680 | } |
70551f47 | 2681 | { |
ab9bc19b RD |
2682 | wxPy_BEGIN_ALLOW_THREADS; |
2683 | _result = (PyObject *)wxColour_Get(_arg0); | |
2684 | ||
2685 | wxPy_END_ALLOW_THREADS; | |
2686 | }{ | |
70551f47 RD |
2687 | _resultobj = _result; |
2688 | } | |
2689 | return _resultobj; | |
2690 | } | |
2691 | ||
2692 | static wxPen *new_wxPen(wxColour *colour,int width,int style) { | |
2693 | return wxThePenList->FindOrCreatePen(*colour, width, style); | |
2694 | } | |
2695 | ||
107e4716 | 2696 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2697 | PyObject * _resultobj; |
2698 | wxPen * _result; | |
2699 | wxColour * _arg0; | |
2d091820 RD |
2700 | int _arg1 = (int ) 1; |
2701 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
2702 | wxColour temp; |
2703 | PyObject * _obj0 = 0; | |
107e4716 | 2704 | char *_kwnames[] = { "colour","width","style", NULL }; |
70551f47 RD |
2705 | char _ptemp[128]; |
2706 | ||
2707 | self = self; | |
f6bcfd97 | 2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
70551f47 | 2709 | return NULL; |
f6bcfd97 BP |
2710 | { |
2711 | _arg0 = &temp; | |
2712 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 2713 | return NULL; |
f6bcfd97 | 2714 | } |
ab9bc19b RD |
2715 | { |
2716 | wxPy_BEGIN_ALLOW_THREADS; | |
2717 | _result = (wxPen *)new_wxPen(_arg0,_arg1,_arg2); | |
2718 | ||
2719 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
2720 | } if (_result) { |
2721 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
2722 | _resultobj = Py_BuildValue("s",_ptemp); | |
2723 | } else { | |
2724 | Py_INCREF(Py_None); | |
2725 | _resultobj = Py_None; | |
2726 | } | |
70551f47 RD |
2727 | return _resultobj; |
2728 | } | |
2729 | ||
2730 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
107e4716 | 2731 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2732 | PyObject * _resultobj; |
2733 | int _result; | |
2734 | wxPen * _arg0; | |
2d091820 | 2735 | PyObject * _argo0 = 0; |
107e4716 | 2736 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2737 | |
2738 | self = self; | |
107e4716 | 2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
70551f47 | 2740 | return NULL; |
2d091820 RD |
2741 | if (_argo0) { |
2742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
2745 | return NULL; | |
2746 | } | |
2747 | } | |
ab9bc19b RD |
2748 | { |
2749 | wxPy_BEGIN_ALLOW_THREADS; | |
2750 | _result = (int )wxPen_GetCap(_arg0); | |
2751 | ||
2752 | wxPy_END_ALLOW_THREADS; | |
2753 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2754 | return _resultobj; |
2755 | } | |
2756 | ||
2757 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
107e4716 | 2758 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2759 | PyObject * _resultobj; |
2760 | wxColour * _result; | |
2761 | wxPen * _arg0; | |
2d091820 | 2762 | PyObject * _argo0 = 0; |
107e4716 | 2763 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2764 | char _ptemp[128]; |
2765 | ||
2766 | self = self; | |
107e4716 | 2767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
70551f47 | 2768 | return NULL; |
2d091820 RD |
2769 | if (_argo0) { |
2770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
2773 | return NULL; | |
2774 | } | |
2775 | } | |
ab9bc19b RD |
2776 | { |
2777 | wxPy_BEGIN_ALLOW_THREADS; | |
2778 | wxColour & _result_ref = wxPen_GetColour(_arg0); | |
70551f47 | 2779 | _result = (wxColour *) &_result_ref; |
ab9bc19b RD |
2780 | |
2781 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
2782 | } if (_result) { |
2783 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
2784 | _resultobj = Py_BuildValue("s",_ptemp); | |
2785 | } else { | |
2786 | Py_INCREF(Py_None); | |
2787 | _resultobj = Py_None; | |
2788 | } | |
70551f47 RD |
2789 | return _resultobj; |
2790 | } | |
2791 | ||
2792 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
107e4716 | 2793 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2794 | PyObject * _resultobj; |
2795 | int _result; | |
2796 | wxPen * _arg0; | |
2d091820 | 2797 | PyObject * _argo0 = 0; |
107e4716 | 2798 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2799 | |
2800 | self = self; | |
107e4716 | 2801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
70551f47 | 2802 | return NULL; |
2d091820 RD |
2803 | if (_argo0) { |
2804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
2807 | return NULL; | |
2808 | } | |
2809 | } | |
ab9bc19b RD |
2810 | { |
2811 | wxPy_BEGIN_ALLOW_THREADS; | |
2812 | _result = (int )wxPen_GetJoin(_arg0); | |
2813 | ||
2814 | wxPy_END_ALLOW_THREADS; | |
2815 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2816 | return _resultobj; |
2817 | } | |
2818 | ||
2819 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 2820 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2821 | PyObject * _resultobj; |
2822 | int _result; | |
2823 | wxPen * _arg0; | |
2d091820 | 2824 | PyObject * _argo0 = 0; |
107e4716 | 2825 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2826 | |
2827 | self = self; | |
107e4716 | 2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
70551f47 | 2829 | return NULL; |
2d091820 RD |
2830 | if (_argo0) { |
2831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
2834 | return NULL; | |
2835 | } | |
2836 | } | |
ab9bc19b RD |
2837 | { |
2838 | wxPy_BEGIN_ALLOW_THREADS; | |
2839 | _result = (int )wxPen_GetStyle(_arg0); | |
2840 | ||
2841 | wxPy_END_ALLOW_THREADS; | |
2842 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2843 | return _resultobj; |
2844 | } | |
2845 | ||
2846 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 2847 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2848 | PyObject * _resultobj; |
2849 | int _result; | |
2850 | wxPen * _arg0; | |
2d091820 | 2851 | PyObject * _argo0 = 0; |
107e4716 | 2852 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2853 | |
2854 | self = self; | |
107e4716 | 2855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
70551f47 | 2856 | return NULL; |
2d091820 RD |
2857 | if (_argo0) { |
2858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
2861 | return NULL; | |
2862 | } | |
2863 | } | |
ab9bc19b RD |
2864 | { |
2865 | wxPy_BEGIN_ALLOW_THREADS; | |
2866 | _result = (int )wxPen_GetWidth(_arg0); | |
2867 | ||
2868 | wxPy_END_ALLOW_THREADS; | |
2869 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2870 | return _resultobj; |
2871 | } | |
2872 | ||
2873 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 2874 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2875 | PyObject * _resultobj; |
2876 | bool _result; | |
2877 | wxPen * _arg0; | |
2d091820 | 2878 | PyObject * _argo0 = 0; |
107e4716 | 2879 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2880 | |
2881 | self = self; | |
107e4716 | 2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
70551f47 | 2883 | return NULL; |
2d091820 RD |
2884 | if (_argo0) { |
2885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
2888 | return NULL; | |
2889 | } | |
2890 | } | |
ab9bc19b RD |
2891 | { |
2892 | wxPy_BEGIN_ALLOW_THREADS; | |
2893 | _result = (bool )wxPen_Ok(_arg0); | |
2894 | ||
2895 | wxPy_END_ALLOW_THREADS; | |
2896 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2897 | return _resultobj; |
2898 | } | |
2899 | ||
2900 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
107e4716 | 2901 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2902 | PyObject * _resultobj; |
2903 | wxPen * _arg0; | |
2904 | int _arg1; | |
2d091820 | 2905 | PyObject * _argo0 = 0; |
107e4716 | 2906 | char *_kwnames[] = { "self","cap_style", NULL }; |
70551f47 RD |
2907 | |
2908 | self = self; | |
107e4716 | 2909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2910 | return NULL; |
2d091820 RD |
2911 | if (_argo0) { |
2912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
2915 | return NULL; | |
2916 | } | |
2917 | } | |
ab9bc19b RD |
2918 | { |
2919 | wxPy_BEGIN_ALLOW_THREADS; | |
2920 | wxPen_SetCap(_arg0,_arg1); | |
2921 | ||
2922 | wxPy_END_ALLOW_THREADS; | |
2923 | } Py_INCREF(Py_None); | |
70551f47 RD |
2924 | _resultobj = Py_None; |
2925 | return _resultobj; | |
2926 | } | |
2927 | ||
2928 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 2929 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2930 | PyObject * _resultobj; |
2931 | wxPen * _arg0; | |
2932 | wxColour * _arg1; | |
2d091820 | 2933 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2934 | wxColour temp; |
2935 | PyObject * _obj1 = 0; | |
107e4716 | 2936 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
2937 | |
2938 | self = self; | |
f6bcfd97 | 2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2940 | return NULL; |
2d091820 RD |
2941 | if (_argo0) { |
2942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
2945 | return NULL; | |
2946 | } | |
2947 | } | |
f6bcfd97 BP |
2948 | { |
2949 | _arg1 = &temp; | |
2950 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 2951 | return NULL; |
f6bcfd97 | 2952 | } |
ab9bc19b RD |
2953 | { |
2954 | wxPy_BEGIN_ALLOW_THREADS; | |
2955 | wxPen_SetColour(_arg0,*_arg1); | |
2956 | ||
2957 | wxPy_END_ALLOW_THREADS; | |
2958 | } Py_INCREF(Py_None); | |
70551f47 RD |
2959 | _resultobj = Py_None; |
2960 | return _resultobj; | |
2961 | } | |
2962 | ||
2963 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
107e4716 | 2964 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2965 | PyObject * _resultobj; |
2966 | wxPen * _arg0; | |
2967 | int _arg1; | |
2d091820 | 2968 | PyObject * _argo0 = 0; |
107e4716 | 2969 | char *_kwnames[] = { "self","join_style", NULL }; |
70551f47 RD |
2970 | |
2971 | self = self; | |
107e4716 | 2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2973 | return NULL; |
2d091820 RD |
2974 | if (_argo0) { |
2975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
2977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
2978 | return NULL; | |
2979 | } | |
2980 | } | |
ab9bc19b RD |
2981 | { |
2982 | wxPy_BEGIN_ALLOW_THREADS; | |
2983 | wxPen_SetJoin(_arg0,_arg1); | |
2984 | ||
2985 | wxPy_END_ALLOW_THREADS; | |
2986 | } Py_INCREF(Py_None); | |
70551f47 RD |
2987 | _resultobj = Py_None; |
2988 | return _resultobj; | |
2989 | } | |
2990 | ||
2991 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 2992 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2993 | PyObject * _resultobj; |
2994 | wxPen * _arg0; | |
2995 | int _arg1; | |
2d091820 | 2996 | PyObject * _argo0 = 0; |
107e4716 | 2997 | char *_kwnames[] = { "self","style", NULL }; |
70551f47 RD |
2998 | |
2999 | self = self; | |
107e4716 | 3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3001 | return NULL; |
2d091820 RD |
3002 | if (_argo0) { |
3003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
3006 | return NULL; | |
3007 | } | |
3008 | } | |
ab9bc19b RD |
3009 | { |
3010 | wxPy_BEGIN_ALLOW_THREADS; | |
3011 | wxPen_SetStyle(_arg0,_arg1); | |
3012 | ||
3013 | wxPy_END_ALLOW_THREADS; | |
3014 | } Py_INCREF(Py_None); | |
70551f47 RD |
3015 | _resultobj = Py_None; |
3016 | return _resultobj; | |
3017 | } | |
3018 | ||
3019 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
107e4716 | 3020 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3021 | PyObject * _resultobj; |
3022 | wxPen * _arg0; | |
3023 | int _arg1; | |
2d091820 | 3024 | PyObject * _argo0 = 0; |
107e4716 | 3025 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
3026 | |
3027 | self = self; | |
107e4716 | 3028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3029 | return NULL; |
2d091820 RD |
3030 | if (_argo0) { |
3031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
3033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
3034 | return NULL; | |
3035 | } | |
3036 | } | |
ab9bc19b RD |
3037 | { |
3038 | wxPy_BEGIN_ALLOW_THREADS; | |
3039 | wxPen_SetWidth(_arg0,_arg1); | |
3040 | ||
3041 | wxPy_END_ALLOW_THREADS; | |
3042 | } Py_INCREF(Py_None); | |
70551f47 RD |
3043 | _resultobj = Py_None; |
3044 | return _resultobj; | |
3045 | } | |
3046 | ||
56f5d962 RD |
3047 | #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0)) |
3048 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3049 | PyObject * _resultobj; | |
3050 | int _result; | |
3051 | wxPen * _arg0; | |
3052 | wxDash ** _arg1; | |
3053 | PyObject * _argo0 = 0; | |
3054 | PyObject * _argo1 = 0; | |
3055 | char *_kwnames[] = { "self","dashes", NULL }; | |
3056 | ||
3057 | self = self; | |
3058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1)) | |
3059 | return NULL; | |
3060 | if (_argo0) { | |
3061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
3064 | return NULL; | |
3065 | } | |
3066 | } | |
3067 | if (_argo1) { | |
3068 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3069 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) { | |
3070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp."); | |
3071 | return NULL; | |
3072 | } | |
3073 | } | |
3074 | { | |
3075 | wxPy_BEGIN_ALLOW_THREADS; | |
3076 | _result = (int )wxPen_GetDashes(_arg0,_arg1); | |
3077 | ||
3078 | wxPy_END_ALLOW_THREADS; | |
3079 | } _resultobj = Py_BuildValue("i",_result); | |
3080 | return _resultobj; | |
3081 | } | |
3082 | ||
3083 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
3084 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3085 | PyObject * _resultobj; | |
3086 | wxPen * _arg0; | |
3087 | int _arg1; | |
3088 | wxDash * _arg2; | |
3089 | PyObject * _argo0 = 0; | |
3090 | PyObject * _obj2 = 0; | |
e02c03a4 | 3091 | char *_kwnames[] = { "self","choices", NULL }; |
56f5d962 RD |
3092 | |
3093 | self = self; | |
3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
3095 | return NULL; | |
3096 | if (_argo0) { | |
3097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
3100 | return NULL; | |
3101 | } | |
3102 | } | |
3103 | if (_obj2) | |
3104 | { | |
41073357 | 3105 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
56f5d962 RD |
3106 | if (_arg2 == NULL) { |
3107 | return NULL; | |
3108 | } | |
3109 | } | |
3110 | { | |
3111 | if (_obj2) { | |
3112 | _arg1 = PyList_Size(_obj2); | |
3113 | } | |
3114 | else { | |
3115 | _arg1 = 0; | |
3116 | } | |
3117 | } | |
3118 | { | |
3119 | wxPy_BEGIN_ALLOW_THREADS; | |
3120 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
3121 | ||
3122 | wxPy_END_ALLOW_THREADS; | |
3123 | } Py_INCREF(Py_None); | |
3124 | _resultobj = Py_None; | |
3125 | { | |
3126 | delete [] _arg2; | |
3127 | } | |
3128 | return _resultobj; | |
3129 | } | |
3130 | ||
2fc99549 | 3131 | static wxBrush *new_wxBrush(const wxColour *colour,int style) { |
70551f47 RD |
3132 | return wxTheBrushList->FindOrCreateBrush(*colour, style); |
3133 | } | |
3134 | ||
107e4716 | 3135 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3136 | PyObject * _resultobj; |
3137 | wxBrush * _result; | |
3138 | wxColour * _arg0; | |
2d091820 | 3139 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
3140 | wxColour temp; |
3141 | PyObject * _obj0 = 0; | |
107e4716 | 3142 | char *_kwnames[] = { "colour","style", NULL }; |
70551f47 RD |
3143 | char _ptemp[128]; |
3144 | ||
3145 | self = self; | |
f6bcfd97 | 3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
70551f47 | 3147 | return NULL; |
f6bcfd97 BP |
3148 | { |
3149 | _arg0 = &temp; | |
3150 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 3151 | return NULL; |
f6bcfd97 | 3152 | } |
ab9bc19b RD |
3153 | { |
3154 | wxPy_BEGIN_ALLOW_THREADS; | |
3155 | _result = (wxBrush *)new_wxBrush(_arg0,_arg1); | |
3156 | ||
3157 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
3158 | } if (_result) { |
3159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
3160 | _resultobj = Py_BuildValue("s",_ptemp); | |
3161 | } else { | |
3162 | Py_INCREF(Py_None); | |
3163 | _resultobj = Py_None; | |
3164 | } | |
70551f47 RD |
3165 | return _resultobj; |
3166 | } | |
3167 | ||
3168 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
107e4716 | 3169 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3170 | PyObject * _resultobj; |
3171 | wxColour * _result; | |
3172 | wxBrush * _arg0; | |
2d091820 | 3173 | PyObject * _argo0 = 0; |
107e4716 | 3174 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3175 | char _ptemp[128]; |
3176 | ||
3177 | self = self; | |
107e4716 | 3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
70551f47 | 3179 | return NULL; |
2d091820 RD |
3180 | if (_argo0) { |
3181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
3183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
3184 | return NULL; | |
3185 | } | |
3186 | } | |
ab9bc19b RD |
3187 | { |
3188 | wxPy_BEGIN_ALLOW_THREADS; | |
3189 | wxColour & _result_ref = wxBrush_GetColour(_arg0); | |
70551f47 | 3190 | _result = (wxColour *) &_result_ref; |
ab9bc19b RD |
3191 | |
3192 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
3193 | } if (_result) { |
3194 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3195 | _resultobj = Py_BuildValue("s",_ptemp); | |
3196 | } else { | |
3197 | Py_INCREF(Py_None); | |
3198 | _resultobj = Py_None; | |
3199 | } | |
70551f47 RD |
3200 | return _resultobj; |
3201 | } | |
3202 | ||
3203 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
107e4716 | 3204 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3205 | PyObject * _resultobj; |
3206 | wxBitmap * _result; | |
3207 | wxBrush * _arg0; | |
2d091820 | 3208 | PyObject * _argo0 = 0; |
107e4716 | 3209 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3210 | char _ptemp[128]; |
3211 | ||
3212 | self = self; | |
107e4716 | 3213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
70551f47 | 3214 | return NULL; |
2d091820 RD |
3215 | if (_argo0) { |
3216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
3218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
3219 | return NULL; | |
3220 | } | |
3221 | } | |
ab9bc19b RD |
3222 | { |
3223 | wxPy_BEGIN_ALLOW_THREADS; | |
3224 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
3225 | ||
3226 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
3227 | } if (_result) { |
3228 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
3229 | _resultobj = Py_BuildValue("s",_ptemp); | |
3230 | } else { | |
3231 | Py_INCREF(Py_None); | |
3232 | _resultobj = Py_None; | |
3233 | } | |
70551f47 RD |
3234 | return _resultobj; |
3235 | } | |
3236 | ||
3237 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 3238 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3239 | PyObject * _resultobj; |
3240 | int _result; | |
3241 | wxBrush * _arg0; | |
2d091820 | 3242 | PyObject * _argo0 = 0; |
107e4716 | 3243 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3244 | |
3245 | self = self; | |
107e4716 | 3246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
70551f47 | 3247 | return NULL; |
2d091820 RD |
3248 | if (_argo0) { |
3249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
3251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
3252 | return NULL; | |
3253 | } | |
3254 | } | |
ab9bc19b RD |
3255 | { |
3256 | wxPy_BEGIN_ALLOW_THREADS; | |
3257 | _result = (int )wxBrush_GetStyle(_arg0); | |
3258 | ||
3259 | wxPy_END_ALLOW_THREADS; | |
3260 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3261 | return _resultobj; |
3262 | } | |
3263 | ||
3264 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 3265 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3266 | PyObject * _resultobj; |
3267 | bool _result; | |
3268 | wxBrush * _arg0; | |
2d091820 | 3269 | PyObject * _argo0 = 0; |
107e4716 | 3270 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3271 | |
3272 | self = self; | |
107e4716 | 3273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
70551f47 | 3274 | return NULL; |
2d091820 RD |
3275 | if (_argo0) { |
3276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
3278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
3279 | return NULL; | |
3280 | } | |
3281 | } | |
ab9bc19b RD |
3282 | { |
3283 | wxPy_BEGIN_ALLOW_THREADS; | |
3284 | _result = (bool )wxBrush_Ok(_arg0); | |
3285 | ||
3286 | wxPy_END_ALLOW_THREADS; | |
3287 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3288 | return _resultobj; |
3289 | } | |
3290 | ||
c95e68d8 | 3291 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) |
107e4716 | 3292 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
3293 | PyObject * _resultobj; |
3294 | wxBrush * _arg0; | |
3295 | wxColour * _arg1; | |
2d091820 | 3296 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3297 | wxColour temp; |
3298 | PyObject * _obj1 = 0; | |
107e4716 | 3299 | char *_kwnames[] = { "self","colour", NULL }; |
c95e68d8 RD |
3300 | |
3301 | self = self; | |
f6bcfd97 | 3302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 3303 | return NULL; |
2d091820 RD |
3304 | if (_argo0) { |
3305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
3307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
3308 | return NULL; | |
3309 | } | |
3310 | } | |
f6bcfd97 BP |
3311 | { |
3312 | _arg1 = &temp; | |
3313 | if (! wxColour_helper(_obj1, &_arg1)) | |
c95e68d8 | 3314 | return NULL; |
f6bcfd97 | 3315 | } |
ab9bc19b RD |
3316 | { |
3317 | wxPy_BEGIN_ALLOW_THREADS; | |
3318 | wxBrush_SetColour(_arg0,*_arg1); | |
3319 | ||
3320 | wxPy_END_ALLOW_THREADS; | |
3321 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
3322 | _resultobj = Py_None; |
3323 | return _resultobj; | |
3324 | } | |
3325 | ||
3326 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
107e4716 | 3327 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
3328 | PyObject * _resultobj; |
3329 | wxBrush * _arg0; | |
3330 | wxBitmap * _arg1; | |
2d091820 RD |
3331 | PyObject * _argo0 = 0; |
3332 | PyObject * _argo1 = 0; | |
107e4716 | 3333 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
3334 | |
3335 | self = self; | |
107e4716 | 3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 3337 | return NULL; |
2d091820 RD |
3338 | if (_argo0) { |
3339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
3341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
3342 | return NULL; | |
3343 | } | |
3344 | } | |
2d091820 RD |
3345 | if (_argo1) { |
3346 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3347 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
3348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
3349 | return NULL; | |
3350 | } | |
3351 | } | |
ab9bc19b RD |
3352 | { |
3353 | wxPy_BEGIN_ALLOW_THREADS; | |
3354 | wxBrush_SetStipple(_arg0,*_arg1); | |
3355 | ||
3356 | wxPy_END_ALLOW_THREADS; | |
3357 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
3358 | _resultobj = Py_None; |
3359 | return _resultobj; | |
3360 | } | |
3361 | ||
3362 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 3363 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
3364 | PyObject * _resultobj; |
3365 | wxBrush * _arg0; | |
3366 | int _arg1; | |
2d091820 | 3367 | PyObject * _argo0 = 0; |
107e4716 | 3368 | char *_kwnames[] = { "self","style", NULL }; |
c95e68d8 RD |
3369 | |
3370 | self = self; | |
107e4716 | 3371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 3372 | return NULL; |
2d091820 RD |
3373 | if (_argo0) { |
3374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
3376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
3377 | return NULL; | |
3378 | } | |
3379 | } | |
ab9bc19b RD |
3380 | { |
3381 | wxPy_BEGIN_ALLOW_THREADS; | |
3382 | wxBrush_SetStyle(_arg0,_arg1); | |
3383 | ||
3384 | wxPy_END_ALLOW_THREADS; | |
3385 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
3386 | _resultobj = Py_None; |
3387 | return _resultobj; | |
3388 | } | |
3389 | ||
70551f47 | 3390 | #define delete_wxDC(_swigobj) (delete _swigobj) |
107e4716 | 3391 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3392 | PyObject * _resultobj; |
3393 | wxDC * _arg0; | |
2d091820 | 3394 | PyObject * _argo0 = 0; |
107e4716 | 3395 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3396 | |
3397 | self = self; | |
107e4716 | 3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
70551f47 | 3399 | return NULL; |
2d091820 RD |
3400 | if (_argo0) { |
3401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
3404 | return NULL; | |
3405 | } | |
3406 | } | |
ab9bc19b RD |
3407 | { |
3408 | wxPy_BEGIN_ALLOW_THREADS; | |
3409 | delete_wxDC(_arg0); | |
3410 | ||
3411 | wxPy_END_ALLOW_THREADS; | |
3412 | } Py_INCREF(Py_None); | |
70551f47 RD |
3413 | _resultobj = Py_None; |
3414 | return _resultobj; | |
3415 | } | |
3416 | ||
3417 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
107e4716 | 3418 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3419 | PyObject * _resultobj; |
3420 | wxDC * _arg0; | |
2d091820 | 3421 | PyObject * _argo0 = 0; |
107e4716 | 3422 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3423 | |
3424 | self = self; | |
107e4716 | 3425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
70551f47 | 3426 | return NULL; |
2d091820 RD |
3427 | if (_argo0) { |
3428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
3431 | return NULL; | |
3432 | } | |
3433 | } | |
ab9bc19b RD |
3434 | { |
3435 | wxPy_BEGIN_ALLOW_THREADS; | |
3436 | wxDC_BeginDrawing(_arg0); | |
3437 | ||
3438 | wxPy_END_ALLOW_THREADS; | |
3439 | } Py_INCREF(Py_None); | |
70551f47 RD |
3440 | _resultobj = Py_None; |
3441 | return _resultobj; | |
3442 | } | |
3443 | ||
107e4716 RD |
3444 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
3445 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
3446 | PyObject * _resultobj; |
3447 | bool _result; | |
3448 | wxDC * _arg0; | |
3449 | long _arg1; | |
3450 | long _arg2; | |
3451 | long _arg3; | |
3452 | long _arg4; | |
3453 | wxDC * _arg5; | |
3454 | long _arg6; | |
3455 | long _arg7; | |
107e4716 RD |
3456 | int _arg8 = (int ) wxCOPY; |
3457 | int _arg9 = (int ) FALSE; | |
2d091820 RD |
3458 | PyObject * _argo0 = 0; |
3459 | PyObject * _argo5 = 0; | |
107e4716 | 3460 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
70551f47 RD |
3461 | |
3462 | self = self; | |
107e4716 | 3463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
70551f47 | 3464 | return NULL; |
2d091820 RD |
3465 | if (_argo0) { |
3466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
3469 | return NULL; | |
3470 | } | |
3471 | } | |
2d091820 RD |
3472 | if (_argo5) { |
3473 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3474 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
70551f47 RD |
3475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
3476 | return NULL; | |
3477 | } | |
3478 | } | |
ab9bc19b RD |
3479 | { |
3480 | wxPy_BEGIN_ALLOW_THREADS; | |
107e4716 | 3481 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
ab9bc19b RD |
3482 | |
3483 | wxPy_END_ALLOW_THREADS; | |
3484 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3485 | return _resultobj; |
3486 | } | |
3487 | ||
3488 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 3489 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3490 | PyObject * _resultobj; |
3491 | wxDC * _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:wxDC_Clear",_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,"_wxDC_p")) { | |
70551f47 RD |
3501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
3502 | return NULL; | |
3503 | } | |
3504 | } | |
ab9bc19b RD |
3505 | { |
3506 | wxPy_BEGIN_ALLOW_THREADS; | |
3507 | wxDC_Clear(_arg0); | |
3508 | ||
3509 | wxPy_END_ALLOW_THREADS; | |
3510 | } Py_INCREF(Py_None); | |
70551f47 RD |
3511 | _resultobj = Py_None; |
3512 | return _resultobj; | |
3513 | } | |
3514 | ||
3515 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
107e4716 | 3516 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3517 | PyObject * _resultobj; |
3518 | wxDC * _arg0; | |
3519 | long _arg1; | |
3520 | long _arg2; | |
2d091820 | 3521 | PyObject * _argo0 = 0; |
107e4716 | 3522 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
3523 | |
3524 | self = self; | |
107e4716 | 3525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3526 | return NULL; |
2d091820 RD |
3527 | if (_argo0) { |
3528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
3531 | return NULL; | |
3532 | } | |
3533 | } | |
ab9bc19b RD |
3534 | { |
3535 | wxPy_BEGIN_ALLOW_THREADS; | |
3536 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
3537 | ||
3538 | wxPy_END_ALLOW_THREADS; | |
3539 | } Py_INCREF(Py_None); | |
70551f47 RD |
3540 | _resultobj = Py_None; |
3541 | return _resultobj; | |
3542 | } | |
3543 | ||
3544 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
107e4716 | 3545 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3546 | PyObject * _resultobj; |
3547 | wxDC * _arg0; | |
2d091820 | 3548 | PyObject * _argo0 = 0; |
107e4716 | 3549 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3550 | |
3551 | self = self; | |
107e4716 | 3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
70551f47 | 3553 | return NULL; |
2d091820 RD |
3554 | if (_argo0) { |
3555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
3558 | return NULL; | |
3559 | } | |
3560 | } | |
ab9bc19b RD |
3561 | { |
3562 | wxPy_BEGIN_ALLOW_THREADS; | |
3563 | wxDC_DestroyClippingRegion(_arg0); | |
3564 | ||
3565 | wxPy_END_ALLOW_THREADS; | |
3566 | } Py_INCREF(Py_None); | |
70551f47 RD |
3567 | _resultobj = Py_None; |
3568 | return _resultobj; | |
3569 | } | |
3570 | ||
3571 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
107e4716 | 3572 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3573 | PyObject * _resultobj; |
3574 | long _result; | |
3575 | wxDC * _arg0; | |
3576 | long _arg1; | |
2d091820 | 3577 | PyObject * _argo0 = 0; |
107e4716 | 3578 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
3579 | |
3580 | self = self; | |
107e4716 | 3581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3582 | return NULL; |
2d091820 RD |
3583 | if (_argo0) { |
3584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
3587 | return NULL; | |
3588 | } | |
3589 | } | |
ab9bc19b RD |
3590 | { |
3591 | wxPy_BEGIN_ALLOW_THREADS; | |
3592 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
3593 | ||
3594 | wxPy_END_ALLOW_THREADS; | |
3595 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
3596 | return _resultobj; |
3597 | } | |
3598 | ||
3599 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
107e4716 | 3600 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3601 | PyObject * _resultobj; |
3602 | long _result; | |
3603 | wxDC * _arg0; | |
3604 | long _arg1; | |
2d091820 | 3605 | PyObject * _argo0 = 0; |
107e4716 | 3606 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
3607 | |
3608 | self = self; | |
107e4716 | 3609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3610 | return NULL; |
2d091820 RD |
3611 | if (_argo0) { |
3612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
3615 | return NULL; | |
3616 | } | |
3617 | } | |
ab9bc19b RD |
3618 | { |
3619 | wxPy_BEGIN_ALLOW_THREADS; | |
3620 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
3621 | ||
3622 | wxPy_END_ALLOW_THREADS; | |
3623 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
3624 | return _resultobj; |
3625 | } | |
3626 | ||
3627 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
107e4716 | 3628 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3629 | PyObject * _resultobj; |
3630 | long _result; | |
3631 | wxDC * _arg0; | |
3632 | long _arg1; | |
2d091820 | 3633 | PyObject * _argo0 = 0; |
107e4716 | 3634 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
3635 | |
3636 | self = self; | |
107e4716 | 3637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3638 | return NULL; |
2d091820 RD |
3639 | if (_argo0) { |
3640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
3643 | return NULL; | |
3644 | } | |
3645 | } | |
ab9bc19b RD |
3646 | { |
3647 | wxPy_BEGIN_ALLOW_THREADS; | |
3648 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
3649 | ||
3650 | wxPy_END_ALLOW_THREADS; | |
3651 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
3652 | return _resultobj; |
3653 | } | |
3654 | ||
3655 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
107e4716 | 3656 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3657 | PyObject * _resultobj; |
3658 | long _result; | |
3659 | wxDC * _arg0; | |
3660 | long _arg1; | |
2d091820 | 3661 | PyObject * _argo0 = 0; |
107e4716 | 3662 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
3663 | |
3664 | self = self; | |
107e4716 | 3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3666 | return NULL; |
2d091820 RD |
3667 | if (_argo0) { |
3668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
3671 | return NULL; | |
3672 | } | |
3673 | } | |
ab9bc19b RD |
3674 | { |
3675 | wxPy_BEGIN_ALLOW_THREADS; | |
3676 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
3677 | ||
3678 | wxPy_END_ALLOW_THREADS; | |
3679 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
3680 | return _resultobj; |
3681 | } | |
3682 | ||
3683 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 3684 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3685 | PyObject * _resultobj; |
3686 | wxDC * _arg0; | |
3687 | long _arg1; | |
3688 | long _arg2; | |
3689 | long _arg3; | |
3690 | long _arg4; | |
3691 | long _arg5; | |
3692 | long _arg6; | |
2d091820 | 3693 | PyObject * _argo0 = 0; |
107e4716 | 3694 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
70551f47 RD |
3695 | |
3696 | self = self; | |
107e4716 | 3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 3698 | return NULL; |
2d091820 RD |
3699 | if (_argo0) { |
3700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
3703 | return NULL; | |
3704 | } | |
3705 | } | |
ab9bc19b RD |
3706 | { |
3707 | wxPy_BEGIN_ALLOW_THREADS; | |
3708 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3709 | ||
3710 | wxPy_END_ALLOW_THREADS; | |
3711 | } Py_INCREF(Py_None); | |
70551f47 RD |
3712 | _resultobj = Py_None; |
3713 | return _resultobj; | |
3714 | } | |
3715 | ||
d24a34bb | 3716 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 3717 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
3718 | PyObject * _resultobj; |
3719 | wxDC * _arg0; | |
3720 | long _arg1; | |
3721 | long _arg2; | |
3722 | long _arg3; | |
2d091820 | 3723 | PyObject * _argo0 = 0; |
107e4716 | 3724 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
d24a34bb RD |
3725 | |
3726 | self = self; | |
107e4716 | 3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
d24a34bb | 3728 | return NULL; |
2d091820 RD |
3729 | if (_argo0) { |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | { | |
3737 | wxPy_BEGIN_ALLOW_THREADS; | |
3738 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
3739 | ||
3740 | wxPy_END_ALLOW_THREADS; | |
3741 | } Py_INCREF(Py_None); | |
3742 | _resultobj = Py_None; | |
3743 | return _resultobj; | |
3744 | } | |
3745 | ||
70551f47 | 3746 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 3747 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3748 | PyObject * _resultobj; |
3749 | wxDC * _arg0; | |
3750 | long _arg1; | |
3751 | long _arg2; | |
3752 | long _arg3; | |
3753 | long _arg4; | |
2d091820 | 3754 | PyObject * _argo0 = 0; |
107e4716 | 3755 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
3756 | |
3757 | self = self; | |
107e4716 | 3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 3759 | return NULL; |
2d091820 RD |
3760 | if (_argo0) { |
3761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
3764 | return NULL; | |
3765 | } | |
3766 | } | |
ab9bc19b RD |
3767 | { |
3768 | wxPy_BEGIN_ALLOW_THREADS; | |
3769 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3770 | ||
3771 | wxPy_END_ALLOW_THREADS; | |
3772 | } Py_INCREF(Py_None); | |
70551f47 RD |
3773 | _resultobj = Py_None; |
3774 | return _resultobj; | |
3775 | } | |
3776 | ||
3777 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 3778 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3779 | PyObject * _resultobj; |
3780 | wxDC * _arg0; | |
3781 | long _arg1; | |
3782 | long _arg2; | |
3783 | long _arg3; | |
3784 | long _arg4; | |
3785 | long _arg5; | |
3786 | long _arg6; | |
2d091820 | 3787 | PyObject * _argo0 = 0; |
107e4716 | 3788 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
70551f47 RD |
3789 | |
3790 | self = self; | |
107e4716 | 3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 3792 | return NULL; |
2d091820 RD |
3793 | if (_argo0) { |
3794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
3797 | return NULL; | |
3798 | } | |
3799 | } | |
ab9bc19b RD |
3800 | { |
3801 | wxPy_BEGIN_ALLOW_THREADS; | |
3802 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3803 | ||
3804 | wxPy_END_ALLOW_THREADS; | |
3805 | } Py_INCREF(Py_None); | |
70551f47 RD |
3806 | _resultobj = Py_None; |
3807 | return _resultobj; | |
3808 | } | |
3809 | ||
3810 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 3811 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3812 | PyObject * _resultobj; |
3813 | wxDC * _arg0; | |
3814 | wxIcon * _arg1; | |
3815 | long _arg2; | |
3816 | long _arg3; | |
2d091820 RD |
3817 | PyObject * _argo0 = 0; |
3818 | PyObject * _argo1 = 0; | |
107e4716 | 3819 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
70551f47 RD |
3820 | |
3821 | self = self; | |
107e4716 | 3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
70551f47 | 3823 | return NULL; |
2d091820 RD |
3824 | if (_argo0) { |
3825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
3828 | return NULL; | |
3829 | } | |
3830 | } | |
2d091820 RD |
3831 | if (_argo1) { |
3832 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3833 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
70551f47 RD |
3834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
3835 | return NULL; | |
3836 | } | |
3837 | } | |
ab9bc19b RD |
3838 | { |
3839 | wxPy_BEGIN_ALLOW_THREADS; | |
3840 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
3841 | ||
3842 | wxPy_END_ALLOW_THREADS; | |
3843 | } Py_INCREF(Py_None); | |
70551f47 RD |
3844 | _resultobj = Py_None; |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
3848 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 3849 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3850 | PyObject * _resultobj; |
3851 | wxDC * _arg0; | |
3852 | long _arg1; | |
3853 | long _arg2; | |
3854 | long _arg3; | |
3855 | long _arg4; | |
2d091820 | 3856 | PyObject * _argo0 = 0; |
107e4716 | 3857 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
70551f47 RD |
3858 | |
3859 | self = self; | |
107e4716 | 3860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 3861 | return NULL; |
2d091820 RD |
3862 | if (_argo0) { |
3863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
3866 | return NULL; | |
3867 | } | |
3868 | } | |
ab9bc19b RD |
3869 | { |
3870 | wxPy_BEGIN_ALLOW_THREADS; | |
3871 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3872 | ||
3873 | wxPy_END_ALLOW_THREADS; | |
3874 | } Py_INCREF(Py_None); | |
70551f47 RD |
3875 | _resultobj = Py_None; |
3876 | return _resultobj; | |
3877 | } | |
3878 | ||
3879 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 3880 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3881 | PyObject * _resultobj; |
3882 | wxDC * _arg0; | |
3883 | int _arg1; | |
3884 | wxPoint * _arg2; | |
2d091820 RD |
3885 | long _arg3 = (long ) 0; |
3886 | long _arg4 = (long ) 0; | |
3887 | PyObject * _argo0 = 0; | |
70551f47 | 3888 | PyObject * _obj2 = 0; |
e02c03a4 | 3889 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
70551f47 RD |
3890 | |
3891 | self = self; | |
107e4716 | 3892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
70551f47 | 3893 | return NULL; |
2d091820 RD |
3894 | if (_argo0) { |
3895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
3898 | return NULL; | |
3899 | } | |
3900 | } | |
3901 | if (_obj2) | |
3902 | { | |
3903 | _arg2 = wxPoint_LIST_helper(_obj2); | |
3904 | if (_arg2 == NULL) { | |
3905 | return NULL; | |
3906 | } | |
3907 | } | |
3908 | { | |
ab9bc19b RD |
3909 | if (_obj2) { |
3910 | _arg1 = PyList_Size(_obj2); | |
3911 | } | |
3912 | else { | |
3913 | _arg1 = 0; | |
3914 | } | |
70551f47 | 3915 | } |
ab9bc19b RD |
3916 | { |
3917 | wxPy_BEGIN_ALLOW_THREADS; | |
3918 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3919 | ||
3920 | wxPy_END_ALLOW_THREADS; | |
3921 | } Py_INCREF(Py_None); | |
70551f47 RD |
3922 | _resultobj = Py_None; |
3923 | { | |
3924 | delete [] _arg2; | |
3925 | } | |
3926 | return _resultobj; | |
3927 | } | |
3928 | ||
3929 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 3930 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3931 | PyObject * _resultobj; |
3932 | wxDC * _arg0; | |
3933 | int _arg1; | |
3934 | wxPoint * _arg2; | |
2d091820 RD |
3935 | long _arg3 = (long ) 0; |
3936 | long _arg4 = (long ) 0; | |
3937 | int _arg5 = (int ) wxODDEVEN_RULE; | |
3938 | PyObject * _argo0 = 0; | |
70551f47 | 3939 | PyObject * _obj2 = 0; |
e02c03a4 | 3940 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
70551f47 RD |
3941 | |
3942 | self = self; | |
107e4716 | 3943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 3944 | return NULL; |
2d091820 RD |
3945 | if (_argo0) { |
3946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
3949 | return NULL; | |
3950 | } | |
3951 | } | |
3952 | if (_obj2) | |
3953 | { | |
3954 | _arg2 = wxPoint_LIST_helper(_obj2); | |
3955 | if (_arg2 == NULL) { | |
3956 | return NULL; | |
3957 | } | |
3958 | } | |
3959 | { | |
ab9bc19b RD |
3960 | if (_obj2) { |
3961 | _arg1 = PyList_Size(_obj2); | |
3962 | } | |
3963 | else { | |
3964 | _arg1 = 0; | |
3965 | } | |
70551f47 | 3966 | } |
ab9bc19b RD |
3967 | { |
3968 | wxPy_BEGIN_ALLOW_THREADS; | |
3969 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3970 | ||
3971 | wxPy_END_ALLOW_THREADS; | |
3972 | } Py_INCREF(Py_None); | |
70551f47 RD |
3973 | _resultobj = Py_None; |
3974 | { | |
3975 | delete [] _arg2; | |
3976 | } | |
3977 | return _resultobj; | |
3978 | } | |
3979 | ||
3980 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
107e4716 | 3981 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3982 | PyObject * _resultobj; |
3983 | wxDC * _arg0; | |
3984 | long _arg1; | |
3985 | long _arg2; | |
2d091820 | 3986 | PyObject * _argo0 = 0; |
107e4716 | 3987 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
3988 | |
3989 | self = self; | |
107e4716 | 3990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3991 | return NULL; |
2d091820 RD |
3992 | if (_argo0) { |
3993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
3995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
3996 | return NULL; | |
3997 | } | |
3998 | } | |
ab9bc19b RD |
3999 | { |
4000 | wxPy_BEGIN_ALLOW_THREADS; | |
4001 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
4002 | ||
4003 | wxPy_END_ALLOW_THREADS; | |
4004 | } Py_INCREF(Py_None); | |
70551f47 RD |
4005 | _resultobj = Py_None; |
4006 | return _resultobj; | |
4007 | } | |
4008 | ||
4009 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 4010 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4011 | PyObject * _resultobj; |
4012 | wxDC * _arg0; | |
4013 | long _arg1; | |
4014 | long _arg2; | |
4015 | long _arg3; | |
4016 | long _arg4; | |
2d091820 | 4017 | PyObject * _argo0 = 0; |
107e4716 | 4018 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
4019 | |
4020 | self = self; | |
107e4716 | 4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4022 | return NULL; |
2d091820 RD |
4023 | if (_argo0) { |
4024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
4027 | return NULL; | |
4028 | } | |
4029 | } | |
ab9bc19b RD |
4030 | { |
4031 | wxPy_BEGIN_ALLOW_THREADS; | |
4032 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4033 | ||
4034 | wxPy_END_ALLOW_THREADS; | |
4035 | } Py_INCREF(Py_None); | |
70551f47 RD |
4036 | _resultobj = Py_None; |
4037 | return _resultobj; | |
4038 | } | |
4039 | ||
56f5d962 RD |
4040 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4041 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4042 | PyObject * _resultobj; | |
4043 | wxDC * _arg0; | |
4044 | wxString * _arg1; | |
4045 | wxCoord _arg2; | |
4046 | wxCoord _arg3; | |
4047 | double _arg4; | |
4048 | PyObject * _argo0 = 0; | |
4049 | PyObject * _obj1 = 0; | |
4050 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
4051 | ||
4052 | self = self; | |
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
4054 | return NULL; | |
4055 | if (_argo0) { | |
4056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
4059 | return NULL; | |
4060 | } | |
4061 | } | |
4062 | { | |
4063 | if (!PyString_Check(_obj1)) { | |
4064 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4065 | return NULL; | |
4066 | } | |
4067 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
4068 | } | |
4069 | { | |
4070 | wxPy_BEGIN_ALLOW_THREADS; | |
4071 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
4072 | ||
4073 | wxPy_END_ALLOW_THREADS; | |
4074 | } Py_INCREF(Py_None); | |
4075 | _resultobj = Py_None; | |
4076 | { | |
4077 | if (_obj1) | |
4078 | delete _arg1; | |
4079 | } | |
4080 | return _resultobj; | |
4081 | } | |
4082 | ||
70551f47 | 4083 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 4084 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4085 | PyObject * _resultobj; |
4086 | wxDC * _arg0; | |
4087 | long _arg1; | |
4088 | long _arg2; | |
4089 | long _arg3; | |
4090 | long _arg4; | |
2d091820 RD |
4091 | long _arg5 = (long ) 20; |
4092 | PyObject * _argo0 = 0; | |
107e4716 | 4093 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
70551f47 RD |
4094 | |
4095 | self = self; | |
107e4716 | 4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 4097 | return NULL; |
2d091820 RD |
4098 | if (_argo0) { |
4099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
4102 | return NULL; | |
4103 | } | |
4104 | } | |
ab9bc19b RD |
4105 | { |
4106 | wxPy_BEGIN_ALLOW_THREADS; | |
4107 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4108 | ||
4109 | wxPy_END_ALLOW_THREADS; | |
4110 | } Py_INCREF(Py_None); | |
70551f47 RD |
4111 | _resultobj = Py_None; |
4112 | return _resultobj; | |
4113 | } | |
4114 | ||
4115 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
107e4716 | 4116 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4117 | PyObject * _resultobj; |
4118 | wxDC * _arg0; | |
4119 | int _arg1; | |
4120 | wxPoint * _arg2; | |
2d091820 | 4121 | PyObject * _argo0 = 0; |
70551f47 | 4122 | PyObject * _obj2 = 0; |
e02c03a4 | 4123 | char *_kwnames[] = { "self","points", NULL }; |
70551f47 RD |
4124 | |
4125 | self = self; | |
107e4716 | 4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
70551f47 | 4127 | return NULL; |
2d091820 RD |
4128 | if (_argo0) { |
4129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
4132 | return NULL; | |
4133 | } | |
4134 | } | |
4135 | if (_obj2) | |
4136 | { | |
4137 | _arg2 = wxPoint_LIST_helper(_obj2); | |
4138 | if (_arg2 == NULL) { | |
4139 | return NULL; | |
4140 | } | |
4141 | } | |
4142 | { | |
ab9bc19b RD |
4143 | if (_obj2) { |
4144 | _arg1 = PyList_Size(_obj2); | |
4145 | } | |
4146 | else { | |
4147 | _arg1 = 0; | |
4148 | } | |
70551f47 | 4149 | } |
ab9bc19b RD |
4150 | { |
4151 | wxPy_BEGIN_ALLOW_THREADS; | |
4152 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
4153 | ||
4154 | wxPy_END_ALLOW_THREADS; | |
4155 | } Py_INCREF(Py_None); | |
70551f47 RD |
4156 | _resultobj = Py_None; |
4157 | { | |
4158 | delete [] _arg2; | |
4159 | } | |
4160 | return _resultobj; | |
4161 | } | |
4162 | ||
4163 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 4164 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4165 | PyObject * _resultobj; |
4166 | wxDC * _arg0; | |
4167 | wxString * _arg1; | |
4168 | long _arg2; | |
4169 | long _arg3; | |
2d091820 | 4170 | PyObject * _argo0 = 0; |
70551f47 | 4171 | PyObject * _obj1 = 0; |
107e4716 | 4172 | char *_kwnames[] = { "self","text","x","y", NULL }; |
70551f47 RD |
4173 | |
4174 | self = self; | |
107e4716 | 4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
70551f47 | 4176 | return NULL; |
2d091820 RD |
4177 | if (_argo0) { |
4178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
4181 | return NULL; | |
4182 | } | |
4183 | } | |
4184 | { | |
4185 | if (!PyString_Check(_obj1)) { | |
4186 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4187 | return NULL; | |
4188 | } | |
ab9bc19b | 4189 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 4190 | } |
ab9bc19b RD |
4191 | { |
4192 | wxPy_BEGIN_ALLOW_THREADS; | |
4193 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
4194 | ||
4195 | wxPy_END_ALLOW_THREADS; | |
4196 | } Py_INCREF(Py_None); | |
70551f47 RD |
4197 | _resultobj = Py_None; |
4198 | { | |
4199 | if (_obj1) | |
4200 | delete _arg1; | |
4201 | } | |
4202 | return _resultobj; | |
4203 | } | |
4204 | ||
4205 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
107e4716 | 4206 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4207 | PyObject * _resultobj; |
4208 | wxDC * _arg0; | |
2d091820 | 4209 | PyObject * _argo0 = 0; |
107e4716 | 4210 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4211 | |
4212 | self = self; | |
107e4716 | 4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
70551f47 | 4214 | return NULL; |
2d091820 RD |
4215 | if (_argo0) { |
4216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
4219 | return NULL; | |
4220 | } | |
4221 | } | |
ab9bc19b RD |
4222 | { |
4223 | wxPy_BEGIN_ALLOW_THREADS; | |
4224 | wxDC_EndDoc(_arg0); | |
4225 | ||
4226 | wxPy_END_ALLOW_THREADS; | |
4227 | } Py_INCREF(Py_None); | |
70551f47 RD |
4228 | _resultobj = Py_None; |
4229 | return _resultobj; | |
4230 | } | |
4231 | ||
4232 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
107e4716 | 4233 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4234 | PyObject * _resultobj; |
4235 | wxDC * _arg0; | |
2d091820 | 4236 | PyObject * _argo0 = 0; |
107e4716 | 4237 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4238 | |
4239 | self = self; | |
107e4716 | 4240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
70551f47 | 4241 | return NULL; |
2d091820 RD |
4242 | if (_argo0) { |
4243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
4246 | return NULL; | |
4247 | } | |
4248 | } | |
ab9bc19b RD |
4249 | { |
4250 | wxPy_BEGIN_ALLOW_THREADS; | |
4251 | wxDC_EndDrawing(_arg0); | |
4252 | ||
4253 | wxPy_END_ALLOW_THREADS; | |
4254 | } Py_INCREF(Py_None); | |
70551f47 RD |
4255 | _resultobj = Py_None; |
4256 | return _resultobj; | |
4257 | } | |
4258 | ||
4259 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
107e4716 | 4260 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4261 | PyObject * _resultobj; |
4262 | wxDC * _arg0; | |
2d091820 | 4263 | PyObject * _argo0 = 0; |
107e4716 | 4264 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4265 | |
4266 | self = self; | |
107e4716 | 4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
70551f47 | 4268 | return NULL; |
2d091820 RD |
4269 | if (_argo0) { |
4270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
4273 | return NULL; | |
4274 | } | |
4275 | } | |
ab9bc19b RD |
4276 | { |
4277 | wxPy_BEGIN_ALLOW_THREADS; | |
4278 | wxDC_EndPage(_arg0); | |
4279 | ||
4280 | wxPy_END_ALLOW_THREADS; | |
4281 | } Py_INCREF(Py_None); | |
70551f47 RD |
4282 | _resultobj = Py_None; |
4283 | return _resultobj; | |
4284 | } | |
4285 | ||
4286 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 4287 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4288 | PyObject * _resultobj; |
4289 | wxDC * _arg0; | |
4290 | long _arg1; | |
4291 | long _arg2; | |
4292 | wxColour * _arg3; | |
2d091820 RD |
4293 | int _arg4 = (int ) wxFLOOD_SURFACE; |
4294 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
4295 | wxColour temp; |
4296 | PyObject * _obj3 = 0; | |
107e4716 | 4297 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
70551f47 RD |
4298 | |
4299 | self = self; | |
f6bcfd97 | 4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
70551f47 | 4301 | return NULL; |
2d091820 RD |
4302 | if (_argo0) { |
4303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
4306 | return NULL; | |
4307 | } | |
4308 | } | |
f6bcfd97 BP |
4309 | { |
4310 | _arg3 = &temp; | |
4311 | if (! wxColour_helper(_obj3, &_arg3)) | |
70551f47 | 4312 | return NULL; |
f6bcfd97 | 4313 | } |
ab9bc19b RD |
4314 | { |
4315 | wxPy_BEGIN_ALLOW_THREADS; | |
4316 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
4317 | ||
4318 | wxPy_END_ALLOW_THREADS; | |
4319 | } Py_INCREF(Py_None); | |
70551f47 RD |
4320 | _resultobj = Py_None; |
4321 | return _resultobj; | |
4322 | } | |
4323 | ||
4324 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
107e4716 | 4325 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4326 | PyObject * _resultobj; |
4327 | wxBrush * _result; | |
4328 | wxDC * _arg0; | |
2d091820 | 4329 | PyObject * _argo0 = 0; |
107e4716 | 4330 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4331 | char _ptemp[128]; |
4332 | ||
4333 | self = self; | |
107e4716 | 4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
70551f47 | 4335 | return NULL; |
2d091820 RD |
4336 | if (_argo0) { |
4337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
4340 | return NULL; | |
4341 | } | |
4342 | } | |
ab9bc19b RD |
4343 | { |
4344 | wxPy_BEGIN_ALLOW_THREADS; | |
4345 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
c95e68d8 | 4346 | _result = (wxBrush *) &_result_ref; |
ab9bc19b RD |
4347 | |
4348 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4349 | } if (_result) { |
4350 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4351 | _resultobj = Py_BuildValue("s",_ptemp); | |
4352 | } else { | |
4353 | Py_INCREF(Py_None); | |
4354 | _resultobj = Py_None; | |
4355 | } | |
70551f47 RD |
4356 | return _resultobj; |
4357 | } | |
4358 | ||
4359 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
107e4716 | 4360 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4361 | PyObject * _resultobj; |
4362 | wxBrush * _result; | |
4363 | wxDC * _arg0; | |
2d091820 | 4364 | PyObject * _argo0 = 0; |
107e4716 | 4365 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4366 | char _ptemp[128]; |
4367 | ||
4368 | self = self; | |
107e4716 | 4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
70551f47 | 4370 | return NULL; |
2d091820 RD |
4371 | if (_argo0) { |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
4375 | return NULL; | |
4376 | } | |
4377 | } | |
ab9bc19b RD |
4378 | { |
4379 | wxPy_BEGIN_ALLOW_THREADS; | |
4380 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
c95e68d8 | 4381 | _result = (wxBrush *) &_result_ref; |
ab9bc19b RD |
4382 | |
4383 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4384 | } if (_result) { |
4385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4386 | _resultobj = Py_BuildValue("s",_ptemp); | |
4387 | } else { | |
4388 | Py_INCREF(Py_None); | |
4389 | _resultobj = Py_None; | |
4390 | } | |
70551f47 RD |
4391 | return _resultobj; |
4392 | } | |
4393 | ||
4394 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
107e4716 | 4395 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4396 | PyObject * _resultobj; |
4397 | long _result; | |
4398 | wxDC * _arg0; | |
2d091820 | 4399 | PyObject * _argo0 = 0; |
107e4716 | 4400 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4401 | |
4402 | self = self; | |
107e4716 | 4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
70551f47 | 4404 | return NULL; |
2d091820 RD |
4405 | if (_argo0) { |
4406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
4409 | return NULL; | |
4410 | } | |
4411 | } | |
ab9bc19b RD |
4412 | { |
4413 | wxPy_BEGIN_ALLOW_THREADS; | |
4414 | _result = (long )wxDC_GetCharHeight(_arg0); | |
4415 | ||
4416 | wxPy_END_ALLOW_THREADS; | |
4417 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
4418 | return _resultobj; |
4419 | } | |
4420 | ||
4421 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
107e4716 | 4422 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4423 | PyObject * _resultobj; |
4424 | long _result; | |
4425 | wxDC * _arg0; | |
2d091820 | 4426 | PyObject * _argo0 = 0; |
107e4716 | 4427 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4428 | |
4429 | self = self; | |
107e4716 | 4430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
70551f47 | 4431 | return NULL; |
2d091820 RD |
4432 | if (_argo0) { |
4433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
4436 | return NULL; | |
4437 | } | |
4438 | } | |
ab9bc19b RD |
4439 | { |
4440 | wxPy_BEGIN_ALLOW_THREADS; | |
4441 | _result = (long )wxDC_GetCharWidth(_arg0); | |
4442 | ||
4443 | wxPy_END_ALLOW_THREADS; | |
4444 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
4445 | return _resultobj; |
4446 | } | |
4447 | ||
4448 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 4449 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4450 | PyObject * _resultobj; |
4451 | wxDC * _arg0; | |
4452 | long * _arg1; | |
4453 | long temp; | |
4454 | long * _arg2; | |
4455 | long temp0; | |
4456 | long * _arg3; | |
4457 | long temp1; | |
4458 | long * _arg4; | |
4459 | long temp2; | |
2d091820 | 4460 | PyObject * _argo0 = 0; |
107e4716 | 4461 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4462 | |
4463 | self = self; | |
4464 | { | |
4465 | _arg1 = &temp; | |
4466 | } | |
4467 | { | |
4468 | _arg2 = &temp0; | |
4469 | } | |
4470 | { | |
4471 | _arg3 = &temp1; | |
4472 | } | |
4473 | { | |
4474 | _arg4 = &temp2; | |
4475 | } | |
107e4716 | 4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
70551f47 | 4477 | return NULL; |
2d091820 RD |
4478 | if (_argo0) { |
4479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
4482 | return NULL; | |
4483 | } | |
4484 | } | |
ab9bc19b RD |
4485 | { |
4486 | wxPy_BEGIN_ALLOW_THREADS; | |
4487 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4488 | ||
4489 | wxPy_END_ALLOW_THREADS; | |
4490 | } Py_INCREF(Py_None); | |
70551f47 RD |
4491 | _resultobj = Py_None; |
4492 | { | |
4493 | PyObject *o; | |
4494 | o = PyInt_FromLong((long) (*_arg1)); | |
4495 | _resultobj = t_output_helper(_resultobj, o); | |
4496 | } | |
4497 | { | |
4498 | PyObject *o; | |
4499 | o = PyInt_FromLong((long) (*_arg2)); | |
4500 | _resultobj = t_output_helper(_resultobj, o); | |
4501 | } | |
4502 | { | |
4503 | PyObject *o; | |
4504 | o = PyInt_FromLong((long) (*_arg3)); | |
4505 | _resultobj = t_output_helper(_resultobj, o); | |
4506 | } | |
4507 | { | |
4508 | PyObject *o; | |
4509 | o = PyInt_FromLong((long) (*_arg4)); | |
4510 | _resultobj = t_output_helper(_resultobj, o); | |
4511 | } | |
4512 | return _resultobj; | |
4513 | } | |
4514 | ||
4515 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
107e4716 | 4516 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4517 | PyObject * _resultobj; |
4518 | wxFont * _result; | |
4519 | wxDC * _arg0; | |
2d091820 | 4520 | PyObject * _argo0 = 0; |
107e4716 | 4521 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4522 | char _ptemp[128]; |
4523 | ||
4524 | self = self; | |
107e4716 | 4525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
70551f47 | 4526 | return NULL; |
2d091820 RD |
4527 | if (_argo0) { |
4528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
4531 | return NULL; | |
4532 | } | |
4533 | } | |
ab9bc19b RD |
4534 | { |
4535 | wxPy_BEGIN_ALLOW_THREADS; | |
4536 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
c95e68d8 | 4537 | _result = (wxFont *) &_result_ref; |
ab9bc19b RD |
4538 | |
4539 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4540 | } if (_result) { |
4541 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4542 | _resultobj = Py_BuildValue("s",_ptemp); | |
4543 | } else { | |
4544 | Py_INCREF(Py_None); | |
4545 | _resultobj = Py_None; | |
4546 | } | |
70551f47 RD |
4547 | return _resultobj; |
4548 | } | |
4549 | ||
4550 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
107e4716 | 4551 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4552 | PyObject * _resultobj; |
4553 | int _result; | |
4554 | wxDC * _arg0; | |
2d091820 | 4555 | PyObject * _argo0 = 0; |
107e4716 | 4556 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4557 | |
4558 | self = self; | |
107e4716 | 4559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
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_GetLogicalFunction. Expected _wxDC_p."); |
4565 | return NULL; | |
4566 | } | |
4567 | } | |
ab9bc19b RD |
4568 | { |
4569 | wxPy_BEGIN_ALLOW_THREADS; | |
4570 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
4571 | ||
4572 | wxPy_END_ALLOW_THREADS; | |
4573 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4574 | return _resultobj; |
4575 | } | |
4576 | ||
e02c03a4 RD |
4577 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
4578 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4579 | PyObject * _resultobj; | |
4580 | wxDC * _arg0; | |
4581 | double * _arg1; | |
4582 | double temp; | |
4583 | double * _arg2; | |
4584 | double temp0; | |
4585 | PyObject * _argo0 = 0; | |
4586 | char *_kwnames[] = { "self", NULL }; | |
4587 | ||
4588 | self = self; | |
4589 | { | |
4590 | _arg1 = &temp; | |
4591 | } | |
4592 | { | |
4593 | _arg2 = &temp0; | |
4594 | } | |
4595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
4596 | return NULL; | |
4597 | if (_argo0) { | |
4598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
4601 | return NULL; | |
4602 | } | |
4603 | } | |
4604 | { | |
4605 | wxPy_BEGIN_ALLOW_THREADS; | |
4606 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
4607 | ||
4608 | wxPy_END_ALLOW_THREADS; | |
4609 | } Py_INCREF(Py_None); | |
4610 | _resultobj = Py_None; | |
4611 | { | |
4612 | PyObject *o; | |
4613 | o = PyFloat_FromDouble((double) (*_arg1)); | |
4614 | _resultobj = t_output_helper(_resultobj, o); | |
4615 | } | |
4616 | { | |
4617 | PyObject *o; | |
4618 | o = PyFloat_FromDouble((double) (*_arg2)); | |
4619 | _resultobj = t_output_helper(_resultobj, o); | |
4620 | } | |
4621 | return _resultobj; | |
4622 | } | |
4623 | ||
70551f47 | 4624 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
107e4716 | 4625 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4626 | PyObject * _resultobj; |
4627 | int _result; | |
4628 | wxDC * _arg0; | |
2d091820 | 4629 | PyObject * _argo0 = 0; |
107e4716 | 4630 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4631 | |
4632 | self = self; | |
107e4716 | 4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
70551f47 | 4634 | return NULL; |
2d091820 RD |
4635 | if (_argo0) { |
4636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
4639 | return NULL; | |
4640 | } | |
4641 | } | |
ab9bc19b RD |
4642 | { |
4643 | wxPy_BEGIN_ALLOW_THREADS; | |
4644 | _result = (int )wxDC_GetMapMode(_arg0); | |
4645 | ||
4646 | wxPy_END_ALLOW_THREADS; | |
4647 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4648 | return _resultobj; |
4649 | } | |
4650 | ||
4651 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
107e4716 | 4652 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4653 | PyObject * _resultobj; |
4654 | bool _result; | |
4655 | wxDC * _arg0; | |
2d091820 | 4656 | PyObject * _argo0 = 0; |
107e4716 | 4657 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4658 | |
4659 | self = self; | |
107e4716 | 4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
70551f47 | 4661 | return NULL; |
2d091820 RD |
4662 | if (_argo0) { |
4663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
4666 | return NULL; | |
4667 | } | |
4668 | } | |
ab9bc19b RD |
4669 | { |
4670 | wxPy_BEGIN_ALLOW_THREADS; | |
4671 | _result = (bool )wxDC_GetOptimization(_arg0); | |
4672 | ||
4673 | wxPy_END_ALLOW_THREADS; | |
4674 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4675 | return _resultobj; |
4676 | } | |
4677 | ||
4678 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
107e4716 | 4679 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4680 | PyObject * _resultobj; |
4681 | wxPen * _result; | |
4682 | wxDC * _arg0; | |
2d091820 | 4683 | PyObject * _argo0 = 0; |
107e4716 | 4684 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4685 | char _ptemp[128]; |
4686 | ||
4687 | self = self; | |
107e4716 | 4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
70551f47 | 4689 | return NULL; |
2d091820 RD |
4690 | if (_argo0) { |
4691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
4694 | return NULL; | |
4695 | } | |
4696 | } | |
ab9bc19b RD |
4697 | { |
4698 | wxPy_BEGIN_ALLOW_THREADS; | |
4699 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
c95e68d8 | 4700 | _result = (wxPen *) &_result_ref; |
ab9bc19b RD |
4701 | |
4702 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4703 | } if (_result) { |
4704 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4705 | _resultobj = Py_BuildValue("s",_ptemp); | |
4706 | } else { | |
4707 | Py_INCREF(Py_None); | |
4708 | _resultobj = Py_None; | |
4709 | } | |
70551f47 RD |
4710 | return _resultobj; |
4711 | } | |
4712 | ||
4713 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
4714 | wxColour* wc = new wxColour(); | |
4715 | self->GetPixel(x, y, wc); | |
4716 | return wc; | |
4717 | } | |
107e4716 | 4718 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4719 | PyObject * _resultobj; |
4720 | wxColour * _result; | |
4721 | wxDC * _arg0; | |
4722 | long _arg1; | |
4723 | long _arg2; | |
2d091820 | 4724 | PyObject * _argo0 = 0; |
107e4716 | 4725 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
4726 | char _ptemp[128]; |
4727 | ||
4728 | self = self; | |
107e4716 | 4729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 4730 | return NULL; |
2d091820 RD |
4731 | if (_argo0) { |
4732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
4735 | return NULL; | |
4736 | } | |
4737 | } | |
ab9bc19b RD |
4738 | { |
4739 | wxPy_BEGIN_ALLOW_THREADS; | |
4740 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
4741 | ||
4742 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4743 | } if (_result) { |
4744 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4745 | _resultobj = Py_BuildValue("s",_ptemp); | |
4746 | } else { | |
4747 | Py_INCREF(Py_None); | |
4748 | _resultobj = Py_None; | |
4749 | } | |
70551f47 RD |
4750 | return _resultobj; |
4751 | } | |
4752 | ||
d24a34bb | 4753 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
107e4716 | 4754 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4755 | PyObject * _resultobj; |
4756 | wxDC * _arg0; | |
4757 | int * _arg1; | |
4758 | int temp; | |
4759 | int * _arg2; | |
4760 | int temp0; | |
2d091820 | 4761 | PyObject * _argo0 = 0; |
107e4716 | 4762 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4763 | |
4764 | self = self; | |
4765 | { | |
4766 | _arg1 = &temp; | |
4767 | } | |
4768 | { | |
4769 | _arg2 = &temp0; | |
4770 | } | |
107e4716 | 4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
70551f47 | 4772 | return NULL; |
2d091820 RD |
4773 | if (_argo0) { |
4774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb | 4776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
70551f47 RD |
4777 | return NULL; |
4778 | } | |
4779 | } | |
ab9bc19b RD |
4780 | { |
4781 | wxPy_BEGIN_ALLOW_THREADS; | |
d24a34bb | 4782 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
ab9bc19b RD |
4783 | |
4784 | wxPy_END_ALLOW_THREADS; | |
4785 | } Py_INCREF(Py_None); | |
70551f47 RD |
4786 | _resultobj = Py_None; |
4787 | { | |
4788 | PyObject *o; | |
4789 | o = PyInt_FromLong((long) (*_arg1)); | |
4790 | _resultobj = t_output_helper(_resultobj, o); | |
4791 | } | |
4792 | { | |
4793 | PyObject *o; | |
4794 | o = PyInt_FromLong((long) (*_arg2)); | |
4795 | _resultobj = t_output_helper(_resultobj, o); | |
4796 | } | |
4797 | return _resultobj; | |
4798 | } | |
4799 | ||
d24a34bb | 4800 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
107e4716 | 4801 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4802 | PyObject * _resultobj; |
4803 | wxSize * _result; | |
4804 | wxDC * _arg0; | |
2d091820 | 4805 | PyObject * _argo0 = 0; |
107e4716 | 4806 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
4807 | char _ptemp[128]; |
4808 | ||
4809 | self = self; | |
107e4716 | 4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
d24a34bb | 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")) { | |
d24a34bb RD |
4815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
4816 | return NULL; | |
4817 | } | |
4818 | } | |
4819 | { | |
4820 | wxPy_BEGIN_ALLOW_THREADS; | |
4821 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
4822 | ||
4823 | wxPy_END_ALLOW_THREADS; | |
4824 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4825 | _resultobj = Py_BuildValue("s",_ptemp); | |
4826 | return _resultobj; | |
4827 | } | |
4828 | ||
e02c03a4 RD |
4829 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
4830 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4831 | PyObject * _resultobj; | |
4832 | wxSize * _result; | |
4833 | wxDC * _arg0; | |
4834 | PyObject * _argo0 = 0; | |
4835 | char *_kwnames[] = { "self", NULL }; | |
4836 | char _ptemp[128]; | |
4837 | ||
4838 | self = self; | |
4839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
4840 | return NULL; | |
4841 | if (_argo0) { | |
4842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
4844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
4845 | return NULL; | |
4846 | } | |
4847 | } | |
4848 | { | |
4849 | wxPy_BEGIN_ALLOW_THREADS; | |
4850 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
4851 | ||
4852 | wxPy_END_ALLOW_THREADS; | |
4853 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4854 | _resultobj = Py_BuildValue("s",_ptemp); | |
4855 | return _resultobj; | |
4856 | } | |
4857 | ||
70551f47 | 4858 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
107e4716 | 4859 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4860 | PyObject * _resultobj; |
4861 | wxColour * _result; | |
4862 | wxDC * _arg0; | |
2d091820 | 4863 | PyObject * _argo0 = 0; |
107e4716 | 4864 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4865 | char _ptemp[128]; |
4866 | ||
4867 | self = self; | |
107e4716 | 4868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
70551f47 | 4869 | return NULL; |
2d091820 RD |
4870 | if (_argo0) { |
4871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
4873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
4874 | return NULL; | |
4875 | } | |
4876 | } | |
ab9bc19b RD |
4877 | { |
4878 | wxPy_BEGIN_ALLOW_THREADS; | |
4879 | wxColour & _result_ref = wxDC_GetTextBackground(_arg0); | |
70551f47 | 4880 | _result = (wxColour *) &_result_ref; |
ab9bc19b RD |
4881 | |
4882 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4883 | } if (_result) { |
4884 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4885 | _resultobj = Py_BuildValue("s",_ptemp); | |
4886 | } else { | |
4887 | Py_INCREF(Py_None); | |
4888 | _resultobj = Py_None; | |
4889 | } | |
70551f47 RD |
4890 | return _resultobj; |
4891 | } | |
4892 | ||
21f8d7ea | 4893 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 4894 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
4895 | PyObject * _resultobj; |
4896 | wxDC * _arg0; | |
4897 | wxString * _arg1; | |
4898 | long * _arg2; | |
4899 | long temp; | |
4900 | long * _arg3; | |
4901 | long temp0; | |
2d091820 | 4902 | PyObject * _argo0 = 0; |
21f8d7ea | 4903 | PyObject * _obj1 = 0; |
107e4716 | 4904 | char *_kwnames[] = { "self","string", NULL }; |
21f8d7ea RD |
4905 | |
4906 | self = self; | |
4907 | { | |
4908 | _arg2 = &temp; | |
4909 | } | |
4910 | { | |
4911 | _arg3 = &temp0; | |
4912 | } | |
107e4716 | 4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 4914 | return NULL; |
2d091820 RD |
4915 | if (_argo0) { |
4916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea RD |
4918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
4919 | return NULL; | |
4920 | } | |
4921 | } | |
4922 | { | |
4923 | if (!PyString_Check(_obj1)) { | |
4924 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4925 | return NULL; | |
4926 | } | |
ab9bc19b | 4927 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
21f8d7ea | 4928 | } |
ab9bc19b RD |
4929 | { |
4930 | wxPy_BEGIN_ALLOW_THREADS; | |
4931 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
4932 | ||
4933 | wxPy_END_ALLOW_THREADS; | |
4934 | } Py_INCREF(Py_None); | |
21f8d7ea RD |
4935 | _resultobj = Py_None; |
4936 | { | |
4937 | PyObject *o; | |
4938 | o = PyInt_FromLong((long) (*_arg2)); | |
4939 | _resultobj = t_output_helper(_resultobj, o); | |
4940 | } | |
4941 | { | |
4942 | PyObject *o; | |
4943 | o = PyInt_FromLong((long) (*_arg3)); | |
4944 | _resultobj = t_output_helper(_resultobj, o); | |
4945 | } | |
4946 | { | |
4947 | if (_obj1) | |
4948 | delete _arg1; | |
4949 | } | |
4950 | return _resultobj; | |
4951 | } | |
4952 | ||
4953 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 4954 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4955 | PyObject * _resultobj; |
4956 | wxDC * _arg0; | |
4957 | wxString * _arg1; | |
4958 | long * _arg2; | |
4959 | long temp; | |
4960 | long * _arg3; | |
4961 | long temp0; | |
4962 | long * _arg4; | |
4963 | long temp1; | |
4964 | long * _arg5; | |
4965 | long temp2; | |
2d091820 RD |
4966 | wxFont * _arg6 = (wxFont *) NULL; |
4967 | PyObject * _argo0 = 0; | |
70551f47 | 4968 | PyObject * _obj1 = 0; |
2d091820 | 4969 | PyObject * _argo6 = 0; |
107e4716 | 4970 | char *_kwnames[] = { "self","string","font", NULL }; |
70551f47 RD |
4971 | |
4972 | self = self; | |
4973 | { | |
4974 | _arg2 = &temp; | |
4975 | } | |
4976 | { | |
4977 | _arg3 = &temp0; | |
4978 | } | |
4979 | { | |
4980 | _arg4 = &temp1; | |
4981 | } | |
4982 | { | |
4983 | _arg5 = &temp2; | |
4984 | } | |
107e4716 | 4985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
70551f47 | 4986 | return NULL; |
2d091820 RD |
4987 | if (_argo0) { |
4988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea | 4990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
70551f47 RD |
4991 | return NULL; |
4992 | } | |
4993 | } | |
4994 | { | |
4995 | if (!PyString_Check(_obj1)) { | |
4996 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4997 | return NULL; | |
4998 | } | |
ab9bc19b | 4999 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 5000 | } |
2d091820 RD |
5001 | if (_argo6) { |
5002 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5003 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
21f8d7ea RD |
5004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
5005 | return NULL; | |
5006 | } | |
5007 | } | |
ab9bc19b RD |
5008 | { |
5009 | wxPy_BEGIN_ALLOW_THREADS; | |
5010 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5011 | ||
5012 | wxPy_END_ALLOW_THREADS; | |
5013 | } Py_INCREF(Py_None); | |
70551f47 RD |
5014 | _resultobj = Py_None; |
5015 | { | |
5016 | PyObject *o; | |
5017 | o = PyInt_FromLong((long) (*_arg2)); | |
5018 | _resultobj = t_output_helper(_resultobj, o); | |
5019 | } | |
5020 | { | |
5021 | PyObject *o; | |
5022 | o = PyInt_FromLong((long) (*_arg3)); | |
5023 | _resultobj = t_output_helper(_resultobj, o); | |
5024 | } | |
5025 | { | |
5026 | PyObject *o; | |
5027 | o = PyInt_FromLong((long) (*_arg4)); | |
5028 | _resultobj = t_output_helper(_resultobj, o); | |
5029 | } | |
5030 | { | |
5031 | PyObject *o; | |
5032 | o = PyInt_FromLong((long) (*_arg5)); | |
5033 | _resultobj = t_output_helper(_resultobj, o); | |
5034 | } | |
5035 | { | |
5036 | if (_obj1) | |
5037 | delete _arg1; | |
5038 | } | |
5039 | return _resultobj; | |
5040 | } | |
5041 | ||
5042 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
107e4716 | 5043 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5044 | PyObject * _resultobj; |
5045 | wxColour * _result; | |
5046 | wxDC * _arg0; | |
2d091820 | 5047 | PyObject * _argo0 = 0; |
107e4716 | 5048 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5049 | char _ptemp[128]; |
5050 | ||
5051 | self = self; | |
107e4716 | 5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
70551f47 | 5053 | return NULL; |
2d091820 RD |
5054 | if (_argo0) { |
5055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
5058 | return NULL; | |
5059 | } | |
5060 | } | |
ab9bc19b RD |
5061 | { |
5062 | wxPy_BEGIN_ALLOW_THREADS; | |
5063 | wxColour & _result_ref = wxDC_GetTextForeground(_arg0); | |
70551f47 | 5064 | _result = (wxColour *) &_result_ref; |
ab9bc19b RD |
5065 | |
5066 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5067 | } if (_result) { |
5068 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5069 | _resultobj = Py_BuildValue("s",_ptemp); | |
5070 | } else { | |
5071 | Py_INCREF(Py_None); | |
5072 | _resultobj = Py_None; | |
5073 | } | |
70551f47 RD |
5074 | return _resultobj; |
5075 | } | |
5076 | ||
e02c03a4 RD |
5077 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
5078 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5079 | PyObject * _resultobj; | |
5080 | wxDC * _arg0; | |
5081 | double * _arg1; | |
5082 | double temp; | |
5083 | double * _arg2; | |
5084 | double temp0; | |
5085 | PyObject * _argo0 = 0; | |
5086 | char *_kwnames[] = { "self", NULL }; | |
5087 | ||
5088 | self = self; | |
5089 | { | |
5090 | _arg1 = &temp; | |
5091 | } | |
5092 | { | |
5093 | _arg2 = &temp0; | |
5094 | } | |
5095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
5096 | return NULL; | |
5097 | if (_argo0) { | |
5098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
5101 | return NULL; | |
5102 | } | |
5103 | } | |
5104 | { | |
5105 | wxPy_BEGIN_ALLOW_THREADS; | |
5106 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
5107 | ||
5108 | wxPy_END_ALLOW_THREADS; | |
5109 | } Py_INCREF(Py_None); | |
5110 | _resultobj = Py_None; | |
5111 | { | |
5112 | PyObject *o; | |
5113 | o = PyFloat_FromDouble((double) (*_arg1)); | |
5114 | _resultobj = t_output_helper(_resultobj, o); | |
5115 | } | |
5116 | { | |
5117 | PyObject *o; | |
5118 | o = PyFloat_FromDouble((double) (*_arg2)); | |
5119 | _resultobj = t_output_helper(_resultobj, o); | |
5120 | } | |
5121 | return _resultobj; | |
5122 | } | |
5123 | ||
70551f47 | 5124 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
107e4716 | 5125 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5126 | PyObject * _resultobj; |
5127 | long _result; | |
5128 | wxDC * _arg0; | |
5129 | long _arg1; | |
2d091820 | 5130 | PyObject * _argo0 = 0; |
107e4716 | 5131 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
5132 | |
5133 | self = self; | |
107e4716 | 5134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5135 | return NULL; |
2d091820 RD |
5136 | if (_argo0) { |
5137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
5140 | return NULL; | |
5141 | } | |
5142 | } | |
ab9bc19b RD |
5143 | { |
5144 | wxPy_BEGIN_ALLOW_THREADS; | |
5145 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
5146 | ||
5147 | wxPy_END_ALLOW_THREADS; | |
5148 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5149 | return _resultobj; |
5150 | } | |
5151 | ||
5152 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
107e4716 | 5153 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5154 | PyObject * _resultobj; |
5155 | long _result; | |
5156 | wxDC * _arg0; | |
5157 | long _arg1; | |
2d091820 | 5158 | PyObject * _argo0 = 0; |
107e4716 | 5159 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
5160 | |
5161 | self = self; | |
107e4716 | 5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5163 | return NULL; |
2d091820 RD |
5164 | if (_argo0) { |
5165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
5168 | return NULL; | |
5169 | } | |
5170 | } | |
ab9bc19b RD |
5171 | { |
5172 | wxPy_BEGIN_ALLOW_THREADS; | |
5173 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
5174 | ||
5175 | wxPy_END_ALLOW_THREADS; | |
5176 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5177 | return _resultobj; |
5178 | } | |
5179 | ||
5180 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
107e4716 | 5181 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5182 | PyObject * _resultobj; |
5183 | long _result; | |
5184 | wxDC * _arg0; | |
5185 | long _arg1; | |
2d091820 | 5186 | PyObject * _argo0 = 0; |
107e4716 | 5187 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
5188 | |
5189 | self = self; | |
107e4716 | 5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5191 | return NULL; |
2d091820 RD |
5192 | if (_argo0) { |
5193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
5196 | return NULL; | |
5197 | } | |
5198 | } | |
ab9bc19b RD |
5199 | { |
5200 | wxPy_BEGIN_ALLOW_THREADS; | |
5201 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
5202 | ||
5203 | wxPy_END_ALLOW_THREADS; | |
5204 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5205 | return _resultobj; |
5206 | } | |
5207 | ||
5208 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
107e4716 | 5209 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5210 | PyObject * _resultobj; |
5211 | long _result; | |
5212 | wxDC * _arg0; | |
5213 | long _arg1; | |
2d091820 | 5214 | PyObject * _argo0 = 0; |
107e4716 | 5215 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
5216 | |
5217 | self = self; | |
107e4716 | 5218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5219 | return NULL; |
2d091820 RD |
5220 | if (_argo0) { |
5221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
5224 | return NULL; | |
5225 | } | |
5226 | } | |
ab9bc19b RD |
5227 | { |
5228 | wxPy_BEGIN_ALLOW_THREADS; | |
5229 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
5230 | ||
5231 | wxPy_END_ALLOW_THREADS; | |
5232 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5233 | return _resultobj; |
5234 | } | |
5235 | ||
5236 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
107e4716 | 5237 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5238 | PyObject * _resultobj; |
5239 | long _result; | |
5240 | wxDC * _arg0; | |
2d091820 | 5241 | PyObject * _argo0 = 0; |
107e4716 | 5242 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5243 | |
5244 | self = self; | |
107e4716 | 5245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
70551f47 | 5246 | return NULL; |
2d091820 RD |
5247 | if (_argo0) { |
5248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
5251 | return NULL; | |
5252 | } | |
5253 | } | |
ab9bc19b RD |
5254 | { |
5255 | wxPy_BEGIN_ALLOW_THREADS; | |
5256 | _result = (long )wxDC_MaxX(_arg0); | |
5257 | ||
5258 | wxPy_END_ALLOW_THREADS; | |
5259 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5260 | return _resultobj; |
5261 | } | |
5262 | ||
5263 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
107e4716 | 5264 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5265 | PyObject * _resultobj; |
5266 | long _result; | |
5267 | wxDC * _arg0; | |
2d091820 | 5268 | PyObject * _argo0 = 0; |
107e4716 | 5269 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5270 | |
5271 | self = self; | |
107e4716 | 5272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
70551f47 | 5273 | return NULL; |
2d091820 RD |
5274 | if (_argo0) { |
5275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
5278 | return NULL; | |
5279 | } | |
5280 | } | |
ab9bc19b RD |
5281 | { |
5282 | wxPy_BEGIN_ALLOW_THREADS; | |
5283 | _result = (long )wxDC_MaxY(_arg0); | |
5284 | ||
5285 | wxPy_END_ALLOW_THREADS; | |
5286 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5287 | return _resultobj; |
5288 | } | |
5289 | ||
5290 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
107e4716 | 5291 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5292 | PyObject * _resultobj; |
5293 | long _result; | |
5294 | wxDC * _arg0; | |
2d091820 | 5295 | PyObject * _argo0 = 0; |
107e4716 | 5296 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5297 | |
5298 | self = self; | |
107e4716 | 5299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
70551f47 | 5300 | return NULL; |
2d091820 RD |
5301 | if (_argo0) { |
5302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
5305 | return NULL; | |
5306 | } | |
5307 | } | |
ab9bc19b RD |
5308 | { |
5309 | wxPy_BEGIN_ALLOW_THREADS; | |
5310 | _result = (long )wxDC_MinX(_arg0); | |
5311 | ||
5312 | wxPy_END_ALLOW_THREADS; | |
5313 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5314 | return _resultobj; |
5315 | } | |
5316 | ||
5317 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
107e4716 | 5318 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5319 | PyObject * _resultobj; |
5320 | long _result; | |
5321 | wxDC * _arg0; | |
2d091820 | 5322 | PyObject * _argo0 = 0; |
107e4716 | 5323 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5324 | |
5325 | self = self; | |
107e4716 | 5326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
70551f47 | 5327 | return NULL; |
2d091820 RD |
5328 | if (_argo0) { |
5329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
5332 | return NULL; | |
5333 | } | |
5334 | } | |
ab9bc19b RD |
5335 | { |
5336 | wxPy_BEGIN_ALLOW_THREADS; | |
5337 | _result = (long )wxDC_MinY(_arg0); | |
5338 | ||
5339 | wxPy_END_ALLOW_THREADS; | |
5340 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
5341 | return _resultobj; |
5342 | } | |
5343 | ||
5344 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 5345 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5346 | PyObject * _resultobj; |
5347 | bool _result; | |
5348 | wxDC * _arg0; | |
2d091820 | 5349 | PyObject * _argo0 = 0; |
107e4716 | 5350 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5351 | |
5352 | self = self; | |
107e4716 | 5353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
70551f47 | 5354 | return NULL; |
2d091820 RD |
5355 | if (_argo0) { |
5356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
5359 | return NULL; | |
5360 | } | |
5361 | } | |
ab9bc19b RD |
5362 | { |
5363 | wxPy_BEGIN_ALLOW_THREADS; | |
5364 | _result = (bool )wxDC_Ok(_arg0); | |
5365 | ||
5366 | wxPy_END_ALLOW_THREADS; | |
5367 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5368 | return _resultobj; |
5369 | } | |
5370 | ||
5371 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
107e4716 | 5372 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5373 | PyObject * _resultobj; |
5374 | wxDC * _arg0; | |
5375 | long _arg1; | |
5376 | long _arg2; | |
2d091820 | 5377 | PyObject * _argo0 = 0; |
107e4716 | 5378 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
5379 | |
5380 | self = self; | |
107e4716 | 5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5382 | return NULL; |
2d091820 RD |
5383 | if (_argo0) { |
5384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
5387 | return NULL; | |
5388 | } | |
5389 | } | |
ab9bc19b RD |
5390 | { |
5391 | wxPy_BEGIN_ALLOW_THREADS; | |
5392 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
5393 | ||
5394 | wxPy_END_ALLOW_THREADS; | |
5395 | } Py_INCREF(Py_None); | |
70551f47 RD |
5396 | _resultobj = Py_None; |
5397 | return _resultobj; | |
5398 | } | |
5399 | ||
5400 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
107e4716 | 5401 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5402 | PyObject * _resultobj; |
5403 | wxDC * _arg0; | |
5404 | wxBrush * _arg1; | |
2d091820 RD |
5405 | PyObject * _argo0 = 0; |
5406 | PyObject * _argo1 = 0; | |
107e4716 | 5407 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
5408 | |
5409 | self = self; | |
107e4716 | 5410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
70551f47 | 5411 | return NULL; |
2d091820 RD |
5412 | if (_argo0) { |
5413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
5416 | return NULL; | |
5417 | } | |
5418 | } | |
2d091820 RD |
5419 | if (_argo1) { |
5420 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5421 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
5422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
5423 | return NULL; | |
5424 | } | |
5425 | } | |
ab9bc19b RD |
5426 | { |
5427 | wxPy_BEGIN_ALLOW_THREADS; | |
5428 | wxDC_SetBackground(_arg0,*_arg1); | |
5429 | ||
5430 | wxPy_END_ALLOW_THREADS; | |
5431 | } Py_INCREF(Py_None); | |
70551f47 RD |
5432 | _resultobj = Py_None; |
5433 | return _resultobj; | |
5434 | } | |
5435 | ||
5436 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
107e4716 | 5437 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5438 | PyObject * _resultobj; |
5439 | wxDC * _arg0; | |
5440 | int _arg1; | |
2d091820 | 5441 | PyObject * _argo0 = 0; |
107e4716 | 5442 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
5443 | |
5444 | self = self; | |
107e4716 | 5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5446 | return NULL; |
2d091820 RD |
5447 | if (_argo0) { |
5448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
5451 | return NULL; | |
5452 | } | |
5453 | } | |
ab9bc19b RD |
5454 | { |
5455 | wxPy_BEGIN_ALLOW_THREADS; | |
5456 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
5457 | ||
5458 | wxPy_END_ALLOW_THREADS; | |
5459 | } Py_INCREF(Py_None); | |
70551f47 RD |
5460 | _resultobj = Py_None; |
5461 | return _resultobj; | |
5462 | } | |
5463 | ||
5464 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5465 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5466 | PyObject * _resultobj; |
5467 | wxDC * _arg0; | |
5468 | long _arg1; | |
5469 | long _arg2; | |
5470 | long _arg3; | |
5471 | long _arg4; | |
2d091820 | 5472 | PyObject * _argo0 = 0; |
107e4716 | 5473 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
5474 | |
5475 | self = self; | |
107e4716 | 5476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 5477 | return NULL; |
2d091820 RD |
5478 | if (_argo0) { |
5479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
5482 | return NULL; | |
5483 | } | |
5484 | } | |
ab9bc19b RD |
5485 | { |
5486 | wxPy_BEGIN_ALLOW_THREADS; | |
5487 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5488 | ||
5489 | wxPy_END_ALLOW_THREADS; | |
5490 | } Py_INCREF(Py_None); | |
70551f47 RD |
5491 | _resultobj = Py_None; |
5492 | return _resultobj; | |
5493 | } | |
5494 | ||
5495 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
107e4716 | 5496 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5497 | PyObject * _resultobj; |
5498 | wxDC * _arg0; | |
5499 | wxPalette * _arg1; | |
2d091820 RD |
5500 | PyObject * _argo0 = 0; |
5501 | PyObject * _argo1 = 0; | |
107e4716 | 5502 | char *_kwnames[] = { "self","colourMap", NULL }; |
70551f47 RD |
5503 | |
5504 | self = self; | |
107e4716 | 5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
70551f47 | 5506 | return NULL; |
2d091820 RD |
5507 | if (_argo0) { |
5508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
5511 | return NULL; | |
5512 | } | |
5513 | } | |
2d091820 RD |
5514 | if (_argo1) { |
5515 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5516 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
70551f47 RD |
5517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
5518 | return NULL; | |
5519 | } | |
5520 | } | |
ab9bc19b RD |
5521 | { |
5522 | wxPy_BEGIN_ALLOW_THREADS; | |
5523 | wxDC_SetPalette(_arg0,*_arg1); | |
5524 | ||
5525 | wxPy_END_ALLOW_THREADS; | |
5526 | } Py_INCREF(Py_None); | |
70551f47 RD |
5527 | _resultobj = Py_None; |
5528 | return _resultobj; | |
5529 | } | |
5530 | ||
5531 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
107e4716 | 5532 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5533 | PyObject * _resultobj; |
5534 | wxDC * _arg0; | |
5535 | wxBrush * _arg1; | |
2d091820 RD |
5536 | PyObject * _argo0 = 0; |
5537 | PyObject * _argo1 = 0; | |
107e4716 | 5538 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
5539 | |
5540 | self = self; | |
107e4716 | 5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
70551f47 | 5542 | return NULL; |
2d091820 RD |
5543 | if (_argo0) { |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
5547 | return NULL; | |
5548 | } | |
5549 | } | |
2d091820 RD |
5550 | if (_argo1) { |
5551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
5553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
5554 | return NULL; | |
5555 | } | |
5556 | } | |
ab9bc19b RD |
5557 | { |
5558 | wxPy_BEGIN_ALLOW_THREADS; | |
5559 | wxDC_SetBrush(_arg0,*_arg1); | |
5560 | ||
5561 | wxPy_END_ALLOW_THREADS; | |
5562 | } Py_INCREF(Py_None); | |
70551f47 RD |
5563 | _resultobj = Py_None; |
5564 | return _resultobj; | |
5565 | } | |
5566 | ||
5567 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
107e4716 | 5568 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5569 | PyObject * _resultobj; |
5570 | wxDC * _arg0; | |
5571 | wxFont * _arg1; | |
2d091820 RD |
5572 | PyObject * _argo0 = 0; |
5573 | PyObject * _argo1 = 0; | |
107e4716 | 5574 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
5575 | |
5576 | self = self; | |
107e4716 | 5577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 5578 | return NULL; |
2d091820 RD |
5579 | if (_argo0) { |
5580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
5583 | return NULL; | |
5584 | } | |
5585 | } | |
2d091820 RD |
5586 | if (_argo1) { |
5587 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5588 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
5589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
5590 | return NULL; | |
5591 | } | |
5592 | } | |
ab9bc19b RD |
5593 | { |
5594 | wxPy_BEGIN_ALLOW_THREADS; | |
5595 | wxDC_SetFont(_arg0,*_arg1); | |
5596 | ||
5597 | wxPy_END_ALLOW_THREADS; | |
5598 | } Py_INCREF(Py_None); | |
70551f47 RD |
5599 | _resultobj = Py_None; |
5600 | return _resultobj; | |
5601 | } | |
5602 | ||
5603 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
107e4716 | 5604 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5605 | PyObject * _resultobj; |
5606 | wxDC * _arg0; | |
5607 | int _arg1; | |
2d091820 | 5608 | PyObject * _argo0 = 0; |
107e4716 | 5609 | char *_kwnames[] = { "self","function", NULL }; |
70551f47 RD |
5610 | |
5611 | self = self; | |
107e4716 | 5612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5613 | return NULL; |
2d091820 RD |
5614 | if (_argo0) { |
5615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
5618 | return NULL; | |
5619 | } | |
5620 | } | |
ab9bc19b RD |
5621 | { |
5622 | wxPy_BEGIN_ALLOW_THREADS; | |
5623 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
5624 | ||
5625 | wxPy_END_ALLOW_THREADS; | |
5626 | } Py_INCREF(Py_None); | |
70551f47 RD |
5627 | _resultobj = Py_None; |
5628 | return _resultobj; | |
5629 | } | |
5630 | ||
e02c03a4 RD |
5631 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
5632 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5633 | PyObject * _resultobj; | |
5634 | wxDC * _arg0; | |
5635 | double _arg1; | |
5636 | double _arg2; | |
5637 | PyObject * _argo0 = 0; | |
5638 | char *_kwnames[] = { "self","x","y", NULL }; | |
5639 | ||
5640 | self = self; | |
5641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5642 | return NULL; | |
5643 | if (_argo0) { | |
5644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
5647 | return NULL; | |
5648 | } | |
5649 | } | |
5650 | { | |
5651 | wxPy_BEGIN_ALLOW_THREADS; | |
5652 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
5653 | ||
5654 | wxPy_END_ALLOW_THREADS; | |
5655 | } Py_INCREF(Py_None); | |
5656 | _resultobj = Py_None; | |
5657 | return _resultobj; | |
5658 | } | |
5659 | ||
70551f47 | 5660 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
107e4716 | 5661 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5662 | PyObject * _resultobj; |
5663 | wxDC * _arg0; | |
5664 | int _arg1; | |
2d091820 | 5665 | PyObject * _argo0 = 0; |
107e4716 | 5666 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
5667 | |
5668 | self = self; | |
107e4716 | 5669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5670 | return NULL; |
2d091820 RD |
5671 | if (_argo0) { |
5672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
5675 | return NULL; | |
5676 | } | |
5677 | } | |
ab9bc19b RD |
5678 | { |
5679 | wxPy_BEGIN_ALLOW_THREADS; | |
5680 | wxDC_SetMapMode(_arg0,_arg1); | |
5681 | ||
5682 | wxPy_END_ALLOW_THREADS; | |
5683 | } Py_INCREF(Py_None); | |
70551f47 RD |
5684 | _resultobj = Py_None; |
5685 | return _resultobj; | |
5686 | } | |
5687 | ||
5688 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
107e4716 | 5689 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5690 | PyObject * _resultobj; |
5691 | wxDC * _arg0; | |
5692 | bool _arg1; | |
2d091820 | 5693 | PyObject * _argo0 = 0; |
70551f47 | 5694 | int tempbool1; |
107e4716 | 5695 | char *_kwnames[] = { "self","optimize", NULL }; |
70551f47 RD |
5696 | |
5697 | self = self; | |
107e4716 | 5698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 5699 | return NULL; |
2d091820 RD |
5700 | if (_argo0) { |
5701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
5704 | return NULL; | |
5705 | } | |
5706 | } | |
5707 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
5708 | { |
5709 | wxPy_BEGIN_ALLOW_THREADS; | |
5710 | wxDC_SetOptimization(_arg0,_arg1); | |
5711 | ||
5712 | wxPy_END_ALLOW_THREADS; | |
5713 | } Py_INCREF(Py_None); | |
70551f47 RD |
5714 | _resultobj = Py_None; |
5715 | return _resultobj; | |
5716 | } | |
5717 | ||
5718 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
107e4716 | 5719 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5720 | PyObject * _resultobj; |
5721 | wxDC * _arg0; | |
5722 | wxPen * _arg1; | |
2d091820 RD |
5723 | PyObject * _argo0 = 0; |
5724 | PyObject * _argo1 = 0; | |
107e4716 | 5725 | char *_kwnames[] = { "self","pen", NULL }; |
70551f47 RD |
5726 | |
5727 | self = self; | |
107e4716 | 5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
70551f47 | 5729 | return NULL; |
2d091820 RD |
5730 | if (_argo0) { |
5731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
2d091820 RD |
5737 | if (_argo1) { |
5738 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5739 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
70551f47 RD |
5740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
5741 | return NULL; | |
5742 | } | |
5743 | } | |
ab9bc19b RD |
5744 | { |
5745 | wxPy_BEGIN_ALLOW_THREADS; | |
5746 | wxDC_SetPen(_arg0,*_arg1); | |
5747 | ||
5748 | wxPy_END_ALLOW_THREADS; | |
5749 | } Py_INCREF(Py_None); | |
70551f47 RD |
5750 | _resultobj = Py_None; |
5751 | return _resultobj; | |
5752 | } | |
5753 | ||
5754 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
107e4716 | 5755 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5756 | PyObject * _resultobj; |
5757 | wxDC * _arg0; | |
5758 | wxColour * _arg1; | |
2d091820 | 5759 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5760 | wxColour temp; |
5761 | PyObject * _obj1 = 0; | |
107e4716 | 5762 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
5763 | |
5764 | self = self; | |
f6bcfd97 | 5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5766 | return NULL; |
2d091820 RD |
5767 | if (_argo0) { |
5768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
5771 | return NULL; | |
5772 | } | |
5773 | } | |
f6bcfd97 BP |
5774 | { |
5775 | _arg1 = &temp; | |
5776 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 5777 | return NULL; |
f6bcfd97 | 5778 | } |
ab9bc19b RD |
5779 | { |
5780 | wxPy_BEGIN_ALLOW_THREADS; | |
5781 | wxDC_SetTextBackground(_arg0,*_arg1); | |
5782 | ||
5783 | wxPy_END_ALLOW_THREADS; | |
5784 | } Py_INCREF(Py_None); | |
70551f47 RD |
5785 | _resultobj = Py_None; |
5786 | return _resultobj; | |
5787 | } | |
5788 | ||
5789 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
107e4716 | 5790 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5791 | PyObject * _resultobj; |
5792 | wxDC * _arg0; | |
5793 | wxColour * _arg1; | |
2d091820 | 5794 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5795 | wxColour temp; |
5796 | PyObject * _obj1 = 0; | |
107e4716 | 5797 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
5798 | |
5799 | self = self; | |
f6bcfd97 | 5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5801 | return NULL; |
2d091820 RD |
5802 | if (_argo0) { |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
5806 | return NULL; | |
5807 | } | |
5808 | } | |
f6bcfd97 BP |
5809 | { |
5810 | _arg1 = &temp; | |
5811 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 5812 | return NULL; |
f6bcfd97 | 5813 | } |
ab9bc19b RD |
5814 | { |
5815 | wxPy_BEGIN_ALLOW_THREADS; | |
5816 | wxDC_SetTextForeground(_arg0,*_arg1); | |
5817 | ||
5818 | wxPy_END_ALLOW_THREADS; | |
5819 | } Py_INCREF(Py_None); | |
70551f47 RD |
5820 | _resultobj = Py_None; |
5821 | return _resultobj; | |
5822 | } | |
5823 | ||
5824 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
107e4716 | 5825 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5826 | PyObject * _resultobj; |
5827 | wxDC * _arg0; | |
5828 | double _arg1; | |
5829 | double _arg2; | |
2d091820 | 5830 | PyObject * _argo0 = 0; |
107e4716 | 5831 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
70551f47 RD |
5832 | |
5833 | self = self; | |
107e4716 | 5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5835 | return NULL; |
2d091820 RD |
5836 | if (_argo0) { |
5837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
5840 | return NULL; | |
5841 | } | |
5842 | } | |
ab9bc19b RD |
5843 | { |
5844 | wxPy_BEGIN_ALLOW_THREADS; | |
5845 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
5846 | ||
5847 | wxPy_END_ALLOW_THREADS; | |
5848 | } Py_INCREF(Py_None); | |
70551f47 RD |
5849 | _resultobj = Py_None; |
5850 | return _resultobj; | |
5851 | } | |
5852 | ||
5853 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
107e4716 | 5854 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5855 | PyObject * _resultobj; |
5856 | bool _result; | |
5857 | wxDC * _arg0; | |
5858 | wxString * _arg1; | |
2d091820 | 5859 | PyObject * _argo0 = 0; |
70551f47 | 5860 | PyObject * _obj1 = 0; |
107e4716 | 5861 | char *_kwnames[] = { "self","message", NULL }; |
70551f47 RD |
5862 | |
5863 | self = self; | |
107e4716 | 5864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5865 | return NULL; |
2d091820 RD |
5866 | if (_argo0) { |
5867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
5870 | return NULL; | |
5871 | } | |
5872 | } | |
5873 | { | |
5874 | if (!PyString_Check(_obj1)) { | |
5875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5876 | return NULL; | |
5877 | } | |
ab9bc19b | 5878 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 5879 | } |
ab9bc19b RD |
5880 | { |
5881 | wxPy_BEGIN_ALLOW_THREADS; | |
5882 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
5883 | ||
5884 | wxPy_END_ALLOW_THREADS; | |
5885 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5886 | { |
5887 | if (_obj1) | |
5888 | delete _arg1; | |
5889 | } | |
5890 | return _resultobj; | |
5891 | } | |
5892 | ||
5893 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
107e4716 | 5894 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5895 | PyObject * _resultobj; |
5896 | wxDC * _arg0; | |
2d091820 | 5897 | PyObject * _argo0 = 0; |
107e4716 | 5898 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5899 | |
5900 | self = self; | |
107e4716 | 5901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
70551f47 | 5902 | return NULL; |
2d091820 RD |
5903 | if (_argo0) { |
5904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
5907 | return NULL; | |
5908 | } | |
5909 | } | |
ab9bc19b RD |
5910 | { |
5911 | wxPy_BEGIN_ALLOW_THREADS; | |
5912 | wxDC_StartPage(_arg0); | |
5913 | ||
5914 | wxPy_END_ALLOW_THREADS; | |
5915 | } Py_INCREF(Py_None); | |
70551f47 RD |
5916 | _resultobj = Py_None; |
5917 | return _resultobj; | |
5918 | } | |
5919 | ||
107e4716 RD |
5920 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5921 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
5922 | PyObject * _resultobj; |
5923 | wxDC * _arg0; | |
5924 | wxBitmap * _arg1; | |
5925 | long _arg2; | |
5926 | long _arg3; | |
107e4716 | 5927 | int _arg4 = (int ) FALSE; |
2d091820 RD |
5928 | PyObject * _argo0 = 0; |
5929 | PyObject * _argo1 = 0; | |
107e4716 | 5930 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
70551f47 RD |
5931 | |
5932 | self = self; | |
107e4716 | 5933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 5934 | return NULL; |
2d091820 RD |
5935 | if (_argo0) { |
5936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
5938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
5939 | return NULL; | |
5940 | } | |
5941 | } | |
2d091820 RD |
5942 | if (_argo1) { |
5943 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5944 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
5945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
5946 | return NULL; | |
5947 | } | |
5948 | } | |
ab9bc19b RD |
5949 | { |
5950 | wxPy_BEGIN_ALLOW_THREADS; | |
5951 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
5952 | ||
5953 | wxPy_END_ALLOW_THREADS; | |
5954 | } Py_INCREF(Py_None); | |
70551f47 RD |
5955 | _resultobj = Py_None; |
5956 | return _resultobj; | |
5957 | } | |
5958 | ||
e02c03a4 RD |
5959 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
5960 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5961 | PyObject * _resultobj; | |
5962 | bool _result; | |
5963 | wxDC * _arg0; | |
5964 | PyObject * _argo0 = 0; | |
5965 | char *_kwnames[] = { "self", NULL }; | |
5966 | ||
5967 | self = self; | |
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
5969 | return NULL; | |
5970 | if (_argo0) { | |
5971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
5974 | return NULL; | |
5975 | } | |
5976 | } | |
5977 | { | |
5978 | wxPy_BEGIN_ALLOW_THREADS; | |
5979 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
5980 | ||
5981 | wxPy_END_ALLOW_THREADS; | |
5982 | } _resultobj = Py_BuildValue("i",_result); | |
5983 | return _resultobj; | |
5984 | } | |
5985 | ||
5986 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
5987 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject * _resultobj; | |
5989 | bool _result; | |
5990 | wxDC * _arg0; | |
5991 | PyObject * _argo0 = 0; | |
5992 | char *_kwnames[] = { "self", NULL }; | |
5993 | ||
5994 | self = self; | |
5995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
5996 | return NULL; | |
5997 | if (_argo0) { | |
5998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
6001 | return NULL; | |
6002 | } | |
6003 | } | |
6004 | { | |
6005 | wxPy_BEGIN_ALLOW_THREADS; | |
6006 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
6007 | ||
6008 | wxPy_END_ALLOW_THREADS; | |
6009 | } _resultobj = Py_BuildValue("i",_result); | |
6010 | return _resultobj; | |
6011 | } | |
6012 | ||
6013 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
6014 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6015 | PyObject * _resultobj; | |
6016 | int _result; | |
6017 | wxDC * _arg0; | |
6018 | PyObject * _argo0 = 0; | |
6019 | char *_kwnames[] = { "self", NULL }; | |
6020 | ||
6021 | self = self; | |
6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
6023 | return NULL; | |
6024 | if (_argo0) { | |
6025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
6028 | return NULL; | |
6029 | } | |
6030 | } | |
6031 | { | |
6032 | wxPy_BEGIN_ALLOW_THREADS; | |
6033 | _result = (int )wxDC_GetDepth(_arg0); | |
6034 | ||
6035 | wxPy_END_ALLOW_THREADS; | |
6036 | } _resultobj = Py_BuildValue("i",_result); | |
6037 | return _resultobj; | |
6038 | } | |
6039 | ||
6040 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
6041 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6042 | PyObject * _resultobj; | |
6043 | wxSize * _result; | |
6044 | wxDC * _arg0; | |
6045 | PyObject * _argo0 = 0; | |
6046 | char *_kwnames[] = { "self", NULL }; | |
6047 | char _ptemp[128]; | |
6048 | ||
6049 | self = self; | |
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
6051 | return NULL; | |
6052 | if (_argo0) { | |
6053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
6056 | return NULL; | |
6057 | } | |
6058 | } | |
6059 | { | |
6060 | wxPy_BEGIN_ALLOW_THREADS; | |
6061 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
6062 | ||
6063 | wxPy_END_ALLOW_THREADS; | |
6064 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
6065 | _resultobj = Py_BuildValue("s",_ptemp); | |
6066 | return _resultobj; | |
6067 | } | |
6068 | ||
6069 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
6070 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6071 | PyObject * _resultobj; | |
6072 | wxDC * _arg0; | |
6073 | int * _arg1; | |
6074 | int temp; | |
6075 | int * _arg2; | |
6076 | int temp0; | |
6077 | PyObject * _argo0 = 0; | |
6078 | char *_kwnames[] = { "self", NULL }; | |
6079 | ||
6080 | self = self; | |
6081 | { | |
6082 | _arg1 = &temp; | |
6083 | } | |
6084 | { | |
6085 | _arg2 = &temp0; | |
6086 | } | |
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
6088 | return NULL; | |
6089 | if (_argo0) { | |
6090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
6093 | return NULL; | |
6094 | } | |
6095 | } | |
6096 | { | |
6097 | wxPy_BEGIN_ALLOW_THREADS; | |
6098 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
6099 | ||
6100 | wxPy_END_ALLOW_THREADS; | |
6101 | } Py_INCREF(Py_None); | |
6102 | _resultobj = Py_None; | |
6103 | { | |
6104 | PyObject *o; | |
6105 | o = PyInt_FromLong((long) (*_arg1)); | |
6106 | _resultobj = t_output_helper(_resultobj, o); | |
6107 | } | |
6108 | { | |
6109 | PyObject *o; | |
6110 | o = PyInt_FromLong((long) (*_arg2)); | |
6111 | _resultobj = t_output_helper(_resultobj, o); | |
6112 | } | |
6113 | return _resultobj; | |
6114 | } | |
6115 | ||
6116 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
6117 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6118 | PyObject * _resultobj; | |
6119 | wxDC * _arg0; | |
6120 | int _arg1; | |
6121 | int _arg2; | |
6122 | PyObject * _argo0 = 0; | |
6123 | char *_kwnames[] = { "self","x","y", NULL }; | |
6124 | ||
6125 | self = self; | |
6126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6127 | return NULL; | |
6128 | if (_argo0) { | |
6129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
6132 | return NULL; | |
6133 | } | |
6134 | } | |
6135 | { | |
6136 | wxPy_BEGIN_ALLOW_THREADS; | |
6137 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
6138 | ||
6139 | wxPy_END_ALLOW_THREADS; | |
6140 | } Py_INCREF(Py_None); | |
6141 | _resultobj = Py_None; | |
6142 | return _resultobj; | |
6143 | } | |
6144 | ||
6145 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
6146 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6147 | PyObject * _resultobj; | |
6148 | wxDC * _arg0; | |
6149 | int * _arg1; | |
6150 | int temp; | |
6151 | int * _arg2; | |
6152 | int temp0; | |
6153 | PyObject * _argo0 = 0; | |
6154 | char *_kwnames[] = { "self", NULL }; | |
6155 | ||
6156 | self = self; | |
6157 | { | |
6158 | _arg1 = &temp; | |
6159 | } | |
6160 | { | |
6161 | _arg2 = &temp0; | |
6162 | } | |
6163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
6164 | return NULL; | |
6165 | if (_argo0) { | |
6166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
6169 | return NULL; | |
6170 | } | |
6171 | } | |
6172 | { | |
6173 | wxPy_BEGIN_ALLOW_THREADS; | |
6174 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
6175 | ||
6176 | wxPy_END_ALLOW_THREADS; | |
6177 | } Py_INCREF(Py_None); | |
6178 | _resultobj = Py_None; | |
6179 | { | |
6180 | PyObject *o; | |
6181 | o = PyInt_FromLong((long) (*_arg1)); | |
6182 | _resultobj = t_output_helper(_resultobj, o); | |
6183 | } | |
6184 | { | |
6185 | PyObject *o; | |
6186 | o = PyInt_FromLong((long) (*_arg2)); | |
6187 | _resultobj = t_output_helper(_resultobj, o); | |
6188 | } | |
6189 | return _resultobj; | |
6190 | } | |
6191 | ||
6192 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
6193 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6194 | PyObject * _resultobj; | |
6195 | wxDC * _arg0; | |
6196 | bool _arg1; | |
6197 | bool _arg2; | |
6198 | PyObject * _argo0 = 0; | |
6199 | int tempbool1; | |
6200 | int tempbool2; | |
6201 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
6202 | ||
6203 | self = self; | |
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
6205 | return NULL; | |
6206 | if (_argo0) { | |
6207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
6210 | return NULL; | |
6211 | } | |
6212 | } | |
6213 | _arg1 = (bool ) tempbool1; | |
6214 | _arg2 = (bool ) tempbool2; | |
6215 | { | |
6216 | wxPy_BEGIN_ALLOW_THREADS; | |
6217 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
6218 | ||
6219 | wxPy_END_ALLOW_THREADS; | |
6220 | } Py_INCREF(Py_None); | |
6221 | _resultobj = Py_None; | |
6222 | return _resultobj; | |
6223 | } | |
6224 | ||
f6bcfd97 BP |
6225 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
6226 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject * _resultobj; | |
6228 | wxDC * _arg0; | |
6229 | int _arg1; | |
6230 | int _arg2; | |
6231 | PyObject * _argo0 = 0; | |
6232 | char *_kwnames[] = { "self","x","y", NULL }; | |
6233 | ||
6234 | self = self; | |
6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6236 | return NULL; | |
6237 | if (_argo0) { | |
6238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
6241 | return NULL; | |
6242 | } | |
6243 | } | |
6244 | { | |
6245 | wxPy_BEGIN_ALLOW_THREADS; | |
6246 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
6247 | ||
6248 | wxPy_END_ALLOW_THREADS; | |
6249 | } Py_INCREF(Py_None); | |
6250 | _resultobj = Py_None; | |
6251 | return _resultobj; | |
6252 | } | |
6253 | ||
6254 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
6255 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6256 | PyObject * _resultobj; | |
6257 | wxDC * _arg0; | |
6258 | PyObject * _argo0 = 0; | |
6259 | char *_kwnames[] = { "self", NULL }; | |
6260 | ||
6261 | self = self; | |
6262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
6263 | return NULL; | |
6264 | if (_argo0) { | |
6265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
6268 | return NULL; | |
6269 | } | |
6270 | } | |
6271 | { | |
6272 | wxPy_BEGIN_ALLOW_THREADS; | |
6273 | wxDC_ResetBoundingBox(_arg0); | |
6274 | ||
6275 | wxPy_END_ALLOW_THREADS; | |
6276 | } Py_INCREF(Py_None); | |
6277 | _resultobj = Py_None; | |
6278 | return _resultobj; | |
6279 | } | |
6280 | ||
70551f47 RD |
6281 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
6282 | wxMemoryDC *src; | |
6283 | wxDC *dest; | |
6284 | src = (wxMemoryDC *) ptr; | |
6285 | dest = (wxDC *) src; | |
6286 | return (void *) dest; | |
6287 | } | |
6288 | ||
6289 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
107e4716 | 6290 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6291 | PyObject * _resultobj; |
6292 | wxMemoryDC * _result; | |
107e4716 | 6293 | char *_kwnames[] = { NULL }; |
70551f47 RD |
6294 | char _ptemp[128]; |
6295 | ||
6296 | self = self; | |
107e4716 | 6297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
70551f47 | 6298 | return NULL; |
ab9bc19b RD |
6299 | { |
6300 | wxPy_BEGIN_ALLOW_THREADS; | |
6301 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
6302 | ||
6303 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6304 | } if (_result) { |
6305 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
6306 | _resultobj = Py_BuildValue("s",_ptemp); | |
6307 | } else { | |
6308 | Py_INCREF(Py_None); | |
6309 | _resultobj = Py_None; | |
6310 | } | |
70551f47 RD |
6311 | return _resultobj; |
6312 | } | |
6313 | ||
6314 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
107e4716 | 6315 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6316 | PyObject * _resultobj; |
6317 | wxMemoryDC * _arg0; | |
6318 | wxBitmap * _arg1; | |
2d091820 RD |
6319 | PyObject * _argo0 = 0; |
6320 | PyObject * _argo1 = 0; | |
107e4716 | 6321 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
6322 | |
6323 | self = self; | |
107e4716 | 6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6325 | return NULL; |
2d091820 RD |
6326 | if (_argo0) { |
6327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
70551f47 RD |
6329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
6330 | return NULL; | |
6331 | } | |
6332 | } | |
2d091820 RD |
6333 | if (_argo1) { |
6334 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6335 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
6336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
6337 | return NULL; | |
6338 | } | |
6339 | } | |
ab9bc19b RD |
6340 | { |
6341 | wxPy_BEGIN_ALLOW_THREADS; | |
6342 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
6343 | ||
6344 | wxPy_END_ALLOW_THREADS; | |
6345 | } Py_INCREF(Py_None); | |
70551f47 RD |
6346 | _resultobj = Py_None; |
6347 | return _resultobj; | |
6348 | } | |
6349 | ||
6350 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
6351 | wxScreenDC *src; | |
6352 | wxDC *dest; | |
6353 | src = (wxScreenDC *) ptr; | |
6354 | dest = (wxDC *) src; | |
6355 | return (void *) dest; | |
6356 | } | |
6357 | ||
6358 | #define new_wxScreenDC() (new wxScreenDC()) | |
107e4716 | 6359 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6360 | PyObject * _resultobj; |
6361 | wxScreenDC * _result; | |
107e4716 | 6362 | char *_kwnames[] = { NULL }; |
70551f47 RD |
6363 | char _ptemp[128]; |
6364 | ||
6365 | self = self; | |
107e4716 | 6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
70551f47 | 6367 | return NULL; |
ab9bc19b RD |
6368 | { |
6369 | wxPy_BEGIN_ALLOW_THREADS; | |
6370 | _result = (wxScreenDC *)new_wxScreenDC(); | |
6371 | ||
6372 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6373 | } if (_result) { |
6374 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
6375 | _resultobj = Py_BuildValue("s",_ptemp); | |
6376 | } else { | |
6377 | Py_INCREF(Py_None); | |
6378 | _resultobj = Py_None; | |
6379 | } | |
70551f47 RD |
6380 | return _resultobj; |
6381 | } | |
6382 | ||
2fc99549 RD |
6383 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
6384 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6385 | PyObject * _resultobj; |
6386 | bool _result; | |
6387 | wxScreenDC * _arg0; | |
6388 | wxWindow * _arg1; | |
2d091820 RD |
6389 | PyObject * _argo0 = 0; |
6390 | PyObject * _argo1 = 0; | |
107e4716 | 6391 | char *_kwnames[] = { "self","window", NULL }; |
70551f47 RD |
6392 | |
6393 | self = self; | |
2fc99549 | 6394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6395 | return NULL; |
2d091820 RD |
6396 | if (_argo0) { |
6397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 6399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
70551f47 RD |
6400 | return NULL; |
6401 | } | |
6402 | } | |
2d091820 RD |
6403 | if (_argo1) { |
6404 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6405 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2fc99549 | 6406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
70551f47 RD |
6407 | return NULL; |
6408 | } | |
6409 | } | |
ab9bc19b RD |
6410 | { |
6411 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 6412 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
ab9bc19b RD |
6413 | |
6414 | wxPy_END_ALLOW_THREADS; | |
6415 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6416 | return _resultobj; |
6417 | } | |
6418 | ||
2fc99549 RD |
6419 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
6420 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6421 | PyObject * _resultobj; |
6422 | bool _result; | |
6423 | wxScreenDC * _arg0; | |
2d091820 RD |
6424 | wxRect * _arg1 = (wxRect *) NULL; |
6425 | PyObject * _argo0 = 0; | |
37f6a977 RD |
6426 | wxRect temp; |
6427 | PyObject * _obj1 = 0; | |
107e4716 | 6428 | char *_kwnames[] = { "self","rect", NULL }; |
70551f47 RD |
6429 | |
6430 | self = self; | |
2fc99549 | 6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6432 | return NULL; |
2d091820 RD |
6433 | if (_argo0) { |
6434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 6436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
70551f47 RD |
6437 | return NULL; |
6438 | } | |
6439 | } | |
37f6a977 RD |
6440 | if (_obj1) |
6441 | { | |
6442 | _arg1 = &temp; | |
6443 | if (! wxRect_helper(_obj1, &_arg1)) | |
70551f47 | 6444 | return NULL; |
37f6a977 | 6445 | } |
ab9bc19b RD |
6446 | { |
6447 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 6448 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
ab9bc19b RD |
6449 | |
6450 | wxPy_END_ALLOW_THREADS; | |
6451 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6452 | return _resultobj; |
6453 | } | |
6454 | ||
6455 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
107e4716 | 6456 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6457 | PyObject * _resultobj; |
6458 | bool _result; | |
6459 | wxScreenDC * _arg0; | |
2d091820 | 6460 | PyObject * _argo0 = 0; |
107e4716 | 6461 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6462 | |
6463 | self = self; | |
107e4716 | 6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
70551f47 | 6465 | return NULL; |
2d091820 RD |
6466 | if (_argo0) { |
6467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
70551f47 RD |
6469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
6470 | return NULL; | |
6471 | } | |
6472 | } | |
ab9bc19b RD |
6473 | { |
6474 | wxPy_BEGIN_ALLOW_THREADS; | |
6475 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
6476 | ||
6477 | wxPy_END_ALLOW_THREADS; | |
6478 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6479 | return _resultobj; |
6480 | } | |
6481 | ||
6482 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
6483 | wxClientDC *src; | |
6484 | wxDC *dest; | |
6485 | src = (wxClientDC *) ptr; | |
6486 | dest = (wxDC *) src; | |
6487 | return (void *) dest; | |
6488 | } | |
6489 | ||
6490 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
107e4716 | 6491 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6492 | PyObject * _resultobj; |
6493 | wxClientDC * _result; | |
6494 | wxWindow * _arg0; | |
2d091820 | 6495 | PyObject * _argo0 = 0; |
107e4716 | 6496 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
6497 | char _ptemp[128]; |
6498 | ||
6499 | self = self; | |
107e4716 | 6500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
70551f47 | 6501 | return NULL; |
2d091820 RD |
6502 | if (_argo0) { |
6503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
6505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
6506 | return NULL; | |
6507 | } | |
6508 | } | |
ab9bc19b RD |
6509 | { |
6510 | wxPy_BEGIN_ALLOW_THREADS; | |
6511 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
6512 | ||
6513 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6514 | } if (_result) { |
6515 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
6516 | _resultobj = Py_BuildValue("s",_ptemp); | |
6517 | } else { | |
6518 | Py_INCREF(Py_None); | |
6519 | _resultobj = Py_None; | |
6520 | } | |
70551f47 RD |
6521 | return _resultobj; |
6522 | } | |
6523 | ||
6524 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
6525 | wxPaintDC *src; | |
6526 | wxDC *dest; | |
6527 | src = (wxPaintDC *) ptr; | |
6528 | dest = (wxDC *) src; | |
6529 | return (void *) dest; | |
6530 | } | |
6531 | ||
6532 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
107e4716 | 6533 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6534 | PyObject * _resultobj; |
6535 | wxPaintDC * _result; | |
6536 | wxWindow * _arg0; | |
2d091820 | 6537 | PyObject * _argo0 = 0; |
107e4716 | 6538 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
6539 | char _ptemp[128]; |
6540 | ||
6541 | self = self; | |
107e4716 | 6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
70551f47 | 6543 | return NULL; |
2d091820 RD |
6544 | if (_argo0) { |
6545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
6547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
6548 | return NULL; | |
6549 | } | |
6550 | } | |
ab9bc19b RD |
6551 | { |
6552 | wxPy_BEGIN_ALLOW_THREADS; | |
6553 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
6554 | ||
6555 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6556 | } if (_result) { |
6557 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
6558 | _resultobj = Py_BuildValue("s",_ptemp); | |
6559 | } else { | |
6560 | Py_INCREF(Py_None); | |
6561 | _resultobj = Py_None; | |
6562 | } | |
70551f47 RD |
6563 | return _resultobj; |
6564 | } | |
6565 | ||
c95e68d8 RD |
6566 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
6567 | wxWindowDC *src; | |
6568 | wxDC *dest; | |
6569 | src = (wxWindowDC *) ptr; | |
6570 | dest = (wxDC *) src; | |
6571 | return (void *) dest; | |
6572 | } | |
6573 | ||
6574 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
107e4716 | 6575 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
6576 | PyObject * _resultobj; |
6577 | wxWindowDC * _result; | |
6578 | wxWindow * _arg0; | |
2d091820 | 6579 | PyObject * _argo0 = 0; |
107e4716 | 6580 | char *_kwnames[] = { "win", NULL }; |
c95e68d8 RD |
6581 | char _ptemp[128]; |
6582 | ||
6583 | self = self; | |
107e4716 | 6584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
c95e68d8 | 6585 | return NULL; |
2d091820 RD |
6586 | if (_argo0) { |
6587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
6589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
6590 | return NULL; | |
6591 | } | |
6592 | } | |
ab9bc19b RD |
6593 | { |
6594 | wxPy_BEGIN_ALLOW_THREADS; | |
6595 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
6596 | ||
6597 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6598 | } if (_result) { |
6599 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
6600 | _resultobj = Py_BuildValue("s",_ptemp); | |
6601 | } else { | |
6602 | Py_INCREF(Py_None); | |
6603 | _resultobj = Py_None; | |
6604 | } | |
c95e68d8 RD |
6605 | return _resultobj; |
6606 | } | |
6607 | ||
70551f47 RD |
6608 | static void *SwigwxPostScriptDCTowxDC(void *ptr) { |
6609 | wxPostScriptDC *src; | |
6610 | wxDC *dest; | |
6611 | src = (wxPostScriptDC *) ptr; | |
6612 | dest = (wxDC *) src; | |
6613 | return (void *) dest; | |
6614 | } | |
6615 | ||
6616 | #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 6617 | static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6618 | PyObject * _resultobj; |
6619 | wxPostScriptDC * _result; | |
6620 | wxString * _arg0; | |
2d091820 RD |
6621 | bool _arg1 = (bool ) TRUE; |
6622 | wxWindow * _arg2 = (wxWindow *) NULL; | |
70551f47 | 6623 | PyObject * _obj0 = 0; |
2d091820 RD |
6624 | int tempbool1 = (int) TRUE; |
6625 | PyObject * _argo2 = 0; | |
107e4716 | 6626 | char *_kwnames[] = { "output","interactive","win", NULL }; |
70551f47 RD |
6627 | char _ptemp[128]; |
6628 | ||
6629 | self = self; | |
107e4716 | 6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC",_kwnames,&_obj0,&tempbool1,&_argo2)) |
70551f47 RD |
6631 | return NULL; |
6632 | { | |
6633 | if (!PyString_Check(_obj0)) { | |
6634 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6635 | return NULL; | |
6636 | } | |
ab9bc19b | 6637 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); |
70551f47 RD |
6638 | } |
6639 | _arg1 = (bool ) tempbool1; | |
2d091820 RD |
6640 | if (_argo2) { |
6641 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6642 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
70551f47 RD |
6643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p."); |
6644 | return NULL; | |
6645 | } | |
6646 | } | |
ab9bc19b RD |
6647 | { |
6648 | wxPy_BEGIN_ALLOW_THREADS; | |
6649 | _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2); | |
6650 | ||
6651 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6652 | } if (_result) { |
6653 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p"); | |
6654 | _resultobj = Py_BuildValue("s",_ptemp); | |
6655 | } else { | |
6656 | Py_INCREF(Py_None); | |
6657 | _resultobj = Py_None; | |
6658 | } | |
70551f47 RD |
6659 | { |
6660 | if (_obj0) | |
6661 | delete _arg0; | |
6662 | } | |
6663 | return _resultobj; | |
6664 | } | |
6665 | ||
105e45b9 | 6666 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 6667 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
6668 | PyObject * _resultobj; |
6669 | wxPalette * _result; | |
6670 | int _arg0; | |
6671 | byte * _arg1; | |
6672 | byte * _arg2; | |
6673 | byte * _arg3; | |
6674 | PyObject * _obj1 = 0; | |
6675 | PyObject * _obj2 = 0; | |
6676 | PyObject * _obj3 = 0; | |
e02c03a4 | 6677 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
105e45b9 RD |
6678 | char _ptemp[128]; |
6679 | ||
6680 | self = self; | |
107e4716 | 6681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
105e45b9 RD |
6682 | return NULL; |
6683 | { | |
6684 | _arg1 = byte_LIST_helper(_obj1); | |
6685 | if (_arg1 == NULL) { | |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
6689 | { | |
6690 | _arg2 = byte_LIST_helper(_obj2); | |
6691 | if (_arg2 == NULL) { | |
6692 | return NULL; | |
6693 | } | |
6694 | } | |
6695 | if (_obj3) | |
6696 | { | |
6697 | _arg3 = byte_LIST_helper(_obj3); | |
6698 | if (_arg3 == NULL) { | |
6699 | return NULL; | |
6700 | } | |
6701 | } | |
6702 | { | |
ab9bc19b RD |
6703 | if (_obj1) { |
6704 | _arg0 = PyList_Size(_obj1); | |
6705 | } | |
6706 | else { | |
6707 | _arg0 = 0; | |
6708 | } | |
105e45b9 | 6709 | } |
ab9bc19b RD |
6710 | { |
6711 | wxPy_BEGIN_ALLOW_THREADS; | |
6712 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
6713 | ||
6714 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6715 | } if (_result) { |
6716 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
6717 | _resultobj = Py_BuildValue("s",_ptemp); | |
6718 | } else { | |
6719 | Py_INCREF(Py_None); | |
6720 | _resultobj = Py_None; | |
6721 | } | |
105e45b9 RD |
6722 | { |
6723 | delete [] _arg1; | |
6724 | } | |
6725 | { | |
6726 | delete [] _arg2; | |
6727 | } | |
6728 | { | |
6729 | delete [] _arg3; | |
6730 | } | |
6731 | return _resultobj; | |
6732 | } | |
6733 | ||
6734 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
107e4716 | 6735 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
6736 | PyObject * _resultobj; |
6737 | wxPalette * _arg0; | |
2d091820 | 6738 | PyObject * _argo0 = 0; |
107e4716 | 6739 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
6740 | |
6741 | self = self; | |
107e4716 | 6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
105e45b9 | 6743 | return NULL; |
2d091820 RD |
6744 | if (_argo0) { |
6745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
6747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
6748 | return NULL; | |
6749 | } | |
6750 | } | |
ab9bc19b RD |
6751 | { |
6752 | wxPy_BEGIN_ALLOW_THREADS; | |
6753 | delete_wxPalette(_arg0); | |
6754 | ||
6755 | wxPy_END_ALLOW_THREADS; | |
6756 | } Py_INCREF(Py_None); | |
105e45b9 RD |
6757 | _resultobj = Py_None; |
6758 | return _resultobj; | |
6759 | } | |
6760 | ||
6761 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 6762 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
6763 | PyObject * _resultobj; |
6764 | int _result; | |
6765 | wxPalette * _arg0; | |
6766 | byte _arg1; | |
6767 | byte _arg2; | |
6768 | byte _arg3; | |
2d091820 | 6769 | PyObject * _argo0 = 0; |
107e4716 | 6770 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
105e45b9 RD |
6771 | |
6772 | self = self; | |
107e4716 | 6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
105e45b9 | 6774 | return NULL; |
2d091820 RD |
6775 | if (_argo0) { |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
ab9bc19b RD |
6782 | { |
6783 | wxPy_BEGIN_ALLOW_THREADS; | |
6784 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
6785 | ||
6786 | wxPy_END_ALLOW_THREADS; | |
6787 | } _resultobj = Py_BuildValue("i",_result); | |
105e45b9 RD |
6788 | return _resultobj; |
6789 | } | |
6790 | ||
6791 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6792 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
6793 | PyObject * _resultobj; |
6794 | bool _result; | |
6795 | wxPalette * _arg0; | |
6796 | int _arg1; | |
6797 | byte * _arg2; | |
6798 | byte * _arg3; | |
6799 | byte * _arg4; | |
2d091820 RD |
6800 | PyObject * _argo0 = 0; |
6801 | PyObject * _argo2 = 0; | |
6802 | PyObject * _argo3 = 0; | |
6803 | PyObject * _argo4 = 0; | |
107e4716 | 6804 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
105e45b9 RD |
6805 | |
6806 | self = self; | |
107e4716 | 6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
105e45b9 | 6808 | return NULL; |
2d091820 RD |
6809 | if (_argo0) { |
6810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
6812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
6813 | return NULL; | |
6814 | } | |
6815 | } | |
2d091820 RD |
6816 | if (_argo2) { |
6817 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6818 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
105e45b9 RD |
6819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
6820 | return NULL; | |
6821 | } | |
6822 | } | |
2d091820 RD |
6823 | if (_argo3) { |
6824 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6825 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
105e45b9 RD |
6826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
6827 | return NULL; | |
6828 | } | |
6829 | } | |
2d091820 RD |
6830 | if (_argo4) { |
6831 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
6832 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
105e45b9 RD |
6833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
6834 | return NULL; | |
6835 | } | |
6836 | } | |
ab9bc19b RD |
6837 | { |
6838 | wxPy_BEGIN_ALLOW_THREADS; | |
6839 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6840 | ||
6841 | wxPy_END_ALLOW_THREADS; | |
6842 | } _resultobj = Py_BuildValue("i",_result); | |
105e45b9 RD |
6843 | return _resultobj; |
6844 | } | |
6845 | ||
6846 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 6847 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
6848 | PyObject * _resultobj; |
6849 | bool _result; | |
6850 | wxPalette * _arg0; | |
2d091820 | 6851 | PyObject * _argo0 = 0; |
107e4716 | 6852 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
6853 | |
6854 | self = self; | |
107e4716 | 6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
105e45b9 | 6856 | return NULL; |
2d091820 RD |
6857 | if (_argo0) { |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
6861 | return NULL; | |
6862 | } | |
6863 | } | |
ab9bc19b RD |
6864 | { |
6865 | wxPy_BEGIN_ALLOW_THREADS; | |
6866 | _result = (bool )wxPalette_Ok(_arg0); | |
6867 | ||
6868 | wxPy_END_ALLOW_THREADS; | |
6869 | } _resultobj = Py_BuildValue("i",_result); | |
105e45b9 RD |
6870 | return _resultobj; |
6871 | } | |
6872 | ||
21f8d7ea | 6873 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 6874 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
6875 | PyObject * _resultobj; |
6876 | wxImageList * _result; | |
6877 | int _arg0; | |
6878 | int _arg1; | |
7ff49f0c | 6879 | int _arg2 = (int ) TRUE; |
2d091820 | 6880 | int _arg3 = (int ) 1; |
107e4716 | 6881 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
21f8d7ea RD |
6882 | char _ptemp[128]; |
6883 | ||
6884 | self = self; | |
56f5d962 | 6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
21f8d7ea | 6886 | return NULL; |
ab9bc19b RD |
6887 | { |
6888 | wxPy_BEGIN_ALLOW_THREADS; | |
6889 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
6890 | ||
6891 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6892 | } if (_result) { |
6893 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
6894 | _resultobj = Py_BuildValue("s",_ptemp); | |
6895 | } else { | |
6896 | Py_INCREF(Py_None); | |
6897 | _resultobj = Py_None; | |
6898 | } | |
21f8d7ea RD |
6899 | return _resultobj; |
6900 | } | |
6901 | ||
6902 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
107e4716 | 6903 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
6904 | PyObject * _resultobj; |
6905 | wxImageList * _arg0; | |
2d091820 | 6906 | PyObject * _argo0 = 0; |
107e4716 | 6907 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
6908 | |
6909 | self = self; | |
107e4716 | 6910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
21f8d7ea | 6911 | return NULL; |
2d091820 RD |
6912 | if (_argo0) { |
6913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
6915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
6916 | return NULL; | |
6917 | } | |
6918 | } | |
ab9bc19b RD |
6919 | { |
6920 | wxPy_BEGIN_ALLOW_THREADS; | |
6921 | delete_wxImageList(_arg0); | |
6922 | ||
6923 | wxPy_END_ALLOW_THREADS; | |
6924 | } Py_INCREF(Py_None); | |
21f8d7ea RD |
6925 | _resultobj = Py_None; |
6926 | return _resultobj; | |
6927 | } | |
6928 | ||
f6bcfd97 | 6929 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) |
107e4716 | 6930 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
6931 | PyObject * _resultobj; |
6932 | int _result; | |
6933 | wxImageList * _arg0; | |
6934 | wxBitmap * _arg1; | |
f6bcfd97 | 6935 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
2d091820 RD |
6936 | PyObject * _argo0 = 0; |
6937 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
6938 | PyObject * _argo2 = 0; |
6939 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
21f8d7ea RD |
6940 | |
6941 | self = self; | |
f6bcfd97 | 6942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
21f8d7ea | 6943 | return NULL; |
2d091820 RD |
6944 | if (_argo0) { |
6945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
6947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
6948 | return NULL; | |
6949 | } | |
6950 | } | |
2d091820 RD |
6951 | if (_argo1) { |
6952 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6953 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
21f8d7ea RD |
6954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
6955 | return NULL; | |
6956 | } | |
6957 | } | |
f6bcfd97 BP |
6958 | if (_argo2) { |
6959 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6960 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
6961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
6962 | return NULL; | |
6963 | } | |
6964 | } | |
6965 | { | |
6966 | wxPy_BEGIN_ALLOW_THREADS; | |
6967 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
6968 | ||
6969 | wxPy_END_ALLOW_THREADS; | |
6970 | } _resultobj = Py_BuildValue("i",_result); | |
6971 | return _resultobj; | |
6972 | } | |
6973 | ||
6974 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
6975 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6976 | PyObject * _resultobj; | |
6977 | int _result; | |
6978 | wxImageList * _arg0; | |
6979 | wxBitmap * _arg1; | |
6980 | wxColour * _arg2; | |
6981 | PyObject * _argo0 = 0; | |
6982 | PyObject * _argo1 = 0; | |
6983 | wxColour temp; | |
6984 | PyObject * _obj2 = 0; | |
6985 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
6986 | ||
6987 | self = self; | |
6988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
6989 | return NULL; | |
6990 | if (_argo0) { | |
6991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
6993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
6994 | return NULL; | |
6995 | } | |
6996 | } | |
6997 | if (_argo1) { | |
6998 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6999 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
7000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
7001 | return NULL; | |
7002 | } | |
7003 | } | |
7004 | { | |
7005 | _arg2 = &temp; | |
7006 | if (! wxColour_helper(_obj2, &_arg2)) | |
7007 | return NULL; | |
7008 | } | |
ab9bc19b RD |
7009 | { |
7010 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
7011 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
7012 | ||
7013 | wxPy_END_ALLOW_THREADS; | |
7014 | } _resultobj = Py_BuildValue("i",_result); | |
7015 | return _resultobj; | |
7016 | } | |
7017 | ||
7018 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
7019 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7020 | PyObject * _resultobj; | |
7021 | int _result; | |
7022 | wxImageList * _arg0; | |
7023 | wxIcon * _arg1; | |
7024 | PyObject * _argo0 = 0; | |
7025 | PyObject * _argo1 = 0; | |
7026 | char *_kwnames[] = { "self","icon", NULL }; | |
7027 | ||
7028 | self = self; | |
7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
7030 | return NULL; | |
7031 | if (_argo0) { | |
7032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
7035 | return NULL; | |
7036 | } | |
7037 | } | |
7038 | if (_argo1) { | |
7039 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7040 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
7041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
7042 | return NULL; | |
7043 | } | |
7044 | } | |
7045 | { | |
7046 | wxPy_BEGIN_ALLOW_THREADS; | |
7047 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
ab9bc19b RD |
7048 | |
7049 | wxPy_END_ALLOW_THREADS; | |
7050 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
7051 | return _resultobj; |
7052 | } | |
7053 | ||
7054 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
107e4716 | 7055 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7056 | PyObject * _resultobj; |
7057 | bool _result; | |
7058 | wxImageList * _arg0; | |
7059 | int _arg1; | |
7060 | wxBitmap * _arg2; | |
2d091820 RD |
7061 | PyObject * _argo0 = 0; |
7062 | PyObject * _argo2 = 0; | |
107e4716 | 7063 | char *_kwnames[] = { "self","index","bitmap", NULL }; |
21f8d7ea RD |
7064 | |
7065 | self = self; | |
107e4716 | 7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) |
21f8d7ea | 7067 | return NULL; |
2d091820 RD |
7068 | if (_argo0) { |
7069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
7071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
7072 | return NULL; | |
7073 | } | |
7074 | } | |
2d091820 RD |
7075 | if (_argo2) { |
7076 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7077 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea RD |
7078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
7079 | return NULL; | |
7080 | } | |
7081 | } | |
ab9bc19b RD |
7082 | { |
7083 | wxPy_BEGIN_ALLOW_THREADS; | |
7084 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); | |
7085 | ||
7086 | wxPy_END_ALLOW_THREADS; | |
7087 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
7088 | return _resultobj; |
7089 | } | |
7090 | ||
7091 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 7092 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7093 | PyObject * _resultobj; |
7094 | bool _result; | |
7095 | wxImageList * _arg0; | |
7096 | int _arg1; | |
7097 | wxDC * _arg2; | |
7098 | int _arg3; | |
7099 | int _arg4; | |
2d091820 RD |
7100 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
7101 | bool _arg6 = (bool ) FALSE; | |
7102 | PyObject * _argo0 = 0; | |
7103 | PyObject * _argo2 = 0; | |
7104 | int tempbool6 = (int) FALSE; | |
107e4716 | 7105 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
21f8d7ea RD |
7106 | |
7107 | self = self; | |
107e4716 | 7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
21f8d7ea | 7109 | return NULL; |
2d091820 RD |
7110 | if (_argo0) { |
7111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
2d091820 RD |
7117 | if (_argo2) { |
7118 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7119 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
7120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
7121 | return NULL; | |
7122 | } | |
7123 | } | |
7124 | _arg6 = (bool ) tempbool6; | |
ab9bc19b RD |
7125 | { |
7126 | wxPy_BEGIN_ALLOW_THREADS; | |
7127 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
7128 | ||
7129 | wxPy_END_ALLOW_THREADS; | |
7130 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
7131 | return _resultobj; |
7132 | } | |
7133 | ||
7134 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
107e4716 | 7135 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7136 | PyObject * _resultobj; |
7137 | int _result; | |
7138 | wxImageList * _arg0; | |
2d091820 | 7139 | PyObject * _argo0 = 0; |
107e4716 | 7140 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
7141 | |
7142 | self = self; | |
107e4716 | 7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
21f8d7ea | 7144 | return NULL; |
2d091820 RD |
7145 | if (_argo0) { |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
7149 | return NULL; | |
7150 | } | |
7151 | } | |
ab9bc19b RD |
7152 | { |
7153 | wxPy_BEGIN_ALLOW_THREADS; | |
7154 | _result = (int )wxImageList_GetImageCount(_arg0); | |
7155 | ||
7156 | wxPy_END_ALLOW_THREADS; | |
7157 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
7158 | return _resultobj; |
7159 | } | |
7160 | ||
7161 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
107e4716 | 7162 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7163 | PyObject * _resultobj; |
7164 | bool _result; | |
7165 | wxImageList * _arg0; | |
7166 | int _arg1; | |
2d091820 | 7167 | PyObject * _argo0 = 0; |
107e4716 | 7168 | char *_kwnames[] = { "self","index", NULL }; |
21f8d7ea RD |
7169 | |
7170 | self = self; | |
107e4716 | 7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
21f8d7ea | 7172 | return NULL; |
2d091820 RD |
7173 | if (_argo0) { |
7174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
7177 | return NULL; | |
7178 | } | |
7179 | } | |
ab9bc19b RD |
7180 | { |
7181 | wxPy_BEGIN_ALLOW_THREADS; | |
7182 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
7183 | ||
7184 | wxPy_END_ALLOW_THREADS; | |
7185 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
7186 | return _resultobj; |
7187 | } | |
7188 | ||
7189 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
107e4716 | 7190 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7191 | PyObject * _resultobj; |
7192 | bool _result; | |
7193 | wxImageList * _arg0; | |
2d091820 | 7194 | PyObject * _argo0 = 0; |
107e4716 | 7195 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
7196 | |
7197 | self = self; | |
107e4716 | 7198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
21f8d7ea | 7199 | return NULL; |
2d091820 RD |
7200 | if (_argo0) { |
7201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
7203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
7204 | return NULL; | |
7205 | } | |
7206 | } | |
ab9bc19b RD |
7207 | { |
7208 | wxPy_BEGIN_ALLOW_THREADS; | |
7209 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
7210 | ||
7211 | wxPy_END_ALLOW_THREADS; | |
7212 | } _resultobj = Py_BuildValue("i",_result); | |
21f8d7ea RD |
7213 | return _resultobj; |
7214 | } | |
7215 | ||
f6bcfd97 BP |
7216 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
7217 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7218 | PyObject * _resultobj; | |
7219 | wxImageList * _arg0; | |
7220 | int _arg1; | |
7221 | int * _arg2; | |
7222 | int temp; | |
7223 | int * _arg3; | |
7224 | int temp0; | |
7225 | PyObject * _argo0 = 0; | |
7226 | char *_kwnames[] = { "self","index", NULL }; | |
7227 | ||
7228 | self = self; | |
7229 | { | |
7230 | _arg2 = &temp; | |
7231 | } | |
7232 | { | |
7233 | _arg3 = &temp0; | |
7234 | } | |
7235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
7236 | return NULL; | |
7237 | if (_argo0) { | |
7238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
7240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
7241 | return NULL; | |
7242 | } | |
7243 | } | |
7244 | { | |
7245 | wxPy_BEGIN_ALLOW_THREADS; | |
7246 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
7247 | ||
7248 | wxPy_END_ALLOW_THREADS; | |
7249 | } Py_INCREF(Py_None); | |
7250 | _resultobj = Py_None; | |
7251 | { | |
7252 | PyObject *o; | |
7253 | o = PyInt_FromLong((long) (*_arg2)); | |
7254 | _resultobj = t_output_helper(_resultobj, o); | |
7255 | } | |
7256 | { | |
7257 | PyObject *o; | |
7258 | o = PyInt_FromLong((long) (*_arg3)); | |
7259 | _resultobj = t_output_helper(_resultobj, o); | |
7260 | } | |
7261 | return _resultobj; | |
7262 | } | |
7263 | ||
70551f47 | 7264 | static PyMethodDef gdicMethods[] = { |
f6bcfd97 | 7265 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7266 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
7267 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
7268 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
7269 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
7270 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7271 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, |
7272 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7273 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, |
7274 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
7275 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
7276 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
7277 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
7278 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
7279 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
7280 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
7281 | { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
7282 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, | |
7283 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
7284 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
7285 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7286 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 7287 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7288 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
7289 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
7290 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7291 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
7292 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
7293 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
7294 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
7295 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
7296 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
7297 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
7298 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
7299 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
7300 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7301 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
7302 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
7303 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
7304 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
7305 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
7306 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
7307 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
7308 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
7309 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 7310 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7311 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
7312 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
7313 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
7314 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
7315 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
7316 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
7317 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
7318 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
7319 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
7320 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
7321 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
7322 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
7323 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
7324 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
7325 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
7326 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
7327 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 7328 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7329 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
7330 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
7331 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
7332 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 7333 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7334 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
7335 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
7336 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
7337 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
7338 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
7339 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 7340 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7341 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
7342 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
7343 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
7344 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
7345 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
7346 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
7347 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
7348 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
7349 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
7350 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
7351 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
7352 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
7353 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
7354 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 7355 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7356 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
7357 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
7358 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
7359 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
7360 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
7361 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
7362 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
7363 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
7364 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
7365 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
7366 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
7367 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
7368 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
7369 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
7370 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
7371 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
7372 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
7373 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
7374 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
7375 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
7376 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7377 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
7378 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
7379 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
7380 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7381 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
7382 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
7383 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 RD |
7384 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
7385 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7386 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
7387 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7388 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
7389 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
7390 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
7391 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
7392 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
7393 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7394 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
7395 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
7396 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
7397 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
7398 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
7399 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
7400 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
7401 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
7402 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
7403 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
7404 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
7405 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc RD |
7406 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
7407 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
7408 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
7409 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7410 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, |
7411 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
7412 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7413 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
7414 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
7415 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc | 7416 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7417 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
7418 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
7419 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7420 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
7421 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
7422 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
d29aba2f | 7423 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7424 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
7425 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
7426 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7427 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
7428 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, |
7429 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
7430 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
7431 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
7432 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7433 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, |
7434 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7435 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
7436 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7437 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 7438 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
7439 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
7440 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7441 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
7442 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, |
7443 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
7444 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
7445 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7446 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7447 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7448 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7449 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
7450 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7451 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
7452 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
7453 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
7454 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc RD |
7455 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
7456 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7457 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, |
7458 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7459 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
7460 | { NULL, NULL } |
7461 | }; | |
2d091820 RD |
7462 | #ifdef __cplusplus |
7463 | } | |
7464 | #endif | |
7465 | /* | |
7466 | * This table is used by the pointer type-checker | |
7467 | */ | |
7468 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
7469 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
7470 | { "_signed_long","_long",0}, | |
4120ef2b | 7471 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
7472 | { "_wxPrintQuality","_int",0}, |
7473 | { "_wxPrintQuality","_signed_int",0}, | |
7474 | { "_wxPrintQuality","_unsigned_int",0}, | |
7475 | { "_wxPrintQuality","_wxWindowID",0}, | |
7476 | { "_wxPrintQuality","_uint",0}, | |
7477 | { "_wxPrintQuality","_EBool",0}, | |
7478 | { "_wxPrintQuality","_size_t",0}, | |
7479 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
7480 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
7481 | { "_wxCursor","_class_wxCursor",0}, | |
7482 | { "_wxMask","_class_wxMask",0}, | |
7483 | { "_wxPen","_class_wxPen",0}, | |
7484 | { "_byte","_unsigned_char",0}, | |
2d091820 RD |
7485 | { "_long","_unsigned_long",0}, |
7486 | { "_long","_signed_long",0}, | |
7487 | { "_wxImageList","_class_wxImageList",0}, | |
7488 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
7489 | { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
7490 | { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
7491 | { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
7492 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
7493 | { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
7494 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
7495 | { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
7496 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
7497 | { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
7498 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
7499 | { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
7500 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
7501 | { "_wxDC","_class_wxDC",0}, | |
4120ef2b | 7502 | { "_size_t","_wxCoord",0}, |
2d091820 RD |
7503 | { "_size_t","_wxPrintQuality",0}, |
7504 | { "_size_t","_unsigned_int",0}, | |
7505 | { "_size_t","_int",0}, | |
7506 | { "_size_t","_wxWindowID",0}, | |
7507 | { "_size_t","_uint",0}, | |
7508 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
7509 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
7510 | { "_class_wxMask","_wxMask",0}, | |
7511 | { "_wxColour","_class_wxColour",0}, | |
7512 | { "_wxBrush","_class_wxBrush",0}, | |
4120ef2b | 7513 | { "_uint","_wxCoord",0}, |
2d091820 RD |
7514 | { "_uint","_wxPrintQuality",0}, |
7515 | { "_uint","_size_t",0}, | |
7516 | { "_uint","_unsigned_int",0}, | |
7517 | { "_uint","_int",0}, | |
7518 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 7519 | { "_wxChar","_char",0}, |
2d091820 RD |
7520 | { "_wxRect","_class_wxRect",0}, |
7521 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 7522 | { "_char","_wxChar",0}, |
2d091820 | 7523 | { "_wxBitmap","_class_wxBitmap",0}, |
2d091820 RD |
7524 | { "_wxWindowDC","_class_wxWindowDC",0}, |
7525 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
4120ef2b | 7526 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
7527 | { "_EBool","_wxPrintQuality",0}, |
7528 | { "_EBool","_signed_int",0}, | |
7529 | { "_EBool","_int",0}, | |
7530 | { "_EBool","_wxWindowID",0}, | |
7531 | { "_class_wxRegion","_wxRegion",0}, | |
7532 | { "_wxFont","_class_wxFont",0}, | |
2d091820 RD |
7533 | { "_unsigned_long","_long",0}, |
7534 | { "_class_wxRect","_wxRect",0}, | |
7535 | { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
7536 | { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, | |
7537 | { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, | |
7538 | { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
7539 | { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
7540 | { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
7541 | { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
7542 | { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
7543 | { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
7544 | { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
7545 | { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
7546 | { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
7547 | { "_class_wxDC","_wxDC",0}, | |
2d091820 | 7548 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
4120ef2b | 7549 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
7550 | { "_signed_int","_wxPrintQuality",0}, |
7551 | { "_signed_int","_EBool",0}, | |
7552 | { "_signed_int","_wxWindowID",0}, | |
7553 | { "_signed_int","_int",0}, | |
7554 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
7555 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
7556 | { "_WXTYPE","_short",0}, | |
7557 | { "_WXTYPE","_signed_short",0}, | |
7558 | { "_WXTYPE","_unsigned_short",0}, | |
7559 | { "_class_wxBrush","_wxBrush",0}, | |
7560 | { "_unsigned_short","_WXTYPE",0}, | |
7561 | { "_unsigned_short","_short",0}, | |
7562 | { "_class_wxFont","_wxFont",0}, | |
4120ef2b | 7563 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
2d091820 RD |
7564 | { "_wxClientDC","_class_wxClientDC",0}, |
7565 | { "_class_wxPoint","_wxPoint",0}, | |
7566 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
7567 | { "_signed_short","_WXTYPE",0}, | |
7568 | { "_signed_short","_short",0}, | |
7569 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
7570 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
7571 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
7572 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
7573 | { "_class_wxCursor","_wxCursor",0}, | |
7574 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
7575 | { "_unsigned_char","_byte",0}, | |
4120ef2b | 7576 | { "_unsigned_int","_wxCoord",0}, |
2d091820 RD |
7577 | { "_unsigned_int","_wxPrintQuality",0}, |
7578 | { "_unsigned_int","_size_t",0}, | |
7579 | { "_unsigned_int","_uint",0}, | |
7580 | { "_unsigned_int","_wxWindowID",0}, | |
7581 | { "_unsigned_int","_int",0}, | |
7582 | { "_wxIcon","_class_wxIcon",0}, | |
7583 | { "_class_wxPen","_wxPen",0}, | |
7584 | { "_short","_WXTYPE",0}, | |
7585 | { "_short","_unsigned_short",0}, | |
7586 | { "_short","_signed_short",0}, | |
7587 | { "_class_wxImageList","_wxImageList",0}, | |
4120ef2b | 7588 | { "_wxWindowID","_wxCoord",0}, |
2d091820 RD |
7589 | { "_wxWindowID","_wxPrintQuality",0}, |
7590 | { "_wxWindowID","_size_t",0}, | |
7591 | { "_wxWindowID","_EBool",0}, | |
7592 | { "_wxWindowID","_uint",0}, | |
7593 | { "_wxWindowID","_int",0}, | |
7594 | { "_wxWindowID","_signed_int",0}, | |
7595 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 7596 | { "_int","_wxCoord",0}, |
2d091820 RD |
7597 | { "_int","_wxPrintQuality",0}, |
7598 | { "_int","_size_t",0}, | |
7599 | { "_int","_EBool",0}, | |
7600 | { "_int","_uint",0}, | |
7601 | { "_int","_wxWindowID",0}, | |
7602 | { "_int","_unsigned_int",0}, | |
7603 | { "_int","_signed_int",0}, | |
7604 | { "_wxSize","_class_wxSize",0}, | |
7605 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
7606 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
7607 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
7608 | { "_class_wxIcon","_wxIcon",0}, | |
7609 | { "_class_wxColour","_wxColour",0}, | |
7610 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
7611 | { "_wxPalette","_class_wxPalette",0}, | |
4120ef2b RD |
7612 | { "_wxCoord","_int",0}, |
7613 | { "_wxCoord","_signed_int",0}, | |
7614 | { "_wxCoord","_unsigned_int",0}, | |
7615 | { "_wxCoord","_wxWindowID",0}, | |
7616 | { "_wxCoord","_uint",0}, | |
7617 | { "_wxCoord","_EBool",0}, | |
7618 | { "_wxCoord","_size_t",0}, | |
7619 | { "_wxCoord","_wxPrintQuality",0}, | |
2d091820 | 7620 | { "_wxRegion","_class_wxRegion",0}, |
4120ef2b | 7621 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
2d091820 RD |
7622 | { "_class_wxClientDC","_wxClientDC",0}, |
7623 | { "_class_wxSize","_wxSize",0}, | |
2d091820 RD |
7624 | { "_class_wxBitmap","_wxBitmap",0}, |
7625 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
2d091820 RD |
7626 | { "_class_wxPalette","_wxPalette",0}, |
7627 | {0,0,0}}; | |
7628 | ||
70551f47 RD |
7629 | static PyObject *SWIG_globals; |
7630 | #ifdef __cplusplus | |
7631 | extern "C" | |
7632 | #endif | |
2d091820 | 7633 | SWIGEXPORT(void) initgdic() { |
70551f47 RD |
7634 | PyObject *m, *d; |
7635 | SWIG_globals = SWIG_newvarlink(); | |
7636 | m = Py_InitModule("gdic", gdicMethods); | |
7637 | d = PyModule_GetDict(m); | |
134d79dc RD |
7638 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
7639 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
7640 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
7641 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
7642 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
7643 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
7644 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
7645 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
7646 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
7647 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
7648 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
7649 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
7650 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
7651 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
7652 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
7653 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
7654 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
7655 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
7656 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
7657 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
7658 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
7659 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
7660 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
7661 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
7662 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
7663 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); | |
7664 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
7665 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
7666 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
70551f47 RD |
7667 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
7668 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
7669 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
7670 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
7671 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
7672 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
7673 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
7674 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
7675 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
7676 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
7677 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
7678 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
7679 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
7680 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
7681 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
7682 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
7683 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
7684 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
7685 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
7686 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
7687 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
7688 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
7689 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
7690 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
7691 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
7692 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
7693 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
7694 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
7695 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
7696 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
7697 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
7698 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
7699 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
7700 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
7701 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
7702 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
7703 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
7704 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
7705 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
7706 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
7707 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
7708 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
7709 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
21f8d7ea RD |
7710 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
7711 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
7712 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
7713 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
7714 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
7715 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
7716 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
2d091820 RD |
7717 | { |
7718 | int i; | |
7719 | for (i = 0; _swig_mapping[i].n1; i++) | |
7720 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
7721 | } | |
70551f47 | 7722 | } |