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