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