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