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