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