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