]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/gdi.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
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__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initgdic |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/metafile.h> | |
af309447 | 60 | #include <wx/imaglist.h> |
be4d9c1f | 61 | #ifndef __WXMSW__ |
08127323 | 62 | #include <wx/dcps.h> |
be4d9c1f | 63 | #endif |
8ab979d7 RD |
64 | |
65 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
185d7c3e | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
185d7c3e | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
185d7c3e | 72 | } else { |
8ab979d7 RD |
73 | if (!PyList_Check(target)) { |
74 | o2 = target; | |
75 | target = PyList_New(0); | |
76 | PyList_Append(target, o2); | |
77 | Py_XDECREF(o2); | |
78 | } | |
79 | PyList_Append(target,o); | |
80 | Py_XDECREF(o); | |
81 | } | |
82 | return target; | |
83 | } | |
84 | ||
85 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
86 | PyObject* o2; | |
87 | PyObject* o3; | |
88 | ||
185d7c3e | 89 | if (!target) { |
8ab979d7 | 90 | target = o; |
185d7c3e | 91 | } else if (target == Py_None) { |
8ab979d7 RD |
92 | Py_DECREF(Py_None); |
93 | target = o; | |
185d7c3e | 94 | } else { |
8ab979d7 RD |
95 | if (!PyTuple_Check(target)) { |
96 | o2 = target; | |
97 | target = PyTuple_New(1); | |
98 | PyTuple_SetItem(target, 0, o2); | |
99 | } | |
185d7c3e RD |
100 | o3 = PyTuple_New(1); |
101 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
102 | |
103 | o2 = target; | |
185d7c3e RD |
104 | target = PySequence_Concat(o2, o3); |
105 | Py_DECREF(o2); | |
8ab979d7 RD |
106 | Py_DECREF(o3); |
107 | } | |
108 | return target; | |
109 | } | |
110 | ||
8ab979d7 | 111 | static char* wxStringErrorMsg = "string type is required for parameter"; |
e508a2b6 RD |
112 | |
113 | static wxString wxPyEmptyStr(""); | |
8ab979d7 RD |
114 | // Alternate 'constructor' |
115 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { | |
116 | return new wxBitmap(width, height, depth); | |
117 | } | |
118 | ||
8bf5d46e | 119 | #ifdef __WXMSW__ |
4c9993c3 | 120 | wxBitmap* wxBitmapFromData(PyObject* data, long type, |
8bf5d46e | 121 | int width, int height, int depth = 1) { |
4c9993c3 RD |
122 | if (! PyString_Check(data)) { |
123 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
124 | return NULL; | |
125 | } | |
126 | ||
127 | return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
8bf5d46e RD |
128 | } |
129 | #endif | |
130 | ||
8ab979d7 RD |
131 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
132 | return new wxMask(bitmap, colour); | |
133 | } | |
134 | // Alternate 'constructor' | |
9c039d08 | 135 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
136 | return new wxCursor(id); |
137 | } | |
f0261a72 RD |
138 | |
139 | wxFontEncoding wxFont_GetDefaultEncoding() { | |
140 | return wxFont::GetDefaultEncoding(); | |
141 | } | |
142 | ||
143 | void wxFont_SetDefaultEncoding(wxFontEncoding encoding) { | |
144 | wxFont::SetDefaultEncoding(encoding); | |
145 | } | |
8ab979d7 RD |
146 | // Alternate 'constructor' |
147 | wxColour* wxNamedColour(const wxString& colorName) { | |
148 | return new wxColour(colorName); | |
149 | } | |
150 | // Alternate 'constructor' | |
151 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
152 | return new wxMemoryDC(oldDC); | |
153 | } | |
af309447 RD |
154 | |
155 | #if 0 | |
8ab979d7 RD |
156 | extern wxFont * wxNORMAL_FONT; |
157 | extern wxFont * wxSMALL_FONT; | |
158 | extern wxFont * wxITALIC_FONT; | |
159 | extern wxFont * wxSWISS_FONT; | |
160 | extern wxPen * wxRED_PEN; | |
161 | extern wxPen * wxCYAN_PEN; | |
162 | extern wxPen * wxGREEN_PEN; | |
163 | extern wxPen * wxBLACK_PEN; | |
164 | extern wxPen * wxWHITE_PEN; | |
165 | extern wxPen * wxTRANSPARENT_PEN; | |
166 | extern wxPen * wxBLACK_DASHED_PEN; | |
167 | extern wxPen * wxGREY_PEN; | |
168 | extern wxPen * wxMEDIUM_GREY_PEN; | |
169 | extern wxPen * wxLIGHT_GREY_PEN; | |
170 | extern wxBrush * wxBLUE_BRUSH; | |
171 | extern wxBrush * wxGREEN_BRUSH; | |
172 | extern wxBrush * wxWHITE_BRUSH; | |
173 | extern wxBrush * wxBLACK_BRUSH; | |
174 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
175 | extern wxBrush * wxCYAN_BRUSH; | |
176 | extern wxBrush * wxRED_BRUSH; | |
177 | extern wxBrush * wxGREY_BRUSH; | |
178 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
179 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
180 | extern wxColour * wxBLACK; | |
181 | extern wxColour * wxWHITE; | |
182 | extern wxColour * wxRED; | |
183 | extern wxColour * wxBLUE; | |
184 | extern wxColour * wxGREEN; | |
185 | extern wxColour * wxCYAN; | |
186 | extern wxColour * wxLIGHT_GREY; | |
187 | extern wxCursor * wxSTANDARD_CURSOR; | |
188 | extern wxCursor * wxHOURGLASS_CURSOR; | |
189 | extern wxCursor * wxCROSS_CURSOR; | |
190 | extern wxBitmap wxNullBitmap; | |
191 | extern wxIcon wxNullIcon; | |
192 | extern wxCursor wxNullCursor; | |
193 | extern wxPen wxNullPen; | |
194 | extern wxBrush wxNullBrush; | |
195 | extern wxPalette wxNullPalette; | |
196 | extern wxFont wxNullFont; | |
197 | extern wxColour wxNullColour; | |
0569df0f RD |
198 | extern wxFontList * wxTheFontList; |
199 | extern wxPenList * wxThePenList; | |
200 | extern wxBrushlist * wxTheBrushList; | |
201 | extern wxColourDatabase * wxTheColourDatabase; | |
af309447 | 202 | |
1d99702e RD |
203 | #endif |
204 | #ifdef __cplusplus | |
205 | extern "C" { | |
af309447 | 206 | #endif |
1afc06c2 | 207 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
208 | PyObject * _resultobj; |
209 | wxBitmap * _result; | |
210 | int _arg0; | |
211 | int _arg1; | |
1d99702e | 212 | int _arg2 = (int ) -1; |
1afc06c2 | 213 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
214 | char _ptemp[128]; |
215 | ||
216 | self = self; | |
1afc06c2 | 217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 218 | return NULL; |
cf694132 RD |
219 | { |
220 | wxPy_BEGIN_ALLOW_THREADS; | |
221 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
222 | ||
223 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
224 | } if (_result) { |
225 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
226 | _resultobj = Py_BuildValue("s",_ptemp); | |
227 | } else { | |
228 | Py_INCREF(Py_None); | |
229 | _resultobj = Py_None; | |
230 | } | |
8ab979d7 RD |
231 | return _resultobj; |
232 | } | |
233 | ||
1afc06c2 | 234 | static PyObject *_wrap_wxBitmapFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
235 | PyObject * _resultobj; |
236 | wxBitmap * _result; | |
4c9993c3 | 237 | PyObject * _arg0; |
8bf5d46e RD |
238 | long _arg1; |
239 | int _arg2; | |
240 | int _arg3; | |
1d99702e | 241 | int _arg4 = (int ) 1; |
4c9993c3 | 242 | PyObject * _obj0 = 0; |
1afc06c2 | 243 | char *_kwnames[] = { "data","type","width","height","depth", NULL }; |
8bf5d46e RD |
244 | char _ptemp[128]; |
245 | ||
246 | self = self; | |
4c9993c3 | 247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii|i:wxBitmapFromData",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8bf5d46e | 248 | return NULL; |
4c9993c3 RD |
249 | { |
250 | _arg0 = _obj0; | |
251 | } | |
8bf5d46e RD |
252 | { |
253 | wxPy_BEGIN_ALLOW_THREADS; | |
254 | _result = (wxBitmap *)wxBitmapFromData(_arg0,_arg1,_arg2,_arg3,_arg4); | |
255 | ||
256 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
257 | } if (_result) { |
258 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
259 | _resultobj = Py_BuildValue("s",_ptemp); | |
260 | } else { | |
261 | Py_INCREF(Py_None); | |
262 | _resultobj = Py_None; | |
263 | } | |
8bf5d46e RD |
264 | return _resultobj; |
265 | } | |
266 | ||
1afc06c2 | 267 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
268 | PyObject * _resultobj; |
269 | wxMask * _result; | |
270 | wxBitmap * _arg0; | |
271 | wxColour * _arg1; | |
1d99702e | 272 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
273 | wxColour temp; |
274 | PyObject * _obj1 = 0; | |
1afc06c2 | 275 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
276 | char _ptemp[128]; |
277 | ||
278 | self = self; | |
f6bcfd97 | 279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 280 | return NULL; |
1d99702e RD |
281 | if (_argo0) { |
282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
285 | return NULL; | |
286 | } | |
287 | } | |
f6bcfd97 BP |
288 | { |
289 | _arg1 = &temp; | |
290 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 291 | return NULL; |
f6bcfd97 | 292 | } |
cf694132 RD |
293 | { |
294 | wxPy_BEGIN_ALLOW_THREADS; | |
295 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
296 | ||
297 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
298 | } if (_result) { |
299 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
300 | _resultobj = Py_BuildValue("s",_ptemp); | |
301 | } else { | |
302 | Py_INCREF(Py_None); | |
303 | _resultobj = Py_None; | |
304 | } | |
8ab979d7 RD |
305 | return _resultobj; |
306 | } | |
307 | ||
1afc06c2 | 308 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
309 | PyObject * _resultobj; |
310 | wxCursor * _result; | |
311 | int _arg0; | |
1afc06c2 | 312 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
313 | char _ptemp[128]; |
314 | ||
315 | self = self; | |
1afc06c2 | 316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 317 | return NULL; |
cf694132 RD |
318 | { |
319 | wxPy_BEGIN_ALLOW_THREADS; | |
320 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
321 | ||
322 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
323 | } if (_result) { |
324 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
325 | _resultobj = Py_BuildValue("s",_ptemp); | |
326 | } else { | |
327 | Py_INCREF(Py_None); | |
328 | _resultobj = Py_None; | |
329 | } | |
8ab979d7 RD |
330 | return _resultobj; |
331 | } | |
332 | ||
f0261a72 RD |
333 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
334 | PyObject * _resultobj; | |
335 | wxFontEncoding _result; | |
336 | char *_kwnames[] = { NULL }; | |
337 | ||
338 | self = self; | |
339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
340 | return NULL; | |
341 | { | |
342 | wxPy_BEGIN_ALLOW_THREADS; | |
343 | _result = (wxFontEncoding )wxFont_GetDefaultEncoding(); | |
344 | ||
345 | wxPy_END_ALLOW_THREADS; | |
346 | } _resultobj = Py_BuildValue("i",_result); | |
347 | return _resultobj; | |
348 | } | |
349 | ||
350 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
351 | PyObject * _resultobj; | |
352 | wxFontEncoding _arg0; | |
353 | char *_kwnames[] = { "encoding", NULL }; | |
354 | ||
355 | self = self; | |
356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
357 | return NULL; | |
358 | { | |
359 | wxPy_BEGIN_ALLOW_THREADS; | |
360 | wxFont_SetDefaultEncoding(_arg0); | |
361 | ||
362 | wxPy_END_ALLOW_THREADS; | |
363 | } Py_INCREF(Py_None); | |
364 | _resultobj = Py_None; | |
365 | return _resultobj; | |
366 | } | |
367 | ||
1afc06c2 | 368 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
369 | PyObject * _resultobj; |
370 | wxColour * _result; | |
371 | wxString * _arg0; | |
372 | PyObject * _obj0 = 0; | |
1afc06c2 | 373 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
374 | char _ptemp[128]; |
375 | ||
376 | self = self; | |
1afc06c2 | 377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
378 | return NULL; |
379 | { | |
185d7c3e RD |
380 | #if PYTHON_API_VERSION >= 1009 |
381 | char* tmpPtr; int tmpSize; | |
382 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
383 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
384 | return NULL; | |
385 | } | |
386 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
387 | return NULL; | |
388 | _arg0 = new wxString(tmpPtr, tmpSize); | |
389 | #else | |
8ab979d7 RD |
390 | if (!PyString_Check(_obj0)) { |
391 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
392 | return NULL; | |
393 | } | |
185d7c3e RD |
394 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
395 | #endif | |
8ab979d7 | 396 | } |
cf694132 RD |
397 | { |
398 | wxPy_BEGIN_ALLOW_THREADS; | |
399 | _result = (wxColour *)wxNamedColour(*_arg0); | |
400 | ||
401 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
402 | } if (_result) { |
403 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
404 | _resultobj = Py_BuildValue("s",_ptemp); | |
405 | } else { | |
406 | Py_INCREF(Py_None); | |
407 | _resultobj = Py_None; | |
408 | } | |
8ab979d7 RD |
409 | { |
410 | if (_obj0) | |
411 | delete _arg0; | |
412 | } | |
413 | return _resultobj; | |
414 | } | |
415 | ||
1afc06c2 | 416 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
417 | PyObject * _resultobj; |
418 | wxMemoryDC * _result; | |
419 | wxDC * _arg0; | |
1d99702e | 420 | PyObject * _argo0 = 0; |
1afc06c2 | 421 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
422 | char _ptemp[128]; |
423 | ||
424 | self = self; | |
1afc06c2 | 425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 426 | return NULL; |
1d99702e RD |
427 | if (_argo0) { |
428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
431 | return NULL; | |
432 | } | |
433 | } | |
cf694132 RD |
434 | { |
435 | wxPy_BEGIN_ALLOW_THREADS; | |
436 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
437 | ||
438 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
439 | } if (_result) { |
440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
441 | _resultobj = Py_BuildValue("s",_ptemp); | |
442 | } else { | |
443 | Py_INCREF(Py_None); | |
444 | _resultobj = Py_None; | |
445 | } | |
8ab979d7 RD |
446 | return _resultobj; |
447 | } | |
448 | ||
449 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
450 | ||
451 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
452 | return 1; | |
453 | } | |
454 | ||
455 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
456 | PyObject * pyobj; | |
457 | char ptemp[128]; | |
458 | ||
459 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
460 | pyobj = PyString_FromString(ptemp); | |
461 | return pyobj; | |
462 | } | |
463 | ||
464 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
465 | ||
466 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
467 | return 1; | |
468 | } | |
469 | ||
470 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
471 | PyObject * pyobj; | |
472 | char ptemp[128]; | |
473 | ||
474 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
475 | pyobj = PyString_FromString(ptemp); | |
476 | return pyobj; | |
477 | } | |
478 | ||
479 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
480 | ||
481 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
482 | return 1; | |
483 | } | |
484 | ||
485 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
486 | PyObject * pyobj; | |
487 | char ptemp[128]; | |
488 | ||
489 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
490 | pyobj = PyString_FromString(ptemp); | |
491 | return pyobj; | |
492 | } | |
493 | ||
494 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
495 | ||
496 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
497 | return 1; | |
498 | } | |
499 | ||
500 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
501 | PyObject * pyobj; | |
502 | char ptemp[128]; | |
503 | ||
504 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
505 | pyobj = PyString_FromString(ptemp); | |
506 | return pyobj; | |
507 | } | |
508 | ||
509 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
510 | ||
511 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
512 | return 1; | |
513 | } | |
514 | ||
515 | static PyObject *_wrap_wxRED_PEN_get() { | |
516 | PyObject * pyobj; | |
517 | char ptemp[128]; | |
518 | ||
519 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
520 | pyobj = PyString_FromString(ptemp); | |
521 | return pyobj; | |
522 | } | |
523 | ||
524 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
525 | ||
526 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
527 | return 1; | |
528 | } | |
529 | ||
530 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
531 | PyObject * pyobj; | |
532 | char ptemp[128]; | |
533 | ||
534 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
535 | pyobj = PyString_FromString(ptemp); | |
536 | return pyobj; | |
537 | } | |
538 | ||
539 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
540 | ||
541 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
542 | return 1; | |
543 | } | |
544 | ||
545 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
546 | PyObject * pyobj; | |
547 | char ptemp[128]; | |
548 | ||
549 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
550 | pyobj = PyString_FromString(ptemp); | |
551 | return pyobj; | |
552 | } | |
553 | ||
554 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
555 | ||
556 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
557 | return 1; | |
558 | } | |
559 | ||
560 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
561 | PyObject * pyobj; | |
562 | char ptemp[128]; | |
563 | ||
564 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
565 | pyobj = PyString_FromString(ptemp); | |
566 | return pyobj; | |
567 | } | |
568 | ||
569 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
570 | ||
571 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
572 | return 1; | |
573 | } | |
574 | ||
575 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
576 | PyObject * pyobj; | |
577 | char ptemp[128]; | |
578 | ||
579 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
580 | pyobj = PyString_FromString(ptemp); | |
581 | return pyobj; | |
582 | } | |
583 | ||
584 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
585 | ||
586 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
587 | return 1; | |
588 | } | |
589 | ||
590 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
591 | PyObject * pyobj; | |
592 | char ptemp[128]; | |
593 | ||
594 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
595 | pyobj = PyString_FromString(ptemp); | |
596 | return pyobj; | |
597 | } | |
598 | ||
599 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
600 | ||
601 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
602 | return 1; | |
603 | } | |
604 | ||
605 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
606 | PyObject * pyobj; | |
607 | char ptemp[128]; | |
608 | ||
609 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
610 | pyobj = PyString_FromString(ptemp); | |
611 | return pyobj; | |
612 | } | |
613 | ||
614 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
615 | ||
616 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
617 | return 1; | |
618 | } | |
619 | ||
620 | static PyObject *_wrap_wxGREY_PEN_get() { | |
621 | PyObject * pyobj; | |
622 | char ptemp[128]; | |
623 | ||
624 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
625 | pyobj = PyString_FromString(ptemp); | |
626 | return pyobj; | |
627 | } | |
628 | ||
629 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
630 | ||
631 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
632 | return 1; | |
633 | } | |
634 | ||
635 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
636 | PyObject * pyobj; | |
637 | char ptemp[128]; | |
638 | ||
639 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
640 | pyobj = PyString_FromString(ptemp); | |
641 | return pyobj; | |
642 | } | |
643 | ||
644 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
645 | ||
646 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
647 | return 1; | |
648 | } | |
649 | ||
650 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
651 | PyObject * pyobj; | |
652 | char ptemp[128]; | |
653 | ||
654 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
655 | pyobj = PyString_FromString(ptemp); | |
656 | return pyobj; | |
657 | } | |
658 | ||
659 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
660 | ||
661 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
662 | return 1; | |
663 | } | |
664 | ||
665 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
666 | PyObject * pyobj; | |
667 | char ptemp[128]; | |
668 | ||
669 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
670 | pyobj = PyString_FromString(ptemp); | |
671 | return pyobj; | |
672 | } | |
673 | ||
674 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
675 | ||
676 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
677 | return 1; | |
678 | } | |
679 | ||
680 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
681 | PyObject * pyobj; | |
682 | char ptemp[128]; | |
683 | ||
684 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
685 | pyobj = PyString_FromString(ptemp); | |
686 | return pyobj; | |
687 | } | |
688 | ||
689 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
690 | ||
691 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
692 | return 1; | |
693 | } | |
694 | ||
695 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
696 | PyObject * pyobj; | |
697 | char ptemp[128]; | |
698 | ||
699 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
700 | pyobj = PyString_FromString(ptemp); | |
701 | return pyobj; | |
702 | } | |
703 | ||
704 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
705 | ||
706 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
707 | return 1; | |
708 | } | |
709 | ||
710 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
711 | PyObject * pyobj; | |
712 | char ptemp[128]; | |
713 | ||
714 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
715 | pyobj = PyString_FromString(ptemp); | |
716 | return pyobj; | |
717 | } | |
718 | ||
719 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
720 | ||
721 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
722 | return 1; | |
723 | } | |
724 | ||
725 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
726 | PyObject * pyobj; | |
727 | char ptemp[128]; | |
728 | ||
729 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
730 | pyobj = PyString_FromString(ptemp); | |
731 | return pyobj; | |
732 | } | |
733 | ||
734 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
735 | ||
736 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
737 | return 1; | |
738 | } | |
739 | ||
740 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
741 | PyObject * pyobj; | |
742 | char ptemp[128]; | |
743 | ||
744 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
745 | pyobj = PyString_FromString(ptemp); | |
746 | return pyobj; | |
747 | } | |
748 | ||
749 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
750 | ||
751 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
752 | return 1; | |
753 | } | |
754 | ||
755 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
756 | PyObject * pyobj; | |
757 | char ptemp[128]; | |
758 | ||
759 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
760 | pyobj = PyString_FromString(ptemp); | |
761 | return pyobj; | |
762 | } | |
763 | ||
764 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
765 | ||
766 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
767 | return 1; | |
768 | } | |
769 | ||
770 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
771 | PyObject * pyobj; | |
772 | char ptemp[128]; | |
773 | ||
774 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
775 | pyobj = PyString_FromString(ptemp); | |
776 | return pyobj; | |
777 | } | |
778 | ||
779 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
780 | ||
781 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
782 | return 1; | |
783 | } | |
784 | ||
785 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
786 | PyObject * pyobj; | |
787 | char ptemp[128]; | |
788 | ||
789 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
790 | pyobj = PyString_FromString(ptemp); | |
791 | return pyobj; | |
792 | } | |
793 | ||
794 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
795 | ||
796 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
797 | return 1; | |
798 | } | |
799 | ||
800 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
801 | PyObject * pyobj; | |
802 | char ptemp[128]; | |
803 | ||
804 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
805 | pyobj = PyString_FromString(ptemp); | |
806 | return pyobj; | |
807 | } | |
808 | ||
809 | static int _wrap_wxBLACK_set(PyObject *val) { | |
810 | ||
811 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
812 | return 1; | |
813 | } | |
814 | ||
815 | static PyObject *_wrap_wxBLACK_get() { | |
816 | PyObject * pyobj; | |
817 | char ptemp[128]; | |
818 | ||
819 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
820 | pyobj = PyString_FromString(ptemp); | |
821 | return pyobj; | |
822 | } | |
823 | ||
824 | static int _wrap_wxWHITE_set(PyObject *val) { | |
825 | ||
826 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
827 | return 1; | |
828 | } | |
829 | ||
830 | static PyObject *_wrap_wxWHITE_get() { | |
831 | PyObject * pyobj; | |
832 | char ptemp[128]; | |
833 | ||
834 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
835 | pyobj = PyString_FromString(ptemp); | |
836 | return pyobj; | |
837 | } | |
838 | ||
839 | static int _wrap_wxRED_set(PyObject *val) { | |
840 | ||
841 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
842 | return 1; | |
843 | } | |
844 | ||
845 | static PyObject *_wrap_wxRED_get() { | |
846 | PyObject * pyobj; | |
847 | char ptemp[128]; | |
848 | ||
849 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
850 | pyobj = PyString_FromString(ptemp); | |
851 | return pyobj; | |
852 | } | |
853 | ||
854 | static int _wrap_wxBLUE_set(PyObject *val) { | |
855 | ||
856 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
857 | return 1; | |
858 | } | |
859 | ||
860 | static PyObject *_wrap_wxBLUE_get() { | |
861 | PyObject * pyobj; | |
862 | char ptemp[128]; | |
863 | ||
864 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
865 | pyobj = PyString_FromString(ptemp); | |
866 | return pyobj; | |
867 | } | |
868 | ||
869 | static int _wrap_wxGREEN_set(PyObject *val) { | |
870 | ||
871 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
872 | return 1; | |
873 | } | |
874 | ||
875 | static PyObject *_wrap_wxGREEN_get() { | |
876 | PyObject * pyobj; | |
877 | char ptemp[128]; | |
878 | ||
879 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
880 | pyobj = PyString_FromString(ptemp); | |
881 | return pyobj; | |
882 | } | |
883 | ||
884 | static int _wrap_wxCYAN_set(PyObject *val) { | |
885 | ||
886 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
887 | return 1; | |
888 | } | |
889 | ||
890 | static PyObject *_wrap_wxCYAN_get() { | |
891 | PyObject * pyobj; | |
892 | char ptemp[128]; | |
893 | ||
894 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
895 | pyobj = PyString_FromString(ptemp); | |
896 | return pyobj; | |
897 | } | |
898 | ||
899 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
900 | ||
901 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
902 | return 1; | |
903 | } | |
904 | ||
905 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
906 | PyObject * pyobj; | |
907 | char ptemp[128]; | |
908 | ||
909 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
910 | pyobj = PyString_FromString(ptemp); | |
911 | return pyobj; | |
912 | } | |
913 | ||
914 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
915 | ||
916 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
917 | return 1; | |
918 | } | |
919 | ||
920 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
921 | PyObject * pyobj; | |
922 | char ptemp[128]; | |
923 | ||
924 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
925 | pyobj = PyString_FromString(ptemp); | |
926 | return pyobj; | |
927 | } | |
928 | ||
929 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
930 | ||
931 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
932 | return 1; | |
933 | } | |
934 | ||
935 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
936 | PyObject * pyobj; | |
937 | char ptemp[128]; | |
938 | ||
939 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
940 | pyobj = PyString_FromString(ptemp); | |
941 | return pyobj; | |
942 | } | |
943 | ||
944 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
945 | ||
946 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
947 | return 1; | |
948 | } | |
949 | ||
950 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
951 | PyObject * pyobj; | |
952 | char ptemp[128]; | |
953 | ||
954 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
955 | pyobj = PyString_FromString(ptemp); | |
956 | return pyobj; | |
957 | } | |
958 | ||
959 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
960 | ||
961 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
962 | return 1; | |
963 | } | |
964 | ||
965 | static PyObject *_wrap_wxNullBitmap_get() { | |
966 | PyObject * pyobj; | |
967 | char ptemp[128]; | |
968 | ||
969 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
970 | pyobj = PyString_FromString(ptemp); | |
971 | return pyobj; | |
972 | } | |
973 | ||
974 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
975 | ||
976 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
977 | return 1; | |
978 | } | |
979 | ||
980 | static PyObject *_wrap_wxNullIcon_get() { | |
981 | PyObject * pyobj; | |
982 | char ptemp[128]; | |
983 | ||
984 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
985 | pyobj = PyString_FromString(ptemp); | |
986 | return pyobj; | |
987 | } | |
988 | ||
989 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
990 | ||
991 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
992 | return 1; | |
993 | } | |
994 | ||
995 | static PyObject *_wrap_wxNullCursor_get() { | |
996 | PyObject * pyobj; | |
997 | char ptemp[128]; | |
998 | ||
999 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1000 | pyobj = PyString_FromString(ptemp); | |
1001 | return pyobj; | |
1002 | } | |
1003 | ||
1004 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1005 | ||
1006 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1007 | return 1; | |
1008 | } | |
1009 | ||
1010 | static PyObject *_wrap_wxNullPen_get() { | |
1011 | PyObject * pyobj; | |
1012 | char ptemp[128]; | |
1013 | ||
1014 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1015 | pyobj = PyString_FromString(ptemp); | |
1016 | return pyobj; | |
1017 | } | |
1018 | ||
1019 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1020 | ||
1021 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1022 | return 1; | |
1023 | } | |
1024 | ||
1025 | static PyObject *_wrap_wxNullBrush_get() { | |
1026 | PyObject * pyobj; | |
1027 | char ptemp[128]; | |
1028 | ||
1029 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1030 | pyobj = PyString_FromString(ptemp); | |
1031 | return pyobj; | |
1032 | } | |
1033 | ||
1034 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1035 | ||
1036 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1037 | return 1; | |
1038 | } | |
1039 | ||
1040 | static PyObject *_wrap_wxNullPalette_get() { | |
1041 | PyObject * pyobj; | |
1042 | char ptemp[128]; | |
1043 | ||
1044 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1045 | pyobj = PyString_FromString(ptemp); | |
1046 | return pyobj; | |
1047 | } | |
1048 | ||
1049 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1050 | ||
1051 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1052 | return 1; | |
1053 | } | |
1054 | ||
1055 | static PyObject *_wrap_wxNullFont_get() { | |
1056 | PyObject * pyobj; | |
1057 | char ptemp[128]; | |
1058 | ||
1059 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1060 | pyobj = PyString_FromString(ptemp); | |
1061 | return pyobj; | |
1062 | } | |
1063 | ||
1064 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1065 | ||
1066 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1067 | return 1; | |
1068 | } | |
1069 | ||
1070 | static PyObject *_wrap_wxNullColour_get() { | |
1071 | PyObject * pyobj; | |
1072 | char ptemp[128]; | |
1073 | ||
1074 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1075 | pyobj = PyString_FromString(ptemp); | |
1076 | return pyobj; | |
1077 | } | |
1078 | ||
0569df0f RD |
1079 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1080 | ||
1081 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1082 | return 1; | |
1083 | } | |
1084 | ||
1085 | static PyObject *_wrap_wxTheFontList_get() { | |
1086 | PyObject * pyobj; | |
1087 | char ptemp[128]; | |
1088 | ||
1089 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1090 | pyobj = PyString_FromString(ptemp); | |
1091 | return pyobj; | |
1092 | } | |
1093 | ||
1094 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1095 | ||
1096 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1097 | return 1; | |
1098 | } | |
1099 | ||
1100 | static PyObject *_wrap_wxThePenList_get() { | |
1101 | PyObject * pyobj; | |
1102 | char ptemp[128]; | |
1103 | ||
1104 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1105 | pyobj = PyString_FromString(ptemp); | |
1106 | return pyobj; | |
1107 | } | |
1108 | ||
1109 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1110 | ||
1111 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1112 | return 1; | |
1113 | } | |
1114 | ||
1115 | static PyObject *_wrap_wxTheBrushList_get() { | |
1116 | PyObject * pyobj; | |
1117 | char ptemp[128]; | |
1118 | ||
1119 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p"); | |
1120 | pyobj = PyString_FromString(ptemp); | |
1121 | return pyobj; | |
1122 | } | |
1123 | ||
1124 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1125 | ||
1126 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1127 | return 1; | |
1128 | } | |
1129 | ||
1130 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1131 | PyObject * pyobj; | |
1132 | char ptemp[128]; | |
1133 | ||
1134 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1135 | pyobj = PyString_FromString(ptemp); | |
1136 | return pyobj; | |
1137 | } | |
1138 | ||
6999b0d8 RD |
1139 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1140 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1141 | PyObject * _resultobj; |
6999b0d8 RD |
1142 | wxBitmap * _result; |
1143 | wxString * _arg0; | |
1144 | long _arg1; | |
1145 | PyObject * _obj0 = 0; | |
1146 | char *_kwnames[] = { "name","type", NULL }; | |
1147 | char _ptemp[128]; | |
8ab979d7 RD |
1148 | |
1149 | self = self; | |
6999b0d8 | 1150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1151 | return NULL; |
6999b0d8 | 1152 | { |
185d7c3e RD |
1153 | #if PYTHON_API_VERSION >= 1009 |
1154 | char* tmpPtr; int tmpSize; | |
1155 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1156 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1157 | return NULL; | |
1158 | } | |
1159 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1160 | return NULL; | |
1161 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1162 | #else | |
6999b0d8 RD |
1163 | if (!PyString_Check(_obj0)) { |
1164 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1165 | return NULL; |
8ab979d7 | 1166 | } |
185d7c3e RD |
1167 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1168 | #endif | |
6999b0d8 | 1169 | } |
cf694132 RD |
1170 | { |
1171 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1172 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 RD |
1173 | |
1174 | wxPy_END_ALLOW_THREADS; | |
6999b0d8 RD |
1175 | } if (_result) { |
1176 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1177 | _resultobj = Py_BuildValue("s",_ptemp); | |
1178 | } else { | |
1179 | Py_INCREF(Py_None); | |
1180 | _resultobj = Py_None; | |
1181 | } | |
1182 | { | |
1183 | if (_obj0) | |
1184 | delete _arg0; | |
1185 | } | |
8ab979d7 RD |
1186 | return _resultobj; |
1187 | } | |
1188 | ||
6999b0d8 RD |
1189 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1190 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1191 | PyObject * _resultobj; |
1192 | wxBitmap * _arg0; | |
1d99702e | 1193 | PyObject * _argo0 = 0; |
6999b0d8 | 1194 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1195 | |
1196 | self = self; | |
6999b0d8 | 1197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1198 | return NULL; |
1d99702e RD |
1199 | if (_argo0) { |
1200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1203 | return NULL; |
1204 | } | |
1205 | } | |
cf694132 RD |
1206 | { |
1207 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1208 | delete_wxBitmap(_arg0); |
cf694132 RD |
1209 | |
1210 | wxPy_END_ALLOW_THREADS; | |
1211 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1212 | _resultobj = Py_None; |
1213 | return _resultobj; | |
1214 | } | |
1215 | ||
6999b0d8 RD |
1216 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1217 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1218 | PyObject * _resultobj; |
6999b0d8 | 1219 | wxPalette * _result; |
8ab979d7 | 1220 | wxBitmap * _arg0; |
1d99702e | 1221 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1222 | char *_kwnames[] = { "self", NULL }; |
1223 | char _ptemp[128]; | |
8ab979d7 RD |
1224 | |
1225 | self = self; | |
6999b0d8 | 1226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1227 | return NULL; |
1d99702e RD |
1228 | if (_argo0) { |
1229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1232 | return NULL; |
1233 | } | |
1234 | } | |
cf694132 RD |
1235 | { |
1236 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1237 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 RD |
1238 | |
1239 | wxPy_END_ALLOW_THREADS; | |
6999b0d8 RD |
1240 | } if (_result) { |
1241 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1242 | _resultobj = Py_BuildValue("s",_ptemp); | |
1243 | } else { | |
1244 | Py_INCREF(Py_None); | |
1245 | _resultobj = Py_None; | |
1246 | } | |
8ab979d7 RD |
1247 | return _resultobj; |
1248 | } | |
1249 | ||
6999b0d8 RD |
1250 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1251 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1252 | PyObject * _resultobj; |
1253 | wxMask * _result; | |
1254 | wxBitmap * _arg0; | |
1d99702e | 1255 | PyObject * _argo0 = 0; |
6999b0d8 | 1256 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1257 | char _ptemp[128]; |
1258 | ||
1259 | self = self; | |
6999b0d8 | 1260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1261 | return NULL; |
1d99702e RD |
1262 | if (_argo0) { |
1263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1266 | return NULL; |
1267 | } | |
1268 | } | |
cf694132 RD |
1269 | { |
1270 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1271 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 RD |
1272 | |
1273 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1274 | } if (_result) { |
1275 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1276 | _resultobj = Py_BuildValue("s",_ptemp); | |
1277 | } else { | |
1278 | Py_INCREF(Py_None); | |
1279 | _resultobj = Py_None; | |
1280 | } | |
8ab979d7 RD |
1281 | return _resultobj; |
1282 | } | |
1283 | ||
6999b0d8 RD |
1284 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1285 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1286 | PyObject * _resultobj; |
6999b0d8 RD |
1287 | bool _result; |
1288 | wxBitmap * _arg0; | |
1289 | wxString * _arg1; | |
1290 | long _arg2; | |
1291 | PyObject * _argo0 = 0; | |
1292 | PyObject * _obj1 = 0; | |
1293 | char *_kwnames[] = { "self","name","flags", NULL }; | |
8ab979d7 RD |
1294 | |
1295 | self = self; | |
6999b0d8 RD |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
1297 | return NULL; | |
1298 | if (_argo0) { | |
1299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1302 | return NULL; |
6999b0d8 RD |
1303 | } |
1304 | } | |
8ab979d7 | 1305 | { |
185d7c3e RD |
1306 | #if PYTHON_API_VERSION >= 1009 |
1307 | char* tmpPtr; int tmpSize; | |
1308 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1309 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1310 | return NULL; | |
1311 | } | |
1312 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1313 | return NULL; | |
1314 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1315 | #else | |
6999b0d8 | 1316 | if (!PyString_Check(_obj1)) { |
8ab979d7 RD |
1317 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1318 | return NULL; | |
1319 | } | |
185d7c3e RD |
1320 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1321 | #endif | |
8ab979d7 | 1322 | } |
cf694132 RD |
1323 | { |
1324 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1325 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 RD |
1326 | |
1327 | wxPy_END_ALLOW_THREADS; | |
6999b0d8 | 1328 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1329 | { |
6999b0d8 RD |
1330 | if (_obj1) |
1331 | delete _arg1; | |
8ab979d7 RD |
1332 | } |
1333 | return _resultobj; | |
1334 | } | |
1335 | ||
6999b0d8 RD |
1336 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1337 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1338 | PyObject * _resultobj; |
6999b0d8 RD |
1339 | bool _result; |
1340 | wxBitmap * _arg0; | |
1341 | wxString * _arg1; | |
1342 | int _arg2; | |
1343 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1d99702e | 1344 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1345 | PyObject * _obj1 = 0; |
1346 | PyObject * _argo3 = 0; | |
1347 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1348 | |
1349 | self = self; | |
6999b0d8 | 1350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1351 | return NULL; |
1d99702e RD |
1352 | if (_argo0) { |
1353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1356 | return NULL; |
1357 | } | |
1358 | } | |
cf694132 | 1359 | { |
185d7c3e RD |
1360 | #if PYTHON_API_VERSION >= 1009 |
1361 | char* tmpPtr; int tmpSize; | |
1362 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1363 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1364 | return NULL; | |
1365 | } | |
1366 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1367 | return NULL; | |
1368 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1369 | #else | |
6999b0d8 RD |
1370 | if (!PyString_Check(_obj1)) { |
1371 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1372 | return NULL; |
6999b0d8 | 1373 | } |
185d7c3e RD |
1374 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1375 | #endif | |
6999b0d8 RD |
1376 | } |
1377 | if (_argo3) { | |
1378 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1379 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1381 | return NULL; |
1382 | } | |
1383 | } | |
cf694132 RD |
1384 | { |
1385 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1386 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
1387 | |
1388 | wxPy_END_ALLOW_THREADS; | |
1389 | } _resultobj = Py_BuildValue("i",_result); | |
6999b0d8 RD |
1390 | { |
1391 | if (_obj1) | |
1392 | delete _arg1; | |
1393 | } | |
8ab979d7 RD |
1394 | return _resultobj; |
1395 | } | |
1396 | ||
6999b0d8 RD |
1397 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1398 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1399 | PyObject * _resultobj; |
6999b0d8 RD |
1400 | wxBitmap * _arg0; |
1401 | wxMask * _arg1; | |
1d99702e | 1402 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1403 | PyObject * _argo1 = 0; |
1404 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1405 | |
1406 | self = self; | |
6999b0d8 | 1407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1408 | return NULL; |
1d99702e RD |
1409 | if (_argo0) { |
1410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1413 | return NULL; |
1414 | } | |
1415 | } | |
6999b0d8 RD |
1416 | if (_argo1) { |
1417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1420 | return NULL; |
1421 | } | |
1422 | } | |
cf694132 RD |
1423 | { |
1424 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1425 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 RD |
1426 | |
1427 | wxPy_END_ALLOW_THREADS; | |
6999b0d8 RD |
1428 | } Py_INCREF(Py_None); |
1429 | _resultobj = Py_None; | |
8ab979d7 RD |
1430 | return _resultobj; |
1431 | } | |
1432 | ||
6999b0d8 RD |
1433 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1434 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1435 | PyObject * _resultobj; | |
1436 | wxBitmap * _arg0; | |
1437 | wxPalette * _arg1; | |
1d99702e | 1438 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1439 | PyObject * _argo1 = 0; |
1440 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1441 | |
1442 | self = self; | |
6999b0d8 | 1443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1444 | return NULL; |
1d99702e RD |
1445 | if (_argo0) { |
1446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1449 | return NULL; |
1450 | } | |
1451 | } | |
6999b0d8 RD |
1452 | if (_argo1) { |
1453 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1454 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1456 | return NULL; |
6999b0d8 | 1457 | } |
8ab979d7 | 1458 | } |
cf694132 RD |
1459 | { |
1460 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1461 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 RD |
1462 | |
1463 | wxPy_END_ALLOW_THREADS; | |
6999b0d8 RD |
1464 | } Py_INCREF(Py_None); |
1465 | _resultobj = Py_None; | |
8ab979d7 RD |
1466 | return _resultobj; |
1467 | } | |
1468 | ||
9b3d3bc4 RD |
1469 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1470 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1471 | PyObject * _resultobj; |
9b3d3bc4 | 1472 | long _result; |
6999b0d8 | 1473 | wxBitmap * _arg0; |
1d99702e | 1474 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1475 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1476 | |
1477 | self = self; | |
9b3d3bc4 | 1478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1479 | return NULL; |
1d99702e RD |
1480 | if (_argo0) { |
1481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1484 | return NULL; |
1485 | } | |
1486 | } | |
cf694132 RD |
1487 | { |
1488 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1489 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 RD |
1490 | |
1491 | wxPy_END_ALLOW_THREADS; | |
9b3d3bc4 | 1492 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1493 | return _resultobj; |
1494 | } | |
1495 | ||
9b3d3bc4 RD |
1496 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1497 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1498 | PyObject * _resultobj; |
9b3d3bc4 | 1499 | wxBitmap * _arg0; |
6999b0d8 | 1500 | long _arg1; |
9b3d3bc4 RD |
1501 | PyObject * _argo0 = 0; |
1502 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1503 | |
1504 | self = self; | |
9b3d3bc4 | 1505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1506 | return NULL; |
9b3d3bc4 RD |
1507 | if (_argo0) { |
1508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1511 | return NULL; |
9b3d3bc4 | 1512 | } |
8ab979d7 | 1513 | } |
9b3d3bc4 RD |
1514 | { |
1515 | wxPy_BEGIN_ALLOW_THREADS; | |
1516 | wxBitmap_SetHandle(_arg0,_arg1); | |
1517 | ||
1518 | wxPy_END_ALLOW_THREADS; | |
1519 | } Py_INCREF(Py_None); | |
1520 | _resultobj = Py_None; | |
1521 | return _resultobj; | |
6999b0d8 | 1522 | } |
9b3d3bc4 RD |
1523 | |
1524 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1525 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1526 | PyObject * _resultobj; | |
1527 | bool _result; | |
1528 | wxBitmap * _arg0; | |
1529 | PyObject * _argo0 = 0; | |
1530 | char *_kwnames[] = { "self", NULL }; | |
1531 | ||
1532 | self = self; | |
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1534 | return NULL; | |
1535 | if (_argo0) { | |
1536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1539 | return NULL; | |
1540 | } | |
1541 | } | |
cf694132 RD |
1542 | { |
1543 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1544 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 RD |
1545 | |
1546 | wxPy_END_ALLOW_THREADS; | |
9b3d3bc4 RD |
1547 | } _resultobj = Py_BuildValue("i",_result); |
1548 | return _resultobj; | |
1549 | } | |
1550 | ||
1551 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1552 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1553 | PyObject * _resultobj; | |
1554 | int _result; | |
1555 | wxBitmap * _arg0; | |
1556 | PyObject * _argo0 = 0; | |
1557 | char *_kwnames[] = { "self", NULL }; | |
1558 | ||
1559 | self = self; | |
1560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1561 | return NULL; | |
1562 | if (_argo0) { | |
1563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1566 | return NULL; | |
1567 | } | |
6999b0d8 RD |
1568 | } |
1569 | { | |
9b3d3bc4 RD |
1570 | wxPy_BEGIN_ALLOW_THREADS; |
1571 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1572 | ||
1573 | wxPy_END_ALLOW_THREADS; | |
1574 | } _resultobj = Py_BuildValue("i",_result); | |
1575 | return _resultobj; | |
6999b0d8 | 1576 | } |
9b3d3bc4 RD |
1577 | |
1578 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1579 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1580 | PyObject * _resultobj; | |
1581 | int _result; | |
1582 | wxBitmap * _arg0; | |
1583 | PyObject * _argo0 = 0; | |
1584 | char *_kwnames[] = { "self", NULL }; | |
1585 | ||
1586 | self = self; | |
1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1588 | return NULL; | |
1589 | if (_argo0) { | |
1590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1593 | return NULL; | |
1594 | } | |
1595 | } | |
1596 | { | |
1597 | wxPy_BEGIN_ALLOW_THREADS; | |
1598 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1599 | ||
1600 | wxPy_END_ALLOW_THREADS; | |
1601 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1602 | return _resultobj; |
1603 | } | |
1604 | ||
9b3d3bc4 RD |
1605 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1606 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1607 | PyObject * _resultobj; |
9b3d3bc4 RD |
1608 | int _result; |
1609 | wxBitmap * _arg0; | |
1d99702e | 1610 | PyObject * _argo0 = 0; |
6999b0d8 | 1611 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1612 | |
1613 | self = self; | |
9b3d3bc4 | 1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1615 | return NULL; |
1d99702e RD |
1616 | if (_argo0) { |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1620 | return NULL; |
1621 | } | |
1622 | } | |
cf694132 RD |
1623 | { |
1624 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
1625 | _result = (int )wxBitmap_GetDepth(_arg0); |
1626 | ||
1627 | wxPy_END_ALLOW_THREADS; | |
1628 | } _resultobj = Py_BuildValue("i",_result); | |
1629 | return _resultobj; | |
1630 | } | |
1631 | ||
1632 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1633 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1634 | PyObject * _resultobj; | |
1635 | wxBitmap * _arg0; | |
1636 | int _arg1; | |
1637 | PyObject * _argo0 = 0; | |
1638 | char *_kwnames[] = { "self","w", NULL }; | |
1639 | ||
1640 | self = self; | |
1641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1642 | return NULL; | |
1643 | if (_argo0) { | |
1644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1647 | return NULL; | |
1648 | } | |
1649 | } | |
1650 | { | |
1651 | wxPy_BEGIN_ALLOW_THREADS; | |
1652 | wxBitmap_SetWidth(_arg0,_arg1); | |
cf694132 RD |
1653 | |
1654 | wxPy_END_ALLOW_THREADS; | |
1655 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1656 | _resultobj = Py_None; |
1657 | return _resultobj; | |
1658 | } | |
1659 | ||
9b3d3bc4 RD |
1660 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1661 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1662 | PyObject * _resultobj; |
9b3d3bc4 RD |
1663 | wxBitmap * _arg0; |
1664 | int _arg1; | |
1d99702e | 1665 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1666 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
1667 | |
1668 | self = self; | |
9b3d3bc4 | 1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1670 | return NULL; |
1d99702e RD |
1671 | if (_argo0) { |
1672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1675 | return NULL; |
1676 | } | |
1677 | } | |
6999b0d8 | 1678 | { |
9b3d3bc4 RD |
1679 | wxPy_BEGIN_ALLOW_THREADS; |
1680 | wxBitmap_SetHeight(_arg0,_arg1); | |
1681 | ||
1682 | wxPy_END_ALLOW_THREADS; | |
1683 | } Py_INCREF(Py_None); | |
1684 | _resultobj = Py_None; | |
1685 | return _resultobj; | |
1686 | } | |
1687 | ||
1688 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1689 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1690 | PyObject * _resultobj; | |
1691 | wxBitmap * _arg0; | |
1692 | int _arg1; | |
1693 | PyObject * _argo0 = 0; | |
1694 | char *_kwnames[] = { "self","d", NULL }; | |
1695 | ||
1696 | self = self; | |
1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
1698 | return NULL; | |
1699 | if (_argo0) { | |
1700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 1703 | return NULL; |
9b3d3bc4 | 1704 | } |
6999b0d8 | 1705 | } |
cf694132 RD |
1706 | { |
1707 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1708 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 RD |
1709 | |
1710 | wxPy_END_ALLOW_THREADS; | |
9b3d3bc4 RD |
1711 | } Py_INCREF(Py_None); |
1712 | _resultobj = Py_None; | |
1713 | return _resultobj; | |
1714 | } | |
1715 | ||
1716 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
1717 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1718 | PyObject * _resultobj; | |
1719 | wxBitmap * _arg0; | |
1720 | wxSize * _arg1; | |
1721 | PyObject * _argo0 = 0; | |
1722 | wxSize temp; | |
1723 | PyObject * _obj1 = 0; | |
1724 | char *_kwnames[] = { "self","size", NULL }; | |
1725 | ||
1726 | self = self; | |
1727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
1728 | return NULL; | |
1729 | if (_argo0) { | |
1730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
1733 | return NULL; | |
1734 | } | |
1735 | } | |
6999b0d8 | 1736 | { |
9b3d3bc4 RD |
1737 | _arg1 = &temp; |
1738 | if (! wxSize_helper(_obj1, &_arg1)) | |
1739 | return NULL; | |
6999b0d8 | 1740 | } |
9b3d3bc4 RD |
1741 | { |
1742 | wxPy_BEGIN_ALLOW_THREADS; | |
1743 | wxBitmap_SetSize(_arg0,*_arg1); | |
1744 | ||
1745 | wxPy_END_ALLOW_THREADS; | |
1746 | } Py_INCREF(Py_None); | |
1747 | _resultobj = Py_None; | |
8ab979d7 RD |
1748 | return _resultobj; |
1749 | } | |
1750 | ||
f6bcfd97 BP |
1751 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
1752 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1753 | PyObject * _resultobj; | |
1754 | wxBitmap * _result; | |
1755 | wxBitmap * _arg0; | |
1756 | wxRect * _arg1; | |
1757 | PyObject * _argo0 = 0; | |
1758 | wxRect temp; | |
1759 | PyObject * _obj1 = 0; | |
1760 | char *_kwnames[] = { "self","rect", NULL }; | |
1761 | char _ptemp[128]; | |
1762 | ||
1763 | self = self; | |
1764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1765 | return NULL; | |
1766 | if (_argo0) { | |
1767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1770 | return NULL; | |
1771 | } | |
1772 | } | |
1773 | { | |
1774 | _arg1 = &temp; | |
1775 | if (! wxRect_helper(_obj1, &_arg1)) | |
1776 | return NULL; | |
1777 | } | |
1778 | { | |
1779 | wxPy_BEGIN_ALLOW_THREADS; | |
1780 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
1781 | ||
1782 | wxPy_END_ALLOW_THREADS; | |
1783 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1784 | _resultobj = Py_BuildValue("s",_ptemp); | |
1785 | return _resultobj; | |
1786 | } | |
1787 | ||
1788 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
1789 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1790 | PyObject * _resultobj; | |
1791 | bool _result; | |
1792 | wxBitmap * _arg0; | |
1793 | wxIcon * _arg1; | |
1794 | PyObject * _argo0 = 0; | |
1795 | PyObject * _argo1 = 0; | |
1796 | char *_kwnames[] = { "self","icon", NULL }; | |
1797 | ||
1798 | self = self; | |
1799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
1800 | return NULL; | |
1801 | if (_argo0) { | |
1802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
1805 | return NULL; | |
1806 | } | |
1807 | } | |
1808 | if (_argo1) { | |
1809 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1810 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
1811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
1812 | return NULL; | |
1813 | } | |
1814 | } | |
1815 | { | |
1816 | wxPy_BEGIN_ALLOW_THREADS; | |
1817 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); | |
1818 | ||
1819 | wxPy_END_ALLOW_THREADS; | |
1820 | } _resultobj = Py_BuildValue("i",_result); | |
1821 | return _resultobj; | |
1822 | } | |
1823 | ||
1824 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
1825 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1826 | PyObject * _resultobj; | |
1827 | bool _result; | |
1828 | wxBitmap * _arg0; | |
1829 | wxCursor * _arg1; | |
1830 | PyObject * _argo0 = 0; | |
1831 | PyObject * _argo1 = 0; | |
1832 | char *_kwnames[] = { "self","cursor", NULL }; | |
1833 | ||
1834 | self = self; | |
1835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
1836 | return NULL; | |
1837 | if (_argo0) { | |
1838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
1841 | return NULL; | |
1842 | } | |
1843 | } | |
1844 | if (_argo1) { | |
1845 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1846 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
1847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
1848 | return NULL; | |
1849 | } | |
1850 | } | |
1851 | { | |
1852 | wxPy_BEGIN_ALLOW_THREADS; | |
1853 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); | |
1854 | ||
1855 | wxPy_END_ALLOW_THREADS; | |
1856 | } _resultobj = Py_BuildValue("i",_result); | |
1857 | return _resultobj; | |
1858 | } | |
1859 | ||
1860 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
1861 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1862 | PyObject * _resultobj; | |
1863 | int _result; | |
1864 | wxBitmap * _arg0; | |
1865 | PyObject * _argo0 = 0; | |
1866 | char *_kwnames[] = { "self", NULL }; | |
1867 | ||
1868 | self = self; | |
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
1870 | return NULL; | |
1871 | if (_argo0) { | |
1872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
1875 | return NULL; | |
1876 | } | |
1877 | } | |
1878 | { | |
1879 | wxPy_BEGIN_ALLOW_THREADS; | |
1880 | _result = (int )wxBitmap_GetQuality(_arg0); | |
1881 | ||
1882 | wxPy_END_ALLOW_THREADS; | |
1883 | } _resultobj = Py_BuildValue("i",_result); | |
1884 | return _resultobj; | |
1885 | } | |
1886 | ||
1887 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
1888 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1889 | PyObject * _resultobj; | |
1890 | wxBitmap * _arg0; | |
1891 | int _arg1; | |
1892 | PyObject * _argo0 = 0; | |
1893 | char *_kwnames[] = { "self","q", NULL }; | |
1894 | ||
1895 | self = self; | |
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
1897 | return NULL; | |
1898 | if (_argo0) { | |
1899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
1902 | return NULL; | |
1903 | } | |
1904 | } | |
1905 | { | |
1906 | wxPy_BEGIN_ALLOW_THREADS; | |
1907 | wxBitmap_SetQuality(_arg0,_arg1); | |
1908 | ||
1909 | wxPy_END_ALLOW_THREADS; | |
1910 | } Py_INCREF(Py_None); | |
1911 | _resultobj = Py_None; | |
1912 | return _resultobj; | |
1913 | } | |
1914 | ||
9b3d3bc4 RD |
1915 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
1916 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1917 | PyObject * _resultobj; | |
1918 | wxMask * _result; | |
1919 | wxBitmap * _arg0; | |
1920 | PyObject * _argo0 = 0; | |
1921 | char *_kwnames[] = { "bitmap", NULL }; | |
1922 | char _ptemp[128]; | |
1923 | ||
1924 | self = self; | |
1925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
1926 | return NULL; | |
1927 | if (_argo0) { | |
1928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
1931 | return NULL; | |
1932 | } | |
1933 | } | |
1934 | { | |
1935 | wxPy_BEGIN_ALLOW_THREADS; | |
1936 | _result = (wxMask *)new_wxMask(*_arg0); | |
1937 | ||
1938 | wxPy_END_ALLOW_THREADS; | |
1939 | } if (_result) { | |
1940 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1941 | _resultobj = Py_BuildValue("s",_ptemp); | |
1942 | } else { | |
1943 | Py_INCREF(Py_None); | |
1944 | _resultobj = Py_None; | |
1945 | } | |
1946 | return _resultobj; | |
8ab979d7 RD |
1947 | } |
1948 | ||
9b3d3bc4 RD |
1949 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1950 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1951 | PyObject * _resultobj; |
9b3d3bc4 | 1952 | wxIcon * _result; |
8ab979d7 RD |
1953 | wxString * _arg0; |
1954 | long _arg1; | |
9b3d3bc4 RD |
1955 | int _arg2 = (int ) -1; |
1956 | int _arg3 = (int ) -1; | |
8ab979d7 | 1957 | PyObject * _obj0 = 0; |
9b3d3bc4 | 1958 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
1959 | char _ptemp[128]; |
1960 | ||
1961 | self = self; | |
9b3d3bc4 | 1962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
1963 | return NULL; |
1964 | { | |
185d7c3e RD |
1965 | #if PYTHON_API_VERSION >= 1009 |
1966 | char* tmpPtr; int tmpSize; | |
1967 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1968 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1969 | return NULL; | |
1970 | } | |
1971 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1972 | return NULL; | |
1973 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1974 | #else | |
8ab979d7 RD |
1975 | if (!PyString_Check(_obj0)) { |
1976 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1977 | return NULL; | |
1978 | } | |
185d7c3e RD |
1979 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1980 | #endif | |
8ab979d7 | 1981 | } |
cf694132 RD |
1982 | { |
1983 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1984 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
1985 | |
1986 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 1987 | } if (_result) { |
9b3d3bc4 | 1988 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
1989 | _resultobj = Py_BuildValue("s",_ptemp); |
1990 | } else { | |
1991 | Py_INCREF(Py_None); | |
1992 | _resultobj = Py_None; | |
1993 | } | |
8ab979d7 RD |
1994 | { |
1995 | if (_obj0) | |
1996 | delete _arg0; | |
1997 | } | |
1998 | return _resultobj; | |
1999 | } | |
2000 | ||
9b3d3bc4 RD |
2001 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2002 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2003 | PyObject * _resultobj; |
9b3d3bc4 | 2004 | wxIcon * _arg0; |
1d99702e | 2005 | PyObject * _argo0 = 0; |
1afc06c2 | 2006 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2007 | |
2008 | self = self; | |
9b3d3bc4 | 2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2010 | return NULL; |
1d99702e RD |
2011 | if (_argo0) { |
2012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2015 | return NULL; |
2016 | } | |
2017 | } | |
cf694132 RD |
2018 | { |
2019 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
2020 | delete_wxIcon(_arg0); |
2021 | ||
2022 | wxPy_END_ALLOW_THREADS; | |
2023 | } Py_INCREF(Py_None); | |
2024 | _resultobj = Py_None; | |
2025 | return _resultobj; | |
2026 | } | |
2027 | ||
2028 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2029 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2030 | PyObject * _resultobj; | |
2031 | bool _result; | |
2032 | wxIcon * _arg0; | |
2033 | wxString * _arg1; | |
2034 | long _arg2; | |
2035 | PyObject * _argo0 = 0; | |
2036 | PyObject * _obj1 = 0; | |
2037 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2038 | ||
2039 | self = self; | |
2040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2041 | return NULL; | |
2042 | if (_argo0) { | |
2043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2046 | return NULL; | |
2047 | } | |
2048 | } | |
2049 | { | |
185d7c3e RD |
2050 | #if PYTHON_API_VERSION >= 1009 |
2051 | char* tmpPtr; int tmpSize; | |
2052 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2053 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2054 | return NULL; | |
2055 | } | |
2056 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2057 | return NULL; | |
2058 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2059 | #else | |
9b3d3bc4 RD |
2060 | if (!PyString_Check(_obj1)) { |
2061 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2062 | return NULL; | |
2063 | } | |
185d7c3e RD |
2064 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2065 | #endif | |
9b3d3bc4 RD |
2066 | } |
2067 | { | |
2068 | wxPy_BEGIN_ALLOW_THREADS; | |
2069 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
2070 | ||
2071 | wxPy_END_ALLOW_THREADS; | |
2072 | } _resultobj = Py_BuildValue("i",_result); | |
2073 | { | |
2074 | if (_obj1) | |
2075 | delete _arg1; | |
2076 | } | |
2077 | return _resultobj; | |
2078 | } | |
2079 | ||
2080 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2081 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2082 | PyObject * _resultobj; | |
2083 | long _result; | |
2084 | wxIcon * _arg0; | |
2085 | PyObject * _argo0 = 0; | |
2086 | char *_kwnames[] = { "self", NULL }; | |
2087 | ||
2088 | self = self; | |
2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2090 | return NULL; | |
2091 | if (_argo0) { | |
2092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2095 | return NULL; | |
2096 | } | |
2097 | } | |
2098 | { | |
2099 | wxPy_BEGIN_ALLOW_THREADS; | |
2100 | _result = (long )wxIcon_GetHandle(_arg0); | |
2101 | ||
2102 | wxPy_END_ALLOW_THREADS; | |
2103 | } _resultobj = Py_BuildValue("l",_result); | |
2104 | return _resultobj; | |
2105 | } | |
2106 | ||
2107 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2108 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2109 | PyObject * _resultobj; | |
2110 | wxIcon * _arg0; | |
2111 | long _arg1; | |
2112 | PyObject * _argo0 = 0; | |
2113 | char *_kwnames[] = { "self","handle", NULL }; | |
2114 | ||
2115 | self = self; | |
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2117 | return NULL; | |
2118 | if (_argo0) { | |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
2125 | { | |
2126 | wxPy_BEGIN_ALLOW_THREADS; | |
2127 | wxIcon_SetHandle(_arg0,_arg1); | |
2128 | ||
2129 | wxPy_END_ALLOW_THREADS; | |
2130 | } Py_INCREF(Py_None); | |
2131 | _resultobj = Py_None; | |
2132 | return _resultobj; | |
2133 | } | |
2134 | ||
2135 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2136 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject * _resultobj; | |
2138 | bool _result; | |
2139 | wxIcon * _arg0; | |
2140 | PyObject * _argo0 = 0; | |
2141 | char *_kwnames[] = { "self", NULL }; | |
2142 | ||
2143 | self = self; | |
2144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2145 | return NULL; | |
2146 | if (_argo0) { | |
2147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2150 | return NULL; | |
2151 | } | |
2152 | } | |
2153 | { | |
2154 | wxPy_BEGIN_ALLOW_THREADS; | |
2155 | _result = (bool )wxIcon_Ok(_arg0); | |
2156 | ||
2157 | wxPy_END_ALLOW_THREADS; | |
2158 | } _resultobj = Py_BuildValue("i",_result); | |
2159 | return _resultobj; | |
2160 | } | |
2161 | ||
2162 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2163 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject * _resultobj; | |
2165 | int _result; | |
2166 | wxIcon * _arg0; | |
2167 | PyObject * _argo0 = 0; | |
2168 | char *_kwnames[] = { "self", NULL }; | |
2169 | ||
2170 | self = self; | |
2171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2172 | return NULL; | |
2173 | if (_argo0) { | |
2174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2177 | return NULL; | |
2178 | } | |
2179 | } | |
2180 | { | |
2181 | wxPy_BEGIN_ALLOW_THREADS; | |
2182 | _result = (int )wxIcon_GetWidth(_arg0); | |
2183 | ||
2184 | wxPy_END_ALLOW_THREADS; | |
2185 | } _resultobj = Py_BuildValue("i",_result); | |
2186 | return _resultobj; | |
2187 | } | |
2188 | ||
2189 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2190 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2191 | PyObject * _resultobj; | |
2192 | int _result; | |
2193 | wxIcon * _arg0; | |
2194 | PyObject * _argo0 = 0; | |
2195 | char *_kwnames[] = { "self", NULL }; | |
2196 | ||
2197 | self = self; | |
2198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2199 | return NULL; | |
2200 | if (_argo0) { | |
2201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2204 | return NULL; | |
2205 | } | |
2206 | } | |
2207 | { | |
2208 | wxPy_BEGIN_ALLOW_THREADS; | |
2209 | _result = (int )wxIcon_GetHeight(_arg0); | |
2210 | ||
2211 | wxPy_END_ALLOW_THREADS; | |
2212 | } _resultobj = Py_BuildValue("i",_result); | |
2213 | return _resultobj; | |
2214 | } | |
2215 | ||
2216 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2217 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2218 | PyObject * _resultobj; | |
2219 | int _result; | |
2220 | wxIcon * _arg0; | |
2221 | PyObject * _argo0 = 0; | |
2222 | char *_kwnames[] = { "self", NULL }; | |
2223 | ||
2224 | self = self; | |
2225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2226 | return NULL; | |
2227 | if (_argo0) { | |
2228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2231 | return NULL; | |
2232 | } | |
2233 | } | |
2234 | { | |
2235 | wxPy_BEGIN_ALLOW_THREADS; | |
2236 | _result = (int )wxIcon_GetDepth(_arg0); | |
2237 | ||
2238 | wxPy_END_ALLOW_THREADS; | |
2239 | } _resultobj = Py_BuildValue("i",_result); | |
2240 | return _resultobj; | |
2241 | } | |
2242 | ||
2243 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2244 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject * _resultobj; | |
2246 | wxIcon * _arg0; | |
2247 | int _arg1; | |
2248 | PyObject * _argo0 = 0; | |
2249 | char *_kwnames[] = { "self","w", NULL }; | |
2250 | ||
2251 | self = self; | |
2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2253 | return NULL; | |
2254 | if (_argo0) { | |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2258 | return NULL; | |
2259 | } | |
2260 | } | |
2261 | { | |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
2263 | wxIcon_SetWidth(_arg0,_arg1); | |
2264 | ||
2265 | wxPy_END_ALLOW_THREADS; | |
2266 | } Py_INCREF(Py_None); | |
2267 | _resultobj = Py_None; | |
2268 | return _resultobj; | |
2269 | } | |
2270 | ||
2271 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2272 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2273 | PyObject * _resultobj; | |
2274 | wxIcon * _arg0; | |
2275 | int _arg1; | |
2276 | PyObject * _argo0 = 0; | |
2277 | char *_kwnames[] = { "self","h", NULL }; | |
2278 | ||
2279 | self = self; | |
2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2281 | return NULL; | |
2282 | if (_argo0) { | |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
2289 | { | |
2290 | wxPy_BEGIN_ALLOW_THREADS; | |
2291 | wxIcon_SetHeight(_arg0,_arg1); | |
2292 | ||
2293 | wxPy_END_ALLOW_THREADS; | |
2294 | } Py_INCREF(Py_None); | |
2295 | _resultobj = Py_None; | |
2296 | return _resultobj; | |
2297 | } | |
2298 | ||
2299 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2300 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject * _resultobj; | |
2302 | wxIcon * _arg0; | |
2303 | int _arg1; | |
2304 | PyObject * _argo0 = 0; | |
2305 | char *_kwnames[] = { "self","d", NULL }; | |
2306 | ||
2307 | self = self; | |
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2309 | return NULL; | |
2310 | if (_argo0) { | |
2311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2314 | return NULL; | |
2315 | } | |
2316 | } | |
2317 | { | |
2318 | wxPy_BEGIN_ALLOW_THREADS; | |
2319 | wxIcon_SetDepth(_arg0,_arg1); | |
2320 | ||
2321 | wxPy_END_ALLOW_THREADS; | |
2322 | } Py_INCREF(Py_None); | |
2323 | _resultobj = Py_None; | |
2324 | return _resultobj; | |
2325 | } | |
2326 | ||
2327 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2328 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2329 | PyObject * _resultobj; | |
2330 | wxIcon * _arg0; | |
2331 | wxSize * _arg1; | |
2332 | PyObject * _argo0 = 0; | |
2333 | wxSize temp; | |
2334 | PyObject * _obj1 = 0; | |
2335 | char *_kwnames[] = { "self","size", NULL }; | |
2336 | ||
2337 | self = self; | |
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2339 | return NULL; | |
2340 | if (_argo0) { | |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2344 | return NULL; | |
2345 | } | |
2346 | } | |
2347 | { | |
2348 | _arg1 = &temp; | |
2349 | if (! wxSize_helper(_obj1, &_arg1)) | |
2350 | return NULL; | |
2351 | } | |
2352 | { | |
2353 | wxPy_BEGIN_ALLOW_THREADS; | |
2354 | wxIcon_SetSize(_arg0,*_arg1); | |
2355 | ||
2356 | wxPy_END_ALLOW_THREADS; | |
2357 | } Py_INCREF(Py_None); | |
2358 | _resultobj = Py_None; | |
2359 | return _resultobj; | |
2360 | } | |
2361 | ||
2362 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2363 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2364 | PyObject * _resultobj; | |
2365 | wxCursor * _result; | |
2366 | wxString * _arg0; | |
2367 | long _arg1; | |
2368 | int _arg2 = (int ) 0; | |
2369 | int _arg3 = (int ) 0; | |
2370 | PyObject * _obj0 = 0; | |
2371 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2372 | char _ptemp[128]; | |
2373 | ||
2374 | self = self; | |
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2376 | return NULL; | |
2377 | { | |
185d7c3e RD |
2378 | #if PYTHON_API_VERSION >= 1009 |
2379 | char* tmpPtr; int tmpSize; | |
2380 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2381 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2382 | return NULL; | |
2383 | } | |
2384 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2385 | return NULL; | |
2386 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2387 | #else | |
9b3d3bc4 RD |
2388 | if (!PyString_Check(_obj0)) { |
2389 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2390 | return NULL; | |
2391 | } | |
185d7c3e RD |
2392 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2393 | #endif | |
9b3d3bc4 RD |
2394 | } |
2395 | { | |
2396 | wxPy_BEGIN_ALLOW_THREADS; | |
2397 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); | |
2398 | ||
2399 | wxPy_END_ALLOW_THREADS; | |
2400 | } if (_result) { | |
2401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2402 | _resultobj = Py_BuildValue("s",_ptemp); | |
2403 | } else { | |
2404 | Py_INCREF(Py_None); | |
2405 | _resultobj = Py_None; | |
2406 | } | |
2407 | { | |
2408 | if (_obj0) | |
2409 | delete _arg0; | |
2410 | } | |
2411 | return _resultobj; | |
2412 | } | |
2413 | ||
2414 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2415 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2416 | PyObject * _resultobj; | |
2417 | wxCursor * _arg0; | |
2418 | PyObject * _argo0 = 0; | |
2419 | char *_kwnames[] = { "self", NULL }; | |
2420 | ||
2421 | self = self; | |
2422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2423 | return NULL; | |
2424 | if (_argo0) { | |
2425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2428 | return NULL; | |
2429 | } | |
2430 | } | |
2431 | { | |
2432 | wxPy_BEGIN_ALLOW_THREADS; | |
2433 | delete_wxCursor(_arg0); | |
2434 | ||
2435 | wxPy_END_ALLOW_THREADS; | |
2436 | } Py_INCREF(Py_None); | |
2437 | _resultobj = Py_None; | |
2438 | return _resultobj; | |
2439 | } | |
2440 | ||
2441 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2442 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2443 | PyObject * _resultobj; | |
2444 | long _result; | |
2445 | wxCursor * _arg0; | |
2446 | PyObject * _argo0 = 0; | |
2447 | char *_kwnames[] = { "self", NULL }; | |
2448 | ||
2449 | self = self; | |
2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2451 | return NULL; | |
2452 | if (_argo0) { | |
2453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2456 | return NULL; | |
2457 | } | |
2458 | } | |
2459 | { | |
2460 | wxPy_BEGIN_ALLOW_THREADS; | |
2461 | _result = (long )wxCursor_GetHandle(_arg0); | |
2462 | ||
2463 | wxPy_END_ALLOW_THREADS; | |
2464 | } _resultobj = Py_BuildValue("l",_result); | |
2465 | return _resultobj; | |
2466 | } | |
2467 | ||
2468 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2469 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2470 | PyObject * _resultobj; | |
2471 | wxCursor * _arg0; | |
2472 | long _arg1; | |
2473 | PyObject * _argo0 = 0; | |
2474 | char *_kwnames[] = { "self","handle", NULL }; | |
2475 | ||
2476 | self = self; | |
2477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2478 | return NULL; | |
2479 | if (_argo0) { | |
2480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
2483 | return NULL; | |
2484 | } | |
2485 | } | |
2486 | { | |
2487 | wxPy_BEGIN_ALLOW_THREADS; | |
2488 | wxCursor_SetHandle(_arg0,_arg1); | |
2489 | ||
2490 | wxPy_END_ALLOW_THREADS; | |
2491 | } Py_INCREF(Py_None); | |
2492 | _resultobj = Py_None; | |
2493 | return _resultobj; | |
2494 | } | |
2495 | ||
2496 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2497 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2498 | PyObject * _resultobj; | |
2499 | bool _result; | |
2500 | wxCursor * _arg0; | |
2501 | PyObject * _argo0 = 0; | |
2502 | char *_kwnames[] = { "self", NULL }; | |
2503 | ||
2504 | self = self; | |
2505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2506 | return NULL; | |
2507 | if (_argo0) { | |
2508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2511 | return NULL; | |
2512 | } | |
2513 | } | |
2514 | { | |
2515 | wxPy_BEGIN_ALLOW_THREADS; | |
2516 | _result = (bool )wxCursor_Ok(_arg0); | |
2517 | ||
2518 | wxPy_END_ALLOW_THREADS; | |
2519 | } _resultobj = Py_BuildValue("i",_result); | |
2520 | return _resultobj; | |
2521 | } | |
2522 | ||
2523 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2524 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject * _resultobj; | |
2526 | int _result; | |
2527 | wxCursor * _arg0; | |
2528 | PyObject * _argo0 = 0; | |
2529 | char *_kwnames[] = { "self", NULL }; | |
2530 | ||
2531 | self = self; | |
2532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
2533 | return NULL; | |
2534 | if (_argo0) { | |
2535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
2538 | return NULL; | |
2539 | } | |
2540 | } | |
2541 | { | |
2542 | wxPy_BEGIN_ALLOW_THREADS; | |
2543 | _result = (int )wxCursor_GetWidth(_arg0); | |
2544 | ||
2545 | wxPy_END_ALLOW_THREADS; | |
2546 | } _resultobj = Py_BuildValue("i",_result); | |
2547 | return _resultobj; | |
2548 | } | |
2549 | ||
2550 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2551 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject * _resultobj; | |
2553 | int _result; | |
2554 | wxCursor * _arg0; | |
2555 | PyObject * _argo0 = 0; | |
2556 | char *_kwnames[] = { "self", NULL }; | |
2557 | ||
2558 | self = self; | |
2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
2560 | return NULL; | |
2561 | if (_argo0) { | |
2562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
2565 | return NULL; | |
2566 | } | |
2567 | } | |
2568 | { | |
2569 | wxPy_BEGIN_ALLOW_THREADS; | |
2570 | _result = (int )wxCursor_GetHeight(_arg0); | |
2571 | ||
2572 | wxPy_END_ALLOW_THREADS; | |
2573 | } _resultobj = Py_BuildValue("i",_result); | |
2574 | return _resultobj; | |
2575 | } | |
2576 | ||
2577 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2578 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2579 | PyObject * _resultobj; | |
2580 | int _result; | |
2581 | wxCursor * _arg0; | |
2582 | PyObject * _argo0 = 0; | |
2583 | char *_kwnames[] = { "self", NULL }; | |
2584 | ||
2585 | self = self; | |
2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
2587 | return NULL; | |
2588 | if (_argo0) { | |
2589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
2592 | return NULL; | |
2593 | } | |
2594 | } | |
2595 | { | |
2596 | wxPy_BEGIN_ALLOW_THREADS; | |
2597 | _result = (int )wxCursor_GetDepth(_arg0); | |
2598 | ||
2599 | wxPy_END_ALLOW_THREADS; | |
2600 | } _resultobj = Py_BuildValue("i",_result); | |
2601 | return _resultobj; | |
2602 | } | |
2603 | ||
2604 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2605 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject * _resultobj; | |
2607 | wxCursor * _arg0; | |
2608 | int _arg1; | |
2609 | PyObject * _argo0 = 0; | |
2610 | char *_kwnames[] = { "self","w", NULL }; | |
2611 | ||
2612 | self = self; | |
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2614 | return NULL; | |
2615 | if (_argo0) { | |
2616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
2619 | return NULL; | |
2620 | } | |
2621 | } | |
2622 | { | |
2623 | wxPy_BEGIN_ALLOW_THREADS; | |
2624 | wxCursor_SetWidth(_arg0,_arg1); | |
2625 | ||
2626 | wxPy_END_ALLOW_THREADS; | |
2627 | } Py_INCREF(Py_None); | |
2628 | _resultobj = Py_None; | |
2629 | return _resultobj; | |
2630 | } | |
2631 | ||
2632 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2633 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2634 | PyObject * _resultobj; | |
2635 | wxCursor * _arg0; | |
2636 | int _arg1; | |
2637 | PyObject * _argo0 = 0; | |
2638 | char *_kwnames[] = { "self","h", NULL }; | |
2639 | ||
2640 | self = self; | |
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2642 | return NULL; | |
2643 | if (_argo0) { | |
2644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
2647 | return NULL; | |
2648 | } | |
2649 | } | |
2650 | { | |
2651 | wxPy_BEGIN_ALLOW_THREADS; | |
2652 | wxCursor_SetHeight(_arg0,_arg1); | |
2653 | ||
2654 | wxPy_END_ALLOW_THREADS; | |
2655 | } Py_INCREF(Py_None); | |
2656 | _resultobj = Py_None; | |
2657 | return _resultobj; | |
2658 | } | |
2659 | ||
2660 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2661 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2662 | PyObject * _resultobj; | |
2663 | wxCursor * _arg0; | |
2664 | int _arg1; | |
2665 | PyObject * _argo0 = 0; | |
2666 | char *_kwnames[] = { "self","d", NULL }; | |
2667 | ||
2668 | self = self; | |
2669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2670 | return NULL; | |
2671 | if (_argo0) { | |
2672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
2675 | return NULL; | |
2676 | } | |
2677 | } | |
2678 | { | |
2679 | wxPy_BEGIN_ALLOW_THREADS; | |
2680 | wxCursor_SetDepth(_arg0,_arg1); | |
2681 | ||
2682 | wxPy_END_ALLOW_THREADS; | |
2683 | } Py_INCREF(Py_None); | |
2684 | _resultobj = Py_None; | |
2685 | return _resultobj; | |
2686 | } | |
2687 | ||
2688 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2689 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2690 | PyObject * _resultobj; | |
2691 | wxCursor * _arg0; | |
2692 | wxSize * _arg1; | |
2693 | PyObject * _argo0 = 0; | |
2694 | wxSize temp; | |
2695 | PyObject * _obj1 = 0; | |
2696 | char *_kwnames[] = { "self","size", NULL }; | |
2697 | ||
2698 | self = self; | |
2699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
2700 | return NULL; | |
2701 | if (_argo0) { | |
2702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
2705 | return NULL; | |
2706 | } | |
2707 | } | |
2708 | { | |
2709 | _arg1 = &temp; | |
2710 | if (! wxSize_helper(_obj1, &_arg1)) | |
2711 | return NULL; | |
2712 | } | |
2713 | { | |
2714 | wxPy_BEGIN_ALLOW_THREADS; | |
2715 | wxCursor_SetSize(_arg0,*_arg1); | |
cf694132 RD |
2716 | |
2717 | wxPy_END_ALLOW_THREADS; | |
2718 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2719 | _resultobj = Py_None; |
2720 | return _resultobj; | |
2721 | } | |
2722 | ||
0569df0f | 2723 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
1afc06c2 | 2724 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2725 | PyObject * _resultobj; |
2726 | wxFont * _result; | |
2727 | int _arg0; | |
2728 | int _arg1; | |
2729 | int _arg2; | |
2730 | int _arg3; | |
1d99702e RD |
2731 | int _arg4 = (int ) FALSE; |
2732 | char * _arg5 = (char *) ""; | |
f0261a72 RD |
2733 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); |
2734 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
8ab979d7 RD |
2735 | char _ptemp[128]; |
2736 | ||
2737 | self = self; | |
f0261a72 | 2738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 2739 | return NULL; |
cf694132 RD |
2740 | { |
2741 | wxPy_BEGIN_ALLOW_THREADS; | |
f0261a72 | 2742 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 RD |
2743 | |
2744 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2745 | } if (_result) { |
2746 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
2747 | _resultobj = Py_BuildValue("s",_ptemp); | |
2748 | } else { | |
2749 | Py_INCREF(Py_None); | |
2750 | _resultobj = Py_None; | |
2751 | } | |
8ab979d7 RD |
2752 | return _resultobj; |
2753 | } | |
2754 | ||
0569df0f RD |
2755 | #define delete_wxFont(_swigobj) (delete _swigobj) |
2756 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2757 | PyObject * _resultobj; | |
2758 | wxFont * _arg0; | |
2759 | PyObject * _argo0 = 0; | |
2760 | char *_kwnames[] = { "self", NULL }; | |
2761 | ||
2762 | self = self; | |
2763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
2764 | return NULL; | |
2765 | if (_argo0) { | |
2766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
2769 | return NULL; | |
2770 | } | |
2771 | } | |
2772 | { | |
2773 | wxPy_BEGIN_ALLOW_THREADS; | |
2774 | delete_wxFont(_arg0); | |
2775 | ||
2776 | wxPy_END_ALLOW_THREADS; | |
2777 | } Py_INCREF(Py_None); | |
2778 | _resultobj = Py_None; | |
2779 | return _resultobj; | |
2780 | } | |
2781 | ||
694759cf RD |
2782 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) |
2783 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2784 | PyObject * _resultobj; | |
2785 | bool _result; | |
2786 | wxFont * _arg0; | |
2787 | PyObject * _argo0 = 0; | |
2788 | char *_kwnames[] = { "self", NULL }; | |
2789 | ||
2790 | self = self; | |
2791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
2792 | return NULL; | |
2793 | if (_argo0) { | |
2794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
2796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
2797 | return NULL; | |
2798 | } | |
2799 | } | |
2800 | { | |
2801 | wxPy_BEGIN_ALLOW_THREADS; | |
2802 | _result = (bool )wxFont_Ok(_arg0); | |
2803 | ||
2804 | wxPy_END_ALLOW_THREADS; | |
2805 | } _resultobj = Py_BuildValue("i",_result); | |
2806 | return _resultobj; | |
2807 | } | |
2808 | ||
8ab979d7 | 2809 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
1afc06c2 | 2810 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2811 | PyObject * _resultobj; |
2812 | wxString * _result; | |
2813 | wxFont * _arg0; | |
1d99702e | 2814 | PyObject * _argo0 = 0; |
1afc06c2 | 2815 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2816 | |
2817 | self = self; | |
1afc06c2 | 2818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 2819 | return NULL; |
1d99702e RD |
2820 | if (_argo0) { |
2821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
2823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
2824 | return NULL; | |
2825 | } | |
2826 | } | |
8ab979d7 | 2827 | { |
cf694132 RD |
2828 | wxPy_BEGIN_ALLOW_THREADS; |
2829 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
2830 | ||
2831 | wxPy_END_ALLOW_THREADS; | |
2832 | }{ | |
eec92d76 | 2833 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2834 | } |
2835 | { | |
2836 | delete _result; | |
2837 | } | |
2838 | return _resultobj; | |
2839 | } | |
2840 | ||
2841 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
1afc06c2 | 2842 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2843 | PyObject * _resultobj; |
2844 | int _result; | |
2845 | wxFont * _arg0; | |
1d99702e | 2846 | PyObject * _argo0 = 0; |
1afc06c2 | 2847 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2848 | |
2849 | self = self; | |
1afc06c2 | 2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 2851 | return NULL; |
1d99702e RD |
2852 | if (_argo0) { |
2853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
2855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
2856 | return NULL; | |
2857 | } | |
2858 | } | |
cf694132 RD |
2859 | { |
2860 | wxPy_BEGIN_ALLOW_THREADS; | |
2861 | _result = (int )wxFont_GetFamily(_arg0); | |
2862 | ||
2863 | wxPy_END_ALLOW_THREADS; | |
2864 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2865 | return _resultobj; |
2866 | } | |
2867 | ||
2868 | #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId()) | |
1afc06c2 | 2869 | static PyObject *_wrap_wxFont_GetFontId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2870 | PyObject * _resultobj; |
2871 | int _result; | |
2872 | wxFont * _arg0; | |
1d99702e | 2873 | PyObject * _argo0 = 0; |
1afc06c2 | 2874 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2875 | |
2876 | self = self; | |
1afc06c2 | 2877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFontId",_kwnames,&_argo0)) |
8ab979d7 | 2878 | return NULL; |
1d99702e RD |
2879 | if (_argo0) { |
2880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
2882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p."); |
2883 | return NULL; | |
2884 | } | |
2885 | } | |
cf694132 RD |
2886 | { |
2887 | wxPy_BEGIN_ALLOW_THREADS; | |
2888 | _result = (int )wxFont_GetFontId(_arg0); | |
2889 | ||
2890 | wxPy_END_ALLOW_THREADS; | |
2891 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2892 | return _resultobj; |
2893 | } | |
2894 | ||
2895 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
1afc06c2 | 2896 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2897 | PyObject * _resultobj; |
2898 | int _result; | |
2899 | wxFont * _arg0; | |
1d99702e | 2900 | PyObject * _argo0 = 0; |
1afc06c2 | 2901 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2902 | |
2903 | self = self; | |
1afc06c2 | 2904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) |
8ab979d7 | 2905 | return NULL; |
1d99702e RD |
2906 | if (_argo0) { |
2907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
2909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); |
2910 | return NULL; | |
2911 | } | |
2912 | } | |
cf694132 RD |
2913 | { |
2914 | wxPy_BEGIN_ALLOW_THREADS; | |
2915 | _result = (int )wxFont_GetPointSize(_arg0); | |
2916 | ||
2917 | wxPy_END_ALLOW_THREADS; | |
2918 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2919 | return _resultobj; |
2920 | } | |
2921 | ||
2922 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 2923 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2924 | PyObject * _resultobj; |
2925 | int _result; | |
2926 | wxFont * _arg0; | |
1d99702e | 2927 | PyObject * _argo0 = 0; |
1afc06c2 | 2928 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2929 | |
2930 | self = self; | |
1afc06c2 | 2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 2932 | return NULL; |
1d99702e RD |
2933 | if (_argo0) { |
2934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
2936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
2937 | return NULL; | |
2938 | } | |
2939 | } | |
cf694132 RD |
2940 | { |
2941 | wxPy_BEGIN_ALLOW_THREADS; | |
2942 | _result = (int )wxFont_GetStyle(_arg0); | |
2943 | ||
2944 | wxPy_END_ALLOW_THREADS; | |
2945 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2946 | return _resultobj; |
2947 | } | |
2948 | ||
2949 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 2950 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2951 | PyObject * _resultobj; |
2952 | bool _result; | |
2953 | wxFont * _arg0; | |
1d99702e | 2954 | PyObject * _argo0 = 0; |
1afc06c2 | 2955 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2956 | |
2957 | self = self; | |
1afc06c2 | 2958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 2959 | return NULL; |
1d99702e RD |
2960 | if (_argo0) { |
2961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
2963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
2964 | return NULL; | |
2965 | } | |
2966 | } | |
cf694132 RD |
2967 | { |
2968 | wxPy_BEGIN_ALLOW_THREADS; | |
2969 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
2970 | ||
2971 | wxPy_END_ALLOW_THREADS; | |
2972 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2973 | return _resultobj; |
2974 | } | |
2975 | ||
2976 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
1afc06c2 | 2977 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2978 | PyObject * _resultobj; |
2979 | int _result; | |
2980 | wxFont * _arg0; | |
1d99702e | 2981 | PyObject * _argo0 = 0; |
1afc06c2 | 2982 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2983 | |
2984 | self = self; | |
1afc06c2 | 2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 2986 | return NULL; |
1d99702e RD |
2987 | if (_argo0) { |
2988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
2990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
2991 | return NULL; | |
2992 | } | |
2993 | } | |
cf694132 RD |
2994 | { |
2995 | wxPy_BEGIN_ALLOW_THREADS; | |
2996 | _result = (int )wxFont_GetWeight(_arg0); | |
2997 | ||
2998 | wxPy_END_ALLOW_THREADS; | |
2999 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3000 | return _resultobj; |
3001 | } | |
3002 | ||
f0261a72 RD |
3003 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
3004 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3005 | PyObject * _resultobj; | |
3006 | wxFontEncoding _result; | |
3007 | wxFont * _arg0; | |
3008 | PyObject * _argo0 = 0; | |
3009 | char *_kwnames[] = { "self", NULL }; | |
3010 | ||
3011 | self = self; | |
3012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
3013 | return NULL; | |
3014 | if (_argo0) { | |
3015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
3018 | return NULL; | |
3019 | } | |
3020 | } | |
3021 | { | |
3022 | wxPy_BEGIN_ALLOW_THREADS; | |
3023 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
3024 | ||
3025 | wxPy_END_ALLOW_THREADS; | |
3026 | } _resultobj = Py_BuildValue("i",_result); | |
3027 | return _resultobj; | |
3028 | } | |
3029 | ||
8ab979d7 | 3030 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
1afc06c2 | 3031 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3032 | PyObject * _resultobj; |
3033 | wxFont * _arg0; | |
3034 | wxString * _arg1; | |
1d99702e | 3035 | PyObject * _argo0 = 0; |
8ab979d7 | 3036 | PyObject * _obj1 = 0; |
1afc06c2 | 3037 | char *_kwnames[] = { "self","faceName", NULL }; |
8ab979d7 RD |
3038 | |
3039 | self = self; | |
1afc06c2 | 3040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3041 | return NULL; |
1d99702e RD |
3042 | if (_argo0) { |
3043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); |
3046 | return NULL; | |
3047 | } | |
3048 | } | |
3049 | { | |
185d7c3e RD |
3050 | #if PYTHON_API_VERSION >= 1009 |
3051 | char* tmpPtr; int tmpSize; | |
3052 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3053 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3054 | return NULL; | |
3055 | } | |
3056 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3057 | return NULL; | |
3058 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3059 | #else | |
8ab979d7 RD |
3060 | if (!PyString_Check(_obj1)) { |
3061 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3062 | return NULL; | |
3063 | } | |
185d7c3e RD |
3064 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3065 | #endif | |
8ab979d7 | 3066 | } |
cf694132 RD |
3067 | { |
3068 | wxPy_BEGIN_ALLOW_THREADS; | |
3069 | wxFont_SetFaceName(_arg0,*_arg1); | |
3070 | ||
3071 | wxPy_END_ALLOW_THREADS; | |
3072 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3073 | _resultobj = Py_None; |
3074 | { | |
3075 | if (_obj1) | |
3076 | delete _arg1; | |
3077 | } | |
3078 | return _resultobj; | |
3079 | } | |
3080 | ||
3081 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 3082 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3083 | PyObject * _resultobj; |
3084 | wxFont * _arg0; | |
3085 | int _arg1; | |
1d99702e | 3086 | PyObject * _argo0 = 0; |
1afc06c2 | 3087 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
3088 | |
3089 | self = self; | |
1afc06c2 | 3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3091 | return NULL; |
1d99702e RD |
3092 | if (_argo0) { |
3093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
3096 | return NULL; | |
3097 | } | |
3098 | } | |
cf694132 RD |
3099 | { |
3100 | wxPy_BEGIN_ALLOW_THREADS; | |
3101 | wxFont_SetFamily(_arg0,_arg1); | |
3102 | ||
3103 | wxPy_END_ALLOW_THREADS; | |
3104 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3105 | _resultobj = Py_None; |
3106 | return _resultobj; | |
3107 | } | |
3108 | ||
3109 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
1afc06c2 | 3110 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3111 | PyObject * _resultobj; |
3112 | wxFont * _arg0; | |
3113 | int _arg1; | |
1d99702e | 3114 | PyObject * _argo0 = 0; |
1afc06c2 | 3115 | char *_kwnames[] = { "self","pointSize", NULL }; |
8ab979d7 RD |
3116 | |
3117 | self = self; | |
1afc06c2 | 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3119 | return NULL; |
1d99702e RD |
3120 | if (_argo0) { |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
cf694132 RD |
3127 | { |
3128 | wxPy_BEGIN_ALLOW_THREADS; | |
3129 | wxFont_SetPointSize(_arg0,_arg1); | |
3130 | ||
3131 | wxPy_END_ALLOW_THREADS; | |
3132 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3133 | _resultobj = Py_None; |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
3137 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 3138 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3139 | PyObject * _resultobj; |
3140 | wxFont * _arg0; | |
3141 | int _arg1; | |
1d99702e | 3142 | PyObject * _argo0 = 0; |
1afc06c2 | 3143 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
3144 | |
3145 | self = self; | |
1afc06c2 | 3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3147 | return NULL; |
1d99702e RD |
3148 | if (_argo0) { |
3149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
3152 | return NULL; | |
3153 | } | |
3154 | } | |
cf694132 RD |
3155 | { |
3156 | wxPy_BEGIN_ALLOW_THREADS; | |
3157 | wxFont_SetStyle(_arg0,_arg1); | |
3158 | ||
3159 | wxPy_END_ALLOW_THREADS; | |
3160 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3161 | _resultobj = Py_None; |
3162 | return _resultobj; | |
3163 | } | |
3164 | ||
3165 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 3166 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3167 | PyObject * _resultobj; |
3168 | wxFont * _arg0; | |
3169 | bool _arg1; | |
1d99702e | 3170 | PyObject * _argo0 = 0; |
8ab979d7 | 3171 | int tempbool1; |
1afc06c2 | 3172 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
3173 | |
3174 | self = self; | |
1afc06c2 | 3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3176 | return NULL; |
1d99702e RD |
3177 | if (_argo0) { |
3178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
3181 | return NULL; | |
3182 | } | |
3183 | } | |
3184 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3185 | { |
3186 | wxPy_BEGIN_ALLOW_THREADS; | |
3187 | wxFont_SetUnderlined(_arg0,_arg1); | |
3188 | ||
3189 | wxPy_END_ALLOW_THREADS; | |
3190 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3191 | _resultobj = Py_None; |
3192 | return _resultobj; | |
3193 | } | |
3194 | ||
3195 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
1afc06c2 | 3196 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3197 | PyObject * _resultobj; |
3198 | wxFont * _arg0; | |
3199 | int _arg1; | |
1d99702e | 3200 | PyObject * _argo0 = 0; |
1afc06c2 | 3201 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
3202 | |
3203 | self = self; | |
1afc06c2 | 3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3205 | return NULL; |
1d99702e RD |
3206 | if (_argo0) { |
3207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
3210 | return NULL; | |
3211 | } | |
3212 | } | |
cf694132 RD |
3213 | { |
3214 | wxPy_BEGIN_ALLOW_THREADS; | |
3215 | wxFont_SetWeight(_arg0,_arg1); | |
3216 | ||
3217 | wxPy_END_ALLOW_THREADS; | |
3218 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3219 | _resultobj = Py_None; |
3220 | return _resultobj; | |
3221 | } | |
3222 | ||
f0261a72 RD |
3223 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
3224 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3225 | PyObject * _resultobj; | |
3226 | wxFont * _arg0; | |
3227 | wxFontEncoding _arg1; | |
3228 | PyObject * _argo0 = 0; | |
3229 | char *_kwnames[] = { "self","encoding", NULL }; | |
3230 | ||
3231 | self = self; | |
3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3233 | return NULL; | |
3234 | if (_argo0) { | |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
3238 | return NULL; | |
3239 | } | |
3240 | } | |
3241 | { | |
3242 | wxPy_BEGIN_ALLOW_THREADS; | |
3243 | wxFont_SetEncoding(_arg0,_arg1); | |
3244 | ||
3245 | wxPy_END_ALLOW_THREADS; | |
3246 | } Py_INCREF(Py_None); | |
3247 | _resultobj = Py_None; | |
3248 | return _resultobj; | |
3249 | } | |
3250 | ||
3251 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
3252 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3253 | PyObject * _resultobj; | |
3254 | wxString * _result; | |
3255 | wxFont * _arg0; | |
3256 | PyObject * _argo0 = 0; | |
3257 | char *_kwnames[] = { "self", NULL }; | |
3258 | ||
3259 | self = self; | |
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
3261 | return NULL; | |
3262 | if (_argo0) { | |
3263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
3266 | return NULL; | |
3267 | } | |
3268 | } | |
3269 | { | |
3270 | wxPy_BEGIN_ALLOW_THREADS; | |
3271 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
3272 | ||
3273 | wxPy_END_ALLOW_THREADS; | |
3274 | }{ | |
eec92d76 | 3275 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
3276 | } |
3277 | { | |
3278 | delete _result; | |
3279 | } | |
3280 | return _resultobj; | |
3281 | } | |
3282 | ||
3283 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
3284 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject * _resultobj; | |
3286 | wxString * _result; | |
3287 | wxFont * _arg0; | |
3288 | PyObject * _argo0 = 0; | |
3289 | char *_kwnames[] = { "self", NULL }; | |
3290 | ||
3291 | self = self; | |
3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
3293 | return NULL; | |
3294 | if (_argo0) { | |
3295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
3298 | return NULL; | |
3299 | } | |
3300 | } | |
3301 | { | |
3302 | wxPy_BEGIN_ALLOW_THREADS; | |
3303 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
3304 | ||
3305 | wxPy_END_ALLOW_THREADS; | |
3306 | }{ | |
eec92d76 | 3307 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
3308 | } |
3309 | { | |
3310 | delete _result; | |
3311 | } | |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
3315 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
3316 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject * _resultobj; | |
3318 | wxString * _result; | |
3319 | wxFont * _arg0; | |
3320 | PyObject * _argo0 = 0; | |
3321 | char *_kwnames[] = { "self", NULL }; | |
3322 | ||
3323 | self = self; | |
3324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
3325 | return NULL; | |
3326 | if (_argo0) { | |
3327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
3330 | return NULL; | |
3331 | } | |
3332 | } | |
3333 | { | |
3334 | wxPy_BEGIN_ALLOW_THREADS; | |
3335 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
3336 | ||
3337 | wxPy_END_ALLOW_THREADS; | |
3338 | }{ | |
eec92d76 | 3339 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
3340 | } |
3341 | { | |
3342 | delete _result; | |
3343 | } | |
3344 | return _resultobj; | |
3345 | } | |
3346 | ||
0569df0f RD |
3347 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
3348 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3349 | PyObject * _resultobj; | |
3350 | wxFontList * _arg0; | |
3351 | wxFont * _arg1; | |
3352 | PyObject * _argo0 = 0; | |
3353 | PyObject * _argo1 = 0; | |
3354 | char *_kwnames[] = { "self","font", NULL }; | |
3355 | ||
3356 | self = self; | |
3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
3358 | return NULL; | |
3359 | if (_argo0) { | |
3360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
3363 | return NULL; | |
3364 | } | |
3365 | } | |
3366 | if (_argo1) { | |
3367 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
3370 | return NULL; | |
3371 | } | |
3372 | } | |
3373 | { | |
3374 | wxPy_BEGIN_ALLOW_THREADS; | |
3375 | wxFontList_AddFont(_arg0,_arg1); | |
3376 | ||
3377 | wxPy_END_ALLOW_THREADS; | |
3378 | } Py_INCREF(Py_None); | |
3379 | _resultobj = Py_None; | |
3380 | return _resultobj; | |
3381 | } | |
3382 | ||
3383 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3384 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3385 | PyObject * _resultobj; | |
3386 | wxFont * _result; | |
3387 | wxFontList * _arg0; | |
3388 | int _arg1; | |
3389 | int _arg2; | |
3390 | int _arg3; | |
3391 | int _arg4; | |
3392 | bool _arg5 = (bool ) FALSE; | |
3393 | char * _arg6 = (char *) NULL; | |
3394 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3395 | PyObject * _argo0 = 0; | |
3396 | int tempbool5 = (int) FALSE; | |
3397 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
3398 | char _ptemp[128]; | |
3399 | ||
3400 | self = self; | |
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
3402 | return NULL; | |
3403 | if (_argo0) { | |
3404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
3410 | _arg5 = (bool ) tempbool5; | |
3411 | { | |
3412 | wxPy_BEGIN_ALLOW_THREADS; | |
3413 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
3414 | ||
3415 | wxPy_END_ALLOW_THREADS; | |
3416 | } if (_result) { | |
3417 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3418 | _resultobj = Py_BuildValue("s",_ptemp); | |
3419 | } else { | |
3420 | Py_INCREF(Py_None); | |
3421 | _resultobj = Py_None; | |
3422 | } | |
3423 | return _resultobj; | |
3424 | } | |
3425 | ||
3426 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
3427 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3428 | PyObject * _resultobj; | |
3429 | wxFontList * _arg0; | |
3430 | wxFont * _arg1; | |
3431 | PyObject * _argo0 = 0; | |
3432 | PyObject * _argo1 = 0; | |
3433 | char *_kwnames[] = { "self","font", NULL }; | |
3434 | ||
3435 | self = self; | |
3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
3437 | return NULL; | |
3438 | if (_argo0) { | |
3439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
3442 | return NULL; | |
3443 | } | |
3444 | } | |
3445 | if (_argo1) { | |
3446 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3447 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
3449 | return NULL; | |
3450 | } | |
3451 | } | |
3452 | { | |
3453 | wxPy_BEGIN_ALLOW_THREADS; | |
3454 | wxFontList_RemoveFont(_arg0,_arg1); | |
3455 | ||
3456 | wxPy_END_ALLOW_THREADS; | |
3457 | } Py_INCREF(Py_None); | |
3458 | _resultobj = Py_None; | |
3459 | return _resultobj; | |
3460 | } | |
3461 | ||
8ab979d7 | 3462 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 3463 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3464 | PyObject * _resultobj; |
3465 | wxColour * _result; | |
1d99702e RD |
3466 | unsigned char _arg0 = (unsigned char ) 0; |
3467 | unsigned char _arg1 = (unsigned char ) 0; | |
3468 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 3469 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
3470 | char _ptemp[128]; |
3471 | ||
3472 | self = self; | |
1afc06c2 | 3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 3474 | return NULL; |
cf694132 RD |
3475 | { |
3476 | wxPy_BEGIN_ALLOW_THREADS; | |
3477 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
3478 | ||
3479 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3480 | } if (_result) { |
3481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3482 | _resultobj = Py_BuildValue("s",_ptemp); | |
3483 | } else { | |
3484 | Py_INCREF(Py_None); | |
3485 | _resultobj = Py_None; | |
3486 | } | |
8ab979d7 RD |
3487 | return _resultobj; |
3488 | } | |
3489 | ||
3490 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 3491 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3492 | PyObject * _resultobj; |
3493 | wxColour * _arg0; | |
f6bcfd97 BP |
3494 | wxColour temp; |
3495 | PyObject * _obj0 = 0; | |
1afc06c2 | 3496 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3497 | |
3498 | self = self; | |
f6bcfd97 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 3500 | return NULL; |
f6bcfd97 BP |
3501 | { |
3502 | _arg0 = &temp; | |
3503 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3504 | return NULL; |
f6bcfd97 | 3505 | } |
cf694132 RD |
3506 | { |
3507 | wxPy_BEGIN_ALLOW_THREADS; | |
3508 | delete_wxColour(_arg0); | |
3509 | ||
3510 | wxPy_END_ALLOW_THREADS; | |
3511 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3512 | _resultobj = Py_None; |
3513 | return _resultobj; | |
3514 | } | |
3515 | ||
3516 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 3517 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3518 | PyObject * _resultobj; |
3519 | unsigned char _result; | |
3520 | wxColour * _arg0; | |
f6bcfd97 BP |
3521 | wxColour temp; |
3522 | PyObject * _obj0 = 0; | |
1afc06c2 | 3523 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3524 | |
3525 | self = self; | |
f6bcfd97 | 3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 3527 | return NULL; |
f6bcfd97 BP |
3528 | { |
3529 | _arg0 = &temp; | |
3530 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3531 | return NULL; |
f6bcfd97 | 3532 | } |
cf694132 RD |
3533 | { |
3534 | wxPy_BEGIN_ALLOW_THREADS; | |
3535 | _result = (unsigned char )wxColour_Red(_arg0); | |
3536 | ||
3537 | wxPy_END_ALLOW_THREADS; | |
3538 | } _resultobj = Py_BuildValue("b",_result); | |
8ab979d7 RD |
3539 | return _resultobj; |
3540 | } | |
3541 | ||
3542 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 3543 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3544 | PyObject * _resultobj; |
3545 | unsigned char _result; | |
3546 | wxColour * _arg0; | |
f6bcfd97 BP |
3547 | wxColour temp; |
3548 | PyObject * _obj0 = 0; | |
1afc06c2 | 3549 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3550 | |
3551 | self = self; | |
f6bcfd97 | 3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 3553 | return NULL; |
f6bcfd97 BP |
3554 | { |
3555 | _arg0 = &temp; | |
3556 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3557 | return NULL; |
f6bcfd97 | 3558 | } |
cf694132 RD |
3559 | { |
3560 | wxPy_BEGIN_ALLOW_THREADS; | |
3561 | _result = (unsigned char )wxColour_Green(_arg0); | |
3562 | ||
3563 | wxPy_END_ALLOW_THREADS; | |
3564 | } _resultobj = Py_BuildValue("b",_result); | |
8ab979d7 RD |
3565 | return _resultobj; |
3566 | } | |
3567 | ||
3568 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 3569 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3570 | PyObject * _resultobj; |
3571 | unsigned char _result; | |
3572 | wxColour * _arg0; | |
f6bcfd97 BP |
3573 | wxColour temp; |
3574 | PyObject * _obj0 = 0; | |
1afc06c2 | 3575 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3576 | |
3577 | self = self; | |
f6bcfd97 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 3579 | return NULL; |
f6bcfd97 BP |
3580 | { |
3581 | _arg0 = &temp; | |
3582 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3583 | return NULL; |
f6bcfd97 | 3584 | } |
cf694132 RD |
3585 | { |
3586 | wxPy_BEGIN_ALLOW_THREADS; | |
3587 | _result = (unsigned char )wxColour_Blue(_arg0); | |
3588 | ||
3589 | wxPy_END_ALLOW_THREADS; | |
3590 | } _resultobj = Py_BuildValue("b",_result); | |
8ab979d7 RD |
3591 | return _resultobj; |
3592 | } | |
3593 | ||
3594 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 3595 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3596 | PyObject * _resultobj; |
3597 | bool _result; | |
3598 | wxColour * _arg0; | |
f6bcfd97 BP |
3599 | wxColour temp; |
3600 | PyObject * _obj0 = 0; | |
1afc06c2 | 3601 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3602 | |
3603 | self = self; | |
f6bcfd97 | 3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 3605 | return NULL; |
f6bcfd97 BP |
3606 | { |
3607 | _arg0 = &temp; | |
3608 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3609 | return NULL; |
f6bcfd97 | 3610 | } |
cf694132 RD |
3611 | { |
3612 | wxPy_BEGIN_ALLOW_THREADS; | |
3613 | _result = (bool )wxColour_Ok(_arg0); | |
3614 | ||
3615 | wxPy_END_ALLOW_THREADS; | |
3616 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3617 | return _resultobj; |
3618 | } | |
3619 | ||
3620 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 3621 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3622 | PyObject * _resultobj; |
3623 | wxColour * _arg0; | |
3624 | unsigned char _arg1; | |
3625 | unsigned char _arg2; | |
3626 | unsigned char _arg3; | |
f6bcfd97 BP |
3627 | wxColour temp; |
3628 | PyObject * _obj0 = 0; | |
1afc06c2 | 3629 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
3630 | |
3631 | self = self; | |
f6bcfd97 | 3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3633 | return NULL; |
f6bcfd97 BP |
3634 | { |
3635 | _arg0 = &temp; | |
3636 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3637 | return NULL; |
f6bcfd97 | 3638 | } |
cf694132 RD |
3639 | { |
3640 | wxPy_BEGIN_ALLOW_THREADS; | |
3641 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
3642 | ||
3643 | wxPy_END_ALLOW_THREADS; | |
3644 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3645 | _resultobj = Py_None; |
3646 | return _resultobj; | |
3647 | } | |
3648 | ||
3649 | static PyObject * wxColour_Get(wxColour *self) { | |
3650 | PyObject* rv = PyTuple_New(3); | |
3651 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3652 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3653 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3654 | return rv; | |
3655 | } | |
1afc06c2 | 3656 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3657 | PyObject * _resultobj; |
3658 | PyObject * _result; | |
3659 | wxColour * _arg0; | |
f6bcfd97 BP |
3660 | wxColour temp; |
3661 | PyObject * _obj0 = 0; | |
1afc06c2 | 3662 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3663 | |
3664 | self = self; | |
f6bcfd97 | 3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 3666 | return NULL; |
f6bcfd97 BP |
3667 | { |
3668 | _arg0 = &temp; | |
3669 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3670 | return NULL; |
f6bcfd97 | 3671 | } |
8ab979d7 | 3672 | { |
cf694132 RD |
3673 | wxPy_BEGIN_ALLOW_THREADS; |
3674 | _result = (PyObject *)wxColour_Get(_arg0); | |
3675 | ||
3676 | wxPy_END_ALLOW_THREADS; | |
3677 | }{ | |
8ab979d7 RD |
3678 | _resultobj = _result; |
3679 | } | |
3680 | return _resultobj; | |
3681 | } | |
3682 | ||
0569df0f RD |
3683 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
3684 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3685 | PyObject * _resultobj; | |
3686 | wxColour * _result; | |
3687 | wxColourDatabase * _arg0; | |
3688 | wxString * _arg1; | |
3689 | PyObject * _argo0 = 0; | |
3690 | PyObject * _obj1 = 0; | |
3691 | char *_kwnames[] = { "self","colour", NULL }; | |
3692 | char _ptemp[128]; | |
3693 | ||
3694 | self = self; | |
3695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
3696 | return NULL; | |
3697 | if (_argo0) { | |
3698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
3701 | return NULL; | |
8ab979d7 | 3702 | } |
0569df0f RD |
3703 | } |
3704 | { | |
3705 | #if PYTHON_API_VERSION >= 1009 | |
3706 | char* tmpPtr; int tmpSize; | |
3707 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3708 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3709 | return NULL; | |
3710 | } | |
3711 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3712 | return NULL; | |
3713 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3714 | #else | |
3715 | if (!PyString_Check(_obj1)) { | |
3716 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3717 | return NULL; | |
3718 | } | |
3719 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3720 | #endif | |
3721 | } | |
3722 | { | |
3723 | wxPy_BEGIN_ALLOW_THREADS; | |
3724 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
8ab979d7 | 3725 | |
0569df0f RD |
3726 | wxPy_END_ALLOW_THREADS; |
3727 | } if (_result) { | |
3728 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3729 | _resultobj = Py_BuildValue("s",_ptemp); | |
3730 | } else { | |
3731 | Py_INCREF(Py_None); | |
3732 | _resultobj = Py_None; | |
3733 | } | |
3734 | { | |
3735 | if (_obj1) | |
3736 | delete _arg1; | |
3737 | } | |
3738 | return _resultobj; | |
3739 | } | |
3740 | ||
3741 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
3742 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3743 | PyObject * _resultobj; | |
3744 | wxString * _result; | |
3745 | wxColourDatabase * _arg0; | |
3746 | wxColour * _arg1; | |
3747 | PyObject * _argo0 = 0; | |
3748 | wxColour temp; | |
3749 | PyObject * _obj1 = 0; | |
3750 | char *_kwnames[] = { "self","colour", NULL }; | |
3751 | ||
3752 | self = self; | |
3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
3754 | return NULL; | |
3755 | if (_argo0) { | |
3756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
3759 | return NULL; | |
3760 | } | |
3761 | } | |
3762 | { | |
3763 | _arg1 = &temp; | |
3764 | if (! wxColour_helper(_obj1, &_arg1)) | |
3765 | return NULL; | |
3766 | } | |
3767 | { | |
3768 | wxPy_BEGIN_ALLOW_THREADS; | |
3769 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
3770 | ||
3771 | wxPy_END_ALLOW_THREADS; | |
3772 | }{ | |
3773 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3774 | } | |
3775 | { | |
3776 | delete _result; | |
3777 | } | |
3778 | return _resultobj; | |
3779 | } | |
3780 | ||
3781 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
3782 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
3783 | } | |
3784 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3785 | PyObject * _resultobj; | |
3786 | wxColourDatabase * _arg0; | |
3787 | wxString * _arg1; | |
3788 | int _arg2; | |
3789 | int _arg3; | |
3790 | int _arg4; | |
3791 | PyObject * _argo0 = 0; | |
3792 | PyObject * _obj1 = 0; | |
3793 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
3794 | ||
3795 | self = self; | |
3796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
3797 | return NULL; | |
3798 | if (_argo0) { | |
3799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
3805 | { | |
3806 | #if PYTHON_API_VERSION >= 1009 | |
3807 | char* tmpPtr; int tmpSize; | |
3808 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3809 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3810 | return NULL; | |
3811 | } | |
3812 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3813 | return NULL; | |
3814 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3815 | #else | |
3816 | if (!PyString_Check(_obj1)) { | |
3817 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3818 | return NULL; | |
3819 | } | |
3820 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3821 | #endif | |
3822 | } | |
3823 | { | |
3824 | wxPy_BEGIN_ALLOW_THREADS; | |
3825 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3826 | ||
3827 | wxPy_END_ALLOW_THREADS; | |
3828 | } Py_INCREF(Py_None); | |
3829 | _resultobj = Py_None; | |
3830 | { | |
3831 | if (_obj1) | |
3832 | delete _arg1; | |
3833 | } | |
3834 | return _resultobj; | |
3835 | } | |
3836 | ||
3837 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 3838 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3839 | PyObject * _resultobj; |
3840 | wxPen * _result; | |
3841 | wxColour * _arg0; | |
1d99702e RD |
3842 | int _arg1 = (int ) 1; |
3843 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
3844 | wxColour temp; |
3845 | PyObject * _obj0 = 0; | |
1afc06c2 | 3846 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
3847 | char _ptemp[128]; |
3848 | ||
3849 | self = self; | |
f6bcfd97 | 3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 3851 | return NULL; |
f6bcfd97 BP |
3852 | { |
3853 | _arg0 = &temp; | |
3854 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3855 | return NULL; |
f6bcfd97 | 3856 | } |
cf694132 RD |
3857 | { |
3858 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 3859 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 RD |
3860 | |
3861 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3862 | } if (_result) { |
3863 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3864 | _resultobj = Py_BuildValue("s",_ptemp); | |
3865 | } else { | |
3866 | Py_INCREF(Py_None); | |
3867 | _resultobj = Py_None; | |
3868 | } | |
8ab979d7 RD |
3869 | return _resultobj; |
3870 | } | |
3871 | ||
0569df0f RD |
3872 | #define delete_wxPen(_swigobj) (delete _swigobj) |
3873 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3874 | PyObject * _resultobj; | |
3875 | wxPen * _arg0; | |
3876 | PyObject * _argo0 = 0; | |
3877 | char *_kwnames[] = { "self", NULL }; | |
3878 | ||
3879 | self = self; | |
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
3881 | return NULL; | |
3882 | if (_argo0) { | |
3883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
3886 | return NULL; | |
3887 | } | |
3888 | } | |
3889 | { | |
3890 | wxPy_BEGIN_ALLOW_THREADS; | |
3891 | delete_wxPen(_arg0); | |
3892 | ||
3893 | wxPy_END_ALLOW_THREADS; | |
3894 | } Py_INCREF(Py_None); | |
3895 | _resultobj = Py_None; | |
3896 | return _resultobj; | |
3897 | } | |
3898 | ||
8ab979d7 | 3899 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 3900 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3901 | PyObject * _resultobj; |
3902 | int _result; | |
3903 | wxPen * _arg0; | |
1d99702e | 3904 | PyObject * _argo0 = 0; |
1afc06c2 | 3905 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3906 | |
3907 | self = self; | |
1afc06c2 | 3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 3909 | return NULL; |
1d99702e RD |
3910 | if (_argo0) { |
3911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
3913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
3914 | return NULL; | |
3915 | } | |
3916 | } | |
cf694132 RD |
3917 | { |
3918 | wxPy_BEGIN_ALLOW_THREADS; | |
3919 | _result = (int )wxPen_GetCap(_arg0); | |
3920 | ||
3921 | wxPy_END_ALLOW_THREADS; | |
3922 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3923 | return _resultobj; |
3924 | } | |
3925 | ||
3926 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 3927 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3928 | PyObject * _resultobj; |
3929 | wxColour * _result; | |
3930 | wxPen * _arg0; | |
1d99702e | 3931 | PyObject * _argo0 = 0; |
1afc06c2 | 3932 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3933 | char _ptemp[128]; |
3934 | ||
3935 | self = self; | |
1afc06c2 | 3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 3937 | return NULL; |
1d99702e RD |
3938 | if (_argo0) { |
3939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
3941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
3942 | return NULL; | |
3943 | } | |
3944 | } | |
cf694132 RD |
3945 | { |
3946 | wxPy_BEGIN_ALLOW_THREADS; | |
3947 | wxColour & _result_ref = wxPen_GetColour(_arg0); | |
8ab979d7 | 3948 | _result = (wxColour *) &_result_ref; |
cf694132 RD |
3949 | |
3950 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3951 | } if (_result) { |
3952 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3953 | _resultobj = Py_BuildValue("s",_ptemp); | |
3954 | } else { | |
3955 | Py_INCREF(Py_None); | |
3956 | _resultobj = Py_None; | |
3957 | } | |
8ab979d7 RD |
3958 | return _resultobj; |
3959 | } | |
3960 | ||
8ab979d7 | 3961 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 3962 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3963 | PyObject * _resultobj; |
3964 | int _result; | |
3965 | wxPen * _arg0; | |
1d99702e | 3966 | PyObject * _argo0 = 0; |
1afc06c2 | 3967 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3968 | |
3969 | self = self; | |
1afc06c2 | 3970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 3971 | return NULL; |
1d99702e RD |
3972 | if (_argo0) { |
3973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
3975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
3976 | return NULL; | |
3977 | } | |
3978 | } | |
cf694132 RD |
3979 | { |
3980 | wxPy_BEGIN_ALLOW_THREADS; | |
3981 | _result = (int )wxPen_GetJoin(_arg0); | |
3982 | ||
3983 | wxPy_END_ALLOW_THREADS; | |
3984 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3985 | return _resultobj; |
3986 | } | |
3987 | ||
3988 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 3989 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3990 | PyObject * _resultobj; |
3991 | int _result; | |
3992 | wxPen * _arg0; | |
1d99702e | 3993 | PyObject * _argo0 = 0; |
1afc06c2 | 3994 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3995 | |
3996 | self = self; | |
1afc06c2 | 3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 3998 | return NULL; |
1d99702e RD |
3999 | if (_argo0) { |
4000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
4003 | return NULL; | |
4004 | } | |
4005 | } | |
cf694132 RD |
4006 | { |
4007 | wxPy_BEGIN_ALLOW_THREADS; | |
4008 | _result = (int )wxPen_GetStyle(_arg0); | |
4009 | ||
4010 | wxPy_END_ALLOW_THREADS; | |
4011 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4012 | return _resultobj; |
4013 | } | |
4014 | ||
4015 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 4016 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4017 | PyObject * _resultobj; |
4018 | int _result; | |
4019 | wxPen * _arg0; | |
1d99702e | 4020 | PyObject * _argo0 = 0; |
1afc06c2 | 4021 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4022 | |
4023 | self = self; | |
1afc06c2 | 4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 4025 | return NULL; |
1d99702e RD |
4026 | if (_argo0) { |
4027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
4030 | return NULL; | |
4031 | } | |
4032 | } | |
cf694132 RD |
4033 | { |
4034 | wxPy_BEGIN_ALLOW_THREADS; | |
4035 | _result = (int )wxPen_GetWidth(_arg0); | |
4036 | ||
4037 | wxPy_END_ALLOW_THREADS; | |
4038 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4039 | return _resultobj; |
4040 | } | |
4041 | ||
4042 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4043 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4044 | PyObject * _resultobj; |
4045 | bool _result; | |
4046 | wxPen * _arg0; | |
1d99702e | 4047 | PyObject * _argo0 = 0; |
1afc06c2 | 4048 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4049 | |
4050 | self = self; | |
1afc06c2 | 4051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 4052 | return NULL; |
1d99702e RD |
4053 | if (_argo0) { |
4054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
4057 | return NULL; | |
4058 | } | |
4059 | } | |
cf694132 RD |
4060 | { |
4061 | wxPy_BEGIN_ALLOW_THREADS; | |
4062 | _result = (bool )wxPen_Ok(_arg0); | |
4063 | ||
4064 | wxPy_END_ALLOW_THREADS; | |
4065 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4066 | return _resultobj; |
4067 | } | |
4068 | ||
4069 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 4070 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4071 | PyObject * _resultobj; |
4072 | wxPen * _arg0; | |
4073 | int _arg1; | |
1d99702e | 4074 | PyObject * _argo0 = 0; |
1afc06c2 | 4075 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
4076 | |
4077 | self = self; | |
1afc06c2 | 4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4079 | return NULL; |
1d99702e RD |
4080 | if (_argo0) { |
4081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
4084 | return NULL; | |
4085 | } | |
4086 | } | |
cf694132 RD |
4087 | { |
4088 | wxPy_BEGIN_ALLOW_THREADS; | |
4089 | wxPen_SetCap(_arg0,_arg1); | |
4090 | ||
4091 | wxPy_END_ALLOW_THREADS; | |
4092 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4093 | _resultobj = Py_None; |
4094 | return _resultobj; | |
4095 | } | |
4096 | ||
4097 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 4098 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4099 | PyObject * _resultobj; |
4100 | wxPen * _arg0; | |
4101 | wxColour * _arg1; | |
1d99702e | 4102 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4103 | wxColour temp; |
4104 | PyObject * _obj1 = 0; | |
1afc06c2 | 4105 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4106 | |
4107 | self = self; | |
f6bcfd97 | 4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4109 | return NULL; |
1d99702e RD |
4110 | if (_argo0) { |
4111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
4114 | return NULL; | |
4115 | } | |
4116 | } | |
f6bcfd97 BP |
4117 | { |
4118 | _arg1 = &temp; | |
4119 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4120 | return NULL; |
f6bcfd97 | 4121 | } |
cf694132 RD |
4122 | { |
4123 | wxPy_BEGIN_ALLOW_THREADS; | |
4124 | wxPen_SetColour(_arg0,*_arg1); | |
4125 | ||
4126 | wxPy_END_ALLOW_THREADS; | |
4127 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4128 | _resultobj = Py_None; |
4129 | return _resultobj; | |
4130 | } | |
4131 | ||
2ea09579 | 4132 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 4133 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4134 | PyObject * _resultobj; |
4135 | wxPen * _arg0; | |
4136 | int _arg1; | |
1d99702e | 4137 | PyObject * _argo0 = 0; |
1afc06c2 | 4138 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
4139 | |
4140 | self = self; | |
1afc06c2 | 4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4142 | return NULL; |
1d99702e RD |
4143 | if (_argo0) { |
4144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
4147 | return NULL; |
4148 | } | |
4149 | } | |
cf694132 RD |
4150 | { |
4151 | wxPy_BEGIN_ALLOW_THREADS; | |
4152 | wxPen_SetJoin(_arg0,_arg1); | |
4153 | ||
4154 | wxPy_END_ALLOW_THREADS; | |
4155 | } Py_INCREF(Py_None); | |
2ea09579 RD |
4156 | _resultobj = Py_None; |
4157 | return _resultobj; | |
4158 | } | |
4159 | ||
4160 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 4161 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
4162 | PyObject * _resultobj; |
4163 | wxPen * _arg0; | |
4164 | int _arg1; | |
1d99702e | 4165 | PyObject * _argo0 = 0; |
1afc06c2 | 4166 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
4167 | |
4168 | self = self; | |
1afc06c2 | 4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4170 | return NULL; |
1d99702e RD |
4171 | if (_argo0) { |
4172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
4174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
4175 | return NULL; | |
4176 | } | |
8ab979d7 | 4177 | } |
cf694132 RD |
4178 | { |
4179 | wxPy_BEGIN_ALLOW_THREADS; | |
4180 | wxPen_SetStyle(_arg0,_arg1); | |
4181 | ||
4182 | wxPy_END_ALLOW_THREADS; | |
4183 | } Py_INCREF(Py_None); | |
8ab979d7 | 4184 | _resultobj = Py_None; |
2ea09579 | 4185 | return _resultobj; |
8ab979d7 | 4186 | } |
2ea09579 RD |
4187 | |
4188 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 4189 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
4190 | PyObject * _resultobj; |
4191 | wxPen * _arg0; | |
4192 | int _arg1; | |
1d99702e | 4193 | PyObject * _argo0 = 0; |
1afc06c2 | 4194 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
4195 | |
4196 | self = self; | |
1afc06c2 | 4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 4198 | return NULL; |
1d99702e RD |
4199 | if (_argo0) { |
4200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
4202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
4203 | return NULL; | |
4204 | } | |
4205 | } | |
cf694132 RD |
4206 | { |
4207 | wxPy_BEGIN_ALLOW_THREADS; | |
4208 | wxPen_SetWidth(_arg0,_arg1); | |
4209 | ||
4210 | wxPy_END_ALLOW_THREADS; | |
4211 | } Py_INCREF(Py_None); | |
2ea09579 | 4212 | _resultobj = Py_None; |
8ab979d7 RD |
4213 | return _resultobj; |
4214 | } | |
4215 | ||
2ea09579 | 4216 | #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0)) |
1afc06c2 | 4217 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4218 | PyObject * _resultobj; |
2ea09579 | 4219 | int _result; |
8ab979d7 | 4220 | wxPen * _arg0; |
2ea09579 | 4221 | wxDash ** _arg1; |
1d99702e RD |
4222 | PyObject * _argo0 = 0; |
4223 | PyObject * _argo1 = 0; | |
1afc06c2 | 4224 | char *_kwnames[] = { "self","dashes", NULL }; |
8ab979d7 RD |
4225 | |
4226 | self = self; | |
1afc06c2 | 4227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4228 | return NULL; |
1d99702e RD |
4229 | if (_argo0) { |
4230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
4233 | return NULL; |
4234 | } | |
4235 | } | |
1d99702e RD |
4236 | if (_argo1) { |
4237 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4238 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) { | |
2ea09579 | 4239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp."); |
8ab979d7 RD |
4240 | return NULL; |
4241 | } | |
4242 | } | |
cf694132 RD |
4243 | { |
4244 | wxPy_BEGIN_ALLOW_THREADS; | |
4245 | _result = (int )wxPen_GetDashes(_arg0,_arg1); | |
4246 | ||
4247 | wxPy_END_ALLOW_THREADS; | |
4248 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4249 | return _resultobj; |
4250 | } | |
4251 | ||
2ea09579 | 4252 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 4253 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4254 | PyObject * _resultobj; |
4255 | wxPen * _arg0; | |
4256 | int _arg1; | |
2ea09579 | 4257 | wxDash * _arg2; |
1d99702e | 4258 | PyObject * _argo0 = 0; |
2ea09579 | 4259 | PyObject * _obj2 = 0; |
eec92d76 | 4260 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
4261 | |
4262 | self = self; | |
1afc06c2 | 4263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 4264 | return NULL; |
1d99702e RD |
4265 | if (_argo0) { |
4266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
4269 | return NULL; |
4270 | } | |
4271 | } | |
2ea09579 RD |
4272 | if (_obj2) |
4273 | { | |
f6bcfd97 | 4274 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
4275 | if (_arg2 == NULL) { |
4276 | return NULL; | |
4277 | } | |
4278 | } | |
4279 | { | |
cf694132 RD |
4280 | if (_obj2) { |
4281 | _arg1 = PyList_Size(_obj2); | |
4282 | } | |
4283 | else { | |
4284 | _arg1 = 0; | |
4285 | } | |
2ea09579 | 4286 | } |
cf694132 RD |
4287 | { |
4288 | wxPy_BEGIN_ALLOW_THREADS; | |
4289 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
4290 | ||
4291 | wxPy_END_ALLOW_THREADS; | |
4292 | } Py_INCREF(Py_None); | |
8ab979d7 | 4293 | _resultobj = Py_None; |
2ea09579 RD |
4294 | { |
4295 | delete [] _arg2; | |
4296 | } | |
8ab979d7 RD |
4297 | return _resultobj; |
4298 | } | |
4299 | ||
6999b0d8 RD |
4300 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
4301 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4302 | PyObject * _resultobj; | |
4303 | wxBitmap * _result; | |
4304 | wxPen * _arg0; | |
4305 | PyObject * _argo0 = 0; | |
4306 | char *_kwnames[] = { "self", NULL }; | |
4307 | char _ptemp[128]; | |
4308 | ||
4309 | self = self; | |
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
4311 | return NULL; | |
4312 | if (_argo0) { | |
4313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
4316 | return NULL; | |
4317 | } | |
4318 | } | |
4319 | { | |
4320 | wxPy_BEGIN_ALLOW_THREADS; | |
4321 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); | |
4322 | ||
4323 | wxPy_END_ALLOW_THREADS; | |
4324 | } if (_result) { | |
4325 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4326 | _resultobj = Py_BuildValue("s",_ptemp); | |
4327 | } else { | |
4328 | Py_INCREF(Py_None); | |
4329 | _resultobj = Py_None; | |
4330 | } | |
4331 | return _resultobj; | |
4332 | } | |
4333 | ||
2ea09579 | 4334 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 4335 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4336 | PyObject * _resultobj; |
4337 | wxPen * _arg0; | |
2ea09579 | 4338 | wxBitmap * _arg1; |
1d99702e RD |
4339 | PyObject * _argo0 = 0; |
4340 | PyObject * _argo1 = 0; | |
1afc06c2 | 4341 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
4342 | |
4343 | self = self; | |
1afc06c2 | 4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4345 | return NULL; |
1d99702e RD |
4346 | if (_argo0) { |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
4350 | return NULL; |
4351 | } | |
4352 | } | |
1d99702e RD |
4353 | if (_argo1) { |
4354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
4356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
4357 | return NULL; | |
4358 | } | |
4359 | } | |
cf694132 RD |
4360 | { |
4361 | wxPy_BEGIN_ALLOW_THREADS; | |
4362 | wxPen_SetStipple(_arg0,*_arg1); | |
4363 | ||
4364 | wxPy_END_ALLOW_THREADS; | |
4365 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4366 | _resultobj = Py_None; |
4367 | return _resultobj; | |
4368 | } | |
4369 | ||
0569df0f RD |
4370 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
4371 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4372 | PyObject * _resultobj; | |
4373 | wxPenList * _arg0; | |
4374 | wxPen * _arg1; | |
4375 | PyObject * _argo0 = 0; | |
4376 | PyObject * _argo1 = 0; | |
4377 | char *_kwnames[] = { "self","pen", NULL }; | |
4378 | ||
4379 | self = self; | |
4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
4381 | return NULL; | |
4382 | if (_argo0) { | |
4383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
4386 | return NULL; | |
4387 | } | |
4388 | } | |
4389 | if (_argo1) { | |
4390 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4391 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
4393 | return NULL; | |
4394 | } | |
4395 | } | |
4396 | { | |
4397 | wxPy_BEGIN_ALLOW_THREADS; | |
4398 | wxPenList_AddPen(_arg0,_arg1); | |
4399 | ||
4400 | wxPy_END_ALLOW_THREADS; | |
4401 | } Py_INCREF(Py_None); | |
4402 | _resultobj = Py_None; | |
4403 | return _resultobj; | |
4404 | } | |
4405 | ||
4406 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
4407 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4408 | PyObject * _resultobj; | |
4409 | wxPen * _result; | |
4410 | wxPenList * _arg0; | |
4411 | wxColour * _arg1; | |
4412 | int _arg2; | |
4413 | int _arg3; | |
4414 | PyObject * _argo0 = 0; | |
4415 | wxColour temp; | |
4416 | PyObject * _obj1 = 0; | |
4417 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
4418 | char _ptemp[128]; | |
4419 | ||
4420 | self = self; | |
4421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
4422 | return NULL; | |
4423 | if (_argo0) { | |
4424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
4427 | return NULL; | |
4428 | } | |
4429 | } | |
4430 | { | |
4431 | _arg1 = &temp; | |
4432 | if (! wxColour_helper(_obj1, &_arg1)) | |
4433 | return NULL; | |
4434 | } | |
4435 | { | |
4436 | wxPy_BEGIN_ALLOW_THREADS; | |
4437 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
4438 | ||
4439 | wxPy_END_ALLOW_THREADS; | |
4440 | } if (_result) { | |
4441 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4442 | _resultobj = Py_BuildValue("s",_ptemp); | |
4443 | } else { | |
4444 | Py_INCREF(Py_None); | |
4445 | _resultobj = Py_None; | |
4446 | } | |
4447 | return _resultobj; | |
4448 | } | |
4449 | ||
4450 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
4451 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4452 | PyObject * _resultobj; | |
4453 | wxPenList * _arg0; | |
4454 | wxPen * _arg1; | |
4455 | PyObject * _argo0 = 0; | |
4456 | PyObject * _argo1 = 0; | |
4457 | char *_kwnames[] = { "self","pen", NULL }; | |
4458 | ||
4459 | self = self; | |
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
4461 | return NULL; | |
4462 | if (_argo0) { | |
4463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
4466 | return NULL; | |
4467 | } | |
4468 | } | |
4469 | if (_argo1) { | |
4470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
4473 | return NULL; | |
8ab979d7 | 4474 | } |
0569df0f RD |
4475 | } |
4476 | { | |
4477 | wxPy_BEGIN_ALLOW_THREADS; | |
4478 | wxPenList_RemovePen(_arg0,_arg1); | |
8ab979d7 | 4479 | |
0569df0f RD |
4480 | wxPy_END_ALLOW_THREADS; |
4481 | } Py_INCREF(Py_None); | |
4482 | _resultobj = Py_None; | |
4483 | return _resultobj; | |
4484 | } | |
4485 | ||
4486 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
1afc06c2 | 4487 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4488 | PyObject * _resultobj; |
4489 | wxBrush * _result; | |
4490 | wxColour * _arg0; | |
1d99702e | 4491 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
4492 | wxColour temp; |
4493 | PyObject * _obj0 = 0; | |
1afc06c2 | 4494 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
4495 | char _ptemp[128]; |
4496 | ||
4497 | self = self; | |
f6bcfd97 | 4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 4499 | return NULL; |
f6bcfd97 BP |
4500 | { |
4501 | _arg0 = &temp; | |
4502 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4503 | return NULL; |
f6bcfd97 | 4504 | } |
cf694132 RD |
4505 | { |
4506 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 4507 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 RD |
4508 | |
4509 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4510 | } if (_result) { |
4511 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4512 | _resultobj = Py_BuildValue("s",_ptemp); | |
4513 | } else { | |
4514 | Py_INCREF(Py_None); | |
4515 | _resultobj = Py_None; | |
4516 | } | |
8ab979d7 RD |
4517 | return _resultobj; |
4518 | } | |
4519 | ||
0569df0f RD |
4520 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
4521 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4522 | PyObject * _resultobj; | |
4523 | wxBrush * _arg0; | |
4524 | PyObject * _argo0 = 0; | |
4525 | char *_kwnames[] = { "self", NULL }; | |
4526 | ||
4527 | self = self; | |
4528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
4529 | return NULL; | |
4530 | if (_argo0) { | |
4531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
4534 | return NULL; | |
4535 | } | |
4536 | } | |
4537 | { | |
4538 | wxPy_BEGIN_ALLOW_THREADS; | |
4539 | delete_wxBrush(_arg0); | |
4540 | ||
4541 | wxPy_END_ALLOW_THREADS; | |
4542 | } Py_INCREF(Py_None); | |
4543 | _resultobj = Py_None; | |
4544 | return _resultobj; | |
4545 | } | |
4546 | ||
8ab979d7 | 4547 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 4548 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4549 | PyObject * _resultobj; |
4550 | wxColour * _result; | |
4551 | wxBrush * _arg0; | |
1d99702e | 4552 | PyObject * _argo0 = 0; |
1afc06c2 | 4553 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4554 | char _ptemp[128]; |
4555 | ||
4556 | self = self; | |
1afc06c2 | 4557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 4558 | return NULL; |
1d99702e RD |
4559 | if (_argo0) { |
4560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
4563 | return NULL; | |
4564 | } | |
4565 | } | |
cf694132 RD |
4566 | { |
4567 | wxPy_BEGIN_ALLOW_THREADS; | |
4568 | wxColour & _result_ref = wxBrush_GetColour(_arg0); | |
8ab979d7 | 4569 | _result = (wxColour *) &_result_ref; |
cf694132 RD |
4570 | |
4571 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4572 | } if (_result) { |
4573 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4574 | _resultobj = Py_BuildValue("s",_ptemp); | |
4575 | } else { | |
4576 | Py_INCREF(Py_None); | |
4577 | _resultobj = Py_None; | |
4578 | } | |
8ab979d7 RD |
4579 | return _resultobj; |
4580 | } | |
4581 | ||
4582 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 4583 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4584 | PyObject * _resultobj; |
4585 | wxBitmap * _result; | |
4586 | wxBrush * _arg0; | |
1d99702e | 4587 | PyObject * _argo0 = 0; |
1afc06c2 | 4588 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4589 | char _ptemp[128]; |
4590 | ||
4591 | self = self; | |
1afc06c2 | 4592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 4593 | return NULL; |
1d99702e RD |
4594 | if (_argo0) { |
4595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
4598 | return NULL; | |
4599 | } | |
4600 | } | |
cf694132 RD |
4601 | { |
4602 | wxPy_BEGIN_ALLOW_THREADS; | |
4603 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
4604 | ||
4605 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4606 | } if (_result) { |
4607 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4608 | _resultobj = Py_BuildValue("s",_ptemp); | |
4609 | } else { | |
4610 | Py_INCREF(Py_None); | |
4611 | _resultobj = Py_None; | |
4612 | } | |
8ab979d7 RD |
4613 | return _resultobj; |
4614 | } | |
4615 | ||
4616 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 4617 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4618 | PyObject * _resultobj; |
4619 | int _result; | |
4620 | wxBrush * _arg0; | |
1d99702e | 4621 | PyObject * _argo0 = 0; |
1afc06c2 | 4622 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4623 | |
4624 | self = self; | |
1afc06c2 | 4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4626 | return NULL; |
1d99702e RD |
4627 | if (_argo0) { |
4628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
4631 | return NULL; | |
4632 | } | |
4633 | } | |
cf694132 RD |
4634 | { |
4635 | wxPy_BEGIN_ALLOW_THREADS; | |
4636 | _result = (int )wxBrush_GetStyle(_arg0); | |
4637 | ||
4638 | wxPy_END_ALLOW_THREADS; | |
4639 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4640 | return _resultobj; |
4641 | } | |
4642 | ||
4643 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4644 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4645 | PyObject * _resultobj; |
4646 | bool _result; | |
4647 | wxBrush * _arg0; | |
1d99702e | 4648 | PyObject * _argo0 = 0; |
1afc06c2 | 4649 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4650 | |
4651 | self = self; | |
1afc06c2 | 4652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 4653 | return NULL; |
1d99702e RD |
4654 | if (_argo0) { |
4655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
4658 | return NULL; | |
4659 | } | |
4660 | } | |
cf694132 RD |
4661 | { |
4662 | wxPy_BEGIN_ALLOW_THREADS; | |
4663 | _result = (bool )wxBrush_Ok(_arg0); | |
4664 | ||
4665 | wxPy_END_ALLOW_THREADS; | |
4666 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4667 | return _resultobj; |
4668 | } | |
4669 | ||
4670 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 4671 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4672 | PyObject * _resultobj; |
4673 | wxBrush * _arg0; | |
4674 | wxColour * _arg1; | |
1d99702e | 4675 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4676 | wxColour temp; |
4677 | PyObject * _obj1 = 0; | |
1afc06c2 | 4678 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4679 | |
4680 | self = self; | |
f6bcfd97 | 4681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4682 | return NULL; |
1d99702e RD |
4683 | if (_argo0) { |
4684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
4687 | return NULL; | |
4688 | } | |
4689 | } | |
f6bcfd97 BP |
4690 | { |
4691 | _arg1 = &temp; | |
4692 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4693 | return NULL; |
f6bcfd97 | 4694 | } |
cf694132 RD |
4695 | { |
4696 | wxPy_BEGIN_ALLOW_THREADS; | |
4697 | wxBrush_SetColour(_arg0,*_arg1); | |
4698 | ||
4699 | wxPy_END_ALLOW_THREADS; | |
4700 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4701 | _resultobj = Py_None; |
4702 | return _resultobj; | |
4703 | } | |
4704 | ||
4705 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 4706 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4707 | PyObject * _resultobj; |
4708 | wxBrush * _arg0; | |
4709 | wxBitmap * _arg1; | |
1d99702e RD |
4710 | PyObject * _argo0 = 0; |
4711 | PyObject * _argo1 = 0; | |
1afc06c2 | 4712 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
4713 | |
4714 | self = self; | |
1afc06c2 | 4715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4716 | return NULL; |
1d99702e RD |
4717 | if (_argo0) { |
4718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
4721 | return NULL; | |
4722 | } | |
4723 | } | |
1d99702e RD |
4724 | if (_argo1) { |
4725 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4726 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
4727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
4728 | return NULL; | |
4729 | } | |
4730 | } | |
cf694132 RD |
4731 | { |
4732 | wxPy_BEGIN_ALLOW_THREADS; | |
4733 | wxBrush_SetStipple(_arg0,*_arg1); | |
4734 | ||
4735 | wxPy_END_ALLOW_THREADS; | |
4736 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4737 | _resultobj = Py_None; |
4738 | return _resultobj; | |
4739 | } | |
4740 | ||
4741 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 4742 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4743 | PyObject * _resultobj; |
4744 | wxBrush * _arg0; | |
4745 | int _arg1; | |
1d99702e | 4746 | PyObject * _argo0 = 0; |
1afc06c2 | 4747 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4748 | |
4749 | self = self; | |
1afc06c2 | 4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4751 | return NULL; |
1d99702e RD |
4752 | if (_argo0) { |
4753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
4756 | return NULL; | |
4757 | } | |
4758 | } | |
cf694132 RD |
4759 | { |
4760 | wxPy_BEGIN_ALLOW_THREADS; | |
4761 | wxBrush_SetStyle(_arg0,_arg1); | |
4762 | ||
4763 | wxPy_END_ALLOW_THREADS; | |
4764 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4765 | _resultobj = Py_None; |
4766 | return _resultobj; | |
4767 | } | |
4768 | ||
0569df0f RD |
4769 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
4770 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4771 | PyObject * _resultobj; | |
4772 | wxBrushList * _arg0; | |
4773 | wxBrush * _arg1; | |
4774 | PyObject * _argo0 = 0; | |
4775 | PyObject * _argo1 = 0; | |
4776 | char *_kwnames[] = { "self","brush", NULL }; | |
4777 | ||
4778 | self = self; | |
4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
4780 | return NULL; | |
4781 | if (_argo0) { | |
4782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
4785 | return NULL; | |
4786 | } | |
4787 | } | |
4788 | if (_argo1) { | |
4789 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4790 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
4792 | return NULL; | |
4793 | } | |
4794 | } | |
4795 | { | |
4796 | wxPy_BEGIN_ALLOW_THREADS; | |
4797 | wxBrushList_AddBrush(_arg0,_arg1); | |
4798 | ||
4799 | wxPy_END_ALLOW_THREADS; | |
4800 | } Py_INCREF(Py_None); | |
4801 | _resultobj = Py_None; | |
4802 | return _resultobj; | |
4803 | } | |
4804 | ||
4805 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
4806 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4807 | PyObject * _resultobj; | |
4808 | wxBrush * _result; | |
4809 | wxBrushList * _arg0; | |
4810 | wxColour * _arg1; | |
4811 | int _arg2; | |
4812 | PyObject * _argo0 = 0; | |
4813 | wxColour temp; | |
4814 | PyObject * _obj1 = 0; | |
4815 | char *_kwnames[] = { "self","colour","style", NULL }; | |
4816 | char _ptemp[128]; | |
4817 | ||
4818 | self = self; | |
4819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4820 | return NULL; | |
4821 | if (_argo0) { | |
4822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
4825 | return NULL; | |
4826 | } | |
4827 | } | |
4828 | { | |
4829 | _arg1 = &temp; | |
4830 | if (! wxColour_helper(_obj1, &_arg1)) | |
4831 | return NULL; | |
4832 | } | |
4833 | { | |
4834 | wxPy_BEGIN_ALLOW_THREADS; | |
4835 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
4836 | ||
4837 | wxPy_END_ALLOW_THREADS; | |
4838 | } if (_result) { | |
4839 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4840 | _resultobj = Py_BuildValue("s",_ptemp); | |
4841 | } else { | |
4842 | Py_INCREF(Py_None); | |
4843 | _resultobj = Py_None; | |
4844 | } | |
4845 | return _resultobj; | |
4846 | } | |
4847 | ||
4848 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
4849 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4850 | PyObject * _resultobj; | |
4851 | wxBrushList * _arg0; | |
4852 | wxBrush * _arg1; | |
4853 | PyObject * _argo0 = 0; | |
4854 | PyObject * _argo1 = 0; | |
4855 | char *_kwnames[] = { "self","brush", NULL }; | |
4856 | ||
4857 | self = self; | |
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
4859 | return NULL; | |
4860 | if (_argo0) { | |
4861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
4863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
4864 | return NULL; | |
4865 | } | |
4866 | } | |
4867 | if (_argo1) { | |
4868 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4869 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
4870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
4871 | return NULL; | |
4872 | } | |
4873 | } | |
4874 | { | |
4875 | wxPy_BEGIN_ALLOW_THREADS; | |
4876 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
4877 | ||
4878 | wxPy_END_ALLOW_THREADS; | |
4879 | } Py_INCREF(Py_None); | |
4880 | _resultobj = Py_None; | |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
8ab979d7 | 4884 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 4885 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4886 | PyObject * _resultobj; |
4887 | wxDC * _arg0; | |
1d99702e | 4888 | PyObject * _argo0 = 0; |
1afc06c2 | 4889 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4890 | |
4891 | self = self; | |
1afc06c2 | 4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 4893 | return NULL; |
1d99702e RD |
4894 | if (_argo0) { |
4895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
4897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
4898 | return NULL; | |
4899 | } | |
4900 | } | |
cf694132 RD |
4901 | { |
4902 | wxPy_BEGIN_ALLOW_THREADS; | |
4903 | delete_wxDC(_arg0); | |
4904 | ||
4905 | wxPy_END_ALLOW_THREADS; | |
4906 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4907 | _resultobj = Py_None; |
4908 | return _resultobj; | |
4909 | } | |
4910 | ||
4911 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 4912 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4913 | PyObject * _resultobj; |
4914 | wxDC * _arg0; | |
1d99702e | 4915 | PyObject * _argo0 = 0; |
1afc06c2 | 4916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4917 | |
4918 | self = self; | |
1afc06c2 | 4919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 4920 | return NULL; |
1d99702e RD |
4921 | if (_argo0) { |
4922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
4924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
4925 | return NULL; | |
4926 | } | |
4927 | } | |
cf694132 RD |
4928 | { |
4929 | wxPy_BEGIN_ALLOW_THREADS; | |
4930 | wxDC_BeginDrawing(_arg0); | |
4931 | ||
4932 | wxPy_END_ALLOW_THREADS; | |
4933 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4934 | _resultobj = Py_None; |
4935 | return _resultobj; | |
4936 | } | |
4937 | ||
efc5f224 | 4938 | #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 | 4939 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4940 | PyObject * _resultobj; |
4941 | bool _result; | |
4942 | wxDC * _arg0; | |
4943 | long _arg1; | |
4944 | long _arg2; | |
4945 | long _arg3; | |
4946 | long _arg4; | |
4947 | wxDC * _arg5; | |
4948 | long _arg6; | |
4949 | long _arg7; | |
efc5f224 RD |
4950 | int _arg8 = (int ) wxCOPY; |
4951 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
4952 | PyObject * _argo0 = 0; |
4953 | PyObject * _argo5 = 0; | |
1afc06c2 | 4954 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
4955 | |
4956 | self = self; | |
1afc06c2 | 4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 4958 | return NULL; |
1d99702e RD |
4959 | if (_argo0) { |
4960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
4962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
4963 | return NULL; | |
4964 | } | |
4965 | } | |
1d99702e RD |
4966 | if (_argo5) { |
4967 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
4968 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
4969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
4970 | return NULL; | |
4971 | } | |
4972 | } | |
cf694132 RD |
4973 | { |
4974 | wxPy_BEGIN_ALLOW_THREADS; | |
efc5f224 | 4975 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 RD |
4976 | |
4977 | wxPy_END_ALLOW_THREADS; | |
4978 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4979 | return _resultobj; |
4980 | } | |
4981 | ||
4982 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 4983 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4984 | PyObject * _resultobj; |
4985 | wxDC * _arg0; | |
1d99702e | 4986 | PyObject * _argo0 = 0; |
1afc06c2 | 4987 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4988 | |
4989 | self = self; | |
1afc06c2 | 4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 4991 | return NULL; |
1d99702e RD |
4992 | if (_argo0) { |
4993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
4995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
4996 | return NULL; | |
4997 | } | |
4998 | } | |
cf694132 RD |
4999 | { |
5000 | wxPy_BEGIN_ALLOW_THREADS; | |
5001 | wxDC_Clear(_arg0); | |
5002 | ||
5003 | wxPy_END_ALLOW_THREADS; | |
5004 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5005 | _resultobj = Py_None; |
5006 | return _resultobj; | |
5007 | } | |
5008 | ||
5009 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 5010 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5011 | PyObject * _resultobj; |
5012 | wxDC * _arg0; | |
5013 | long _arg1; | |
5014 | long _arg2; | |
1d99702e | 5015 | PyObject * _argo0 = 0; |
1afc06c2 | 5016 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5017 | |
5018 | self = self; | |
1afc06c2 | 5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5020 | return NULL; |
1d99702e RD |
5021 | if (_argo0) { |
5022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
5025 | return NULL; | |
5026 | } | |
5027 | } | |
cf694132 RD |
5028 | { |
5029 | wxPy_BEGIN_ALLOW_THREADS; | |
5030 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
5031 | ||
5032 | wxPy_END_ALLOW_THREADS; | |
5033 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5034 | _resultobj = Py_None; |
5035 | return _resultobj; | |
5036 | } | |
5037 | ||
5038 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 5039 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5040 | PyObject * _resultobj; |
5041 | wxDC * _arg0; | |
1d99702e | 5042 | PyObject * _argo0 = 0; |
1afc06c2 | 5043 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5044 | |
5045 | self = self; | |
1afc06c2 | 5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 5047 | return NULL; |
1d99702e RD |
5048 | if (_argo0) { |
5049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
5052 | return NULL; | |
5053 | } | |
5054 | } | |
cf694132 RD |
5055 | { |
5056 | wxPy_BEGIN_ALLOW_THREADS; | |
5057 | wxDC_DestroyClippingRegion(_arg0); | |
5058 | ||
5059 | wxPy_END_ALLOW_THREADS; | |
5060 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5061 | _resultobj = Py_None; |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
5065 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 5066 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5067 | PyObject * _resultobj; |
5068 | long _result; | |
5069 | wxDC * _arg0; | |
5070 | long _arg1; | |
1d99702e | 5071 | PyObject * _argo0 = 0; |
1afc06c2 | 5072 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
5073 | |
5074 | self = self; | |
1afc06c2 | 5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5076 | return NULL; |
1d99702e RD |
5077 | if (_argo0) { |
5078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
5081 | return NULL; | |
5082 | } | |
5083 | } | |
cf694132 RD |
5084 | { |
5085 | wxPy_BEGIN_ALLOW_THREADS; | |
5086 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
5087 | ||
5088 | wxPy_END_ALLOW_THREADS; | |
5089 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
5090 | return _resultobj; |
5091 | } | |
5092 | ||
5093 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 5094 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5095 | PyObject * _resultobj; |
5096 | long _result; | |
5097 | wxDC * _arg0; | |
5098 | long _arg1; | |
1d99702e | 5099 | PyObject * _argo0 = 0; |
1afc06c2 | 5100 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
5101 | |
5102 | self = self; | |
1afc06c2 | 5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5104 | return NULL; |
1d99702e RD |
5105 | if (_argo0) { |
5106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
5109 | return NULL; | |
5110 | } | |
5111 | } | |
cf694132 RD |
5112 | { |
5113 | wxPy_BEGIN_ALLOW_THREADS; | |
5114 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
5115 | ||
5116 | wxPy_END_ALLOW_THREADS; | |
5117 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
5118 | return _resultobj; |
5119 | } | |
5120 | ||
5121 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 5122 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5123 | PyObject * _resultobj; |
5124 | long _result; | |
5125 | wxDC * _arg0; | |
5126 | long _arg1; | |
1d99702e | 5127 | PyObject * _argo0 = 0; |
1afc06c2 | 5128 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
5129 | |
5130 | self = self; | |
1afc06c2 | 5131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5132 | return NULL; |
1d99702e RD |
5133 | if (_argo0) { |
5134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
5137 | return NULL; | |
5138 | } | |
5139 | } | |
cf694132 RD |
5140 | { |
5141 | wxPy_BEGIN_ALLOW_THREADS; | |
5142 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
5143 | ||
5144 | wxPy_END_ALLOW_THREADS; | |
5145 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
5146 | return _resultobj; |
5147 | } | |
5148 | ||
5149 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 5150 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5151 | PyObject * _resultobj; |
5152 | long _result; | |
5153 | wxDC * _arg0; | |
5154 | long _arg1; | |
1d99702e | 5155 | PyObject * _argo0 = 0; |
1afc06c2 | 5156 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
5157 | |
5158 | self = self; | |
1afc06c2 | 5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5160 | return NULL; |
1d99702e RD |
5161 | if (_argo0) { |
5162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
5165 | return NULL; | |
5166 | } | |
5167 | } | |
cf694132 RD |
5168 | { |
5169 | wxPy_BEGIN_ALLOW_THREADS; | |
5170 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
5171 | ||
5172 | wxPy_END_ALLOW_THREADS; | |
5173 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
5174 | return _resultobj; |
5175 | } | |
5176 | ||
5177 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 5178 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5179 | PyObject * _resultobj; |
5180 | wxDC * _arg0; | |
5181 | long _arg1; | |
5182 | long _arg2; | |
5183 | long _arg3; | |
5184 | long _arg4; | |
5185 | long _arg5; | |
5186 | long _arg6; | |
1d99702e | 5187 | PyObject * _argo0 = 0; |
1afc06c2 | 5188 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
5189 | |
5190 | self = self; | |
1afc06c2 | 5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 5192 | return NULL; |
1d99702e RD |
5193 | if (_argo0) { |
5194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
5197 | return NULL; | |
5198 | } | |
5199 | } | |
cf694132 RD |
5200 | { |
5201 | wxPy_BEGIN_ALLOW_THREADS; | |
5202 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5203 | ||
5204 | wxPy_END_ALLOW_THREADS; | |
5205 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5206 | _resultobj = Py_None; |
5207 | return _resultobj; | |
5208 | } | |
5209 | ||
bb0054cd | 5210 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5211 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5212 | PyObject * _resultobj; |
5213 | wxDC * _arg0; | |
5214 | long _arg1; | |
5215 | long _arg2; | |
5216 | long _arg3; | |
1d99702e | 5217 | PyObject * _argo0 = 0; |
1afc06c2 | 5218 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
5219 | |
5220 | self = self; | |
1afc06c2 | 5221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 5222 | return NULL; |
1d99702e RD |
5223 | if (_argo0) { |
5224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
5226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
5227 | return NULL; | |
5228 | } | |
5229 | } | |
5230 | { | |
5231 | wxPy_BEGIN_ALLOW_THREADS; | |
5232 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
5233 | ||
5234 | wxPy_END_ALLOW_THREADS; | |
5235 | } Py_INCREF(Py_None); | |
5236 | _resultobj = Py_None; | |
5237 | return _resultobj; | |
5238 | } | |
5239 | ||
8ab979d7 | 5240 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 5241 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5242 | PyObject * _resultobj; |
5243 | wxDC * _arg0; | |
5244 | long _arg1; | |
5245 | long _arg2; | |
5246 | long _arg3; | |
5247 | long _arg4; | |
1d99702e | 5248 | PyObject * _argo0 = 0; |
1afc06c2 | 5249 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
5250 | |
5251 | self = self; | |
1afc06c2 | 5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5253 | return NULL; |
1d99702e RD |
5254 | if (_argo0) { |
5255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
5258 | return NULL; | |
5259 | } | |
5260 | } | |
cf694132 RD |
5261 | { |
5262 | wxPy_BEGIN_ALLOW_THREADS; | |
5263 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5264 | ||
5265 | wxPy_END_ALLOW_THREADS; | |
5266 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5267 | _resultobj = Py_None; |
5268 | return _resultobj; | |
5269 | } | |
5270 | ||
5271 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 5272 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5273 | PyObject * _resultobj; |
5274 | wxDC * _arg0; | |
5275 | long _arg1; | |
5276 | long _arg2; | |
5277 | long _arg3; | |
5278 | long _arg4; | |
5279 | long _arg5; | |
5280 | long _arg6; | |
1d99702e | 5281 | PyObject * _argo0 = 0; |
1afc06c2 | 5282 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
5283 | |
5284 | self = self; | |
1afc06c2 | 5285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 5286 | return NULL; |
1d99702e RD |
5287 | if (_argo0) { |
5288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
5291 | return NULL; | |
5292 | } | |
5293 | } | |
cf694132 RD |
5294 | { |
5295 | wxPy_BEGIN_ALLOW_THREADS; | |
5296 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5297 | ||
5298 | wxPy_END_ALLOW_THREADS; | |
5299 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5300 | _resultobj = Py_None; |
5301 | return _resultobj; | |
5302 | } | |
5303 | ||
5304 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5305 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5306 | PyObject * _resultobj; |
5307 | wxDC * _arg0; | |
5308 | wxIcon * _arg1; | |
5309 | long _arg2; | |
5310 | long _arg3; | |
1d99702e RD |
5311 | PyObject * _argo0 = 0; |
5312 | PyObject * _argo1 = 0; | |
1afc06c2 | 5313 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
5314 | |
5315 | self = self; | |
1afc06c2 | 5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5317 | return NULL; |
1d99702e RD |
5318 | if (_argo0) { |
5319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
5322 | return NULL; | |
5323 | } | |
5324 | } | |
1d99702e RD |
5325 | if (_argo1) { |
5326 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5327 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
5328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
5329 | return NULL; | |
5330 | } | |
5331 | } | |
cf694132 RD |
5332 | { |
5333 | wxPy_BEGIN_ALLOW_THREADS; | |
5334 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
5335 | ||
5336 | wxPy_END_ALLOW_THREADS; | |
5337 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5338 | _resultobj = Py_None; |
5339 | return _resultobj; | |
5340 | } | |
5341 | ||
5342 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 5343 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5344 | PyObject * _resultobj; |
5345 | wxDC * _arg0; | |
5346 | long _arg1; | |
5347 | long _arg2; | |
5348 | long _arg3; | |
5349 | long _arg4; | |
1d99702e | 5350 | PyObject * _argo0 = 0; |
1afc06c2 | 5351 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
5352 | |
5353 | self = self; | |
1afc06c2 | 5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5355 | return NULL; |
1d99702e RD |
5356 | if (_argo0) { |
5357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
5360 | return NULL; | |
5361 | } | |
5362 | } | |
cf694132 RD |
5363 | { |
5364 | wxPy_BEGIN_ALLOW_THREADS; | |
5365 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5366 | ||
5367 | wxPy_END_ALLOW_THREADS; | |
5368 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5369 | _resultobj = Py_None; |
5370 | return _resultobj; | |
5371 | } | |
5372 | ||
5373 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 5374 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5375 | PyObject * _resultobj; |
5376 | wxDC * _arg0; | |
5377 | int _arg1; | |
5378 | wxPoint * _arg2; | |
1d99702e RD |
5379 | long _arg3 = (long ) 0; |
5380 | long _arg4 = (long ) 0; | |
5381 | PyObject * _argo0 = 0; | |
8ab979d7 | 5382 | PyObject * _obj2 = 0; |
eec92d76 | 5383 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
5384 | |
5385 | self = self; | |
1afc06c2 | 5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 5387 | return NULL; |
1d99702e RD |
5388 | if (_argo0) { |
5389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
5392 | return NULL; | |
5393 | } | |
5394 | } | |
5395 | if (_obj2) | |
5396 | { | |
5397 | _arg2 = wxPoint_LIST_helper(_obj2); | |
5398 | if (_arg2 == NULL) { | |
5399 | return NULL; | |
5400 | } | |
5401 | } | |
5402 | { | |
cf694132 RD |
5403 | if (_obj2) { |
5404 | _arg1 = PyList_Size(_obj2); | |
5405 | } | |
5406 | else { | |
5407 | _arg1 = 0; | |
5408 | } | |
8ab979d7 | 5409 | } |
cf694132 RD |
5410 | { |
5411 | wxPy_BEGIN_ALLOW_THREADS; | |
5412 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5413 | ||
5414 | wxPy_END_ALLOW_THREADS; | |
5415 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5416 | _resultobj = Py_None; |
5417 | { | |
5418 | delete [] _arg2; | |
5419 | } | |
5420 | return _resultobj; | |
5421 | } | |
5422 | ||
5423 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 5424 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5425 | PyObject * _resultobj; |
5426 | wxDC * _arg0; | |
5427 | int _arg1; | |
5428 | wxPoint * _arg2; | |
1d99702e RD |
5429 | long _arg3 = (long ) 0; |
5430 | long _arg4 = (long ) 0; | |
5431 | int _arg5 = (int ) wxODDEVEN_RULE; | |
5432 | PyObject * _argo0 = 0; | |
8ab979d7 | 5433 | PyObject * _obj2 = 0; |
eec92d76 | 5434 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
5435 | |
5436 | self = self; | |
1afc06c2 | 5437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 5438 | return NULL; |
1d99702e RD |
5439 | if (_argo0) { |
5440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
5443 | return NULL; | |
5444 | } | |
5445 | } | |
5446 | if (_obj2) | |
5447 | { | |
5448 | _arg2 = wxPoint_LIST_helper(_obj2); | |
5449 | if (_arg2 == NULL) { | |
5450 | return NULL; | |
5451 | } | |
5452 | } | |
5453 | { | |
cf694132 RD |
5454 | if (_obj2) { |
5455 | _arg1 = PyList_Size(_obj2); | |
5456 | } | |
5457 | else { | |
5458 | _arg1 = 0; | |
5459 | } | |
8ab979d7 | 5460 | } |
cf694132 RD |
5461 | { |
5462 | wxPy_BEGIN_ALLOW_THREADS; | |
5463 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5464 | ||
5465 | wxPy_END_ALLOW_THREADS; | |
5466 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5467 | _resultobj = Py_None; |
5468 | { | |
5469 | delete [] _arg2; | |
5470 | } | |
5471 | return _resultobj; | |
5472 | } | |
5473 | ||
5474 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 5475 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5476 | PyObject * _resultobj; |
5477 | wxDC * _arg0; | |
5478 | long _arg1; | |
5479 | long _arg2; | |
1d99702e | 5480 | PyObject * _argo0 = 0; |
1afc06c2 | 5481 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5482 | |
5483 | self = self; | |
1afc06c2 | 5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5485 | return NULL; |
1d99702e RD |
5486 | if (_argo0) { |
5487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
cf694132 RD |
5493 | { |
5494 | wxPy_BEGIN_ALLOW_THREADS; | |
5495 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
5496 | ||
5497 | wxPy_END_ALLOW_THREADS; | |
5498 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5499 | _resultobj = Py_None; |
5500 | return _resultobj; | |
5501 | } | |
5502 | ||
5503 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 5504 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5505 | PyObject * _resultobj; |
5506 | wxDC * _arg0; | |
5507 | long _arg1; | |
5508 | long _arg2; | |
5509 | long _arg3; | |
5510 | long _arg4; | |
1d99702e | 5511 | PyObject * _argo0 = 0; |
1afc06c2 | 5512 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
5513 | |
5514 | self = self; | |
1afc06c2 | 5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5516 | return NULL; |
1d99702e RD |
5517 | if (_argo0) { |
5518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
5521 | return NULL; | |
5522 | } | |
5523 | } | |
cf694132 RD |
5524 | { |
5525 | wxPy_BEGIN_ALLOW_THREADS; | |
5526 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5527 | ||
5528 | wxPy_END_ALLOW_THREADS; | |
5529 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5530 | _resultobj = Py_None; |
5531 | return _resultobj; | |
5532 | } | |
5533 | ||
6999b0d8 RD |
5534 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5535 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5536 | PyObject * _resultobj; | |
5537 | wxDC * _arg0; | |
5538 | wxString * _arg1; | |
5539 | wxCoord _arg2; | |
5540 | wxCoord _arg3; | |
5541 | double _arg4; | |
5542 | PyObject * _argo0 = 0; | |
5543 | PyObject * _obj1 = 0; | |
5544 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
5545 | ||
5546 | self = self; | |
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5548 | return NULL; | |
5549 | if (_argo0) { | |
5550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
5553 | return NULL; | |
5554 | } | |
5555 | } | |
5556 | { | |
185d7c3e RD |
5557 | #if PYTHON_API_VERSION >= 1009 |
5558 | char* tmpPtr; int tmpSize; | |
5559 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5560 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5561 | return NULL; | |
5562 | } | |
5563 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5564 | return NULL; | |
5565 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5566 | #else | |
6999b0d8 RD |
5567 | if (!PyString_Check(_obj1)) { |
5568 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5569 | return NULL; | |
5570 | } | |
185d7c3e RD |
5571 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5572 | #endif | |
6999b0d8 RD |
5573 | } |
5574 | { | |
5575 | wxPy_BEGIN_ALLOW_THREADS; | |
5576 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
5577 | ||
5578 | wxPy_END_ALLOW_THREADS; | |
5579 | } Py_INCREF(Py_None); | |
5580 | _resultobj = Py_None; | |
5581 | { | |
5582 | if (_obj1) | |
5583 | delete _arg1; | |
5584 | } | |
5585 | return _resultobj; | |
5586 | } | |
5587 | ||
8ab979d7 | 5588 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 5589 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5590 | PyObject * _resultobj; |
5591 | wxDC * _arg0; | |
5592 | long _arg1; | |
5593 | long _arg2; | |
5594 | long _arg3; | |
5595 | long _arg4; | |
1d99702e RD |
5596 | long _arg5 = (long ) 20; |
5597 | PyObject * _argo0 = 0; | |
1afc06c2 | 5598 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
5599 | |
5600 | self = self; | |
1afc06c2 | 5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 5602 | return NULL; |
1d99702e RD |
5603 | if (_argo0) { |
5604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
5607 | return NULL; | |
5608 | } | |
5609 | } | |
cf694132 RD |
5610 | { |
5611 | wxPy_BEGIN_ALLOW_THREADS; | |
5612 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
5613 | ||
5614 | wxPy_END_ALLOW_THREADS; | |
5615 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5616 | _resultobj = Py_None; |
5617 | return _resultobj; | |
5618 | } | |
5619 | ||
5620 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 5621 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5622 | PyObject * _resultobj; |
5623 | wxDC * _arg0; | |
5624 | int _arg1; | |
5625 | wxPoint * _arg2; | |
1d99702e | 5626 | PyObject * _argo0 = 0; |
8ab979d7 | 5627 | PyObject * _obj2 = 0; |
eec92d76 | 5628 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
5629 | |
5630 | self = self; | |
1afc06c2 | 5631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 5632 | return NULL; |
1d99702e RD |
5633 | if (_argo0) { |
5634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
5637 | return NULL; | |
5638 | } | |
5639 | } | |
5640 | if (_obj2) | |
5641 | { | |
5642 | _arg2 = wxPoint_LIST_helper(_obj2); | |
5643 | if (_arg2 == NULL) { | |
5644 | return NULL; | |
5645 | } | |
5646 | } | |
5647 | { | |
cf694132 RD |
5648 | if (_obj2) { |
5649 | _arg1 = PyList_Size(_obj2); | |
5650 | } | |
5651 | else { | |
5652 | _arg1 = 0; | |
5653 | } | |
8ab979d7 | 5654 | } |
cf694132 RD |
5655 | { |
5656 | wxPy_BEGIN_ALLOW_THREADS; | |
5657 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
5658 | ||
5659 | wxPy_END_ALLOW_THREADS; | |
5660 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5661 | _resultobj = Py_None; |
5662 | { | |
5663 | delete [] _arg2; | |
5664 | } | |
5665 | return _resultobj; | |
5666 | } | |
5667 | ||
5668 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5669 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5670 | PyObject * _resultobj; |
5671 | wxDC * _arg0; | |
5672 | wxString * _arg1; | |
5673 | long _arg2; | |
5674 | long _arg3; | |
1d99702e | 5675 | PyObject * _argo0 = 0; |
8ab979d7 | 5676 | PyObject * _obj1 = 0; |
1afc06c2 | 5677 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
5678 | |
5679 | self = self; | |
1afc06c2 | 5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 5681 | return NULL; |
1d99702e RD |
5682 | if (_argo0) { |
5683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
5686 | return NULL; | |
5687 | } | |
5688 | } | |
5689 | { | |
185d7c3e RD |
5690 | #if PYTHON_API_VERSION >= 1009 |
5691 | char* tmpPtr; int tmpSize; | |
5692 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5693 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5694 | return NULL; | |
5695 | } | |
5696 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5697 | return NULL; | |
5698 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5699 | #else | |
8ab979d7 RD |
5700 | if (!PyString_Check(_obj1)) { |
5701 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5702 | return NULL; | |
5703 | } | |
185d7c3e RD |
5704 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5705 | #endif | |
8ab979d7 | 5706 | } |
cf694132 RD |
5707 | { |
5708 | wxPy_BEGIN_ALLOW_THREADS; | |
5709 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
5710 | ||
5711 | wxPy_END_ALLOW_THREADS; | |
5712 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5713 | _resultobj = Py_None; |
5714 | { | |
5715 | if (_obj1) | |
5716 | delete _arg1; | |
5717 | } | |
5718 | return _resultobj; | |
5719 | } | |
5720 | ||
5721 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 5722 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5723 | PyObject * _resultobj; |
5724 | wxDC * _arg0; | |
1d99702e | 5725 | PyObject * _argo0 = 0; |
1afc06c2 | 5726 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5727 | |
5728 | self = self; | |
1afc06c2 | 5729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 5730 | return NULL; |
1d99702e RD |
5731 | if (_argo0) { |
5732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
5735 | return NULL; | |
5736 | } | |
5737 | } | |
cf694132 RD |
5738 | { |
5739 | wxPy_BEGIN_ALLOW_THREADS; | |
5740 | wxDC_EndDoc(_arg0); | |
5741 | ||
5742 | wxPy_END_ALLOW_THREADS; | |
5743 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5744 | _resultobj = Py_None; |
5745 | return _resultobj; | |
5746 | } | |
5747 | ||
5748 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 5749 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5750 | PyObject * _resultobj; |
5751 | wxDC * _arg0; | |
1d99702e | 5752 | PyObject * _argo0 = 0; |
1afc06c2 | 5753 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5754 | |
5755 | self = self; | |
1afc06c2 | 5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 5757 | return NULL; |
1d99702e RD |
5758 | if (_argo0) { |
5759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
5762 | return NULL; | |
5763 | } | |
5764 | } | |
cf694132 RD |
5765 | { |
5766 | wxPy_BEGIN_ALLOW_THREADS; | |
5767 | wxDC_EndDrawing(_arg0); | |
5768 | ||
5769 | wxPy_END_ALLOW_THREADS; | |
5770 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5771 | _resultobj = Py_None; |
5772 | return _resultobj; | |
5773 | } | |
5774 | ||
5775 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 5776 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5777 | PyObject * _resultobj; |
5778 | wxDC * _arg0; | |
1d99702e | 5779 | PyObject * _argo0 = 0; |
1afc06c2 | 5780 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5781 | |
5782 | self = self; | |
1afc06c2 | 5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 5784 | return NULL; |
1d99702e RD |
5785 | if (_argo0) { |
5786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
5789 | return NULL; | |
5790 | } | |
5791 | } | |
cf694132 RD |
5792 | { |
5793 | wxPy_BEGIN_ALLOW_THREADS; | |
5794 | wxDC_EndPage(_arg0); | |
5795 | ||
5796 | wxPy_END_ALLOW_THREADS; | |
5797 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
5798 | _resultobj = Py_None; |
5799 | return _resultobj; | |
5800 | } | |
5801 | ||
be4d9c1f | 5802 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 5803 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
5804 | PyObject * _resultobj; |
5805 | wxDC * _arg0; | |
5806 | long _arg1; | |
5807 | long _arg2; | |
5808 | wxColour * _arg3; | |
1d99702e RD |
5809 | int _arg4 = (int ) wxFLOOD_SURFACE; |
5810 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
5811 | wxColour temp; |
5812 | PyObject * _obj3 = 0; | |
1afc06c2 | 5813 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
5814 | |
5815 | self = self; | |
f6bcfd97 | 5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 5817 | return NULL; |
1d99702e RD |
5818 | if (_argo0) { |
5819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
5821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
5822 | return NULL; | |
5823 | } | |
5824 | } | |
f6bcfd97 BP |
5825 | { |
5826 | _arg3 = &temp; | |
5827 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 5828 | return NULL; |
f6bcfd97 | 5829 | } |
cf694132 RD |
5830 | { |
5831 | wxPy_BEGIN_ALLOW_THREADS; | |
5832 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
5833 | ||
5834 | wxPy_END_ALLOW_THREADS; | |
5835 | } Py_INCREF(Py_None); | |
be4d9c1f RD |
5836 | _resultobj = Py_None; |
5837 | return _resultobj; | |
5838 | } | |
5839 | ||
8ab979d7 | 5840 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 5841 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5842 | PyObject * _resultobj; |
5843 | wxBrush * _result; | |
5844 | wxDC * _arg0; | |
1d99702e | 5845 | PyObject * _argo0 = 0; |
1afc06c2 | 5846 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5847 | char _ptemp[128]; |
5848 | ||
5849 | self = self; | |
1afc06c2 | 5850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 5851 | return NULL; |
1d99702e RD |
5852 | if (_argo0) { |
5853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
5856 | return NULL; | |
5857 | } | |
5858 | } | |
cf694132 RD |
5859 | { |
5860 | wxPy_BEGIN_ALLOW_THREADS; | |
5861 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
b8b8dda7 | 5862 | _result = (wxBrush *) &_result_ref; |
cf694132 RD |
5863 | |
5864 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5865 | } if (_result) { |
5866 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5867 | _resultobj = Py_BuildValue("s",_ptemp); | |
5868 | } else { | |
5869 | Py_INCREF(Py_None); | |
5870 | _resultobj = Py_None; | |
5871 | } | |
8ab979d7 RD |
5872 | return _resultobj; |
5873 | } | |
5874 | ||
5875 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 5876 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5877 | PyObject * _resultobj; |
5878 | wxBrush * _result; | |
5879 | wxDC * _arg0; | |
1d99702e | 5880 | PyObject * _argo0 = 0; |
1afc06c2 | 5881 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5882 | char _ptemp[128]; |
5883 | ||
5884 | self = self; | |
1afc06c2 | 5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 5886 | return NULL; |
1d99702e RD |
5887 | if (_argo0) { |
5888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
5891 | return NULL; | |
5892 | } | |
5893 | } | |
cf694132 RD |
5894 | { |
5895 | wxPy_BEGIN_ALLOW_THREADS; | |
5896 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
b8b8dda7 | 5897 | _result = (wxBrush *) &_result_ref; |
cf694132 RD |
5898 | |
5899 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5900 | } if (_result) { |
5901 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5902 | _resultobj = Py_BuildValue("s",_ptemp); | |
5903 | } else { | |
5904 | Py_INCREF(Py_None); | |
5905 | _resultobj = Py_None; | |
5906 | } | |
8ab979d7 RD |
5907 | return _resultobj; |
5908 | } | |
5909 | ||
5910 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 5911 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5912 | PyObject * _resultobj; |
5913 | long _result; | |
5914 | wxDC * _arg0; | |
1d99702e | 5915 | PyObject * _argo0 = 0; |
1afc06c2 | 5916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5917 | |
5918 | self = self; | |
1afc06c2 | 5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 5920 | return NULL; |
1d99702e RD |
5921 | if (_argo0) { |
5922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
5925 | return NULL; | |
5926 | } | |
5927 | } | |
cf694132 RD |
5928 | { |
5929 | wxPy_BEGIN_ALLOW_THREADS; | |
5930 | _result = (long )wxDC_GetCharHeight(_arg0); | |
5931 | ||
5932 | wxPy_END_ALLOW_THREADS; | |
5933 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
5934 | return _resultobj; |
5935 | } | |
5936 | ||
5937 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 5938 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5939 | PyObject * _resultobj; |
5940 | long _result; | |
5941 | wxDC * _arg0; | |
1d99702e | 5942 | PyObject * _argo0 = 0; |
1afc06c2 | 5943 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5944 | |
5945 | self = self; | |
1afc06c2 | 5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 5947 | return NULL; |
1d99702e RD |
5948 | if (_argo0) { |
5949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
5952 | return NULL; | |
5953 | } | |
5954 | } | |
cf694132 RD |
5955 | { |
5956 | wxPy_BEGIN_ALLOW_THREADS; | |
5957 | _result = (long )wxDC_GetCharWidth(_arg0); | |
5958 | ||
5959 | wxPy_END_ALLOW_THREADS; | |
5960 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
5961 | return _resultobj; |
5962 | } | |
5963 | ||
5964 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 5965 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5966 | PyObject * _resultobj; |
5967 | wxDC * _arg0; | |
5968 | long * _arg1; | |
5969 | long temp; | |
5970 | long * _arg2; | |
5971 | long temp0; | |
5972 | long * _arg3; | |
5973 | long temp1; | |
5974 | long * _arg4; | |
5975 | long temp2; | |
1d99702e | 5976 | PyObject * _argo0 = 0; |
1afc06c2 | 5977 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5978 | |
5979 | self = self; | |
5980 | { | |
5981 | _arg1 = &temp; | |
5982 | } | |
5983 | { | |
5984 | _arg2 = &temp0; | |
5985 | } | |
5986 | { | |
5987 | _arg3 = &temp1; | |
5988 | } | |
5989 | { | |
5990 | _arg4 = &temp2; | |
5991 | } | |
1afc06c2 | 5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 5993 | return NULL; |
1d99702e RD |
5994 | if (_argo0) { |
5995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
5998 | return NULL; | |
5999 | } | |
6000 | } | |
cf694132 RD |
6001 | { |
6002 | wxPy_BEGIN_ALLOW_THREADS; | |
6003 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6004 | ||
6005 | wxPy_END_ALLOW_THREADS; | |
6006 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6007 | _resultobj = Py_None; |
6008 | { | |
6009 | PyObject *o; | |
6010 | o = PyInt_FromLong((long) (*_arg1)); | |
6011 | _resultobj = t_output_helper(_resultobj, o); | |
6012 | } | |
6013 | { | |
6014 | PyObject *o; | |
6015 | o = PyInt_FromLong((long) (*_arg2)); | |
6016 | _resultobj = t_output_helper(_resultobj, o); | |
6017 | } | |
6018 | { | |
6019 | PyObject *o; | |
6020 | o = PyInt_FromLong((long) (*_arg3)); | |
6021 | _resultobj = t_output_helper(_resultobj, o); | |
6022 | } | |
6023 | { | |
6024 | PyObject *o; | |
6025 | o = PyInt_FromLong((long) (*_arg4)); | |
6026 | _resultobj = t_output_helper(_resultobj, o); | |
6027 | } | |
6028 | return _resultobj; | |
6029 | } | |
6030 | ||
6031 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 6032 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6033 | PyObject * _resultobj; |
6034 | wxFont * _result; | |
6035 | wxDC * _arg0; | |
1d99702e | 6036 | PyObject * _argo0 = 0; |
1afc06c2 | 6037 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6038 | char _ptemp[128]; |
6039 | ||
6040 | self = self; | |
1afc06c2 | 6041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 6042 | return NULL; |
1d99702e RD |
6043 | if (_argo0) { |
6044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
6047 | return NULL; | |
6048 | } | |
6049 | } | |
cf694132 RD |
6050 | { |
6051 | wxPy_BEGIN_ALLOW_THREADS; | |
6052 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
b8b8dda7 | 6053 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
6054 | |
6055 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6056 | } if (_result) { |
6057 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
6058 | _resultobj = Py_BuildValue("s",_ptemp); | |
6059 | } else { | |
6060 | Py_INCREF(Py_None); | |
6061 | _resultobj = Py_None; | |
6062 | } | |
8ab979d7 RD |
6063 | return _resultobj; |
6064 | } | |
6065 | ||
6066 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 6067 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6068 | PyObject * _resultobj; |
6069 | int _result; | |
6070 | wxDC * _arg0; | |
1d99702e | 6071 | PyObject * _argo0 = 0; |
1afc06c2 | 6072 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6073 | |
6074 | self = self; | |
1afc06c2 | 6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 6076 | return NULL; |
1d99702e RD |
6077 | if (_argo0) { |
6078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
6081 | return NULL; | |
6082 | } | |
6083 | } | |
cf694132 RD |
6084 | { |
6085 | wxPy_BEGIN_ALLOW_THREADS; | |
6086 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
6087 | ||
6088 | wxPy_END_ALLOW_THREADS; | |
6089 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6090 | return _resultobj; |
6091 | } | |
6092 | ||
eec92d76 RD |
6093 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
6094 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6095 | PyObject * _resultobj; | |
6096 | wxDC * _arg0; | |
6097 | double * _arg1; | |
6098 | double temp; | |
6099 | double * _arg2; | |
6100 | double temp0; | |
6101 | PyObject * _argo0 = 0; | |
6102 | char *_kwnames[] = { "self", NULL }; | |
6103 | ||
6104 | self = self; | |
6105 | { | |
6106 | _arg1 = &temp; | |
6107 | } | |
6108 | { | |
6109 | _arg2 = &temp0; | |
6110 | } | |
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
6112 | return NULL; | |
6113 | if (_argo0) { | |
6114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
6117 | return NULL; | |
6118 | } | |
6119 | } | |
6120 | { | |
6121 | wxPy_BEGIN_ALLOW_THREADS; | |
6122 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
6123 | ||
6124 | wxPy_END_ALLOW_THREADS; | |
6125 | } Py_INCREF(Py_None); | |
6126 | _resultobj = Py_None; | |
6127 | { | |
6128 | PyObject *o; | |
6129 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6130 | _resultobj = t_output_helper(_resultobj, o); | |
6131 | } | |
6132 | { | |
6133 | PyObject *o; | |
6134 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6135 | _resultobj = t_output_helper(_resultobj, o); | |
6136 | } | |
6137 | return _resultobj; | |
6138 | } | |
6139 | ||
8ab979d7 | 6140 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 6141 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6142 | PyObject * _resultobj; |
6143 | int _result; | |
6144 | wxDC * _arg0; | |
1d99702e | 6145 | PyObject * _argo0 = 0; |
1afc06c2 | 6146 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6147 | |
6148 | self = self; | |
1afc06c2 | 6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 6150 | return NULL; |
1d99702e RD |
6151 | if (_argo0) { |
6152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
6155 | return NULL; | |
6156 | } | |
6157 | } | |
cf694132 RD |
6158 | { |
6159 | wxPy_BEGIN_ALLOW_THREADS; | |
6160 | _result = (int )wxDC_GetMapMode(_arg0); | |
6161 | ||
6162 | wxPy_END_ALLOW_THREADS; | |
6163 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6164 | return _resultobj; |
6165 | } | |
6166 | ||
6167 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 6168 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6169 | PyObject * _resultobj; |
6170 | bool _result; | |
6171 | wxDC * _arg0; | |
1d99702e | 6172 | PyObject * _argo0 = 0; |
1afc06c2 | 6173 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6174 | |
6175 | self = self; | |
1afc06c2 | 6176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 6177 | return NULL; |
1d99702e RD |
6178 | if (_argo0) { |
6179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
6182 | return NULL; | |
6183 | } | |
6184 | } | |
cf694132 RD |
6185 | { |
6186 | wxPy_BEGIN_ALLOW_THREADS; | |
6187 | _result = (bool )wxDC_GetOptimization(_arg0); | |
6188 | ||
6189 | wxPy_END_ALLOW_THREADS; | |
6190 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6191 | return _resultobj; |
6192 | } | |
6193 | ||
6194 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 6195 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6196 | PyObject * _resultobj; |
6197 | wxPen * _result; | |
6198 | wxDC * _arg0; | |
1d99702e | 6199 | PyObject * _argo0 = 0; |
1afc06c2 | 6200 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6201 | char _ptemp[128]; |
6202 | ||
6203 | self = self; | |
1afc06c2 | 6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 6205 | return NULL; |
1d99702e RD |
6206 | if (_argo0) { |
6207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
6210 | return NULL; | |
6211 | } | |
6212 | } | |
cf694132 RD |
6213 | { |
6214 | wxPy_BEGIN_ALLOW_THREADS; | |
6215 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
b8b8dda7 | 6216 | _result = (wxPen *) &_result_ref; |
cf694132 RD |
6217 | |
6218 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6219 | } if (_result) { |
6220 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6221 | _resultobj = Py_BuildValue("s",_ptemp); | |
6222 | } else { | |
6223 | Py_INCREF(Py_None); | |
6224 | _resultobj = Py_None; | |
6225 | } | |
8ab979d7 RD |
6226 | return _resultobj; |
6227 | } | |
6228 | ||
6229 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
6230 | wxColour* wc = new wxColour(); | |
6231 | self->GetPixel(x, y, wc); | |
6232 | return wc; | |
6233 | } | |
1afc06c2 | 6234 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6235 | PyObject * _resultobj; |
6236 | wxColour * _result; | |
6237 | wxDC * _arg0; | |
6238 | long _arg1; | |
6239 | long _arg2; | |
1d99702e | 6240 | PyObject * _argo0 = 0; |
1afc06c2 | 6241 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6242 | char _ptemp[128]; |
6243 | ||
6244 | self = self; | |
1afc06c2 | 6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6246 | return NULL; |
1d99702e RD |
6247 | if (_argo0) { |
6248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
6251 | return NULL; | |
6252 | } | |
6253 | } | |
cf694132 RD |
6254 | { |
6255 | wxPy_BEGIN_ALLOW_THREADS; | |
6256 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
6257 | ||
6258 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6259 | } if (_result) { |
6260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6261 | _resultobj = Py_BuildValue("s",_ptemp); | |
6262 | } else { | |
6263 | Py_INCREF(Py_None); | |
6264 | _resultobj = Py_None; | |
6265 | } | |
8ab979d7 RD |
6266 | return _resultobj; |
6267 | } | |
6268 | ||
bb0054cd | 6269 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 6270 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6271 | PyObject * _resultobj; |
6272 | wxDC * _arg0; | |
6273 | int * _arg1; | |
6274 | int temp; | |
6275 | int * _arg2; | |
6276 | int temp0; | |
1d99702e | 6277 | PyObject * _argo0 = 0; |
1afc06c2 | 6278 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6279 | |
6280 | self = self; | |
6281 | { | |
6282 | _arg1 = &temp; | |
6283 | } | |
6284 | { | |
6285 | _arg2 = &temp0; | |
6286 | } | |
1afc06c2 | 6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 6288 | return NULL; |
1d99702e RD |
6289 | if (_argo0) { |
6290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 6292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
6293 | return NULL; |
6294 | } | |
6295 | } | |
cf694132 RD |
6296 | { |
6297 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 6298 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 RD |
6299 | |
6300 | wxPy_END_ALLOW_THREADS; | |
6301 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6302 | _resultobj = Py_None; |
6303 | { | |
6304 | PyObject *o; | |
6305 | o = PyInt_FromLong((long) (*_arg1)); | |
6306 | _resultobj = t_output_helper(_resultobj, o); | |
6307 | } | |
6308 | { | |
6309 | PyObject *o; | |
6310 | o = PyInt_FromLong((long) (*_arg2)); | |
6311 | _resultobj = t_output_helper(_resultobj, o); | |
6312 | } | |
6313 | return _resultobj; | |
6314 | } | |
6315 | ||
bb0054cd | 6316 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 6317 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6318 | PyObject * _resultobj; |
6319 | wxSize * _result; | |
6320 | wxDC * _arg0; | |
1d99702e | 6321 | PyObject * _argo0 = 0; |
1afc06c2 | 6322 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
6323 | char _ptemp[128]; |
6324 | ||
6325 | self = self; | |
1afc06c2 | 6326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 6327 | return NULL; |
1d99702e RD |
6328 | if (_argo0) { |
6329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
6331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
6332 | return NULL; | |
6333 | } | |
6334 | } | |
6335 | { | |
6336 | wxPy_BEGIN_ALLOW_THREADS; | |
6337 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
6338 | ||
6339 | wxPy_END_ALLOW_THREADS; | |
6340 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
6341 | _resultobj = Py_BuildValue("s",_ptemp); | |
6342 | return _resultobj; | |
6343 | } | |
6344 | ||
eec92d76 RD |
6345 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
6346 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6347 | PyObject * _resultobj; | |
6348 | wxSize * _result; | |
6349 | wxDC * _arg0; | |
6350 | PyObject * _argo0 = 0; | |
6351 | char *_kwnames[] = { "self", NULL }; | |
6352 | char _ptemp[128]; | |
6353 | ||
6354 | self = self; | |
6355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
6356 | return NULL; | |
6357 | if (_argo0) { | |
6358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
6361 | return NULL; | |
6362 | } | |
6363 | } | |
6364 | { | |
6365 | wxPy_BEGIN_ALLOW_THREADS; | |
6366 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
6367 | ||
6368 | wxPy_END_ALLOW_THREADS; | |
6369 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
6370 | _resultobj = Py_BuildValue("s",_ptemp); | |
6371 | return _resultobj; | |
6372 | } | |
6373 | ||
8ab979d7 | 6374 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 6375 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6376 | PyObject * _resultobj; |
6377 | wxColour * _result; | |
6378 | wxDC * _arg0; | |
1d99702e | 6379 | PyObject * _argo0 = 0; |
1afc06c2 | 6380 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6381 | char _ptemp[128]; |
6382 | ||
6383 | self = self; | |
1afc06c2 | 6384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 6385 | return NULL; |
1d99702e RD |
6386 | if (_argo0) { |
6387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
6390 | return NULL; | |
6391 | } | |
6392 | } | |
cf694132 RD |
6393 | { |
6394 | wxPy_BEGIN_ALLOW_THREADS; | |
6395 | wxColour & _result_ref = wxDC_GetTextBackground(_arg0); | |
8ab979d7 | 6396 | _result = (wxColour *) &_result_ref; |
cf694132 RD |
6397 | |
6398 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6399 | } if (_result) { |
6400 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6401 | _resultobj = Py_BuildValue("s",_ptemp); | |
6402 | } else { | |
6403 | Py_INCREF(Py_None); | |
6404 | _resultobj = Py_None; | |
6405 | } | |
8ab979d7 RD |
6406 | return _resultobj; |
6407 | } | |
6408 | ||
af309447 | 6409 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 6410 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6411 | PyObject * _resultobj; |
6412 | wxDC * _arg0; | |
6413 | wxString * _arg1; | |
6414 | long * _arg2; | |
6415 | long temp; | |
6416 | long * _arg3; | |
6417 | long temp0; | |
1d99702e | 6418 | PyObject * _argo0 = 0; |
af309447 | 6419 | PyObject * _obj1 = 0; |
1afc06c2 | 6420 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
6421 | |
6422 | self = self; | |
6423 | { | |
6424 | _arg2 = &temp; | |
6425 | } | |
6426 | { | |
6427 | _arg3 = &temp0; | |
6428 | } | |
1afc06c2 | 6429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 6430 | return NULL; |
1d99702e RD |
6431 | if (_argo0) { |
6432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
6434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
6435 | return NULL; | |
6436 | } | |
6437 | } | |
6438 | { | |
185d7c3e RD |
6439 | #if PYTHON_API_VERSION >= 1009 |
6440 | char* tmpPtr; int tmpSize; | |
6441 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6442 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6443 | return NULL; | |
6444 | } | |
6445 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6446 | return NULL; | |
6447 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6448 | #else | |
af309447 RD |
6449 | if (!PyString_Check(_obj1)) { |
6450 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6451 | return NULL; | |
6452 | } | |
185d7c3e RD |
6453 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6454 | #endif | |
af309447 | 6455 | } |
cf694132 RD |
6456 | { |
6457 | wxPy_BEGIN_ALLOW_THREADS; | |
6458 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
6459 | ||
6460 | wxPy_END_ALLOW_THREADS; | |
6461 | } Py_INCREF(Py_None); | |
af309447 RD |
6462 | _resultobj = Py_None; |
6463 | { | |
6464 | PyObject *o; | |
6465 | o = PyInt_FromLong((long) (*_arg2)); | |
6466 | _resultobj = t_output_helper(_resultobj, o); | |
6467 | } | |
6468 | { | |
6469 | PyObject *o; | |
6470 | o = PyInt_FromLong((long) (*_arg3)); | |
6471 | _resultobj = t_output_helper(_resultobj, o); | |
6472 | } | |
6473 | { | |
6474 | if (_obj1) | |
6475 | delete _arg1; | |
6476 | } | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
6480 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 6481 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6482 | PyObject * _resultobj; |
6483 | wxDC * _arg0; | |
6484 | wxString * _arg1; | |
6485 | long * _arg2; | |
6486 | long temp; | |
6487 | long * _arg3; | |
6488 | long temp0; | |
6489 | long * _arg4; | |
6490 | long temp1; | |
6491 | long * _arg5; | |
6492 | long temp2; | |
1d99702e RD |
6493 | wxFont * _arg6 = (wxFont *) NULL; |
6494 | PyObject * _argo0 = 0; | |
8ab979d7 | 6495 | PyObject * _obj1 = 0; |
1d99702e | 6496 | PyObject * _argo6 = 0; |
1afc06c2 | 6497 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
6498 | |
6499 | self = self; | |
6500 | { | |
6501 | _arg2 = &temp; | |
6502 | } | |
6503 | { | |
6504 | _arg3 = &temp0; | |
6505 | } | |
6506 | { | |
6507 | _arg4 = &temp1; | |
6508 | } | |
6509 | { | |
6510 | _arg5 = &temp2; | |
6511 | } | |
1afc06c2 | 6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
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")) { | |
af309447 | 6517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
6518 | return NULL; |
6519 | } | |
6520 | } | |
6521 | { | |
185d7c3e RD |
6522 | #if PYTHON_API_VERSION >= 1009 |
6523 | char* tmpPtr; int tmpSize; | |
6524 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6525 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6526 | return NULL; | |
6527 | } | |
6528 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6529 | return NULL; | |
6530 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6531 | #else | |
8ab979d7 RD |
6532 | if (!PyString_Check(_obj1)) { |
6533 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6534 | return NULL; | |
6535 | } | |
185d7c3e RD |
6536 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6537 | #endif | |
8ab979d7 | 6538 | } |
1d99702e RD |
6539 | if (_argo6) { |
6540 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6541 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
6542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
6543 | return NULL; | |
6544 | } | |
6545 | } | |
cf694132 RD |
6546 | { |
6547 | wxPy_BEGIN_ALLOW_THREADS; | |
6548 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6549 | ||
6550 | wxPy_END_ALLOW_THREADS; | |
6551 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6552 | _resultobj = Py_None; |
6553 | { | |
6554 | PyObject *o; | |
6555 | o = PyInt_FromLong((long) (*_arg2)); | |
6556 | _resultobj = t_output_helper(_resultobj, o); | |
6557 | } | |
6558 | { | |
6559 | PyObject *o; | |
6560 | o = PyInt_FromLong((long) (*_arg3)); | |
6561 | _resultobj = t_output_helper(_resultobj, o); | |
6562 | } | |
6563 | { | |
6564 | PyObject *o; | |
6565 | o = PyInt_FromLong((long) (*_arg4)); | |
6566 | _resultobj = t_output_helper(_resultobj, o); | |
6567 | } | |
6568 | { | |
6569 | PyObject *o; | |
6570 | o = PyInt_FromLong((long) (*_arg5)); | |
6571 | _resultobj = t_output_helper(_resultobj, o); | |
6572 | } | |
6573 | { | |
6574 | if (_obj1) | |
6575 | delete _arg1; | |
6576 | } | |
6577 | return _resultobj; | |
6578 | } | |
6579 | ||
6580 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 6581 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6582 | PyObject * _resultobj; |
6583 | wxColour * _result; | |
6584 | wxDC * _arg0; | |
1d99702e | 6585 | PyObject * _argo0 = 0; |
1afc06c2 | 6586 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6587 | char _ptemp[128]; |
6588 | ||
6589 | self = self; | |
1afc06c2 | 6590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 6591 | return NULL; |
1d99702e RD |
6592 | if (_argo0) { |
6593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
6596 | return NULL; | |
6597 | } | |
6598 | } | |
cf694132 RD |
6599 | { |
6600 | wxPy_BEGIN_ALLOW_THREADS; | |
6601 | wxColour & _result_ref = wxDC_GetTextForeground(_arg0); | |
8ab979d7 | 6602 | _result = (wxColour *) &_result_ref; |
cf694132 RD |
6603 | |
6604 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
6605 | } if (_result) { |
6606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6607 | _resultobj = Py_BuildValue("s",_ptemp); | |
6608 | } else { | |
6609 | Py_INCREF(Py_None); | |
6610 | _resultobj = Py_None; | |
6611 | } | |
8ab979d7 RD |
6612 | return _resultobj; |
6613 | } | |
6614 | ||
eec92d76 RD |
6615 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
6616 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6617 | PyObject * _resultobj; | |
6618 | wxDC * _arg0; | |
6619 | double * _arg1; | |
6620 | double temp; | |
6621 | double * _arg2; | |
6622 | double temp0; | |
6623 | PyObject * _argo0 = 0; | |
6624 | char *_kwnames[] = { "self", NULL }; | |
6625 | ||
6626 | self = self; | |
6627 | { | |
6628 | _arg1 = &temp; | |
6629 | } | |
6630 | { | |
6631 | _arg2 = &temp0; | |
6632 | } | |
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_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_GetUserScale. Expected _wxDC_p."); | |
6639 | return NULL; | |
6640 | } | |
6641 | } | |
6642 | { | |
6643 | wxPy_BEGIN_ALLOW_THREADS; | |
6644 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
6645 | ||
6646 | wxPy_END_ALLOW_THREADS; | |
6647 | } Py_INCREF(Py_None); | |
6648 | _resultobj = Py_None; | |
6649 | { | |
6650 | PyObject *o; | |
6651 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6652 | _resultobj = t_output_helper(_resultobj, o); | |
6653 | } | |
6654 | { | |
6655 | PyObject *o; | |
6656 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6657 | _resultobj = t_output_helper(_resultobj, o); | |
6658 | } | |
6659 | return _resultobj; | |
6660 | } | |
6661 | ||
8ab979d7 | 6662 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 6663 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6664 | PyObject * _resultobj; |
6665 | long _result; | |
6666 | wxDC * _arg0; | |
6667 | long _arg1; | |
1d99702e | 6668 | PyObject * _argo0 = 0; |
1afc06c2 | 6669 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
6670 | |
6671 | self = self; | |
1afc06c2 | 6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6673 | return NULL; |
1d99702e RD |
6674 | if (_argo0) { |
6675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
6678 | return NULL; | |
6679 | } | |
6680 | } | |
cf694132 RD |
6681 | { |
6682 | wxPy_BEGIN_ALLOW_THREADS; | |
6683 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
6684 | ||
6685 | wxPy_END_ALLOW_THREADS; | |
6686 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6687 | return _resultobj; |
6688 | } | |
6689 | ||
6690 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 6691 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6692 | PyObject * _resultobj; |
6693 | long _result; | |
6694 | wxDC * _arg0; | |
6695 | long _arg1; | |
1d99702e | 6696 | PyObject * _argo0 = 0; |
1afc06c2 | 6697 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
6698 | |
6699 | self = self; | |
1afc06c2 | 6700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6701 | return NULL; |
1d99702e RD |
6702 | if (_argo0) { |
6703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
6706 | return NULL; | |
6707 | } | |
6708 | } | |
cf694132 RD |
6709 | { |
6710 | wxPy_BEGIN_ALLOW_THREADS; | |
6711 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
6712 | ||
6713 | wxPy_END_ALLOW_THREADS; | |
6714 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6715 | return _resultobj; |
6716 | } | |
6717 | ||
6718 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 6719 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6720 | PyObject * _resultobj; |
6721 | long _result; | |
6722 | wxDC * _arg0; | |
6723 | long _arg1; | |
1d99702e | 6724 | PyObject * _argo0 = 0; |
1afc06c2 | 6725 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
6726 | |
6727 | self = self; | |
1afc06c2 | 6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6729 | return NULL; |
1d99702e RD |
6730 | if (_argo0) { |
6731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
6734 | return NULL; | |
6735 | } | |
6736 | } | |
cf694132 RD |
6737 | { |
6738 | wxPy_BEGIN_ALLOW_THREADS; | |
6739 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
6740 | ||
6741 | wxPy_END_ALLOW_THREADS; | |
6742 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6743 | return _resultobj; |
6744 | } | |
6745 | ||
6746 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 6747 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6748 | PyObject * _resultobj; |
6749 | long _result; | |
6750 | wxDC * _arg0; | |
6751 | long _arg1; | |
1d99702e | 6752 | PyObject * _argo0 = 0; |
1afc06c2 | 6753 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
6754 | |
6755 | self = self; | |
1afc06c2 | 6756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6757 | return NULL; |
1d99702e RD |
6758 | if (_argo0) { |
6759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
6762 | return NULL; | |
6763 | } | |
6764 | } | |
cf694132 RD |
6765 | { |
6766 | wxPy_BEGIN_ALLOW_THREADS; | |
6767 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
6768 | ||
6769 | wxPy_END_ALLOW_THREADS; | |
6770 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6771 | return _resultobj; |
6772 | } | |
6773 | ||
6774 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 6775 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6776 | PyObject * _resultobj; |
6777 | long _result; | |
6778 | wxDC * _arg0; | |
1d99702e | 6779 | PyObject * _argo0 = 0; |
1afc06c2 | 6780 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6781 | |
6782 | self = self; | |
1afc06c2 | 6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 6784 | return NULL; |
1d99702e RD |
6785 | if (_argo0) { |
6786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
6789 | return NULL; | |
6790 | } | |
6791 | } | |
cf694132 RD |
6792 | { |
6793 | wxPy_BEGIN_ALLOW_THREADS; | |
6794 | _result = (long )wxDC_MaxX(_arg0); | |
6795 | ||
6796 | wxPy_END_ALLOW_THREADS; | |
6797 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6798 | return _resultobj; |
6799 | } | |
6800 | ||
6801 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 6802 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6803 | PyObject * _resultobj; |
6804 | long _result; | |
6805 | wxDC * _arg0; | |
1d99702e | 6806 | PyObject * _argo0 = 0; |
1afc06c2 | 6807 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6808 | |
6809 | self = self; | |
1afc06c2 | 6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 6811 | return NULL; |
1d99702e RD |
6812 | if (_argo0) { |
6813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
6816 | return NULL; | |
6817 | } | |
6818 | } | |
cf694132 RD |
6819 | { |
6820 | wxPy_BEGIN_ALLOW_THREADS; | |
6821 | _result = (long )wxDC_MaxY(_arg0); | |
6822 | ||
6823 | wxPy_END_ALLOW_THREADS; | |
6824 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6825 | return _resultobj; |
6826 | } | |
6827 | ||
6828 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 6829 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6830 | PyObject * _resultobj; |
6831 | long _result; | |
6832 | wxDC * _arg0; | |
1d99702e | 6833 | PyObject * _argo0 = 0; |
1afc06c2 | 6834 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6835 | |
6836 | self = self; | |
1afc06c2 | 6837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 6838 | return NULL; |
1d99702e RD |
6839 | if (_argo0) { |
6840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
6843 | return NULL; | |
6844 | } | |
6845 | } | |
cf694132 RD |
6846 | { |
6847 | wxPy_BEGIN_ALLOW_THREADS; | |
6848 | _result = (long )wxDC_MinX(_arg0); | |
6849 | ||
6850 | wxPy_END_ALLOW_THREADS; | |
6851 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6852 | return _resultobj; |
6853 | } | |
6854 | ||
6855 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 6856 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6857 | PyObject * _resultobj; |
6858 | long _result; | |
6859 | wxDC * _arg0; | |
1d99702e | 6860 | PyObject * _argo0 = 0; |
1afc06c2 | 6861 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6862 | |
6863 | self = self; | |
1afc06c2 | 6864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 6865 | return NULL; |
1d99702e RD |
6866 | if (_argo0) { |
6867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
6870 | return NULL; | |
6871 | } | |
6872 | } | |
cf694132 RD |
6873 | { |
6874 | wxPy_BEGIN_ALLOW_THREADS; | |
6875 | _result = (long )wxDC_MinY(_arg0); | |
6876 | ||
6877 | wxPy_END_ALLOW_THREADS; | |
6878 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
6879 | return _resultobj; |
6880 | } | |
6881 | ||
6882 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6883 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6884 | PyObject * _resultobj; |
6885 | bool _result; | |
6886 | wxDC * _arg0; | |
1d99702e | 6887 | PyObject * _argo0 = 0; |
1afc06c2 | 6888 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6889 | |
6890 | self = self; | |
1afc06c2 | 6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6892 | return NULL; |
1d99702e RD |
6893 | if (_argo0) { |
6894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
6897 | return NULL; | |
6898 | } | |
6899 | } | |
cf694132 RD |
6900 | { |
6901 | wxPy_BEGIN_ALLOW_THREADS; | |
6902 | _result = (bool )wxDC_Ok(_arg0); | |
6903 | ||
6904 | wxPy_END_ALLOW_THREADS; | |
6905 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6906 | return _resultobj; |
6907 | } | |
6908 | ||
6909 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 6910 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6911 | PyObject * _resultobj; |
6912 | wxDC * _arg0; | |
6913 | long _arg1; | |
6914 | long _arg2; | |
1d99702e | 6915 | PyObject * _argo0 = 0; |
1afc06c2 | 6916 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6917 | |
6918 | self = self; | |
1afc06c2 | 6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6920 | return NULL; |
1d99702e RD |
6921 | if (_argo0) { |
6922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
6925 | return NULL; | |
6926 | } | |
6927 | } | |
cf694132 RD |
6928 | { |
6929 | wxPy_BEGIN_ALLOW_THREADS; | |
6930 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
6931 | ||
6932 | wxPy_END_ALLOW_THREADS; | |
6933 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6934 | _resultobj = Py_None; |
6935 | return _resultobj; | |
6936 | } | |
6937 | ||
6938 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 6939 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6940 | PyObject * _resultobj; |
6941 | wxDC * _arg0; | |
6942 | wxBrush * _arg1; | |
1d99702e RD |
6943 | PyObject * _argo0 = 0; |
6944 | PyObject * _argo1 = 0; | |
1afc06c2 | 6945 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
6946 | |
6947 | self = self; | |
1afc06c2 | 6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6949 | return NULL; |
1d99702e RD |
6950 | if (_argo0) { |
6951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
6954 | return NULL; | |
6955 | } | |
6956 | } | |
1d99702e RD |
6957 | if (_argo1) { |
6958 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6959 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
6960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
6961 | return NULL; | |
6962 | } | |
6963 | } | |
cf694132 RD |
6964 | { |
6965 | wxPy_BEGIN_ALLOW_THREADS; | |
6966 | wxDC_SetBackground(_arg0,*_arg1); | |
6967 | ||
6968 | wxPy_END_ALLOW_THREADS; | |
6969 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6970 | _resultobj = Py_None; |
6971 | return _resultobj; | |
6972 | } | |
6973 | ||
6974 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 6975 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6976 | PyObject * _resultobj; |
6977 | wxDC * _arg0; | |
6978 | int _arg1; | |
1d99702e | 6979 | PyObject * _argo0 = 0; |
1afc06c2 | 6980 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
6981 | |
6982 | self = self; | |
1afc06c2 | 6983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6984 | return NULL; |
1d99702e RD |
6985 | if (_argo0) { |
6986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
6989 | return NULL; | |
6990 | } | |
6991 | } | |
cf694132 RD |
6992 | { |
6993 | wxPy_BEGIN_ALLOW_THREADS; | |
6994 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
6995 | ||
6996 | wxPy_END_ALLOW_THREADS; | |
6997 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
6998 | _resultobj = Py_None; |
6999 | return _resultobj; | |
7000 | } | |
7001 | ||
7002 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7003 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7004 | PyObject * _resultobj; |
7005 | wxDC * _arg0; | |
7006 | long _arg1; | |
7007 | long _arg2; | |
7008 | long _arg3; | |
7009 | long _arg4; | |
1d99702e | 7010 | PyObject * _argo0 = 0; |
1afc06c2 | 7011 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7012 | |
7013 | self = self; | |
1afc06c2 | 7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7015 | return NULL; |
1d99702e RD |
7016 | if (_argo0) { |
7017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
7020 | return NULL; | |
7021 | } | |
7022 | } | |
cf694132 RD |
7023 | { |
7024 | wxPy_BEGIN_ALLOW_THREADS; | |
7025 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7026 | ||
7027 | wxPy_END_ALLOW_THREADS; | |
7028 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7029 | _resultobj = Py_None; |
7030 | return _resultobj; | |
7031 | } | |
7032 | ||
7033 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
1afc06c2 | 7034 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7035 | PyObject * _resultobj; |
7036 | wxDC * _arg0; | |
7037 | wxPalette * _arg1; | |
1d99702e RD |
7038 | PyObject * _argo0 = 0; |
7039 | PyObject * _argo1 = 0; | |
1afc06c2 | 7040 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
7041 | |
7042 | self = self; | |
1afc06c2 | 7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7044 | return NULL; |
1d99702e RD |
7045 | if (_argo0) { |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
1d99702e RD |
7052 | if (_argo1) { |
7053 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
cf694132 RD |
7059 | { |
7060 | wxPy_BEGIN_ALLOW_THREADS; | |
7061 | wxDC_SetPalette(_arg0,*_arg1); | |
7062 | ||
7063 | wxPy_END_ALLOW_THREADS; | |
7064 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7065 | _resultobj = Py_None; |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 7070 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7071 | PyObject * _resultobj; |
7072 | wxDC * _arg0; | |
7073 | wxBrush * _arg1; | |
1d99702e RD |
7074 | PyObject * _argo0 = 0; |
7075 | PyObject * _argo1 = 0; | |
1afc06c2 | 7076 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
7077 | |
7078 | self = self; | |
1afc06c2 | 7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7080 | return NULL; |
1d99702e RD |
7081 | if (_argo0) { |
7082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
1d99702e RD |
7088 | if (_argo1) { |
7089 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
cf694132 RD |
7095 | { |
7096 | wxPy_BEGIN_ALLOW_THREADS; | |
7097 | wxDC_SetBrush(_arg0,*_arg1); | |
7098 | ||
7099 | wxPy_END_ALLOW_THREADS; | |
7100 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7101 | _resultobj = Py_None; |
7102 | return _resultobj; | |
7103 | } | |
7104 | ||
7105 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 7106 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7107 | PyObject * _resultobj; |
7108 | wxDC * _arg0; | |
7109 | wxFont * _arg1; | |
1d99702e RD |
7110 | PyObject * _argo0 = 0; |
7111 | PyObject * _argo1 = 0; | |
1afc06c2 | 7112 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
7113 | |
7114 | self = self; | |
1afc06c2 | 7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7116 | return NULL; |
1d99702e RD |
7117 | if (_argo0) { |
7118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
7121 | return NULL; | |
7122 | } | |
7123 | } | |
1d99702e RD |
7124 | if (_argo1) { |
7125 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7126 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
7127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
7128 | return NULL; | |
7129 | } | |
7130 | } | |
cf694132 RD |
7131 | { |
7132 | wxPy_BEGIN_ALLOW_THREADS; | |
7133 | wxDC_SetFont(_arg0,*_arg1); | |
7134 | ||
7135 | wxPy_END_ALLOW_THREADS; | |
7136 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7137 | _resultobj = Py_None; |
7138 | return _resultobj; | |
7139 | } | |
7140 | ||
7141 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 7142 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7143 | PyObject * _resultobj; |
7144 | wxDC * _arg0; | |
7145 | int _arg1; | |
1d99702e | 7146 | PyObject * _argo0 = 0; |
1afc06c2 | 7147 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
7148 | |
7149 | self = self; | |
1afc06c2 | 7150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7151 | return NULL; |
1d99702e RD |
7152 | if (_argo0) { |
7153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
7156 | return NULL; | |
7157 | } | |
7158 | } | |
cf694132 RD |
7159 | { |
7160 | wxPy_BEGIN_ALLOW_THREADS; | |
7161 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
7162 | ||
7163 | wxPy_END_ALLOW_THREADS; | |
7164 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7165 | _resultobj = Py_None; |
7166 | return _resultobj; | |
7167 | } | |
7168 | ||
eec92d76 RD |
7169 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
7170 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7171 | PyObject * _resultobj; | |
7172 | wxDC * _arg0; | |
7173 | double _arg1; | |
7174 | double _arg2; | |
7175 | PyObject * _argo0 = 0; | |
7176 | char *_kwnames[] = { "self","x","y", NULL }; | |
7177 | ||
7178 | self = self; | |
7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7180 | return NULL; | |
7181 | if (_argo0) { | |
7182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
7185 | return NULL; | |
7186 | } | |
7187 | } | |
7188 | { | |
7189 | wxPy_BEGIN_ALLOW_THREADS; | |
7190 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
7191 | ||
7192 | wxPy_END_ALLOW_THREADS; | |
7193 | } Py_INCREF(Py_None); | |
7194 | _resultobj = Py_None; | |
7195 | return _resultobj; | |
7196 | } | |
7197 | ||
8ab979d7 | 7198 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 7199 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7200 | PyObject * _resultobj; |
7201 | wxDC * _arg0; | |
7202 | int _arg1; | |
1d99702e | 7203 | PyObject * _argo0 = 0; |
1afc06c2 | 7204 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
7205 | |
7206 | self = self; | |
1afc06c2 | 7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7208 | return NULL; |
1d99702e RD |
7209 | if (_argo0) { |
7210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
7213 | return NULL; | |
7214 | } | |
7215 | } | |
cf694132 RD |
7216 | { |
7217 | wxPy_BEGIN_ALLOW_THREADS; | |
7218 | wxDC_SetMapMode(_arg0,_arg1); | |
7219 | ||
7220 | wxPy_END_ALLOW_THREADS; | |
7221 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7222 | _resultobj = Py_None; |
7223 | return _resultobj; | |
7224 | } | |
7225 | ||
7226 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 7227 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7228 | PyObject * _resultobj; |
7229 | wxDC * _arg0; | |
7230 | bool _arg1; | |
1d99702e | 7231 | PyObject * _argo0 = 0; |
8ab979d7 | 7232 | int tempbool1; |
1afc06c2 | 7233 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
7234 | |
7235 | self = self; | |
1afc06c2 | 7236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 7237 | return NULL; |
1d99702e RD |
7238 | if (_argo0) { |
7239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
7242 | return NULL; | |
7243 | } | |
7244 | } | |
7245 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
7246 | { |
7247 | wxPy_BEGIN_ALLOW_THREADS; | |
7248 | wxDC_SetOptimization(_arg0,_arg1); | |
7249 | ||
7250 | wxPy_END_ALLOW_THREADS; | |
7251 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7252 | _resultobj = Py_None; |
7253 | return _resultobj; | |
7254 | } | |
7255 | ||
7256 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 7257 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7258 | PyObject * _resultobj; |
7259 | wxDC * _arg0; | |
7260 | wxPen * _arg1; | |
1d99702e RD |
7261 | PyObject * _argo0 = 0; |
7262 | PyObject * _argo1 = 0; | |
1afc06c2 | 7263 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
7264 | |
7265 | self = self; | |
1afc06c2 | 7266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7267 | return NULL; |
1d99702e RD |
7268 | if (_argo0) { |
7269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
7272 | return NULL; | |
7273 | } | |
7274 | } | |
1d99702e RD |
7275 | if (_argo1) { |
7276 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7277 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
7278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
7279 | return NULL; | |
7280 | } | |
7281 | } | |
cf694132 RD |
7282 | { |
7283 | wxPy_BEGIN_ALLOW_THREADS; | |
7284 | wxDC_SetPen(_arg0,*_arg1); | |
7285 | ||
7286 | wxPy_END_ALLOW_THREADS; | |
7287 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7288 | _resultobj = Py_None; |
7289 | return _resultobj; | |
7290 | } | |
7291 | ||
7292 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 7293 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7294 | PyObject * _resultobj; |
7295 | wxDC * _arg0; | |
7296 | wxColour * _arg1; | |
1d99702e | 7297 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
7298 | wxColour temp; |
7299 | PyObject * _obj1 = 0; | |
1afc06c2 | 7300 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
7301 | |
7302 | self = self; | |
f6bcfd97 | 7303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7304 | return NULL; |
1d99702e RD |
7305 | if (_argo0) { |
7306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
7309 | return NULL; | |
7310 | } | |
7311 | } | |
f6bcfd97 BP |
7312 | { |
7313 | _arg1 = &temp; | |
7314 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 7315 | return NULL; |
f6bcfd97 | 7316 | } |
cf694132 RD |
7317 | { |
7318 | wxPy_BEGIN_ALLOW_THREADS; | |
7319 | wxDC_SetTextBackground(_arg0,*_arg1); | |
7320 | ||
7321 | wxPy_END_ALLOW_THREADS; | |
7322 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7323 | _resultobj = Py_None; |
7324 | return _resultobj; | |
7325 | } | |
7326 | ||
7327 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 7328 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7329 | PyObject * _resultobj; |
7330 | wxDC * _arg0; | |
7331 | wxColour * _arg1; | |
1d99702e | 7332 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
7333 | wxColour temp; |
7334 | PyObject * _obj1 = 0; | |
1afc06c2 | 7335 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
7336 | |
7337 | self = self; | |
f6bcfd97 | 7338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7339 | return NULL; |
1d99702e RD |
7340 | if (_argo0) { |
7341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
7344 | return NULL; | |
7345 | } | |
7346 | } | |
f6bcfd97 BP |
7347 | { |
7348 | _arg1 = &temp; | |
7349 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 7350 | return NULL; |
f6bcfd97 | 7351 | } |
cf694132 RD |
7352 | { |
7353 | wxPy_BEGIN_ALLOW_THREADS; | |
7354 | wxDC_SetTextForeground(_arg0,*_arg1); | |
7355 | ||
7356 | wxPy_END_ALLOW_THREADS; | |
7357 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7358 | _resultobj = Py_None; |
7359 | return _resultobj; | |
7360 | } | |
7361 | ||
7362 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 7363 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7364 | PyObject * _resultobj; |
7365 | wxDC * _arg0; | |
7366 | double _arg1; | |
7367 | double _arg2; | |
1d99702e | 7368 | PyObject * _argo0 = 0; |
1afc06c2 | 7369 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
7370 | |
7371 | self = self; | |
1afc06c2 | 7372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7373 | return NULL; |
1d99702e RD |
7374 | if (_argo0) { |
7375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
7378 | return NULL; | |
7379 | } | |
7380 | } | |
cf694132 RD |
7381 | { |
7382 | wxPy_BEGIN_ALLOW_THREADS; | |
7383 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
7384 | ||
7385 | wxPy_END_ALLOW_THREADS; | |
7386 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7387 | _resultobj = Py_None; |
7388 | return _resultobj; | |
7389 | } | |
7390 | ||
7391 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 7392 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7393 | PyObject * _resultobj; |
7394 | bool _result; | |
7395 | wxDC * _arg0; | |
7396 | wxString * _arg1; | |
1d99702e | 7397 | PyObject * _argo0 = 0; |
8ab979d7 | 7398 | PyObject * _obj1 = 0; |
1afc06c2 | 7399 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
7400 | |
7401 | self = self; | |
1afc06c2 | 7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7403 | return NULL; |
1d99702e RD |
7404 | if (_argo0) { |
7405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
7408 | return NULL; | |
7409 | } | |
7410 | } | |
7411 | { | |
185d7c3e RD |
7412 | #if PYTHON_API_VERSION >= 1009 |
7413 | char* tmpPtr; int tmpSize; | |
7414 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7415 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7416 | return NULL; | |
7417 | } | |
7418 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7419 | return NULL; | |
7420 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7421 | #else | |
8ab979d7 RD |
7422 | if (!PyString_Check(_obj1)) { |
7423 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7424 | return NULL; | |
7425 | } | |
185d7c3e RD |
7426 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7427 | #endif | |
8ab979d7 | 7428 | } |
cf694132 RD |
7429 | { |
7430 | wxPy_BEGIN_ALLOW_THREADS; | |
7431 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
7432 | ||
7433 | wxPy_END_ALLOW_THREADS; | |
7434 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7435 | { |
7436 | if (_obj1) | |
7437 | delete _arg1; | |
7438 | } | |
7439 | return _resultobj; | |
7440 | } | |
7441 | ||
7442 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 7443 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7444 | PyObject * _resultobj; |
7445 | wxDC * _arg0; | |
1d99702e | 7446 | PyObject * _argo0 = 0; |
1afc06c2 | 7447 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7448 | |
7449 | self = self; | |
1afc06c2 | 7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 7451 | return NULL; |
1d99702e RD |
7452 | if (_argo0) { |
7453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
7456 | return NULL; | |
7457 | } | |
7458 | } | |
cf694132 RD |
7459 | { |
7460 | wxPy_BEGIN_ALLOW_THREADS; | |
7461 | wxDC_StartPage(_arg0); | |
7462 | ||
7463 | wxPy_END_ALLOW_THREADS; | |
7464 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7465 | _resultobj = Py_None; |
7466 | return _resultobj; | |
7467 | } | |
7468 | ||
efc5f224 | 7469 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7470 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7471 | PyObject * _resultobj; |
7472 | wxDC * _arg0; | |
7473 | wxBitmap * _arg1; | |
7474 | long _arg2; | |
7475 | long _arg3; | |
efc5f224 | 7476 | int _arg4 = (int ) FALSE; |
1d99702e RD |
7477 | PyObject * _argo0 = 0; |
7478 | PyObject * _argo1 = 0; | |
1afc06c2 | 7479 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
7480 | |
7481 | self = self; | |
1afc06c2 | 7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7483 | return NULL; |
1d99702e RD |
7484 | if (_argo0) { |
7485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
7488 | return NULL; | |
7489 | } | |
7490 | } | |
1d99702e RD |
7491 | if (_argo1) { |
7492 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7493 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
7494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
7495 | return NULL; | |
7496 | } | |
7497 | } | |
cf694132 RD |
7498 | { |
7499 | wxPy_BEGIN_ALLOW_THREADS; | |
7500 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
7501 | ||
7502 | wxPy_END_ALLOW_THREADS; | |
7503 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7504 | _resultobj = Py_None; |
7505 | return _resultobj; | |
7506 | } | |
7507 | ||
eec92d76 RD |
7508 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
7509 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject * _resultobj; | |
7511 | bool _result; | |
7512 | wxDC * _arg0; | |
7513 | PyObject * _argo0 = 0; | |
7514 | char *_kwnames[] = { "self", NULL }; | |
7515 | ||
7516 | self = self; | |
7517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
7518 | return NULL; | |
7519 | if (_argo0) { | |
7520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
7523 | return NULL; | |
7524 | } | |
7525 | } | |
7526 | { | |
7527 | wxPy_BEGIN_ALLOW_THREADS; | |
7528 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
7529 | ||
7530 | wxPy_END_ALLOW_THREADS; | |
7531 | } _resultobj = Py_BuildValue("i",_result); | |
7532 | return _resultobj; | |
7533 | } | |
7534 | ||
7535 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
7536 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject * _resultobj; | |
7538 | bool _result; | |
7539 | wxDC * _arg0; | |
7540 | PyObject * _argo0 = 0; | |
7541 | char *_kwnames[] = { "self", NULL }; | |
7542 | ||
7543 | self = self; | |
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
7545 | return NULL; | |
7546 | if (_argo0) { | |
7547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
7550 | return NULL; | |
7551 | } | |
7552 | } | |
7553 | { | |
7554 | wxPy_BEGIN_ALLOW_THREADS; | |
7555 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
7556 | ||
7557 | wxPy_END_ALLOW_THREADS; | |
7558 | } _resultobj = Py_BuildValue("i",_result); | |
7559 | return _resultobj; | |
7560 | } | |
7561 | ||
7562 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
7563 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7564 | PyObject * _resultobj; | |
7565 | int _result; | |
7566 | wxDC * _arg0; | |
7567 | PyObject * _argo0 = 0; | |
7568 | char *_kwnames[] = { "self", NULL }; | |
7569 | ||
7570 | self = self; | |
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
7572 | return NULL; | |
7573 | if (_argo0) { | |
7574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
7577 | return NULL; | |
7578 | } | |
7579 | } | |
7580 | { | |
7581 | wxPy_BEGIN_ALLOW_THREADS; | |
7582 | _result = (int )wxDC_GetDepth(_arg0); | |
7583 | ||
7584 | wxPy_END_ALLOW_THREADS; | |
7585 | } _resultobj = Py_BuildValue("i",_result); | |
7586 | return _resultobj; | |
7587 | } | |
7588 | ||
7589 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
7590 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7591 | PyObject * _resultobj; | |
7592 | wxSize * _result; | |
7593 | wxDC * _arg0; | |
7594 | PyObject * _argo0 = 0; | |
7595 | char *_kwnames[] = { "self", NULL }; | |
7596 | char _ptemp[128]; | |
7597 | ||
7598 | self = self; | |
7599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
7600 | return NULL; | |
7601 | if (_argo0) { | |
7602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
7605 | return NULL; | |
7606 | } | |
7607 | } | |
7608 | { | |
7609 | wxPy_BEGIN_ALLOW_THREADS; | |
7610 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
7611 | ||
7612 | wxPy_END_ALLOW_THREADS; | |
7613 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7614 | _resultobj = Py_BuildValue("s",_ptemp); | |
7615 | return _resultobj; | |
7616 | } | |
7617 | ||
7618 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
7619 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7620 | PyObject * _resultobj; | |
7621 | wxDC * _arg0; | |
7622 | int * _arg1; | |
7623 | int temp; | |
7624 | int * _arg2; | |
7625 | int temp0; | |
7626 | PyObject * _argo0 = 0; | |
7627 | char *_kwnames[] = { "self", NULL }; | |
7628 | ||
7629 | self = self; | |
7630 | { | |
7631 | _arg1 = &temp; | |
7632 | } | |
7633 | { | |
7634 | _arg2 = &temp0; | |
7635 | } | |
7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
7637 | return NULL; | |
7638 | if (_argo0) { | |
7639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
7642 | return NULL; | |
7643 | } | |
7644 | } | |
7645 | { | |
7646 | wxPy_BEGIN_ALLOW_THREADS; | |
7647 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
7648 | ||
7649 | wxPy_END_ALLOW_THREADS; | |
7650 | } Py_INCREF(Py_None); | |
7651 | _resultobj = Py_None; | |
7652 | { | |
7653 | PyObject *o; | |
7654 | o = PyInt_FromLong((long) (*_arg1)); | |
7655 | _resultobj = t_output_helper(_resultobj, o); | |
7656 | } | |
7657 | { | |
7658 | PyObject *o; | |
7659 | o = PyInt_FromLong((long) (*_arg2)); | |
7660 | _resultobj = t_output_helper(_resultobj, o); | |
7661 | } | |
7662 | return _resultobj; | |
7663 | } | |
7664 | ||
7665 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
7666 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7667 | PyObject * _resultobj; | |
7668 | wxDC * _arg0; | |
7669 | int _arg1; | |
7670 | int _arg2; | |
7671 | PyObject * _argo0 = 0; | |
7672 | char *_kwnames[] = { "self","x","y", NULL }; | |
7673 | ||
7674 | self = self; | |
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7676 | return NULL; | |
7677 | if (_argo0) { | |
7678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
7681 | return NULL; | |
7682 | } | |
7683 | } | |
7684 | { | |
7685 | wxPy_BEGIN_ALLOW_THREADS; | |
7686 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
7687 | ||
7688 | wxPy_END_ALLOW_THREADS; | |
7689 | } Py_INCREF(Py_None); | |
7690 | _resultobj = Py_None; | |
7691 | return _resultobj; | |
7692 | } | |
7693 | ||
7694 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
7695 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7696 | PyObject * _resultobj; | |
7697 | wxDC * _arg0; | |
7698 | int * _arg1; | |
7699 | int temp; | |
7700 | int * _arg2; | |
7701 | int temp0; | |
7702 | PyObject * _argo0 = 0; | |
7703 | char *_kwnames[] = { "self", NULL }; | |
7704 | ||
7705 | self = self; | |
7706 | { | |
7707 | _arg1 = &temp; | |
7708 | } | |
7709 | { | |
7710 | _arg2 = &temp0; | |
7711 | } | |
7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
7713 | return NULL; | |
7714 | if (_argo0) { | |
7715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
7718 | return NULL; | |
7719 | } | |
7720 | } | |
7721 | { | |
7722 | wxPy_BEGIN_ALLOW_THREADS; | |
7723 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
7724 | ||
7725 | wxPy_END_ALLOW_THREADS; | |
7726 | } Py_INCREF(Py_None); | |
7727 | _resultobj = Py_None; | |
7728 | { | |
7729 | PyObject *o; | |
7730 | o = PyInt_FromLong((long) (*_arg1)); | |
7731 | _resultobj = t_output_helper(_resultobj, o); | |
7732 | } | |
7733 | { | |
7734 | PyObject *o; | |
7735 | o = PyInt_FromLong((long) (*_arg2)); | |
7736 | _resultobj = t_output_helper(_resultobj, o); | |
7737 | } | |
7738 | return _resultobj; | |
7739 | } | |
7740 | ||
7741 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
7742 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7743 | PyObject * _resultobj; | |
7744 | wxDC * _arg0; | |
7745 | bool _arg1; | |
7746 | bool _arg2; | |
7747 | PyObject * _argo0 = 0; | |
7748 | int tempbool1; | |
7749 | int tempbool2; | |
7750 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
7751 | ||
7752 | self = self; | |
7753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7754 | return NULL; | |
7755 | if (_argo0) { | |
7756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
7759 | return NULL; | |
7760 | } | |
7761 | } | |
7762 | _arg1 = (bool ) tempbool1; | |
7763 | _arg2 = (bool ) tempbool2; | |
7764 | { | |
7765 | wxPy_BEGIN_ALLOW_THREADS; | |
7766 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
7767 | ||
7768 | wxPy_END_ALLOW_THREADS; | |
7769 | } Py_INCREF(Py_None); | |
7770 | _resultobj = Py_None; | |
7771 | return _resultobj; | |
7772 | } | |
7773 | ||
f6bcfd97 BP |
7774 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
7775 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7776 | PyObject * _resultobj; | |
7777 | wxDC * _arg0; | |
7778 | int _arg1; | |
7779 | int _arg2; | |
7780 | PyObject * _argo0 = 0; | |
7781 | char *_kwnames[] = { "self","x","y", NULL }; | |
7782 | ||
7783 | self = self; | |
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7785 | return NULL; | |
7786 | if (_argo0) { | |
7787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
7790 | return NULL; | |
7791 | } | |
7792 | } | |
7793 | { | |
7794 | wxPy_BEGIN_ALLOW_THREADS; | |
7795 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
7796 | ||
7797 | wxPy_END_ALLOW_THREADS; | |
7798 | } Py_INCREF(Py_None); | |
7799 | _resultobj = Py_None; | |
7800 | return _resultobj; | |
7801 | } | |
7802 | ||
7803 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
7804 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7805 | PyObject * _resultobj; | |
7806 | wxDC * _arg0; | |
7807 | PyObject * _argo0 = 0; | |
7808 | char *_kwnames[] = { "self", NULL }; | |
7809 | ||
7810 | self = self; | |
7811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
7812 | return NULL; | |
7813 | if (_argo0) { | |
7814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
7817 | return NULL; | |
7818 | } | |
7819 | } | |
7820 | { | |
7821 | wxPy_BEGIN_ALLOW_THREADS; | |
7822 | wxDC_ResetBoundingBox(_arg0); | |
7823 | ||
7824 | wxPy_END_ALLOW_THREADS; | |
7825 | } Py_INCREF(Py_None); | |
7826 | _resultobj = Py_None; | |
7827 | return _resultobj; | |
7828 | } | |
7829 | ||
8ab979d7 RD |
7830 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
7831 | wxMemoryDC *src; | |
7832 | wxDC *dest; | |
7833 | src = (wxMemoryDC *) ptr; | |
7834 | dest = (wxDC *) src; | |
7835 | return (void *) dest; | |
7836 | } | |
7837 | ||
7838 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
1afc06c2 | 7839 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7840 | PyObject * _resultobj; |
7841 | wxMemoryDC * _result; | |
1afc06c2 | 7842 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
7843 | char _ptemp[128]; |
7844 | ||
7845 | self = self; | |
1afc06c2 | 7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 7847 | return NULL; |
cf694132 RD |
7848 | { |
7849 | wxPy_BEGIN_ALLOW_THREADS; | |
7850 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
7851 | ||
7852 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7853 | } if (_result) { |
7854 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
7855 | _resultobj = Py_BuildValue("s",_ptemp); | |
7856 | } else { | |
7857 | Py_INCREF(Py_None); | |
7858 | _resultobj = Py_None; | |
7859 | } | |
8ab979d7 RD |
7860 | return _resultobj; |
7861 | } | |
7862 | ||
7863 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 7864 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7865 | PyObject * _resultobj; |
7866 | wxMemoryDC * _arg0; | |
7867 | wxBitmap * _arg1; | |
1d99702e RD |
7868 | PyObject * _argo0 = 0; |
7869 | PyObject * _argo1 = 0; | |
1afc06c2 | 7870 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
7871 | |
7872 | self = self; | |
1afc06c2 | 7873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7874 | return NULL; |
1d99702e RD |
7875 | if (_argo0) { |
7876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
7878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
7879 | return NULL; | |
7880 | } | |
7881 | } | |
1d99702e RD |
7882 | if (_argo1) { |
7883 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7884 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
7885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
7886 | return NULL; | |
7887 | } | |
7888 | } | |
cf694132 RD |
7889 | { |
7890 | wxPy_BEGIN_ALLOW_THREADS; | |
7891 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
7892 | ||
7893 | wxPy_END_ALLOW_THREADS; | |
7894 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
7895 | _resultobj = Py_None; |
7896 | return _resultobj; | |
7897 | } | |
7898 | ||
7899 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
7900 | wxScreenDC *src; | |
7901 | wxDC *dest; | |
7902 | src = (wxScreenDC *) ptr; | |
7903 | dest = (wxDC *) src; | |
7904 | return (void *) dest; | |
7905 | } | |
7906 | ||
7907 | #define new_wxScreenDC() (new wxScreenDC()) | |
1afc06c2 | 7908 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7909 | PyObject * _resultobj; |
7910 | wxScreenDC * _result; | |
1afc06c2 | 7911 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
7912 | char _ptemp[128]; |
7913 | ||
7914 | self = self; | |
1afc06c2 | 7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 7916 | return NULL; |
cf694132 RD |
7917 | { |
7918 | wxPy_BEGIN_ALLOW_THREADS; | |
7919 | _result = (wxScreenDC *)new_wxScreenDC(); | |
7920 | ||
7921 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7922 | } if (_result) { |
7923 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
7924 | _resultobj = Py_BuildValue("s",_ptemp); | |
7925 | } else { | |
7926 | Py_INCREF(Py_None); | |
7927 | _resultobj = Py_None; | |
7928 | } | |
8ab979d7 RD |
7929 | return _resultobj; |
7930 | } | |
7931 | ||
26b9cf27 RD |
7932 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
7933 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7934 | PyObject * _resultobj; |
7935 | bool _result; | |
7936 | wxScreenDC * _arg0; | |
7937 | wxWindow * _arg1; | |
1d99702e RD |
7938 | PyObject * _argo0 = 0; |
7939 | PyObject * _argo1 = 0; | |
1afc06c2 | 7940 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
7941 | |
7942 | self = self; | |
26b9cf27 | 7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7944 | return NULL; |
1d99702e RD |
7945 | if (_argo0) { |
7946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 7948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
7949 | return NULL; |
7950 | } | |
7951 | } | |
1d99702e RD |
7952 | if (_argo1) { |
7953 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7954 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 7955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
7956 | return NULL; |
7957 | } | |
7958 | } | |
cf694132 RD |
7959 | { |
7960 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 7961 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 RD |
7962 | |
7963 | wxPy_END_ALLOW_THREADS; | |
7964 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
7965 | return _resultobj; |
7966 | } | |
7967 | ||
26b9cf27 RD |
7968 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
7969 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7970 | PyObject * _resultobj; |
7971 | bool _result; | |
7972 | wxScreenDC * _arg0; | |
1d99702e RD |
7973 | wxRect * _arg1 = (wxRect *) NULL; |
7974 | PyObject * _argo0 = 0; | |
2f90df85 RD |
7975 | wxRect temp; |
7976 | PyObject * _obj1 = 0; | |
1afc06c2 | 7977 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
7978 | |
7979 | self = self; | |
26b9cf27 | 7980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7981 | return NULL; |
1d99702e RD |
7982 | if (_argo0) { |
7983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 7985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
7986 | return NULL; |
7987 | } | |
7988 | } | |
2f90df85 RD |
7989 | if (_obj1) |
7990 | { | |
7991 | _arg1 = &temp; | |
7992 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 7993 | return NULL; |
2f90df85 | 7994 | } |
cf694132 RD |
7995 | { |
7996 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 7997 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 RD |
7998 | |
7999 | wxPy_END_ALLOW_THREADS; | |
8000 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8001 | return _resultobj; |
8002 | } | |
8003 | ||
8004 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 8005 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8006 | PyObject * _resultobj; |
8007 | bool _result; | |
8008 | wxScreenDC * _arg0; | |
1d99702e | 8009 | PyObject * _argo0 = 0; |
1afc06c2 | 8010 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8011 | |
8012 | self = self; | |
1afc06c2 | 8013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 8014 | return NULL; |
1d99702e RD |
8015 | if (_argo0) { |
8016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
8018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
8019 | return NULL; | |
8020 | } | |
8021 | } | |
cf694132 RD |
8022 | { |
8023 | wxPy_BEGIN_ALLOW_THREADS; | |
8024 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
8025 | ||
8026 | wxPy_END_ALLOW_THREADS; | |
8027 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
8028 | return _resultobj; |
8029 | } | |
8030 | ||
8031 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
8032 | wxClientDC *src; | |
8033 | wxDC *dest; | |
8034 | src = (wxClientDC *) ptr; | |
8035 | dest = (wxDC *) src; | |
8036 | return (void *) dest; | |
8037 | } | |
8038 | ||
8039 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
1afc06c2 | 8040 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8041 | PyObject * _resultobj; |
8042 | wxClientDC * _result; | |
8043 | wxWindow * _arg0; | |
1d99702e | 8044 | PyObject * _argo0 = 0; |
1afc06c2 | 8045 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
8046 | char _ptemp[128]; |
8047 | ||
8048 | self = self; | |
1afc06c2 | 8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 8050 | return NULL; |
1d99702e RD |
8051 | if (_argo0) { |
8052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
8055 | return NULL; | |
8056 | } | |
8057 | } | |
cf694132 RD |
8058 | { |
8059 | wxPy_BEGIN_ALLOW_THREADS; | |
8060 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
8061 | ||
8062 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8063 | } if (_result) { |
8064 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
8065 | _resultobj = Py_BuildValue("s",_ptemp); | |
8066 | } else { | |
8067 | Py_INCREF(Py_None); | |
8068 | _resultobj = Py_None; | |
8069 | } | |
8ab979d7 RD |
8070 | return _resultobj; |
8071 | } | |
8072 | ||
8073 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
8074 | wxPaintDC *src; | |
8075 | wxDC *dest; | |
8076 | src = (wxPaintDC *) ptr; | |
8077 | dest = (wxDC *) src; | |
8078 | return (void *) dest; | |
8079 | } | |
8080 | ||
8081 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
1afc06c2 | 8082 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8083 | PyObject * _resultobj; |
8084 | wxPaintDC * _result; | |
8085 | wxWindow * _arg0; | |
1d99702e | 8086 | PyObject * _argo0 = 0; |
1afc06c2 | 8087 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
8088 | char _ptemp[128]; |
8089 | ||
8090 | self = self; | |
1afc06c2 | 8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 8092 | return NULL; |
1d99702e RD |
8093 | if (_argo0) { |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
8097 | return NULL; | |
8098 | } | |
8099 | } | |
cf694132 RD |
8100 | { |
8101 | wxPy_BEGIN_ALLOW_THREADS; | |
8102 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
8103 | ||
8104 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8105 | } if (_result) { |
8106 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
8107 | _resultobj = Py_BuildValue("s",_ptemp); | |
8108 | } else { | |
8109 | Py_INCREF(Py_None); | |
8110 | _resultobj = Py_None; | |
8111 | } | |
8ab979d7 RD |
8112 | return _resultobj; |
8113 | } | |
8114 | ||
b639c3c5 RD |
8115 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
8116 | wxWindowDC *src; | |
8117 | wxDC *dest; | |
8118 | src = (wxWindowDC *) ptr; | |
8119 | dest = (wxDC *) src; | |
8120 | return (void *) dest; | |
8121 | } | |
8122 | ||
8123 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
1afc06c2 | 8124 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
8125 | PyObject * _resultobj; |
8126 | wxWindowDC * _result; | |
8127 | wxWindow * _arg0; | |
1d99702e | 8128 | PyObject * _argo0 = 0; |
1afc06c2 | 8129 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
8130 | char _ptemp[128]; |
8131 | ||
8132 | self = self; | |
1afc06c2 | 8133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 8134 | return NULL; |
1d99702e RD |
8135 | if (_argo0) { |
8136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
8138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
8139 | return NULL; | |
8140 | } | |
8141 | } | |
cf694132 RD |
8142 | { |
8143 | wxPy_BEGIN_ALLOW_THREADS; | |
8144 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
8145 | ||
8146 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8147 | } if (_result) { |
8148 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
8149 | _resultobj = Py_BuildValue("s",_ptemp); | |
8150 | } else { | |
8151 | Py_INCREF(Py_None); | |
8152 | _resultobj = Py_None; | |
8153 | } | |
b639c3c5 RD |
8154 | return _resultobj; |
8155 | } | |
8156 | ||
8ab979d7 RD |
8157 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
8158 | wxMetaFileDC *src; | |
8159 | wxDC *dest; | |
8160 | src = (wxMetaFileDC *) ptr; | |
8161 | dest = (wxDC *) src; | |
8162 | return (void *) dest; | |
8163 | } | |
8164 | ||
8165 | #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0)) | |
1afc06c2 | 8166 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8167 | PyObject * _resultobj; |
8168 | wxMetaFileDC * _result; | |
1d99702e | 8169 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
8ab979d7 | 8170 | PyObject * _obj0 = 0; |
1afc06c2 | 8171 | char *_kwnames[] = { "filename", NULL }; |
8ab979d7 RD |
8172 | char _ptemp[128]; |
8173 | ||
8174 | self = self; | |
1afc06c2 | 8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFileDC",_kwnames,&_obj0)) |
8ab979d7 RD |
8176 | return NULL; |
8177 | if (_obj0) | |
8178 | { | |
185d7c3e RD |
8179 | #if PYTHON_API_VERSION >= 1009 |
8180 | char* tmpPtr; int tmpSize; | |
8181 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8182 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
8183 | return NULL; | |
8184 | } | |
8185 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8186 | return NULL; | |
8187 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8188 | #else | |
8ab979d7 RD |
8189 | if (!PyString_Check(_obj0)) { |
8190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8191 | return NULL; | |
8192 | } | |
185d7c3e RD |
8193 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
8194 | #endif | |
8ab979d7 | 8195 | } |
cf694132 RD |
8196 | { |
8197 | wxPy_BEGIN_ALLOW_THREADS; | |
8198 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0); | |
8199 | ||
8200 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8201 | } if (_result) { |
8202 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
8203 | _resultobj = Py_BuildValue("s",_ptemp); | |
8204 | } else { | |
8205 | Py_INCREF(Py_None); | |
8206 | _resultobj = Py_None; | |
8207 | } | |
8ab979d7 RD |
8208 | { |
8209 | if (_obj0) | |
8210 | delete _arg0; | |
8211 | } | |
8212 | return _resultobj; | |
8213 | } | |
8214 | ||
8215 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 8216 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8217 | PyObject * _resultobj; |
8218 | wxMetaFile * _result; | |
8219 | wxMetaFileDC * _arg0; | |
1d99702e | 8220 | PyObject * _argo0 = 0; |
1afc06c2 | 8221 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8222 | char _ptemp[128]; |
8223 | ||
8224 | self = self; | |
1afc06c2 | 8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 8226 | return NULL; |
1d99702e RD |
8227 | if (_argo0) { |
8228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
8230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
8231 | return NULL; | |
8232 | } | |
8233 | } | |
cf694132 RD |
8234 | { |
8235 | wxPy_BEGIN_ALLOW_THREADS; | |
8236 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); | |
8237 | ||
8238 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8239 | } if (_result) { |
8240 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
8241 | _resultobj = Py_BuildValue("s",_ptemp); | |
8242 | } else { | |
8243 | Py_INCREF(Py_None); | |
8244 | _resultobj = Py_None; | |
8245 | } | |
8ab979d7 RD |
8246 | return _resultobj; |
8247 | } | |
8248 | ||
b639c3c5 | 8249 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 8250 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
8251 | PyObject * _resultobj; |
8252 | wxPalette * _result; | |
8253 | int _arg0; | |
8254 | byte * _arg1; | |
8255 | byte * _arg2; | |
8256 | byte * _arg3; | |
8257 | PyObject * _obj1 = 0; | |
8258 | PyObject * _obj2 = 0; | |
8259 | PyObject * _obj3 = 0; | |
eec92d76 | 8260 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
8261 | char _ptemp[128]; |
8262 | ||
8263 | self = self; | |
1afc06c2 | 8264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
8265 | return NULL; |
8266 | { | |
8267 | _arg1 = byte_LIST_helper(_obj1); | |
8268 | if (_arg1 == NULL) { | |
8269 | return NULL; | |
8270 | } | |
8271 | } | |
8272 | { | |
8273 | _arg2 = byte_LIST_helper(_obj2); | |
8274 | if (_arg2 == NULL) { | |
8275 | return NULL; | |
8276 | } | |
8277 | } | |
8278 | if (_obj3) | |
8279 | { | |
8280 | _arg3 = byte_LIST_helper(_obj3); | |
8281 | if (_arg3 == NULL) { | |
8282 | return NULL; | |
8283 | } | |
8284 | } | |
8285 | { | |
cf694132 RD |
8286 | if (_obj1) { |
8287 | _arg0 = PyList_Size(_obj1); | |
8288 | } | |
8289 | else { | |
8290 | _arg0 = 0; | |
8291 | } | |
b639c3c5 | 8292 | } |
cf694132 RD |
8293 | { |
8294 | wxPy_BEGIN_ALLOW_THREADS; | |
8295 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
8296 | ||
8297 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8298 | } if (_result) { |
8299 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
8300 | _resultobj = Py_BuildValue("s",_ptemp); | |
8301 | } else { | |
8302 | Py_INCREF(Py_None); | |
8303 | _resultobj = Py_None; | |
8304 | } | |
b639c3c5 RD |
8305 | { |
8306 | delete [] _arg1; | |
8307 | } | |
8308 | { | |
8309 | delete [] _arg2; | |
8310 | } | |
8311 | { | |
8312 | delete [] _arg3; | |
8313 | } | |
8314 | return _resultobj; | |
8315 | } | |
8316 | ||
8317 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 8318 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
8319 | PyObject * _resultobj; |
8320 | wxPalette * _arg0; | |
1d99702e | 8321 | PyObject * _argo0 = 0; |
1afc06c2 | 8322 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
8323 | |
8324 | self = self; | |
1afc06c2 | 8325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 8326 | return NULL; |
1d99702e RD |
8327 | if (_argo0) { |
8328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
8330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
8331 | return NULL; | |
8332 | } | |
8333 | } | |
cf694132 RD |
8334 | { |
8335 | wxPy_BEGIN_ALLOW_THREADS; | |
8336 | delete_wxPalette(_arg0); | |
8337 | ||
8338 | wxPy_END_ALLOW_THREADS; | |
8339 | } Py_INCREF(Py_None); | |
b639c3c5 RD |
8340 | _resultobj = Py_None; |
8341 | return _resultobj; | |
8342 | } | |
8343 | ||
8344 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 8345 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
8346 | PyObject * _resultobj; |
8347 | int _result; | |
8348 | wxPalette * _arg0; | |
8349 | byte _arg1; | |
8350 | byte _arg2; | |
8351 | byte _arg3; | |
1d99702e | 8352 | PyObject * _argo0 = 0; |
1afc06c2 | 8353 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
8354 | |
8355 | self = self; | |
1afc06c2 | 8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 8357 | return NULL; |
1d99702e RD |
8358 | if (_argo0) { |
8359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
8361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
8362 | return NULL; | |
8363 | } | |
8364 | } | |
cf694132 RD |
8365 | { |
8366 | wxPy_BEGIN_ALLOW_THREADS; | |
8367 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
8368 | ||
8369 | wxPy_END_ALLOW_THREADS; | |
8370 | } _resultobj = Py_BuildValue("i",_result); | |
b639c3c5 RD |
8371 | return _resultobj; |
8372 | } | |
8373 | ||
8374 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 8375 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
8376 | PyObject * _resultobj; |
8377 | bool _result; | |
8378 | wxPalette * _arg0; | |
8379 | int _arg1; | |
8380 | byte * _arg2; | |
8381 | byte * _arg3; | |
8382 | byte * _arg4; | |
1d99702e RD |
8383 | PyObject * _argo0 = 0; |
8384 | PyObject * _argo2 = 0; | |
8385 | PyObject * _argo3 = 0; | |
8386 | PyObject * _argo4 = 0; | |
1afc06c2 | 8387 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
b639c3c5 RD |
8388 | |
8389 | self = self; | |
1afc06c2 | 8390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
b639c3c5 | 8391 | return NULL; |
1d99702e RD |
8392 | if (_argo0) { |
8393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
8395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
8396 | return NULL; | |
8397 | } | |
8398 | } | |
1d99702e RD |
8399 | if (_argo2) { |
8400 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8401 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
b639c3c5 RD |
8402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
8403 | return NULL; | |
8404 | } | |
8405 | } | |
1d99702e RD |
8406 | if (_argo3) { |
8407 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8408 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
b639c3c5 RD |
8409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
8410 | return NULL; | |
8411 | } | |
8412 | } | |
1d99702e RD |
8413 | if (_argo4) { |
8414 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8415 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
b639c3c5 RD |
8416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
8417 | return NULL; | |
8418 | } | |
8419 | } | |
cf694132 RD |
8420 | { |
8421 | wxPy_BEGIN_ALLOW_THREADS; | |
8422 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8423 | ||
8424 | wxPy_END_ALLOW_THREADS; | |
8425 | } _resultobj = Py_BuildValue("i",_result); | |
b639c3c5 RD |
8426 | return _resultobj; |
8427 | } | |
8428 | ||
8429 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 8430 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
8431 | PyObject * _resultobj; |
8432 | bool _result; | |
8433 | wxPalette * _arg0; | |
1d99702e | 8434 | PyObject * _argo0 = 0; |
1afc06c2 | 8435 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
8436 | |
8437 | self = self; | |
1afc06c2 | 8438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 8439 | return NULL; |
1d99702e RD |
8440 | if (_argo0) { |
8441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
8443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
8444 | return NULL; | |
8445 | } | |
8446 | } | |
cf694132 RD |
8447 | { |
8448 | wxPy_BEGIN_ALLOW_THREADS; | |
8449 | _result = (bool )wxPalette_Ok(_arg0); | |
8450 | ||
8451 | wxPy_END_ALLOW_THREADS; | |
8452 | } _resultobj = Py_BuildValue("i",_result); | |
b639c3c5 RD |
8453 | return _resultobj; |
8454 | } | |
8455 | ||
af309447 | 8456 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 8457 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8458 | PyObject * _resultobj; |
8459 | wxImageList * _result; | |
8460 | int _arg0; | |
8461 | int _arg1; | |
dcd38683 | 8462 | int _arg2 = (int ) TRUE; |
1d99702e | 8463 | int _arg3 = (int ) 1; |
1afc06c2 | 8464 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
8465 | char _ptemp[128]; |
8466 | ||
8467 | self = self; | |
6999b0d8 | 8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 8469 | return NULL; |
cf694132 RD |
8470 | { |
8471 | wxPy_BEGIN_ALLOW_THREADS; | |
8472 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
8473 | ||
8474 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
8475 | } if (_result) { |
8476 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
8477 | _resultobj = Py_BuildValue("s",_ptemp); | |
8478 | } else { | |
8479 | Py_INCREF(Py_None); | |
8480 | _resultobj = Py_None; | |
8481 | } | |
af309447 RD |
8482 | return _resultobj; |
8483 | } | |
8484 | ||
8485 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 8486 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8487 | PyObject * _resultobj; |
8488 | wxImageList * _arg0; | |
1d99702e | 8489 | PyObject * _argo0 = 0; |
1afc06c2 | 8490 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
8491 | |
8492 | self = self; | |
1afc06c2 | 8493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 8494 | return NULL; |
1d99702e RD |
8495 | if (_argo0) { |
8496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
8498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
8499 | return NULL; | |
8500 | } | |
8501 | } | |
cf694132 RD |
8502 | { |
8503 | wxPy_BEGIN_ALLOW_THREADS; | |
8504 | delete_wxImageList(_arg0); | |
8505 | ||
8506 | wxPy_END_ALLOW_THREADS; | |
8507 | } Py_INCREF(Py_None); | |
af309447 RD |
8508 | _resultobj = Py_None; |
8509 | return _resultobj; | |
8510 | } | |
8511 | ||
8512 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 8513 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8514 | PyObject * _resultobj; |
8515 | int _result; | |
8516 | wxImageList * _arg0; | |
8517 | wxBitmap * _arg1; | |
1d99702e RD |
8518 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
8519 | PyObject * _argo0 = 0; | |
8520 | PyObject * _argo1 = 0; | |
8521 | PyObject * _argo2 = 0; | |
1afc06c2 | 8522 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
8523 | |
8524 | self = self; | |
1afc06c2 | 8525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 8526 | return NULL; |
1d99702e RD |
8527 | if (_argo0) { |
8528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
8530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
8531 | return NULL; | |
8532 | } | |
8533 | } | |
1d99702e RD |
8534 | if (_argo1) { |
8535 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8536 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
8537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
8538 | return NULL; | |
8539 | } | |
8540 | } | |
1d99702e RD |
8541 | if (_argo2) { |
8542 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8543 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
8544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
8545 | return NULL; | |
8546 | } | |
8547 | } | |
cf694132 RD |
8548 | { |
8549 | wxPy_BEGIN_ALLOW_THREADS; | |
8550 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
8551 | ||
8552 | wxPy_END_ALLOW_THREADS; | |
8553 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8554 | return _resultobj; |
8555 | } | |
8556 | ||
8557 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 8558 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8559 | PyObject * _resultobj; |
8560 | int _result; | |
8561 | wxImageList * _arg0; | |
8562 | wxBitmap * _arg1; | |
8563 | wxColour * _arg2; | |
1d99702e RD |
8564 | PyObject * _argo0 = 0; |
8565 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8566 | wxColour temp; |
8567 | PyObject * _obj2 = 0; | |
1afc06c2 | 8568 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
8569 | |
8570 | self = self; | |
f6bcfd97 | 8571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 8572 | return NULL; |
1d99702e RD |
8573 | if (_argo0) { |
8574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
8576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
8577 | return NULL; | |
8578 | } | |
8579 | } | |
1d99702e RD |
8580 | if (_argo1) { |
8581 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8582 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
8583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
8584 | return NULL; | |
8585 | } | |
8586 | } | |
f6bcfd97 BP |
8587 | { |
8588 | _arg2 = &temp; | |
8589 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 8590 | return NULL; |
f6bcfd97 | 8591 | } |
cf694132 RD |
8592 | { |
8593 | wxPy_BEGIN_ALLOW_THREADS; | |
8594 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
8595 | ||
8596 | wxPy_END_ALLOW_THREADS; | |
8597 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8598 | return _resultobj; |
8599 | } | |
8600 | ||
8601 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 8602 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8603 | PyObject * _resultobj; |
8604 | int _result; | |
8605 | wxImageList * _arg0; | |
8606 | wxIcon * _arg1; | |
1d99702e RD |
8607 | PyObject * _argo0 = 0; |
8608 | PyObject * _argo1 = 0; | |
1afc06c2 | 8609 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
8610 | |
8611 | self = self; | |
1afc06c2 | 8612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 8613 | return NULL; |
1d99702e RD |
8614 | if (_argo0) { |
8615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
8617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
8618 | return NULL; | |
8619 | } | |
8620 | } | |
1d99702e RD |
8621 | if (_argo1) { |
8622 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8623 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
8624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
8625 | return NULL; | |
8626 | } | |
8627 | } | |
cf694132 RD |
8628 | { |
8629 | wxPy_BEGIN_ALLOW_THREADS; | |
8630 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
8631 | ||
8632 | wxPy_END_ALLOW_THREADS; | |
8633 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8634 | return _resultobj; |
8635 | } | |
8636 | ||
21f8d7ea | 8637 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 8638 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8639 | PyObject * _resultobj; |
8640 | bool _result; | |
8641 | wxImageList * _arg0; | |
8642 | int _arg1; | |
21f8d7ea | 8643 | wxBitmap * _arg2; |
1d99702e RD |
8644 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
8645 | PyObject * _argo0 = 0; | |
8646 | PyObject * _argo2 = 0; | |
8647 | PyObject * _argo3 = 0; | |
1afc06c2 | 8648 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
8649 | |
8650 | self = self; | |
1afc06c2 | 8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 8652 | return NULL; |
1d99702e RD |
8653 | if (_argo0) { |
8654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 8656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
8657 | return NULL; |
8658 | } | |
8659 | } | |
1d99702e RD |
8660 | if (_argo2) { |
8661 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8662 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 8663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
8664 | return NULL; |
8665 | } | |
8666 | } | |
1d99702e RD |
8667 | if (_argo3) { |
8668 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8669 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
8670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
8671 | return NULL; | |
8672 | } | |
8673 | } | |
cf694132 RD |
8674 | { |
8675 | wxPy_BEGIN_ALLOW_THREADS; | |
8676 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); | |
8677 | ||
8678 | wxPy_END_ALLOW_THREADS; | |
8679 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8680 | return _resultobj; |
8681 | } | |
8682 | ||
21f8d7ea | 8683 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 8684 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8685 | PyObject * _resultobj; |
8686 | bool _result; | |
8687 | wxImageList * _arg0; | |
8688 | int _arg1; | |
21f8d7ea RD |
8689 | wxDC * _arg2; |
8690 | int _arg3; | |
8691 | int _arg4; | |
1d99702e RD |
8692 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
8693 | bool _arg6 = (bool ) FALSE; | |
8694 | PyObject * _argo0 = 0; | |
8695 | PyObject * _argo2 = 0; | |
8696 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 8697 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
8698 | |
8699 | self = self; | |
1afc06c2 | 8700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 8701 | return NULL; |
1d99702e RD |
8702 | if (_argo0) { |
8703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 8705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
8706 | return NULL; |
8707 | } | |
8708 | } | |
1d99702e RD |
8709 | if (_argo2) { |
8710 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8711 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
8712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
8713 | return NULL; | |
8714 | } | |
8715 | } | |
8716 | _arg6 = (bool ) tempbool6; | |
cf694132 RD |
8717 | { |
8718 | wxPy_BEGIN_ALLOW_THREADS; | |
8719 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
8720 | ||
8721 | wxPy_END_ALLOW_THREADS; | |
8722 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8723 | return _resultobj; |
8724 | } | |
8725 | ||
21f8d7ea | 8726 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 8727 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 8728 | PyObject * _resultobj; |
21f8d7ea | 8729 | int _result; |
af309447 | 8730 | wxImageList * _arg0; |
1d99702e | 8731 | PyObject * _argo0 = 0; |
1afc06c2 | 8732 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
8733 | |
8734 | self = self; | |
1afc06c2 | 8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 8736 | return NULL; |
1d99702e RD |
8737 | if (_argo0) { |
8738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 8740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
8741 | return NULL; |
8742 | } | |
8743 | } | |
cf694132 RD |
8744 | { |
8745 | wxPy_BEGIN_ALLOW_THREADS; | |
8746 | _result = (int )wxImageList_GetImageCount(_arg0); | |
8747 | ||
8748 | wxPy_END_ALLOW_THREADS; | |
8749 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8750 | return _resultobj; |
8751 | } | |
8752 | ||
21f8d7ea | 8753 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 8754 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8755 | PyObject * _resultobj; |
8756 | bool _result; | |
8757 | wxImageList * _arg0; | |
8758 | int _arg1; | |
1d99702e | 8759 | PyObject * _argo0 = 0; |
1afc06c2 | 8760 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
8761 | |
8762 | self = self; | |
1afc06c2 | 8763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 8764 | return NULL; |
1d99702e RD |
8765 | if (_argo0) { |
8766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 8768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
8769 | return NULL; |
8770 | } | |
8771 | } | |
cf694132 RD |
8772 | { |
8773 | wxPy_BEGIN_ALLOW_THREADS; | |
8774 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
8775 | ||
8776 | wxPy_END_ALLOW_THREADS; | |
8777 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8778 | return _resultobj; |
8779 | } | |
8780 | ||
21f8d7ea | 8781 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 8782 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8783 | PyObject * _resultobj; |
8784 | bool _result; | |
8785 | wxImageList * _arg0; | |
1d99702e | 8786 | PyObject * _argo0 = 0; |
1afc06c2 | 8787 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
8788 | |
8789 | self = self; | |
1afc06c2 | 8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 8791 | return NULL; |
1d99702e RD |
8792 | if (_argo0) { |
8793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 8795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
8796 | return NULL; |
8797 | } | |
8798 | } | |
cf694132 RD |
8799 | { |
8800 | wxPy_BEGIN_ALLOW_THREADS; | |
8801 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
8802 | ||
8803 | wxPy_END_ALLOW_THREADS; | |
8804 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
8805 | return _resultobj; |
8806 | } | |
8807 | ||
f6bcfd97 BP |
8808 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
8809 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8810 | PyObject * _resultobj; | |
8811 | wxImageList * _arg0; | |
8812 | int _arg1; | |
8813 | int * _arg2; | |
8814 | int temp; | |
8815 | int * _arg3; | |
8816 | int temp0; | |
8817 | PyObject * _argo0 = 0; | |
8818 | char *_kwnames[] = { "self","index", NULL }; | |
8819 | ||
8820 | self = self; | |
8821 | { | |
8822 | _arg2 = &temp; | |
8823 | } | |
8824 | { | |
8825 | _arg3 = &temp0; | |
8826 | } | |
8827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
8828 | return NULL; | |
8829 | if (_argo0) { | |
8830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
8832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
8833 | return NULL; | |
8834 | } | |
8835 | } | |
8836 | { | |
8837 | wxPy_BEGIN_ALLOW_THREADS; | |
8838 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
8839 | ||
8840 | wxPy_END_ALLOW_THREADS; | |
8841 | } Py_INCREF(Py_None); | |
8842 | _resultobj = Py_None; | |
8843 | { | |
8844 | PyObject *o; | |
8845 | o = PyInt_FromLong((long) (*_arg2)); | |
8846 | _resultobj = t_output_helper(_resultobj, o); | |
8847 | } | |
8848 | { | |
8849 | PyObject *o; | |
8850 | o = PyInt_FromLong((long) (*_arg3)); | |
8851 | _resultobj = t_output_helper(_resultobj, o); | |
8852 | } | |
8853 | return _resultobj; | |
8854 | } | |
8855 | ||
8ab979d7 | 8856 | static PyMethodDef gdicMethods[] = { |
f6bcfd97 | 8857 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8858 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
8859 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8860 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
8861 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
8862 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
8863 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
8864 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
8865 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
8866 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
8867 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
8868 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8869 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
8870 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
8871 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
8872 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
8873 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
8874 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
8875 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
8876 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
8877 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
8878 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 8879 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 8880 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8881 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
8882 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
8883 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8884 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
8885 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
8886 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
8887 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8888 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8889 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8890 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
8891 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
8892 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8893 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
8894 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
8895 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
8896 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
8897 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
8898 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
8899 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
8900 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
8901 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
8902 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 8903 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8904 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
8905 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8906 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
8907 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
8908 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
8909 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
8910 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
8911 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
8912 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8913 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
8914 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
8915 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
8916 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
8917 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
8918 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
8919 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
8920 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 8921 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8922 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
8923 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8924 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8925 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 8926 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8927 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
8928 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
8929 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
8930 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
8931 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
8932 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 8933 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8934 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
8935 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8936 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
8937 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
8938 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
8939 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
8940 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
8941 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
8942 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
8943 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
8944 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
8945 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
8946 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
8947 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 8948 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8949 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
8950 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
8951 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
8952 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
8953 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
8954 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
8955 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
8956 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
8957 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
8958 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
8959 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
8960 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
8961 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
8962 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
8963 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
8964 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
8965 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8966 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
8967 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
8968 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f RD |
8969 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
8970 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
8971 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
8972 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
8973 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
8974 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
8975 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8976 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8977 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
8978 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 8979 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 8980 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
8981 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
8982 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
8983 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 8984 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 8985 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 8986 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
8987 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, |
8988 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8989 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8990 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
8991 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
8992 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
8993 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
8994 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8995 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8996 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
8997 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
8998 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 8999 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 9000 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
9001 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
9002 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
9003 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9004 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
9005 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
9006 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
9007 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
9008 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
9009 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
9010 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
9011 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f RD |
9012 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
9013 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
9014 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
9015 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
9016 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
9017 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
9018 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9019 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, |
9020 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
9021 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9022 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
9023 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
9024 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 | 9025 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
9026 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
9027 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
9028 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9029 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
9030 | { "wxFont_GetFontId", (PyCFunction) _wrap_wxFont_GetFontId, METH_VARARGS | METH_KEYWORDS }, | |
9031 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
9032 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 9033 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 9034 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 9035 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
9036 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
9037 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
9038 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
9039 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9040 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
9041 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
9042 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9043 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
9044 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
9045 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9046 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
9047 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
9048 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
9049 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
9050 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
9051 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9052 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
9053 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
9054 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9055 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
9056 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
9057 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9058 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
9059 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
9060 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9061 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
9062 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
9063 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
9064 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
9065 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
9066 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
9067 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
9068 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
9069 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
9070 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9071 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
9072 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
9073 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9074 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
9075 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
9076 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9077 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
9078 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9079 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 9080 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
9081 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
9082 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9083 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
9084 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9085 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
9086 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
9087 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
9088 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
9089 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, |
9090 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
9091 | { "wxBitmapFromData", (PyCFunction) _wrap_wxBitmapFromData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 9092 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
9093 | { NULL, NULL } |
9094 | }; | |
1d99702e RD |
9095 | #ifdef __cplusplus |
9096 | } | |
9097 | #endif | |
9098 | /* | |
9099 | * This table is used by the pointer type-checker | |
9100 | */ | |
9101 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9102 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
9103 | { "_signed_long","_long",0}, | |
b1462dfa | 9104 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
9105 | { "_wxPrintQuality","_int",0}, |
9106 | { "_wxPrintQuality","_signed_int",0}, | |
9107 | { "_wxPrintQuality","_unsigned_int",0}, | |
9108 | { "_wxPrintQuality","_wxWindowID",0}, | |
9109 | { "_wxPrintQuality","_uint",0}, | |
9110 | { "_wxPrintQuality","_EBool",0}, | |
9111 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9112 | { "_wxPrintQuality","_time_t",0}, |
1d99702e RD |
9113 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
9114 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
9115 | { "_wxCursor","_class_wxCursor",0}, | |
9116 | { "_wxMask","_class_wxMask",0}, | |
9117 | { "_wxPen","_class_wxPen",0}, | |
9118 | { "_byte","_unsigned_char",0}, | |
0569df0f | 9119 | { "_wxColourDatabase","_class_wxColourDatabase",0}, |
1d99702e RD |
9120 | { "_long","_unsigned_long",0}, |
9121 | { "_long","_signed_long",0}, | |
9122 | { "_wxImageList","_class_wxImageList",0}, | |
9123 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
9124 | { "_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, | |
9125 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, | |
1d99702e RD |
9126 | { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, |
9127 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
9128 | { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
9129 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
9130 | { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
9131 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
9132 | { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
9133 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
9134 | { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
9135 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
9136 | { "_wxDC","_class_wxDC",0}, | |
b1462dfa | 9137 | { "_size_t","_wxCoord",0}, |
1d99702e | 9138 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9139 | { "_size_t","_time_t",0}, |
1d99702e RD |
9140 | { "_size_t","_unsigned_int",0}, |
9141 | { "_size_t","_int",0}, | |
9142 | { "_size_t","_wxWindowID",0}, | |
9143 | { "_size_t","_uint",0}, | |
9144 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
1d99702e RD |
9145 | { "_class_wxMask","_wxMask",0}, |
9146 | { "_wxColour","_class_wxColour",0}, | |
9147 | { "_wxBrush","_class_wxBrush",0}, | |
b1462dfa | 9148 | { "_uint","_wxCoord",0}, |
1d99702e | 9149 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9150 | { "_uint","_time_t",0}, |
1d99702e RD |
9151 | { "_uint","_size_t",0}, |
9152 | { "_uint","_unsigned_int",0}, | |
9153 | { "_uint","_int",0}, | |
9154 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9155 | { "_wxChar","_char",0}, |
1d99702e RD |
9156 | { "_wxRect","_class_wxRect",0}, |
9157 | { "_wxPoint","_class_wxPoint",0}, | |
f6bcfd97 | 9158 | { "_char","_wxChar",0}, |
1d99702e | 9159 | { "_wxBitmap","_class_wxBitmap",0}, |
0569df0f | 9160 | { "_wxPenList","_class_wxPenList",0}, |
1d99702e RD |
9161 | { "_wxWindowDC","_class_wxWindowDC",0}, |
9162 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
0569df0f | 9163 | { "_class_wxColourDatabase","_wxColourDatabase",0}, |
b1462dfa | 9164 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
9165 | { "_EBool","_wxPrintQuality",0}, |
9166 | { "_EBool","_signed_int",0}, | |
9167 | { "_EBool","_int",0}, | |
9168 | { "_EBool","_wxWindowID",0}, | |
9169 | { "_class_wxRegion","_wxRegion",0}, | |
9170 | { "_wxFont","_class_wxFont",0}, | |
1d99702e RD |
9171 | { "_unsigned_long","_long",0}, |
9172 | { "_class_wxRect","_wxRect",0}, | |
9173 | { "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, | |
9174 | { "_class_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, | |
1d99702e RD |
9175 | { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC}, |
9176 | { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, | |
9177 | { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC}, | |
9178 | { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
9179 | { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC}, | |
9180 | { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
9181 | { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC}, | |
9182 | { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
9183 | { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
9184 | { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, | |
9185 | { "_class_wxDC","_wxDC",0}, | |
0569df0f RD |
9186 | { "_class_wxBrushList","_wxBrushList",0}, |
9187 | { "_class_wxPenList","_wxPenList",0}, | |
1d99702e | 9188 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
b1462dfa | 9189 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9190 | { "_signed_int","_wxPrintQuality",0}, |
9191 | { "_signed_int","_EBool",0}, | |
9192 | { "_signed_int","_wxWindowID",0}, | |
9193 | { "_signed_int","_int",0}, | |
9194 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
9195 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
9196 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
9197 | { "_WXTYPE","_short",0}, | |
9198 | { "_WXTYPE","_signed_short",0}, | |
9199 | { "_WXTYPE","_unsigned_short",0}, | |
9200 | { "_class_wxBrush","_wxBrush",0}, | |
9201 | { "_unsigned_short","_WXTYPE",0}, | |
9202 | { "_unsigned_short","_short",0}, | |
9203 | { "_class_wxFont","_wxFont",0}, | |
2abc0a0f | 9204 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
0569df0f | 9205 | { "_wxFontList","_class_wxFontList",0}, |
1d99702e RD |
9206 | { "_wxClientDC","_class_wxClientDC",0}, |
9207 | { "_class_wxPoint","_wxPoint",0}, | |
9208 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
9209 | { "_signed_short","_WXTYPE",0}, | |
9210 | { "_signed_short","_short",0}, | |
9211 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
9212 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
9213 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
9214 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
9215 | { "_class_wxCursor","_wxCursor",0}, | |
9216 | { "_unsigned_char","_byte",0}, | |
9217 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
b1462dfa | 9218 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9219 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9220 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9221 | { "_unsigned_int","_size_t",0}, |
9222 | { "_unsigned_int","_uint",0}, | |
9223 | { "_unsigned_int","_wxWindowID",0}, | |
9224 | { "_unsigned_int","_int",0}, | |
9225 | { "_wxIcon","_class_wxIcon",0}, | |
9226 | { "_class_wxPen","_wxPen",0}, | |
9227 | { "_short","_WXTYPE",0}, | |
9228 | { "_short","_unsigned_short",0}, | |
9229 | { "_short","_signed_short",0}, | |
9230 | { "_class_wxImageList","_wxImageList",0}, | |
b1462dfa | 9231 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9232 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9233 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9234 | { "_wxWindowID","_size_t",0}, |
9235 | { "_wxWindowID","_EBool",0}, | |
9236 | { "_wxWindowID","_uint",0}, | |
9237 | { "_wxWindowID","_int",0}, | |
9238 | { "_wxWindowID","_signed_int",0}, | |
9239 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9240 | { "_int","_wxCoord",0}, |
1d99702e | 9241 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9242 | { "_int","_time_t",0}, |
1d99702e RD |
9243 | { "_int","_size_t",0}, |
9244 | { "_int","_EBool",0}, | |
9245 | { "_int","_uint",0}, | |
9246 | { "_int","_wxWindowID",0}, | |
9247 | { "_int","_unsigned_int",0}, | |
9248 | { "_int","_signed_int",0}, | |
c368d904 RD |
9249 | { "_time_t","_wxCoord",0}, |
9250 | { "_time_t","_wxPrintQuality",0}, | |
9251 | { "_time_t","_unsigned_int",0}, | |
9252 | { "_time_t","_int",0}, | |
9253 | { "_time_t","_wxWindowID",0}, | |
9254 | { "_time_t","_uint",0}, | |
9255 | { "_time_t","_size_t",0}, | |
1d99702e RD |
9256 | { "_wxSize","_class_wxSize",0}, |
9257 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
1d99702e RD |
9258 | { "_class_wxPaintDC","_wxPaintDC",0}, |
9259 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
9260 | { "_class_wxIcon","_wxIcon",0}, | |
9261 | { "_class_wxColour","_wxColour",0}, | |
9262 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
9263 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
9264 | { "_wxCoord","_int",0}, |
9265 | { "_wxCoord","_signed_int",0}, | |
9266 | { "_wxCoord","_unsigned_int",0}, | |
9267 | { "_wxCoord","_wxWindowID",0}, | |
9268 | { "_wxCoord","_uint",0}, | |
9269 | { "_wxCoord","_EBool",0}, | |
9270 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9271 | { "_wxCoord","_time_t",0}, |
b1462dfa | 9272 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 9273 | { "_wxRegion","_class_wxRegion",0}, |
2abc0a0f | 9274 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
0569df0f | 9275 | { "_class_wxFontList","_wxFontList",0}, |
1d99702e | 9276 | { "_class_wxClientDC","_wxClientDC",0}, |
0569df0f | 9277 | { "_wxBrushList","_class_wxBrushList",0}, |
1d99702e | 9278 | { "_class_wxSize","_wxSize",0}, |
1d99702e RD |
9279 | { "_class_wxBitmap","_wxBitmap",0}, |
9280 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
1d99702e RD |
9281 | { "_class_wxPalette","_wxPalette",0}, |
9282 | {0,0,0}}; | |
9283 | ||
8ab979d7 RD |
9284 | static PyObject *SWIG_globals; |
9285 | #ifdef __cplusplus | |
9286 | extern "C" | |
9287 | #endif | |
1d99702e | 9288 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
9289 | PyObject *m, *d; |
9290 | SWIG_globals = SWIG_newvarlink(); | |
9291 | m = Py_InitModule("gdic", gdicMethods); | |
9292 | d = PyModule_GetDict(m); | |
f0261a72 RD |
9293 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
9294 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
9295 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
9296 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
9297 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
9298 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
9299 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
9300 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
9301 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
9302 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
9303 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
9304 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
9305 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
9306 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
9307 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
9308 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
9309 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
9310 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
9311 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
9312 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
9313 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
9314 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
9315 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
9316 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
9317 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
9318 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); | |
9319 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
9320 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
9321 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
8ab979d7 RD |
9322 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
9323 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
9324 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
9325 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
9326 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
9327 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
9328 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
9329 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
9330 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
9331 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
9332 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
9333 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
9334 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
9335 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
9336 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
9337 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
9338 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
9339 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
9340 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
9341 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
9342 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
9343 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
9344 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
9345 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
9346 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
9347 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
9348 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
9349 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
9350 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
9351 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
9352 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
9353 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
9354 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
9355 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
9356 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
9357 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
9358 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
9359 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
9360 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
9361 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
9362 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
9363 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
9364 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
9365 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
9366 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
9367 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
9368 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
af309447 RD |
9369 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
9370 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
9371 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
9372 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
9373 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
9374 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
9375 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
1d99702e RD |
9376 | { |
9377 | int i; | |
9378 | for (i = 0; _swig_mapping[i].n1; i++) | |
9379 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9380 | } | |
8ab979d7 | 9381 | } |