]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
1 | /* |
2 | * FILE : gtk/gdi.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
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> | |
105e45b9 RD |
58 | #ifndef __WXMSW__ |
59 | #include <wx/postscrp.h> | |
60 | #endif | |
70551f47 RD |
61 | |
62 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
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 | ||
105e45b9 | 110 | extern byte* byte_LIST_helper(PyObject* source); |
70551f47 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); | |
70551f47 | 117 | extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); |
70551f47 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 | ||
126 | // This one won't own the reference, so Python won't call | |
127 | // the dtor, this is good for toolbars and such where | |
128 | // the parent will manage the bitmap. | |
129 | wxBitmap* wxNoRefBitmap(char* name, long flags) { | |
130 | return new wxBitmap(name, flags); | |
131 | } | |
132 | ||
133 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { | |
134 | return new wxMask(bitmap, colour); | |
135 | } | |
136 | // Alternate 'constructor' | |
b26e2dc4 | 137 | wxCursor* wxPyStockCursor(int id) { |
70551f47 RD |
138 | return new wxCursor(id); |
139 | } | |
140 | // Alternate 'constructor' | |
141 | wxColour* wxNamedColour(const wxString& colorName) { | |
142 | return new wxColour(colorName); | |
143 | } | |
144 | // Alternate 'constructor' | |
145 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
146 | return new wxMemoryDC(oldDC); | |
147 | } | |
148 | extern wxFont * wxNORMAL_FONT; | |
149 | extern wxFont * wxSMALL_FONT; | |
150 | extern wxFont * wxITALIC_FONT; | |
151 | extern wxFont * wxSWISS_FONT; | |
152 | extern wxPen * wxRED_PEN; | |
153 | extern wxPen * wxCYAN_PEN; | |
154 | extern wxPen * wxGREEN_PEN; | |
155 | extern wxPen * wxBLACK_PEN; | |
156 | extern wxPen * wxWHITE_PEN; | |
157 | extern wxPen * wxTRANSPARENT_PEN; | |
158 | extern wxPen * wxBLACK_DASHED_PEN; | |
159 | extern wxPen * wxGREY_PEN; | |
160 | extern wxPen * wxMEDIUM_GREY_PEN; | |
161 | extern wxPen * wxLIGHT_GREY_PEN; | |
162 | extern wxBrush * wxBLUE_BRUSH; | |
163 | extern wxBrush * wxGREEN_BRUSH; | |
164 | extern wxBrush * wxWHITE_BRUSH; | |
165 | extern wxBrush * wxBLACK_BRUSH; | |
166 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
167 | extern wxBrush * wxCYAN_BRUSH; | |
168 | extern wxBrush * wxRED_BRUSH; | |
169 | extern wxBrush * wxGREY_BRUSH; | |
170 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
171 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
172 | extern wxColour * wxBLACK; | |
173 | extern wxColour * wxWHITE; | |
174 | extern wxColour * wxRED; | |
175 | extern wxColour * wxBLUE; | |
176 | extern wxColour * wxGREEN; | |
177 | extern wxColour * wxCYAN; | |
178 | extern wxColour * wxLIGHT_GREY; | |
179 | extern wxCursor * wxSTANDARD_CURSOR; | |
180 | extern wxCursor * wxHOURGLASS_CURSOR; | |
181 | extern wxCursor * wxCROSS_CURSOR; | |
182 | extern wxBitmap wxNullBitmap; | |
183 | extern wxIcon wxNullIcon; | |
184 | extern wxCursor wxNullCursor; | |
185 | extern wxPen wxNullPen; | |
186 | extern wxBrush wxNullBrush; | |
187 | extern wxPalette wxNullPalette; | |
188 | extern wxFont wxNullFont; | |
189 | extern wxColour wxNullColour; | |
190 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args) { | |
191 | PyObject * _resultobj; | |
192 | wxBitmap * _result; | |
193 | int _arg0; | |
194 | int _arg1; | |
195 | int _arg2 = -1; | |
196 | char _ptemp[128]; | |
197 | ||
198 | self = self; | |
199 | if(!PyArg_ParseTuple(args,"ii|i:wxEmptyBitmap",&_arg0,&_arg1,&_arg2)) | |
200 | return NULL; | |
201 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
202 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
203 | _resultobj = Py_BuildValue("s",_ptemp); | |
204 | return _resultobj; | |
205 | } | |
206 | ||
207 | static PyObject *_wrap_wxNoRefBitmap(PyObject *self, PyObject *args) { | |
208 | PyObject * _resultobj; | |
209 | wxBitmap * _result; | |
210 | char * _arg0; | |
211 | long _arg1; | |
212 | char _ptemp[128]; | |
213 | ||
214 | self = self; | |
215 | if(!PyArg_ParseTuple(args,"sl:wxNoRefBitmap",&_arg0,&_arg1)) | |
216 | return NULL; | |
217 | _result = (wxBitmap *)wxNoRefBitmap(_arg0,_arg1); | |
218 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
219 | _resultobj = Py_BuildValue("s",_ptemp); | |
220 | return _resultobj; | |
221 | } | |
222 | ||
223 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args) { | |
224 | PyObject * _resultobj; | |
225 | wxMask * _result; | |
226 | wxBitmap * _arg0; | |
227 | wxColour * _arg1; | |
228 | char * _argc0 = 0; | |
229 | char * _argc1 = 0; | |
230 | char _ptemp[128]; | |
231 | ||
232 | self = self; | |
233 | if(!PyArg_ParseTuple(args,"ss:wxMaskColour",&_argc0,&_argc1)) | |
234 | return NULL; | |
235 | if (_argc0) { | |
236 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
238 | return NULL; | |
239 | } | |
240 | } | |
241 | if (_argc1) { | |
242 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) { | |
243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMaskColour. Expected _wxColour_p."); | |
244 | return NULL; | |
245 | } | |
246 | } | |
247 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
249 | _resultobj = Py_BuildValue("s",_ptemp); | |
250 | return _resultobj; | |
251 | } | |
252 | ||
253 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args) { | |
254 | PyObject * _resultobj; | |
255 | wxCursor * _result; | |
256 | int _arg0; | |
257 | char _ptemp[128]; | |
258 | ||
259 | self = self; | |
260 | if(!PyArg_ParseTuple(args,"i:wxStockCursor",&_arg0)) | |
261 | return NULL; | |
b26e2dc4 | 262 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
70551f47 RD |
263 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); |
264 | _resultobj = Py_BuildValue("s",_ptemp); | |
265 | return _resultobj; | |
266 | } | |
267 | ||
268 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args) { | |
269 | PyObject * _resultobj; | |
270 | wxColour * _result; | |
271 | wxString * _arg0; | |
272 | PyObject * _obj0 = 0; | |
273 | char _ptemp[128]; | |
274 | ||
275 | self = self; | |
276 | if(!PyArg_ParseTuple(args,"O:wxNamedColour",&_obj0)) | |
277 | return NULL; | |
278 | { | |
279 | if (!PyString_Check(_obj0)) { | |
280 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
281 | return NULL; | |
282 | } | |
283 | _arg0 = new wxString(PyString_AsString(_obj0)); | |
284 | } | |
285 | _result = (wxColour *)wxNamedColour(*_arg0); | |
286 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
287 | _resultobj = Py_BuildValue("s",_ptemp); | |
288 | { | |
289 | if (_obj0) | |
290 | delete _arg0; | |
291 | } | |
292 | return _resultobj; | |
293 | } | |
294 | ||
295 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args) { | |
296 | PyObject * _resultobj; | |
297 | wxMemoryDC * _result; | |
298 | wxDC * _arg0; | |
299 | char * _argc0 = 0; | |
300 | char _ptemp[128]; | |
301 | ||
302 | self = self; | |
303 | if(!PyArg_ParseTuple(args,"s:wxMemoryDCFromDC",&_argc0)) | |
304 | return NULL; | |
305 | if (_argc0) { | |
306 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
308 | return NULL; | |
309 | } | |
310 | } | |
311 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
312 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
313 | _resultobj = Py_BuildValue("s",_ptemp); | |
314 | return _resultobj; | |
315 | } | |
316 | ||
317 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
318 | ||
319 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
320 | return 1; | |
321 | } | |
322 | ||
323 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
324 | PyObject * pyobj; | |
325 | char ptemp[128]; | |
326 | ||
327 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
328 | pyobj = PyString_FromString(ptemp); | |
329 | return pyobj; | |
330 | } | |
331 | ||
332 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
333 | ||
334 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
335 | return 1; | |
336 | } | |
337 | ||
338 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
339 | PyObject * pyobj; | |
340 | char ptemp[128]; | |
341 | ||
342 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
343 | pyobj = PyString_FromString(ptemp); | |
344 | return pyobj; | |
345 | } | |
346 | ||
347 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
348 | ||
349 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
350 | return 1; | |
351 | } | |
352 | ||
353 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
354 | PyObject * pyobj; | |
355 | char ptemp[128]; | |
356 | ||
357 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
358 | pyobj = PyString_FromString(ptemp); | |
359 | return pyobj; | |
360 | } | |
361 | ||
362 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
363 | ||
364 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
365 | return 1; | |
366 | } | |
367 | ||
368 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
369 | PyObject * pyobj; | |
370 | char ptemp[128]; | |
371 | ||
372 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
373 | pyobj = PyString_FromString(ptemp); | |
374 | return pyobj; | |
375 | } | |
376 | ||
377 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
378 | ||
379 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
380 | return 1; | |
381 | } | |
382 | ||
383 | static PyObject *_wrap_wxRED_PEN_get() { | |
384 | PyObject * pyobj; | |
385 | char ptemp[128]; | |
386 | ||
387 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
388 | pyobj = PyString_FromString(ptemp); | |
389 | return pyobj; | |
390 | } | |
391 | ||
392 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
393 | ||
394 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
395 | return 1; | |
396 | } | |
397 | ||
398 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
399 | PyObject * pyobj; | |
400 | char ptemp[128]; | |
401 | ||
402 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
403 | pyobj = PyString_FromString(ptemp); | |
404 | return pyobj; | |
405 | } | |
406 | ||
407 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
408 | ||
409 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
410 | return 1; | |
411 | } | |
412 | ||
413 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
414 | PyObject * pyobj; | |
415 | char ptemp[128]; | |
416 | ||
417 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
418 | pyobj = PyString_FromString(ptemp); | |
419 | return pyobj; | |
420 | } | |
421 | ||
422 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
423 | ||
424 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
425 | return 1; | |
426 | } | |
427 | ||
428 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
429 | PyObject * pyobj; | |
430 | char ptemp[128]; | |
431 | ||
432 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
433 | pyobj = PyString_FromString(ptemp); | |
434 | return pyobj; | |
435 | } | |
436 | ||
437 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
438 | ||
439 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
440 | return 1; | |
441 | } | |
442 | ||
443 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
444 | PyObject * pyobj; | |
445 | char ptemp[128]; | |
446 | ||
447 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
448 | pyobj = PyString_FromString(ptemp); | |
449 | return pyobj; | |
450 | } | |
451 | ||
452 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
453 | ||
454 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
455 | return 1; | |
456 | } | |
457 | ||
458 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
459 | PyObject * pyobj; | |
460 | char ptemp[128]; | |
461 | ||
462 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
463 | pyobj = PyString_FromString(ptemp); | |
464 | return pyobj; | |
465 | } | |
466 | ||
467 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
468 | ||
469 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
470 | return 1; | |
471 | } | |
472 | ||
473 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
474 | PyObject * pyobj; | |
475 | char ptemp[128]; | |
476 | ||
477 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
478 | pyobj = PyString_FromString(ptemp); | |
479 | return pyobj; | |
480 | } | |
481 | ||
482 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
483 | ||
484 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
485 | return 1; | |
486 | } | |
487 | ||
488 | static PyObject *_wrap_wxGREY_PEN_get() { | |
489 | PyObject * pyobj; | |
490 | char ptemp[128]; | |
491 | ||
492 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
493 | pyobj = PyString_FromString(ptemp); | |
494 | return pyobj; | |
495 | } | |
496 | ||
497 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
498 | ||
499 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
500 | return 1; | |
501 | } | |
502 | ||
503 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
504 | PyObject * pyobj; | |
505 | char ptemp[128]; | |
506 | ||
507 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
508 | pyobj = PyString_FromString(ptemp); | |
509 | return pyobj; | |
510 | } | |
511 | ||
512 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
513 | ||
514 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
515 | return 1; | |
516 | } | |
517 | ||
518 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
519 | PyObject * pyobj; | |
520 | char ptemp[128]; | |
521 | ||
522 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
523 | pyobj = PyString_FromString(ptemp); | |
524 | return pyobj; | |
525 | } | |
526 | ||
527 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
528 | ||
529 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
530 | return 1; | |
531 | } | |
532 | ||
533 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
534 | PyObject * pyobj; | |
535 | char ptemp[128]; | |
536 | ||
537 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
538 | pyobj = PyString_FromString(ptemp); | |
539 | return pyobj; | |
540 | } | |
541 | ||
542 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
543 | ||
544 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
545 | return 1; | |
546 | } | |
547 | ||
548 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
549 | PyObject * pyobj; | |
550 | char ptemp[128]; | |
551 | ||
552 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
553 | pyobj = PyString_FromString(ptemp); | |
554 | return pyobj; | |
555 | } | |
556 | ||
557 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
558 | ||
559 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
560 | return 1; | |
561 | } | |
562 | ||
563 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
564 | PyObject * pyobj; | |
565 | char ptemp[128]; | |
566 | ||
567 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
568 | pyobj = PyString_FromString(ptemp); | |
569 | return pyobj; | |
570 | } | |
571 | ||
572 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
573 | ||
574 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
575 | return 1; | |
576 | } | |
577 | ||
578 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
579 | PyObject * pyobj; | |
580 | char ptemp[128]; | |
581 | ||
582 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
583 | pyobj = PyString_FromString(ptemp); | |
584 | return pyobj; | |
585 | } | |
586 | ||
587 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
588 | ||
589 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
590 | return 1; | |
591 | } | |
592 | ||
593 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
594 | PyObject * pyobj; | |
595 | char ptemp[128]; | |
596 | ||
597 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
598 | pyobj = PyString_FromString(ptemp); | |
599 | return pyobj; | |
600 | } | |
601 | ||
602 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
603 | ||
604 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
605 | return 1; | |
606 | } | |
607 | ||
608 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
609 | PyObject * pyobj; | |
610 | char ptemp[128]; | |
611 | ||
612 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
613 | pyobj = PyString_FromString(ptemp); | |
614 | return pyobj; | |
615 | } | |
616 | ||
617 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
618 | ||
619 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
620 | return 1; | |
621 | } | |
622 | ||
623 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
624 | PyObject * pyobj; | |
625 | char ptemp[128]; | |
626 | ||
627 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
628 | pyobj = PyString_FromString(ptemp); | |
629 | return pyobj; | |
630 | } | |
631 | ||
632 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
633 | ||
634 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
635 | return 1; | |
636 | } | |
637 | ||
638 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
639 | PyObject * pyobj; | |
640 | char ptemp[128]; | |
641 | ||
642 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
643 | pyobj = PyString_FromString(ptemp); | |
644 | return pyobj; | |
645 | } | |
646 | ||
647 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
648 | ||
649 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
650 | return 1; | |
651 | } | |
652 | ||
653 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
654 | PyObject * pyobj; | |
655 | char ptemp[128]; | |
656 | ||
657 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
658 | pyobj = PyString_FromString(ptemp); | |
659 | return pyobj; | |
660 | } | |
661 | ||
662 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
663 | ||
664 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
665 | return 1; | |
666 | } | |
667 | ||
668 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
669 | PyObject * pyobj; | |
670 | char ptemp[128]; | |
671 | ||
672 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
673 | pyobj = PyString_FromString(ptemp); | |
674 | return pyobj; | |
675 | } | |
676 | ||
677 | static int _wrap_wxBLACK_set(PyObject *val) { | |
678 | ||
679 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
680 | return 1; | |
681 | } | |
682 | ||
683 | static PyObject *_wrap_wxBLACK_get() { | |
684 | PyObject * pyobj; | |
685 | char ptemp[128]; | |
686 | ||
687 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
688 | pyobj = PyString_FromString(ptemp); | |
689 | return pyobj; | |
690 | } | |
691 | ||
692 | static int _wrap_wxWHITE_set(PyObject *val) { | |
693 | ||
694 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
695 | return 1; | |
696 | } | |
697 | ||
698 | static PyObject *_wrap_wxWHITE_get() { | |
699 | PyObject * pyobj; | |
700 | char ptemp[128]; | |
701 | ||
702 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
703 | pyobj = PyString_FromString(ptemp); | |
704 | return pyobj; | |
705 | } | |
706 | ||
707 | static int _wrap_wxRED_set(PyObject *val) { | |
708 | ||
709 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
710 | return 1; | |
711 | } | |
712 | ||
713 | static PyObject *_wrap_wxRED_get() { | |
714 | PyObject * pyobj; | |
715 | char ptemp[128]; | |
716 | ||
717 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
718 | pyobj = PyString_FromString(ptemp); | |
719 | return pyobj; | |
720 | } | |
721 | ||
722 | static int _wrap_wxBLUE_set(PyObject *val) { | |
723 | ||
724 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
725 | return 1; | |
726 | } | |
727 | ||
728 | static PyObject *_wrap_wxBLUE_get() { | |
729 | PyObject * pyobj; | |
730 | char ptemp[128]; | |
731 | ||
732 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
733 | pyobj = PyString_FromString(ptemp); | |
734 | return pyobj; | |
735 | } | |
736 | ||
737 | static int _wrap_wxGREEN_set(PyObject *val) { | |
738 | ||
739 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
740 | return 1; | |
741 | } | |
742 | ||
743 | static PyObject *_wrap_wxGREEN_get() { | |
744 | PyObject * pyobj; | |
745 | char ptemp[128]; | |
746 | ||
747 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
748 | pyobj = PyString_FromString(ptemp); | |
749 | return pyobj; | |
750 | } | |
751 | ||
752 | static int _wrap_wxCYAN_set(PyObject *val) { | |
753 | ||
754 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
755 | return 1; | |
756 | } | |
757 | ||
758 | static PyObject *_wrap_wxCYAN_get() { | |
759 | PyObject * pyobj; | |
760 | char ptemp[128]; | |
761 | ||
762 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
763 | pyobj = PyString_FromString(ptemp); | |
764 | return pyobj; | |
765 | } | |
766 | ||
767 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
768 | ||
769 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
770 | return 1; | |
771 | } | |
772 | ||
773 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
774 | PyObject * pyobj; | |
775 | char ptemp[128]; | |
776 | ||
777 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
778 | pyobj = PyString_FromString(ptemp); | |
779 | return pyobj; | |
780 | } | |
781 | ||
782 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
783 | ||
784 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
785 | return 1; | |
786 | } | |
787 | ||
788 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
789 | PyObject * pyobj; | |
790 | char ptemp[128]; | |
791 | ||
792 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
793 | pyobj = PyString_FromString(ptemp); | |
794 | return pyobj; | |
795 | } | |
796 | ||
797 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
798 | ||
799 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
800 | return 1; | |
801 | } | |
802 | ||
803 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
804 | PyObject * pyobj; | |
805 | char ptemp[128]; | |
806 | ||
807 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
808 | pyobj = PyString_FromString(ptemp); | |
809 | return pyobj; | |
810 | } | |
811 | ||
812 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
813 | ||
814 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
815 | return 1; | |
816 | } | |
817 | ||
818 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
819 | PyObject * pyobj; | |
820 | char ptemp[128]; | |
821 | ||
822 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
823 | pyobj = PyString_FromString(ptemp); | |
824 | return pyobj; | |
825 | } | |
826 | ||
827 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
828 | ||
829 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
830 | return 1; | |
831 | } | |
832 | ||
833 | static PyObject *_wrap_wxNullBitmap_get() { | |
834 | PyObject * pyobj; | |
835 | char ptemp[128]; | |
836 | ||
837 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
838 | pyobj = PyString_FromString(ptemp); | |
839 | return pyobj; | |
840 | } | |
841 | ||
842 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
843 | ||
844 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
845 | return 1; | |
846 | } | |
847 | ||
848 | static PyObject *_wrap_wxNullIcon_get() { | |
849 | PyObject * pyobj; | |
850 | char ptemp[128]; | |
851 | ||
852 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
853 | pyobj = PyString_FromString(ptemp); | |
854 | return pyobj; | |
855 | } | |
856 | ||
857 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
858 | ||
859 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
860 | return 1; | |
861 | } | |
862 | ||
863 | static PyObject *_wrap_wxNullCursor_get() { | |
864 | PyObject * pyobj; | |
865 | char ptemp[128]; | |
866 | ||
867 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
868 | pyobj = PyString_FromString(ptemp); | |
869 | return pyobj; | |
870 | } | |
871 | ||
872 | static int _wrap_wxNullPen_set(PyObject *val) { | |
873 | ||
874 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
875 | return 1; | |
876 | } | |
877 | ||
878 | static PyObject *_wrap_wxNullPen_get() { | |
879 | PyObject * pyobj; | |
880 | char ptemp[128]; | |
881 | ||
882 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
883 | pyobj = PyString_FromString(ptemp); | |
884 | return pyobj; | |
885 | } | |
886 | ||
887 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
888 | ||
889 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
890 | return 1; | |
891 | } | |
892 | ||
893 | static PyObject *_wrap_wxNullBrush_get() { | |
894 | PyObject * pyobj; | |
895 | char ptemp[128]; | |
896 | ||
897 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
898 | pyobj = PyString_FromString(ptemp); | |
899 | return pyobj; | |
900 | } | |
901 | ||
902 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
903 | ||
904 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
905 | return 1; | |
906 | } | |
907 | ||
908 | static PyObject *_wrap_wxNullPalette_get() { | |
909 | PyObject * pyobj; | |
910 | char ptemp[128]; | |
911 | ||
912 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
913 | pyobj = PyString_FromString(ptemp); | |
914 | return pyobj; | |
915 | } | |
916 | ||
917 | static int _wrap_wxNullFont_set(PyObject *val) { | |
918 | ||
919 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
920 | return 1; | |
921 | } | |
922 | ||
923 | static PyObject *_wrap_wxNullFont_get() { | |
924 | PyObject * pyobj; | |
925 | char ptemp[128]; | |
926 | ||
927 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
928 | pyobj = PyString_FromString(ptemp); | |
929 | return pyobj; | |
930 | } | |
931 | ||
932 | static int _wrap_wxNullColour_set(PyObject *val) { | |
933 | ||
934 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
935 | return 1; | |
936 | } | |
937 | ||
938 | static PyObject *_wrap_wxNullColour_get() { | |
939 | PyObject * pyobj; | |
940 | char ptemp[128]; | |
941 | ||
942 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
943 | pyobj = PyString_FromString(ptemp); | |
944 | return pyobj; | |
945 | } | |
946 | ||
947 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
948 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args) { | |
949 | PyObject * _resultobj; | |
950 | wxBitmap * _result; | |
951 | wxString * _arg0; | |
952 | long _arg1; | |
953 | PyObject * _obj0 = 0; | |
954 | char _ptemp[128]; | |
955 | ||
956 | self = self; | |
957 | if(!PyArg_ParseTuple(args,"Ol:new_wxBitmap",&_obj0,&_arg1)) | |
958 | return NULL; | |
959 | { | |
960 | if (!PyString_Check(_obj0)) { | |
961 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
962 | return NULL; | |
963 | } | |
964 | _arg0 = new wxString(PyString_AsString(_obj0)); | |
965 | } | |
966 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); | |
967 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
968 | _resultobj = Py_BuildValue("s",_ptemp); | |
969 | { | |
970 | if (_obj0) | |
971 | delete _arg0; | |
972 | } | |
973 | return _resultobj; | |
974 | } | |
975 | ||
976 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
977 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args) { | |
978 | PyObject * _resultobj; | |
979 | wxBitmap * _arg0; | |
980 | char * _argc0 = 0; | |
981 | ||
982 | self = self; | |
983 | if(!PyArg_ParseTuple(args,"s:delete_wxBitmap",&_argc0)) | |
984 | return NULL; | |
985 | if (_argc0) { | |
986 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
988 | return NULL; | |
989 | } | |
990 | } | |
991 | delete_wxBitmap(_arg0); | |
992 | Py_INCREF(Py_None); | |
993 | _resultobj = Py_None; | |
994 | return _resultobj; | |
995 | } | |
996 | ||
997 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
998 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args) { | |
999 | PyObject * _resultobj; | |
1000 | int _result; | |
1001 | wxBitmap * _arg0; | |
1002 | char * _argc0 = 0; | |
1003 | ||
1004 | self = self; | |
1005 | if(!PyArg_ParseTuple(args,"s:wxBitmap_GetDepth",&_argc0)) | |
1006 | return NULL; | |
1007 | if (_argc0) { | |
1008 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1010 | return NULL; | |
1011 | } | |
1012 | } | |
1013 | _result = (int )wxBitmap_GetDepth(_arg0); | |
1014 | _resultobj = Py_BuildValue("i",_result); | |
1015 | return _resultobj; | |
1016 | } | |
1017 | ||
1018 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1019 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args) { | |
1020 | PyObject * _resultobj; | |
1021 | int _result; | |
1022 | wxBitmap * _arg0; | |
1023 | char * _argc0 = 0; | |
1024 | ||
1025 | self = self; | |
1026 | if(!PyArg_ParseTuple(args,"s:wxBitmap_GetHeight",&_argc0)) | |
1027 | return NULL; | |
1028 | if (_argc0) { | |
1029 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1031 | return NULL; | |
1032 | } | |
1033 | } | |
1034 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1035 | _resultobj = Py_BuildValue("i",_result); | |
1036 | return _resultobj; | |
1037 | } | |
1038 | ||
1039 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1040 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args) { | |
1041 | PyObject * _resultobj; | |
1042 | wxPalette * _result; | |
1043 | wxBitmap * _arg0; | |
1044 | char * _argc0 = 0; | |
1045 | char _ptemp[128]; | |
1046 | ||
1047 | self = self; | |
1048 | if(!PyArg_ParseTuple(args,"s:wxBitmap_GetPalette",&_argc0)) | |
1049 | return NULL; | |
1050 | if (_argc0) { | |
1051 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1053 | return NULL; | |
1054 | } | |
1055 | } | |
1056 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); | |
1057 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1058 | _resultobj = Py_BuildValue("s",_ptemp); | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1063 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args) { | |
1064 | PyObject * _resultobj; | |
1065 | wxMask * _result; | |
1066 | wxBitmap * _arg0; | |
1067 | char * _argc0 = 0; | |
1068 | char _ptemp[128]; | |
1069 | ||
1070 | self = self; | |
1071 | if(!PyArg_ParseTuple(args,"s:wxBitmap_GetMask",&_argc0)) | |
1072 | return NULL; | |
1073 | if (_argc0) { | |
1074 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1076 | return NULL; | |
1077 | } | |
1078 | } | |
1079 | _result = (wxMask *)wxBitmap_GetMask(_arg0); | |
1080 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1081 | _resultobj = Py_BuildValue("s",_ptemp); | |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1086 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args) { | |
1087 | PyObject * _resultobj; | |
1088 | int _result; | |
1089 | wxBitmap * _arg0; | |
1090 | char * _argc0 = 0; | |
1091 | ||
1092 | self = self; | |
1093 | if(!PyArg_ParseTuple(args,"s:wxBitmap_GetWidth",&_argc0)) | |
1094 | return NULL; | |
1095 | if (_argc0) { | |
1096 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1098 | return NULL; | |
1099 | } | |
1100 | } | |
1101 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1102 | _resultobj = Py_BuildValue("i",_result); | |
1103 | return _resultobj; | |
1104 | } | |
1105 | ||
1106 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1107 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args) { | |
1108 | PyObject * _resultobj; | |
1109 | bool _result; | |
1110 | wxBitmap * _arg0; | |
1111 | wxString * _arg1; | |
1112 | long _arg2; | |
1113 | char * _argc0 = 0; | |
1114 | PyObject * _obj1 = 0; | |
1115 | ||
1116 | self = self; | |
1117 | if(!PyArg_ParseTuple(args,"sOl:wxBitmap_LoadFile",&_argc0,&_obj1,&_arg2)) | |
1118 | return NULL; | |
1119 | if (_argc0) { | |
1120 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1122 | return NULL; | |
1123 | } | |
1124 | } | |
1125 | { | |
1126 | if (!PyString_Check(_obj1)) { | |
1127 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1128 | return NULL; | |
1129 | } | |
1130 | _arg1 = new wxString(PyString_AsString(_obj1)); | |
1131 | } | |
1132 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); | |
1133 | _resultobj = Py_BuildValue("i",_result); | |
1134 | { | |
1135 | if (_obj1) | |
1136 | delete _arg1; | |
1137 | } | |
1138 | return _resultobj; | |
1139 | } | |
1140 | ||
1141 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1142 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args) { | |
1143 | PyObject * _resultobj; | |
1144 | bool _result; | |
1145 | wxBitmap * _arg0; | |
1146 | char * _argc0 = 0; | |
1147 | ||
1148 | self = self; | |
1149 | if(!PyArg_ParseTuple(args,"s:wxBitmap_Ok",&_argc0)) | |
1150 | return NULL; | |
1151 | if (_argc0) { | |
1152 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
1157 | _result = (bool )wxBitmap_Ok(_arg0); | |
1158 | _resultobj = Py_BuildValue("i",_result); | |
1159 | return _resultobj; | |
1160 | } | |
1161 | ||
1162 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) | |
1163 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args) { | |
1164 | PyObject * _resultobj; | |
1165 | bool _result; | |
1166 | wxBitmap * _arg0; | |
1167 | wxString * _arg1; | |
1168 | int _arg2; | |
1169 | wxPalette * _arg3 = NULL; | |
1170 | char * _argc0 = 0; | |
1171 | PyObject * _obj1 = 0; | |
1172 | char * _argc3 = 0; | |
1173 | ||
1174 | self = self; | |
1175 | if(!PyArg_ParseTuple(args,"sOi|s:wxBitmap_SaveFile",&_argc0,&_obj1,&_arg2,&_argc3)) | |
1176 | return NULL; | |
1177 | if (_argc0) { | |
1178 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1180 | return NULL; | |
1181 | } | |
1182 | } | |
1183 | { | |
1184 | if (!PyString_Check(_obj1)) { | |
1185 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1186 | return NULL; | |
1187 | } | |
1188 | _arg1 = new wxString(PyString_AsString(_obj1)); | |
1189 | } | |
1190 | if (_argc3) { | |
1191 | if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPalette_p")) { | |
1192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1193 | return NULL; | |
1194 | } | |
1195 | } | |
1196 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); | |
1197 | _resultobj = Py_BuildValue("i",_result); | |
1198 | { | |
1199 | if (_obj1) | |
1200 | delete _arg1; | |
1201 | } | |
1202 | return _resultobj; | |
1203 | } | |
1204 | ||
1205 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1206 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args) { | |
1207 | PyObject * _resultobj; | |
1208 | wxBitmap * _arg0; | |
1209 | int _arg1; | |
1210 | char * _argc0 = 0; | |
1211 | ||
1212 | self = self; | |
1213 | if(!PyArg_ParseTuple(args,"si:wxBitmap_SetDepth",&_argc0,&_arg1)) | |
1214 | return NULL; | |
1215 | if (_argc0) { | |
1216 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
1218 | return NULL; | |
1219 | } | |
1220 | } | |
1221 | wxBitmap_SetDepth(_arg0,_arg1); | |
1222 | Py_INCREF(Py_None); | |
1223 | _resultobj = Py_None; | |
1224 | return _resultobj; | |
1225 | } | |
1226 | ||
1227 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1228 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args) { | |
1229 | PyObject * _resultobj; | |
1230 | wxBitmap * _arg0; | |
1231 | int _arg1; | |
1232 | char * _argc0 = 0; | |
1233 | ||
1234 | self = self; | |
1235 | if(!PyArg_ParseTuple(args,"si:wxBitmap_SetHeight",&_argc0,&_arg1)) | |
1236 | return NULL; | |
1237 | if (_argc0) { | |
1238 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
1240 | return NULL; | |
1241 | } | |
1242 | } | |
1243 | wxBitmap_SetHeight(_arg0,_arg1); | |
1244 | Py_INCREF(Py_None); | |
1245 | _resultobj = Py_None; | |
1246 | return _resultobj; | |
1247 | } | |
1248 | ||
1249 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1250 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args) { | |
1251 | PyObject * _resultobj; | |
1252 | wxBitmap * _arg0; | |
1253 | wxMask * _arg1; | |
1254 | char * _argc0 = 0; | |
1255 | char * _argc1 = 0; | |
1256 | ||
1257 | self = self; | |
1258 | if(!PyArg_ParseTuple(args,"ss:wxBitmap_SetMask",&_argc0,&_argc1)) | |
1259 | return NULL; | |
1260 | if (_argc0) { | |
1261 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1263 | return NULL; | |
1264 | } | |
1265 | } | |
1266 | if (_argc1) { | |
1267 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxMask_p")) { | |
1268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1269 | return NULL; | |
1270 | } | |
1271 | } | |
1272 | wxBitmap_SetMask(_arg0,_arg1); | |
1273 | Py_INCREF(Py_None); | |
1274 | _resultobj = Py_None; | |
1275 | return _resultobj; | |
1276 | } | |
1277 | ||
1278 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1279 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args) { | |
1280 | PyObject * _resultobj; | |
1281 | wxBitmap * _arg0; | |
1282 | int _arg1; | |
1283 | char * _argc0 = 0; | |
1284 | ||
1285 | self = self; | |
1286 | if(!PyArg_ParseTuple(args,"si:wxBitmap_SetWidth",&_argc0,&_arg1)) | |
1287 | return NULL; | |
1288 | if (_argc0) { | |
1289 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1291 | return NULL; | |
1292 | } | |
1293 | } | |
1294 | wxBitmap_SetWidth(_arg0,_arg1); | |
1295 | Py_INCREF(Py_None); | |
1296 | _resultobj = Py_None; | |
1297 | return _resultobj; | |
1298 | } | |
1299 | ||
1300 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
1301 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args) { | |
1302 | PyObject * _resultobj; | |
1303 | wxMask * _result; | |
1304 | wxBitmap * _arg0; | |
1305 | char * _argc0 = 0; | |
1306 | char _ptemp[128]; | |
1307 | ||
1308 | self = self; | |
1309 | if(!PyArg_ParseTuple(args,"s:new_wxMask",&_argc0)) | |
1310 | return NULL; | |
1311 | if (_argc0) { | |
1312 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
1313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
1314 | return NULL; | |
1315 | } | |
1316 | } | |
1317 | _result = (wxMask *)new_wxMask(*_arg0); | |
1318 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1319 | _resultobj = Py_BuildValue("s",_ptemp); | |
1320 | return _resultobj; | |
1321 | } | |
1322 | ||
1323 | #define delete_wxMask(_swigobj) (delete _swigobj) | |
1324 | static PyObject *_wrap_delete_wxMask(PyObject *self, PyObject *args) { | |
1325 | PyObject * _resultobj; | |
1326 | wxMask * _arg0; | |
1327 | char * _argc0 = 0; | |
1328 | ||
1329 | self = self; | |
1330 | if(!PyArg_ParseTuple(args,"s:delete_wxMask",&_argc0)) | |
1331 | return NULL; | |
1332 | if (_argc0) { | |
1333 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMask_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMask. Expected _wxMask_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | delete_wxMask(_arg0); | |
1339 | Py_INCREF(Py_None); | |
1340 | _resultobj = Py_None; | |
1341 | return _resultobj; | |
1342 | } | |
1343 | ||
1344 | static void *SwigwxIconTowxBitmap(void *ptr) { | |
1345 | wxIcon *src; | |
1346 | wxBitmap *dest; | |
1347 | src = (wxIcon *) ptr; | |
1348 | dest = (wxBitmap *) src; | |
1349 | return (void *) dest; | |
1350 | } | |
1351 | ||
1352 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
1353 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args) { | |
1354 | PyObject * _resultobj; | |
1355 | wxIcon * _arg0; | |
1356 | char * _argc0 = 0; | |
1357 | ||
1358 | self = self; | |
1359 | if(!PyArg_ParseTuple(args,"s:delete_wxIcon",&_argc0)) | |
1360 | return NULL; | |
1361 | if (_argc0) { | |
1362 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
1364 | return NULL; | |
1365 | } | |
1366 | } | |
1367 | delete_wxIcon(_arg0); | |
1368 | Py_INCREF(Py_None); | |
1369 | _resultobj = Py_None; | |
1370 | return _resultobj; | |
1371 | } | |
1372 | ||
1373 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1374 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args) { | |
1375 | PyObject * _resultobj; | |
1376 | int _result; | |
1377 | wxIcon * _arg0; | |
1378 | char * _argc0 = 0; | |
1379 | ||
1380 | self = self; | |
1381 | if(!PyArg_ParseTuple(args,"s:wxIcon_GetDepth",&_argc0)) | |
1382 | return NULL; | |
1383 | if (_argc0) { | |
1384 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
1386 | return NULL; | |
1387 | } | |
1388 | } | |
1389 | _result = (int )wxIcon_GetDepth(_arg0); | |
1390 | _resultobj = Py_BuildValue("i",_result); | |
1391 | return _resultobj; | |
1392 | } | |
1393 | ||
1394 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1395 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args) { | |
1396 | PyObject * _resultobj; | |
1397 | int _result; | |
1398 | wxIcon * _arg0; | |
1399 | char * _argc0 = 0; | |
1400 | ||
1401 | self = self; | |
1402 | if(!PyArg_ParseTuple(args,"s:wxIcon_GetHeight",&_argc0)) | |
1403 | return NULL; | |
1404 | if (_argc0) { | |
1405 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
1407 | return NULL; | |
1408 | } | |
1409 | } | |
1410 | _result = (int )wxIcon_GetHeight(_arg0); | |
1411 | _resultobj = Py_BuildValue("i",_result); | |
1412 | return _resultobj; | |
1413 | } | |
1414 | ||
1415 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1416 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args) { | |
1417 | PyObject * _resultobj; | |
1418 | int _result; | |
1419 | wxIcon * _arg0; | |
1420 | char * _argc0 = 0; | |
1421 | ||
1422 | self = self; | |
1423 | if(!PyArg_ParseTuple(args,"s:wxIcon_GetWidth",&_argc0)) | |
1424 | return NULL; | |
1425 | if (_argc0) { | |
1426 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
1428 | return NULL; | |
1429 | } | |
1430 | } | |
1431 | _result = (int )wxIcon_GetWidth(_arg0); | |
1432 | _resultobj = Py_BuildValue("i",_result); | |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
1436 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1437 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args) { | |
1438 | PyObject * _resultobj; | |
1439 | bool _result; | |
1440 | wxIcon * _arg0; | |
1441 | wxString * _arg1; | |
1442 | long _arg2; | |
1443 | char * _argc0 = 0; | |
1444 | PyObject * _obj1 = 0; | |
1445 | ||
1446 | self = self; | |
1447 | if(!PyArg_ParseTuple(args,"sOl:wxIcon_LoadFile",&_argc0,&_obj1,&_arg2)) | |
1448 | return NULL; | |
1449 | if (_argc0) { | |
1450 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
1452 | return NULL; | |
1453 | } | |
1454 | } | |
1455 | { | |
1456 | if (!PyString_Check(_obj1)) { | |
1457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1458 | return NULL; | |
1459 | } | |
1460 | _arg1 = new wxString(PyString_AsString(_obj1)); | |
1461 | } | |
1462 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
1463 | _resultobj = Py_BuildValue("i",_result); | |
1464 | { | |
1465 | if (_obj1) | |
1466 | delete _arg1; | |
1467 | } | |
1468 | return _resultobj; | |
1469 | } | |
1470 | ||
1471 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
1472 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args) { | |
1473 | PyObject * _resultobj; | |
1474 | bool _result; | |
1475 | wxIcon * _arg0; | |
1476 | char * _argc0 = 0; | |
1477 | ||
1478 | self = self; | |
1479 | if(!PyArg_ParseTuple(args,"s:wxIcon_Ok",&_argc0)) | |
1480 | return NULL; | |
1481 | if (_argc0) { | |
1482 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
1484 | return NULL; | |
1485 | } | |
1486 | } | |
1487 | _result = (bool )wxIcon_Ok(_arg0); | |
1488 | _resultobj = Py_BuildValue("i",_result); | |
1489 | return _resultobj; | |
1490 | } | |
1491 | ||
1492 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1493 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args) { | |
1494 | PyObject * _resultobj; | |
1495 | wxIcon * _arg0; | |
1496 | int _arg1; | |
1497 | char * _argc0 = 0; | |
1498 | ||
1499 | self = self; | |
1500 | if(!PyArg_ParseTuple(args,"si:wxIcon_SetDepth",&_argc0,&_arg1)) | |
1501 | return NULL; | |
1502 | if (_argc0) { | |
1503 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
1505 | return NULL; | |
1506 | } | |
1507 | } | |
1508 | wxIcon_SetDepth(_arg0,_arg1); | |
1509 | Py_INCREF(Py_None); | |
1510 | _resultobj = Py_None; | |
1511 | return _resultobj; | |
1512 | } | |
1513 | ||
1514 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1515 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args) { | |
1516 | PyObject * _resultobj; | |
1517 | wxIcon * _arg0; | |
1518 | int _arg1; | |
1519 | char * _argc0 = 0; | |
1520 | ||
1521 | self = self; | |
1522 | if(!PyArg_ParseTuple(args,"si:wxIcon_SetHeight",&_argc0,&_arg1)) | |
1523 | return NULL; | |
1524 | if (_argc0) { | |
1525 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
1527 | return NULL; | |
1528 | } | |
1529 | } | |
1530 | wxIcon_SetHeight(_arg0,_arg1); | |
1531 | Py_INCREF(Py_None); | |
1532 | _resultobj = Py_None; | |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1537 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args) { | |
1538 | PyObject * _resultobj; | |
1539 | wxIcon * _arg0; | |
1540 | int _arg1; | |
1541 | char * _argc0 = 0; | |
1542 | ||
1543 | self = self; | |
1544 | if(!PyArg_ParseTuple(args,"si:wxIcon_SetWidth",&_argc0,&_arg1)) | |
1545 | return NULL; | |
1546 | if (_argc0) { | |
1547 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) { | |
1548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
1549 | return NULL; | |
1550 | } | |
1551 | } | |
1552 | wxIcon_SetWidth(_arg0,_arg1); | |
1553 | Py_INCREF(Py_None); | |
1554 | _resultobj = Py_None; | |
1555 | return _resultobj; | |
1556 | } | |
1557 | ||
1558 | static void *SwigwxCursorTowxBitmap(void *ptr) { | |
1559 | wxCursor *src; | |
1560 | wxBitmap *dest; | |
1561 | src = (wxCursor *) ptr; | |
1562 | dest = (wxBitmap *) src; | |
1563 | return (void *) dest; | |
1564 | } | |
1565 | ||
1566 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
1567 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args) { | |
1568 | PyObject * _resultobj; | |
1569 | wxCursor * _arg0; | |
1570 | char * _argc0 = 0; | |
1571 | ||
1572 | self = self; | |
1573 | if(!PyArg_ParseTuple(args,"s:delete_wxCursor",&_argc0)) | |
1574 | return NULL; | |
1575 | if (_argc0) { | |
1576 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxCursor_p")) { | |
1577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
1578 | return NULL; | |
1579 | } | |
1580 | } | |
1581 | delete_wxCursor(_arg0); | |
1582 | Py_INCREF(Py_None); | |
1583 | _resultobj = Py_None; | |
1584 | return _resultobj; | |
1585 | } | |
1586 | ||
1587 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
1588 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args) { | |
1589 | PyObject * _resultobj; | |
1590 | bool _result; | |
1591 | wxCursor * _arg0; | |
1592 | char * _argc0 = 0; | |
1593 | ||
1594 | self = self; | |
1595 | if(!PyArg_ParseTuple(args,"s:wxCursor_Ok",&_argc0)) | |
1596 | return NULL; | |
1597 | if (_argc0) { | |
1598 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxCursor_p")) { | |
1599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
1600 | return NULL; | |
1601 | } | |
1602 | } | |
1603 | _result = (bool )wxCursor_Ok(_arg0); | |
1604 | _resultobj = Py_BuildValue("i",_result); | |
1605 | return _resultobj; | |
1606 | } | |
1607 | ||
1608 | static wxFont *new_wxFont(int pointSize,int family,int style,int weight,int underline,char *faceName) { | |
1609 | ||
1610 | return wxTheFontList->FindOrCreateFont(pointSize, family, style, weight, | |
1611 | underline, faceName); | |
1612 | } | |
1613 | ||
1614 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args) { | |
1615 | PyObject * _resultobj; | |
1616 | wxFont * _result; | |
1617 | int _arg0; | |
1618 | int _arg1; | |
1619 | int _arg2; | |
1620 | int _arg3; | |
1621 | int _arg4 = (0); | |
1622 | char * _arg5 = ""; | |
1623 | char _ptemp[128]; | |
1624 | ||
1625 | self = self; | |
1626 | if(!PyArg_ParseTuple(args,"iiii|is:new_wxFont",&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
1627 | return NULL; | |
1628 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
1629 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1630 | _resultobj = Py_BuildValue("s",_ptemp); | |
1631 | return _resultobj; | |
1632 | } | |
1633 | ||
1634 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
1635 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args) { | |
1636 | PyObject * _resultobj; | |
1637 | wxString * _result; | |
1638 | wxFont * _arg0; | |
1639 | char * _argc0 = 0; | |
1640 | ||
1641 | self = self; | |
1642 | if(!PyArg_ParseTuple(args,"s:wxFont_GetFaceName",&_argc0)) | |
1643 | return NULL; | |
1644 | if (_argc0) { | |
1645 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
1647 | return NULL; | |
1648 | } | |
1649 | } | |
1650 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
1651 | { | |
1652 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
1653 | } | |
1654 | { | |
1655 | delete _result; | |
1656 | } | |
1657 | return _resultobj; | |
1658 | } | |
1659 | ||
1660 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
1661 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args) { | |
1662 | PyObject * _resultobj; | |
1663 | int _result; | |
1664 | wxFont * _arg0; | |
1665 | char * _argc0 = 0; | |
1666 | ||
1667 | self = self; | |
1668 | if(!PyArg_ParseTuple(args,"s:wxFont_GetFamily",&_argc0)) | |
1669 | return NULL; | |
1670 | if (_argc0) { | |
1671 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
1673 | return NULL; | |
1674 | } | |
1675 | } | |
1676 | _result = (int )wxFont_GetFamily(_arg0); | |
1677 | _resultobj = Py_BuildValue("i",_result); | |
1678 | return _resultobj; | |
1679 | } | |
1680 | ||
1681 | #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId()) | |
1682 | static PyObject *_wrap_wxFont_GetFontId(PyObject *self, PyObject *args) { | |
1683 | PyObject * _resultobj; | |
1684 | int _result; | |
1685 | wxFont * _arg0; | |
1686 | char * _argc0 = 0; | |
1687 | ||
1688 | self = self; | |
1689 | if(!PyArg_ParseTuple(args,"s:wxFont_GetFontId",&_argc0)) | |
1690 | return NULL; | |
1691 | if (_argc0) { | |
1692 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p."); | |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
1697 | _result = (int )wxFont_GetFontId(_arg0); | |
1698 | _resultobj = Py_BuildValue("i",_result); | |
1699 | return _resultobj; | |
1700 | } | |
1701 | ||
1702 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
1703 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args) { | |
1704 | PyObject * _resultobj; | |
1705 | int _result; | |
1706 | wxFont * _arg0; | |
1707 | char * _argc0 = 0; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTuple(args,"s:wxFont_GetPointSize",&_argc0)) | |
1711 | return NULL; | |
1712 | if (_argc0) { | |
1713 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
1715 | return NULL; | |
1716 | } | |
1717 | } | |
1718 | _result = (int )wxFont_GetPointSize(_arg0); | |
1719 | _resultobj = Py_BuildValue("i",_result); | |
1720 | return _resultobj; | |
1721 | } | |
1722 | ||
1723 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1724 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args) { | |
1725 | PyObject * _resultobj; | |
1726 | int _result; | |
1727 | wxFont * _arg0; | |
1728 | char * _argc0 = 0; | |
1729 | ||
1730 | self = self; | |
1731 | if(!PyArg_ParseTuple(args,"s:wxFont_GetStyle",&_argc0)) | |
1732 | return NULL; | |
1733 | if (_argc0) { | |
1734 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
1736 | return NULL; | |
1737 | } | |
1738 | } | |
1739 | _result = (int )wxFont_GetStyle(_arg0); | |
1740 | _resultobj = Py_BuildValue("i",_result); | |
1741 | return _resultobj; | |
1742 | } | |
1743 | ||
1744 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1745 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args) { | |
1746 | PyObject * _resultobj; | |
1747 | bool _result; | |
1748 | wxFont * _arg0; | |
1749 | char * _argc0 = 0; | |
1750 | ||
1751 | self = self; | |
1752 | if(!PyArg_ParseTuple(args,"s:wxFont_GetUnderlined",&_argc0)) | |
1753 | return NULL; | |
1754 | if (_argc0) { | |
1755 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
1757 | return NULL; | |
1758 | } | |
1759 | } | |
1760 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
1761 | _resultobj = Py_BuildValue("i",_result); | |
1762 | return _resultobj; | |
1763 | } | |
1764 | ||
1765 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
1766 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args) { | |
1767 | PyObject * _resultobj; | |
1768 | int _result; | |
1769 | wxFont * _arg0; | |
1770 | char * _argc0 = 0; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTuple(args,"s:wxFont_GetWeight",&_argc0)) | |
1774 | return NULL; | |
1775 | if (_argc0) { | |
1776 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
1778 | return NULL; | |
1779 | } | |
1780 | } | |
1781 | _result = (int )wxFont_GetWeight(_arg0); | |
1782 | _resultobj = Py_BuildValue("i",_result); | |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
d3b4d113 RR |
1786 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
1787 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args) { | |
1788 | PyObject * _resultobj; | |
1789 | wxFont * _arg0; | |
1790 | wxString * _arg1; | |
1791 | char * _argc0 = 0; | |
1792 | PyObject * _obj1 = 0; | |
1793 | ||
1794 | self = self; | |
1795 | if(!PyArg_ParseTuple(args,"sO:wxFont_SetFaceName",&_argc0,&_obj1)) | |
1796 | return NULL; | |
1797 | if (_argc0) { | |
1798 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
1800 | return NULL; | |
1801 | } | |
1802 | } | |
1803 | { | |
1804 | if (!PyString_Check(_obj1)) { | |
1805 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1806 | return NULL; | |
1807 | } | |
1808 | _arg1 = new wxString(PyString_AsString(_obj1)); | |
1809 | } | |
1810 | wxFont_SetFaceName(_arg0,*_arg1); | |
1811 | Py_INCREF(Py_None); | |
1812 | _resultobj = Py_None; | |
1813 | { | |
1814 | if (_obj1) | |
1815 | delete _arg1; | |
1816 | } | |
1817 | return _resultobj; | |
1818 | } | |
1819 | ||
1820 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1821 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args) { | |
1822 | PyObject * _resultobj; | |
1823 | wxFont * _arg0; | |
1824 | int _arg1; | |
1825 | char * _argc0 = 0; | |
1826 | ||
1827 | self = self; | |
1828 | if(!PyArg_ParseTuple(args,"si:wxFont_SetFamily",&_argc0,&_arg1)) | |
1829 | return NULL; | |
1830 | if (_argc0) { | |
1831 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); | |
1833 | return NULL; | |
1834 | } | |
1835 | } | |
1836 | wxFont_SetFamily(_arg0,_arg1); | |
1837 | Py_INCREF(Py_None); | |
1838 | _resultobj = Py_None; | |
1839 | return _resultobj; | |
1840 | } | |
1841 | ||
1842 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
1843 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args) { | |
1844 | PyObject * _resultobj; | |
1845 | wxFont * _arg0; | |
1846 | int _arg1; | |
1847 | char * _argc0 = 0; | |
1848 | ||
1849 | self = self; | |
1850 | if(!PyArg_ParseTuple(args,"si:wxFont_SetPointSize",&_argc0,&_arg1)) | |
1851 | return NULL; | |
1852 | if (_argc0) { | |
1853 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
1855 | return NULL; | |
1856 | } | |
1857 | } | |
1858 | wxFont_SetPointSize(_arg0,_arg1); | |
1859 | Py_INCREF(Py_None); | |
1860 | _resultobj = Py_None; | |
1861 | return _resultobj; | |
1862 | } | |
1863 | ||
1864 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1865 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args) { | |
1866 | PyObject * _resultobj; | |
1867 | wxFont * _arg0; | |
1868 | int _arg1; | |
1869 | char * _argc0 = 0; | |
1870 | ||
1871 | self = self; | |
1872 | if(!PyArg_ParseTuple(args,"si:wxFont_SetStyle",&_argc0,&_arg1)) | |
1873 | return NULL; | |
1874 | if (_argc0) { | |
1875 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); | |
1877 | return NULL; | |
1878 | } | |
1879 | } | |
1880 | wxFont_SetStyle(_arg0,_arg1); | |
1881 | Py_INCREF(Py_None); | |
1882 | _resultobj = Py_None; | |
1883 | return _resultobj; | |
1884 | } | |
1885 | ||
1886 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1887 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args) { | |
1888 | PyObject * _resultobj; | |
1889 | wxFont * _arg0; | |
1890 | bool _arg1; | |
1891 | char * _argc0 = 0; | |
1892 | int tempbool1; | |
1893 | ||
1894 | self = self; | |
1895 | if(!PyArg_ParseTuple(args,"si:wxFont_SetUnderlined",&_argc0,&tempbool1)) | |
1896 | return NULL; | |
1897 | if (_argc0) { | |
1898 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); | |
1900 | return NULL; | |
1901 | } | |
1902 | } | |
1903 | _arg1 = (bool ) tempbool1; | |
1904 | wxFont_SetUnderlined(_arg0,_arg1); | |
1905 | Py_INCREF(Py_None); | |
1906 | _resultobj = Py_None; | |
1907 | return _resultobj; | |
1908 | } | |
1909 | ||
1910 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
1911 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args) { | |
1912 | PyObject * _resultobj; | |
1913 | wxFont * _arg0; | |
1914 | int _arg1; | |
1915 | char * _argc0 = 0; | |
1916 | ||
1917 | self = self; | |
1918 | if(!PyArg_ParseTuple(args,"si:wxFont_SetWeight",&_argc0,&_arg1)) | |
1919 | return NULL; | |
1920 | if (_argc0) { | |
1921 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) { | |
1922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); | |
1923 | return NULL; | |
1924 | } | |
1925 | } | |
1926 | wxFont_SetWeight(_arg0,_arg1); | |
1927 | Py_INCREF(Py_None); | |
1928 | _resultobj = Py_None; | |
1929 | return _resultobj; | |
1930 | } | |
1931 | ||
70551f47 RD |
1932 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1933 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args) { | |
1934 | PyObject * _resultobj; | |
1935 | wxColour * _result; | |
1936 | unsigned char _arg0 = 0; | |
1937 | unsigned char _arg1 = 0; | |
1938 | unsigned char _arg2 = 0; | |
1939 | char _ptemp[128]; | |
1940 | ||
1941 | self = self; | |
1942 | if(!PyArg_ParseTuple(args,"|bbb:new_wxColour",&_arg0,&_arg1,&_arg2)) | |
1943 | return NULL; | |
1944 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
1945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1946 | _resultobj = Py_BuildValue("s",_ptemp); | |
1947 | return _resultobj; | |
1948 | } | |
1949 | ||
1950 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1951 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args) { | |
1952 | PyObject * _resultobj; | |
1953 | wxColour * _arg0; | |
1954 | char * _argc0 = 0; | |
1955 | ||
1956 | self = self; | |
1957 | if(!PyArg_ParseTuple(args,"s:delete_wxColour",&_argc0)) | |
1958 | return NULL; | |
1959 | if (_argc0) { | |
1960 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
1961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColour. Expected _wxColour_p."); | |
1962 | return NULL; | |
1963 | } | |
1964 | } | |
1965 | delete_wxColour(_arg0); | |
1966 | Py_INCREF(Py_None); | |
1967 | _resultobj = Py_None; | |
1968 | return _resultobj; | |
1969 | } | |
1970 | ||
1971 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1972 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args) { | |
1973 | PyObject * _resultobj; | |
1974 | unsigned char _result; | |
1975 | wxColour * _arg0; | |
1976 | char * _argc0 = 0; | |
1977 | ||
1978 | self = self; | |
1979 | if(!PyArg_ParseTuple(args,"s:wxColour_Red",&_argc0)) | |
1980 | return NULL; | |
1981 | if (_argc0) { | |
1982 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
1983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Red. Expected _wxColour_p."); | |
1984 | return NULL; | |
1985 | } | |
1986 | } | |
1987 | _result = (unsigned char )wxColour_Red(_arg0); | |
1988 | _resultobj = Py_BuildValue("b",_result); | |
1989 | return _resultobj; | |
1990 | } | |
1991 | ||
1992 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1993 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args) { | |
1994 | PyObject * _resultobj; | |
1995 | unsigned char _result; | |
1996 | wxColour * _arg0; | |
1997 | char * _argc0 = 0; | |
1998 | ||
1999 | self = self; | |
2000 | if(!PyArg_ParseTuple(args,"s:wxColour_Green",&_argc0)) | |
2001 | return NULL; | |
2002 | if (_argc0) { | |
2003 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
2004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Green. Expected _wxColour_p."); | |
2005 | return NULL; | |
2006 | } | |
2007 | } | |
2008 | _result = (unsigned char )wxColour_Green(_arg0); | |
2009 | _resultobj = Py_BuildValue("b",_result); | |
2010 | return _resultobj; | |
2011 | } | |
2012 | ||
2013 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
2014 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args) { | |
2015 | PyObject * _resultobj; | |
2016 | unsigned char _result; | |
2017 | wxColour * _arg0; | |
2018 | char * _argc0 = 0; | |
2019 | ||
2020 | self = self; | |
2021 | if(!PyArg_ParseTuple(args,"s:wxColour_Blue",&_argc0)) | |
2022 | return NULL; | |
2023 | if (_argc0) { | |
2024 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
2025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Blue. Expected _wxColour_p."); | |
2026 | return NULL; | |
2027 | } | |
2028 | } | |
2029 | _result = (unsigned char )wxColour_Blue(_arg0); | |
2030 | _resultobj = Py_BuildValue("b",_result); | |
2031 | return _resultobj; | |
2032 | } | |
2033 | ||
2034 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
2035 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args) { | |
2036 | PyObject * _resultobj; | |
2037 | bool _result; | |
2038 | wxColour * _arg0; | |
2039 | char * _argc0 = 0; | |
2040 | ||
2041 | self = self; | |
2042 | if(!PyArg_ParseTuple(args,"s:wxColour_Ok",&_argc0)) | |
2043 | return NULL; | |
2044 | if (_argc0) { | |
2045 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
2046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Ok. Expected _wxColour_p."); | |
2047 | return NULL; | |
2048 | } | |
2049 | } | |
2050 | _result = (bool )wxColour_Ok(_arg0); | |
2051 | _resultobj = Py_BuildValue("i",_result); | |
2052 | return _resultobj; | |
2053 | } | |
2054 | ||
2055 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
2056 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args) { | |
2057 | PyObject * _resultobj; | |
2058 | wxColour * _arg0; | |
2059 | unsigned char _arg1; | |
2060 | unsigned char _arg2; | |
2061 | unsigned char _arg3; | |
2062 | char * _argc0 = 0; | |
2063 | ||
2064 | self = self; | |
2065 | if(!PyArg_ParseTuple(args,"sbbb:wxColour_Set",&_argc0,&_arg1,&_arg2,&_arg3)) | |
2066 | return NULL; | |
2067 | if (_argc0) { | |
2068 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
2069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Set. Expected _wxColour_p."); | |
2070 | return NULL; | |
2071 | } | |
2072 | } | |
2073 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
2074 | Py_INCREF(Py_None); | |
2075 | _resultobj = Py_None; | |
2076 | return _resultobj; | |
2077 | } | |
2078 | ||
2079 | static PyObject * wxColour_Get(wxColour *self) { | |
2080 | PyObject* rv = PyTuple_New(3); | |
2081 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
2082 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
2083 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
2084 | return rv; | |
2085 | } | |
2086 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args) { | |
2087 | PyObject * _resultobj; | |
2088 | PyObject * _result; | |
2089 | wxColour * _arg0; | |
2090 | char * _argc0 = 0; | |
2091 | ||
2092 | self = self; | |
2093 | if(!PyArg_ParseTuple(args,"s:wxColour_Get",&_argc0)) | |
2094 | return NULL; | |
2095 | if (_argc0) { | |
2096 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
2097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Get. Expected _wxColour_p."); | |
2098 | return NULL; | |
2099 | } | |
2100 | } | |
2101 | _result = (PyObject *)wxColour_Get(_arg0); | |
2102 | { | |
2103 | _resultobj = _result; | |
2104 | } | |
2105 | return _resultobj; | |
2106 | } | |
2107 | ||
2108 | static wxPen *new_wxPen(wxColour *colour,int width,int style) { | |
2109 | return wxThePenList->FindOrCreatePen(*colour, width, style); | |
2110 | } | |
2111 | ||
2112 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args) { | |
2113 | PyObject * _resultobj; | |
2114 | wxPen * _result; | |
2115 | wxColour * _arg0; | |
2116 | int _arg1 = 1; | |
2117 | int _arg2 = (wxSOLID); | |
2118 | char * _argc0 = 0; | |
2119 | char _ptemp[128]; | |
2120 | ||
2121 | self = self; | |
2122 | if(!PyArg_ParseTuple(args,"s|ii:new_wxPen",&_argc0,&_arg1,&_arg2)) | |
2123 | return NULL; | |
2124 | if (_argc0) { | |
2125 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
2126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPen. Expected _wxColour_p."); | |
2127 | return NULL; | |
2128 | } | |
2129 | } | |
2130 | _result = (wxPen *)new_wxPen(_arg0,_arg1,_arg2); | |
2131 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
2132 | _resultobj = Py_BuildValue("s",_ptemp); | |
2133 | return _resultobj; | |
2134 | } | |
2135 | ||
2136 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
2137 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args) { | |
2138 | PyObject * _resultobj; | |
2139 | int _result; | |
2140 | wxPen * _arg0; | |
2141 | char * _argc0 = 0; | |
2142 | ||
2143 | self = self; | |
2144 | if(!PyArg_ParseTuple(args,"s:wxPen_GetCap",&_argc0)) | |
2145 | return NULL; | |
2146 | if (_argc0) { | |
2147 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
2149 | return NULL; | |
2150 | } | |
2151 | } | |
2152 | _result = (int )wxPen_GetCap(_arg0); | |
2153 | _resultobj = Py_BuildValue("i",_result); | |
2154 | return _resultobj; | |
2155 | } | |
2156 | ||
2157 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
2158 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args) { | |
2159 | PyObject * _resultobj; | |
2160 | wxColour * _result; | |
2161 | wxPen * _arg0; | |
2162 | char * _argc0 = 0; | |
2163 | char _ptemp[128]; | |
2164 | ||
2165 | self = self; | |
2166 | if(!PyArg_ParseTuple(args,"s:wxPen_GetColour",&_argc0)) | |
2167 | return NULL; | |
2168 | if (_argc0) { | |
2169 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
2171 | return NULL; | |
2172 | } | |
2173 | } | |
2174 | wxColour & _result_ref = wxPen_GetColour(_arg0); | |
2175 | _result = (wxColour *) &_result_ref; | |
2176 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
2177 | _resultobj = Py_BuildValue("s",_ptemp); | |
2178 | return _resultobj; | |
2179 | } | |
2180 | ||
2181 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
2182 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args) { | |
2183 | PyObject * _resultobj; | |
2184 | int _result; | |
2185 | wxPen * _arg0; | |
2186 | char * _argc0 = 0; | |
2187 | ||
2188 | self = self; | |
2189 | if(!PyArg_ParseTuple(args,"s:wxPen_GetJoin",&_argc0)) | |
2190 | return NULL; | |
2191 | if (_argc0) { | |
2192 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
2194 | return NULL; | |
2195 | } | |
2196 | } | |
2197 | _result = (int )wxPen_GetJoin(_arg0); | |
2198 | _resultobj = Py_BuildValue("i",_result); | |
2199 | return _resultobj; | |
2200 | } | |
2201 | ||
2202 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
2203 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args) { | |
2204 | PyObject * _resultobj; | |
2205 | int _result; | |
2206 | wxPen * _arg0; | |
2207 | char * _argc0 = 0; | |
2208 | ||
2209 | self = self; | |
2210 | if(!PyArg_ParseTuple(args,"s:wxPen_GetStyle",&_argc0)) | |
2211 | return NULL; | |
2212 | if (_argc0) { | |
2213 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
2215 | return NULL; | |
2216 | } | |
2217 | } | |
2218 | _result = (int )wxPen_GetStyle(_arg0); | |
2219 | _resultobj = Py_BuildValue("i",_result); | |
2220 | return _resultobj; | |
2221 | } | |
2222 | ||
2223 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2224 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args) { | |
2225 | PyObject * _resultobj; | |
2226 | int _result; | |
2227 | wxPen * _arg0; | |
2228 | char * _argc0 = 0; | |
2229 | ||
2230 | self = self; | |
2231 | if(!PyArg_ParseTuple(args,"s:wxPen_GetWidth",&_argc0)) | |
2232 | return NULL; | |
2233 | if (_argc0) { | |
2234 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
2236 | return NULL; | |
2237 | } | |
2238 | } | |
2239 | _result = (int )wxPen_GetWidth(_arg0); | |
2240 | _resultobj = Py_BuildValue("i",_result); | |
2241 | return _resultobj; | |
2242 | } | |
2243 | ||
2244 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
2245 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args) { | |
2246 | PyObject * _resultobj; | |
2247 | bool _result; | |
2248 | wxPen * _arg0; | |
2249 | char * _argc0 = 0; | |
2250 | ||
2251 | self = self; | |
2252 | if(!PyArg_ParseTuple(args,"s:wxPen_Ok",&_argc0)) | |
2253 | return NULL; | |
2254 | if (_argc0) { | |
2255 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
2257 | return NULL; | |
2258 | } | |
2259 | } | |
2260 | _result = (bool )wxPen_Ok(_arg0); | |
2261 | _resultobj = Py_BuildValue("i",_result); | |
2262 | return _resultobj; | |
2263 | } | |
2264 | ||
2265 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
2266 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args) { | |
2267 | PyObject * _resultobj; | |
2268 | wxPen * _arg0; | |
2269 | int _arg1; | |
2270 | char * _argc0 = 0; | |
2271 | ||
2272 | self = self; | |
2273 | if(!PyArg_ParseTuple(args,"si:wxPen_SetCap",&_argc0,&_arg1)) | |
2274 | return NULL; | |
2275 | if (_argc0) { | |
2276 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
2278 | return NULL; | |
2279 | } | |
2280 | } | |
2281 | wxPen_SetCap(_arg0,_arg1); | |
2282 | Py_INCREF(Py_None); | |
2283 | _resultobj = Py_None; | |
2284 | return _resultobj; | |
2285 | } | |
2286 | ||
2287 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
2288 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args) { | |
2289 | PyObject * _resultobj; | |
2290 | wxPen * _arg0; | |
2291 | wxColour * _arg1; | |
2292 | char * _argc0 = 0; | |
2293 | char * _argc1 = 0; | |
2294 | ||
2295 | self = self; | |
2296 | if(!PyArg_ParseTuple(args,"ss:wxPen_SetColour",&_argc0,&_argc1)) | |
2297 | return NULL; | |
2298 | if (_argc0) { | |
2299 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
2301 | return NULL; | |
2302 | } | |
2303 | } | |
2304 | if (_argc1) { | |
2305 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) { | |
2306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetColour. Expected _wxColour_p."); | |
2307 | return NULL; | |
2308 | } | |
2309 | } | |
2310 | wxPen_SetColour(_arg0,*_arg1); | |
2311 | Py_INCREF(Py_None); | |
2312 | _resultobj = Py_None; | |
2313 | return _resultobj; | |
2314 | } | |
2315 | ||
2316 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
2317 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args) { | |
2318 | PyObject * _resultobj; | |
2319 | wxPen * _arg0; | |
2320 | int _arg1; | |
2321 | char * _argc0 = 0; | |
2322 | ||
2323 | self = self; | |
2324 | if(!PyArg_ParseTuple(args,"si:wxPen_SetJoin",&_argc0,&_arg1)) | |
2325 | return NULL; | |
2326 | if (_argc0) { | |
2327 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
2329 | return NULL; | |
2330 | } | |
2331 | } | |
2332 | wxPen_SetJoin(_arg0,_arg1); | |
2333 | Py_INCREF(Py_None); | |
2334 | _resultobj = Py_None; | |
2335 | return _resultobj; | |
2336 | } | |
2337 | ||
2338 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
2339 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args) { | |
2340 | PyObject * _resultobj; | |
2341 | wxPen * _arg0; | |
2342 | int _arg1; | |
2343 | char * _argc0 = 0; | |
2344 | ||
2345 | self = self; | |
2346 | if(!PyArg_ParseTuple(args,"si:wxPen_SetStyle",&_argc0,&_arg1)) | |
2347 | return NULL; | |
2348 | if (_argc0) { | |
2349 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
2351 | return NULL; | |
2352 | } | |
2353 | } | |
2354 | wxPen_SetStyle(_arg0,_arg1); | |
2355 | Py_INCREF(Py_None); | |
2356 | _resultobj = Py_None; | |
2357 | return _resultobj; | |
2358 | } | |
2359 | ||
2360 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2361 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args) { | |
2362 | PyObject * _resultobj; | |
2363 | wxPen * _arg0; | |
2364 | int _arg1; | |
2365 | char * _argc0 = 0; | |
2366 | ||
2367 | self = self; | |
2368 | if(!PyArg_ParseTuple(args,"si:wxPen_SetWidth",&_argc0,&_arg1)) | |
2369 | return NULL; | |
2370 | if (_argc0) { | |
2371 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) { | |
2372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
2373 | return NULL; | |
2374 | } | |
2375 | } | |
2376 | wxPen_SetWidth(_arg0,_arg1); | |
2377 | Py_INCREF(Py_None); | |
2378 | _resultobj = Py_None; | |
2379 | return _resultobj; | |
2380 | } | |
2381 | ||
2382 | static wxBrush *new_wxBrush(wxColour *colour,int style) { | |
2383 | return wxTheBrushList->FindOrCreateBrush(*colour, style); | |
2384 | } | |
2385 | ||
2386 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args) { | |
2387 | PyObject * _resultobj; | |
2388 | wxBrush * _result; | |
2389 | wxColour * _arg0; | |
2390 | int _arg1 = (wxSOLID); | |
2391 | char * _argc0 = 0; | |
2392 | char _ptemp[128]; | |
2393 | ||
2394 | self = self; | |
2395 | if(!PyArg_ParseTuple(args,"s|i:new_wxBrush",&_argc0,&_arg1)) | |
2396 | return NULL; | |
2397 | if (_argc0) { | |
2398 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) { | |
2399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBrush. Expected _wxColour_p."); | |
2400 | return NULL; | |
2401 | } | |
2402 | } | |
2403 | _result = (wxBrush *)new_wxBrush(_arg0,_arg1); | |
2404 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
2405 | _resultobj = Py_BuildValue("s",_ptemp); | |
2406 | return _resultobj; | |
2407 | } | |
2408 | ||
2409 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
2410 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args) { | |
2411 | PyObject * _resultobj; | |
2412 | wxColour * _result; | |
2413 | wxBrush * _arg0; | |
2414 | char * _argc0 = 0; | |
2415 | char _ptemp[128]; | |
2416 | ||
2417 | self = self; | |
2418 | if(!PyArg_ParseTuple(args,"s:wxBrush_GetColour",&_argc0)) | |
2419 | return NULL; | |
2420 | if (_argc0) { | |
2421 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) { | |
2422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
2423 | return NULL; | |
2424 | } | |
2425 | } | |
2426 | wxColour & _result_ref = wxBrush_GetColour(_arg0); | |
2427 | _result = (wxColour *) &_result_ref; | |
2428 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
2429 | _resultobj = Py_BuildValue("s",_ptemp); | |
2430 | return _resultobj; | |
2431 | } | |
2432 | ||
2433 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
2434 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args) { | |
2435 | PyObject * _resultobj; | |
2436 | wxBitmap * _result; | |
2437 | wxBrush * _arg0; | |
2438 | char * _argc0 = 0; | |
2439 | char _ptemp[128]; | |
2440 | ||
2441 | self = self; | |
2442 | if(!PyArg_ParseTuple(args,"s:wxBrush_GetStipple",&_argc0)) | |
2443 | return NULL; | |
2444 | if (_argc0) { | |
2445 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) { | |
2446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
2447 | return NULL; | |
2448 | } | |
2449 | } | |
2450 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
2451 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
2452 | _resultobj = Py_BuildValue("s",_ptemp); | |
2453 | return _resultobj; | |
2454 | } | |
2455 | ||
2456 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
2457 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args) { | |
2458 | PyObject * _resultobj; | |
2459 | int _result; | |
2460 | wxBrush * _arg0; | |
2461 | char * _argc0 = 0; | |
2462 | ||
2463 | self = self; | |
2464 | if(!PyArg_ParseTuple(args,"s:wxBrush_GetStyle",&_argc0)) | |
2465 | return NULL; | |
2466 | if (_argc0) { | |
2467 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) { | |
2468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
2469 | return NULL; | |
2470 | } | |
2471 | } | |
2472 | _result = (int )wxBrush_GetStyle(_arg0); | |
2473 | _resultobj = Py_BuildValue("i",_result); | |
2474 | return _resultobj; | |
2475 | } | |
2476 | ||
2477 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
2478 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args) { | |
2479 | PyObject * _resultobj; | |
2480 | bool _result; | |
2481 | wxBrush * _arg0; | |
2482 | char * _argc0 = 0; | |
2483 | ||
2484 | self = self; | |
2485 | if(!PyArg_ParseTuple(args,"s:wxBrush_Ok",&_argc0)) | |
2486 | return NULL; | |
2487 | if (_argc0) { | |
2488 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) { | |
2489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
2490 | return NULL; | |
2491 | } | |
2492 | } | |
2493 | _result = (bool )wxBrush_Ok(_arg0); | |
2494 | _resultobj = Py_BuildValue("i",_result); | |
2495 | return _resultobj; | |
2496 | } | |
2497 | ||
c95e68d8 RD |
2498 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) |
2499 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args) { | |
2500 | PyObject * _resultobj; | |
2501 | wxBrush * _arg0; | |
2502 | wxColour * _arg1; | |
2503 | char * _argc0 = 0; | |
2504 | char * _argc1 = 0; | |
2505 | ||
2506 | self = self; | |
2507 | if(!PyArg_ParseTuple(args,"ss:wxBrush_SetColour",&_argc0,&_argc1)) | |
2508 | return NULL; | |
2509 | if (_argc0) { | |
2510 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) { | |
2511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
2512 | return NULL; | |
2513 | } | |
2514 | } | |
2515 | if (_argc1) { | |
2516 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) { | |
2517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetColour. Expected _wxColour_p."); | |
2518 | return NULL; | |
2519 | } | |
2520 | } | |
2521 | wxBrush_SetColour(_arg0,*_arg1); | |
2522 | Py_INCREF(Py_None); | |
2523 | _resultobj = Py_None; | |
2524 | return _resultobj; | |
2525 | } | |
2526 | ||
2527 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
2528 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args) { | |
2529 | PyObject * _resultobj; | |
2530 | wxBrush * _arg0; | |
2531 | wxBitmap * _arg1; | |
2532 | char * _argc0 = 0; | |
2533 | char * _argc1 = 0; | |
2534 | ||
2535 | self = self; | |
2536 | if(!PyArg_ParseTuple(args,"ss:wxBrush_SetStipple",&_argc0,&_argc1)) | |
2537 | return NULL; | |
2538 | if (_argc0) { | |
2539 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) { | |
2540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
2541 | return NULL; | |
2542 | } | |
2543 | } | |
2544 | if (_argc1) { | |
2545 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBitmap_p")) { | |
2546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
2547 | return NULL; | |
2548 | } | |
2549 | } | |
2550 | wxBrush_SetStipple(_arg0,*_arg1); | |
2551 | Py_INCREF(Py_None); | |
2552 | _resultobj = Py_None; | |
2553 | return _resultobj; | |
2554 | } | |
2555 | ||
2556 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
2557 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args) { | |
2558 | PyObject * _resultobj; | |
2559 | wxBrush * _arg0; | |
2560 | int _arg1; | |
2561 | char * _argc0 = 0; | |
2562 | ||
2563 | self = self; | |
2564 | if(!PyArg_ParseTuple(args,"si:wxBrush_SetStyle",&_argc0,&_arg1)) | |
2565 | return NULL; | |
2566 | if (_argc0) { | |
2567 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) { | |
2568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
2569 | return NULL; | |
2570 | } | |
2571 | } | |
2572 | wxBrush_SetStyle(_arg0,_arg1); | |
2573 | Py_INCREF(Py_None); | |
2574 | _resultobj = Py_None; | |
2575 | return _resultobj; | |
2576 | } | |
2577 | ||
70551f47 RD |
2578 | #define delete_wxDC(_swigobj) (delete _swigobj) |
2579 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args) { | |
2580 | PyObject * _resultobj; | |
2581 | wxDC * _arg0; | |
2582 | char * _argc0 = 0; | |
2583 | ||
2584 | self = self; | |
2585 | if(!PyArg_ParseTuple(args,"s:delete_wxDC",&_argc0)) | |
2586 | return NULL; | |
2587 | if (_argc0) { | |
2588 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
2590 | return NULL; | |
2591 | } | |
2592 | } | |
2593 | delete_wxDC(_arg0); | |
2594 | Py_INCREF(Py_None); | |
2595 | _resultobj = Py_None; | |
2596 | return _resultobj; | |
2597 | } | |
2598 | ||
2599 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
2600 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args) { | |
2601 | PyObject * _resultobj; | |
2602 | wxDC * _arg0; | |
2603 | char * _argc0 = 0; | |
2604 | ||
2605 | self = self; | |
2606 | if(!PyArg_ParseTuple(args,"s:wxDC_BeginDrawing",&_argc0)) | |
2607 | return NULL; | |
2608 | if (_argc0) { | |
2609 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
2611 | return NULL; | |
2612 | } | |
2613 | } | |
2614 | wxDC_BeginDrawing(_arg0); | |
2615 | Py_INCREF(Py_None); | |
2616 | _resultobj = Py_None; | |
2617 | return _resultobj; | |
2618 | } | |
2619 | ||
2620 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2621 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args) { | |
2622 | PyObject * _resultobj; | |
2623 | bool _result; | |
2624 | wxDC * _arg0; | |
2625 | long _arg1; | |
2626 | long _arg2; | |
2627 | long _arg3; | |
2628 | long _arg4; | |
2629 | wxDC * _arg5; | |
2630 | long _arg6; | |
2631 | long _arg7; | |
2632 | long _arg8; | |
2633 | char * _argc0 = 0; | |
2634 | char * _argc5 = 0; | |
2635 | ||
2636 | self = self; | |
2637 | if(!PyArg_ParseTuple(args,"sllllslll:wxDC_Blit",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_argc5,&_arg6,&_arg7,&_arg8)) | |
2638 | return NULL; | |
2639 | if (_argc0) { | |
2640 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
2642 | return NULL; | |
2643 | } | |
2644 | } | |
2645 | if (_argc5) { | |
2646 | if (SWIG_GetPtr(_argc5,(void **) &_arg5,"_wxDC_p")) { | |
2647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
2648 | return NULL; | |
2649 | } | |
2650 | } | |
2651 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8); | |
2652 | _resultobj = Py_BuildValue("i",_result); | |
2653 | return _resultobj; | |
2654 | } | |
2655 | ||
2656 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
2657 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args) { | |
2658 | PyObject * _resultobj; | |
2659 | wxDC * _arg0; | |
2660 | char * _argc0 = 0; | |
2661 | ||
2662 | self = self; | |
2663 | if(!PyArg_ParseTuple(args,"s:wxDC_Clear",&_argc0)) | |
2664 | return NULL; | |
2665 | if (_argc0) { | |
2666 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
2668 | return NULL; | |
2669 | } | |
2670 | } | |
2671 | wxDC_Clear(_arg0); | |
2672 | Py_INCREF(Py_None); | |
2673 | _resultobj = Py_None; | |
2674 | return _resultobj; | |
2675 | } | |
2676 | ||
2677 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
2678 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args) { | |
2679 | PyObject * _resultobj; | |
2680 | wxDC * _arg0; | |
2681 | long _arg1; | |
2682 | long _arg2; | |
2683 | char * _argc0 = 0; | |
2684 | ||
2685 | self = self; | |
2686 | if(!PyArg_ParseTuple(args,"sll:wxDC_CrossHair",&_argc0,&_arg1,&_arg2)) | |
2687 | return NULL; | |
2688 | if (_argc0) { | |
2689 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
2691 | return NULL; | |
2692 | } | |
2693 | } | |
2694 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
2695 | Py_INCREF(Py_None); | |
2696 | _resultobj = Py_None; | |
2697 | return _resultobj; | |
2698 | } | |
2699 | ||
2700 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
2701 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args) { | |
2702 | PyObject * _resultobj; | |
2703 | wxDC * _arg0; | |
2704 | char * _argc0 = 0; | |
2705 | ||
2706 | self = self; | |
2707 | if(!PyArg_ParseTuple(args,"s:wxDC_DestroyClippingRegion",&_argc0)) | |
2708 | return NULL; | |
2709 | if (_argc0) { | |
2710 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
2712 | return NULL; | |
2713 | } | |
2714 | } | |
2715 | wxDC_DestroyClippingRegion(_arg0); | |
2716 | Py_INCREF(Py_None); | |
2717 | _resultobj = Py_None; | |
2718 | return _resultobj; | |
2719 | } | |
2720 | ||
2721 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
2722 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args) { | |
2723 | PyObject * _resultobj; | |
2724 | long _result; | |
2725 | wxDC * _arg0; | |
2726 | long _arg1; | |
2727 | char * _argc0 = 0; | |
2728 | ||
2729 | self = self; | |
2730 | if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalX",&_argc0,&_arg1)) | |
2731 | return NULL; | |
2732 | if (_argc0) { | |
2733 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
2735 | return NULL; | |
2736 | } | |
2737 | } | |
2738 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
2739 | _resultobj = Py_BuildValue("l",_result); | |
2740 | return _resultobj; | |
2741 | } | |
2742 | ||
2743 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
2744 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args) { | |
2745 | PyObject * _resultobj; | |
2746 | long _result; | |
2747 | wxDC * _arg0; | |
2748 | long _arg1; | |
2749 | char * _argc0 = 0; | |
2750 | ||
2751 | self = self; | |
2752 | if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalXRel",&_argc0,&_arg1)) | |
2753 | return NULL; | |
2754 | if (_argc0) { | |
2755 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
2757 | return NULL; | |
2758 | } | |
2759 | } | |
2760 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
2761 | _resultobj = Py_BuildValue("l",_result); | |
2762 | return _resultobj; | |
2763 | } | |
2764 | ||
2765 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
2766 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args) { | |
2767 | PyObject * _resultobj; | |
2768 | long _result; | |
2769 | wxDC * _arg0; | |
2770 | long _arg1; | |
2771 | char * _argc0 = 0; | |
2772 | ||
2773 | self = self; | |
2774 | if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalY",&_argc0,&_arg1)) | |
2775 | return NULL; | |
2776 | if (_argc0) { | |
2777 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
2779 | return NULL; | |
2780 | } | |
2781 | } | |
2782 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
2783 | _resultobj = Py_BuildValue("l",_result); | |
2784 | return _resultobj; | |
2785 | } | |
2786 | ||
2787 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
2788 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args) { | |
2789 | PyObject * _resultobj; | |
2790 | long _result; | |
2791 | wxDC * _arg0; | |
2792 | long _arg1; | |
2793 | char * _argc0 = 0; | |
2794 | ||
2795 | self = self; | |
2796 | if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalYRel",&_argc0,&_arg1)) | |
2797 | return NULL; | |
2798 | if (_argc0) { | |
2799 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
2801 | return NULL; | |
2802 | } | |
2803 | } | |
2804 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
2805 | _resultobj = Py_BuildValue("l",_result); | |
2806 | return _resultobj; | |
2807 | } | |
2808 | ||
2809 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2810 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args) { | |
2811 | PyObject * _resultobj; | |
2812 | wxDC * _arg0; | |
2813 | long _arg1; | |
2814 | long _arg2; | |
2815 | long _arg3; | |
2816 | long _arg4; | |
2817 | long _arg5; | |
2818 | long _arg6; | |
2819 | char * _argc0 = 0; | |
2820 | ||
2821 | self = self; | |
2822 | if(!PyArg_ParseTuple(args,"sllllll:wxDC_DrawArc",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
2823 | return NULL; | |
2824 | if (_argc0) { | |
2825 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
2827 | return NULL; | |
2828 | } | |
2829 | } | |
2830 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2831 | Py_INCREF(Py_None); | |
2832 | _resultobj = Py_None; | |
2833 | return _resultobj; | |
2834 | } | |
2835 | ||
2836 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2837 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args) { | |
2838 | PyObject * _resultobj; | |
2839 | wxDC * _arg0; | |
2840 | long _arg1; | |
2841 | long _arg2; | |
2842 | long _arg3; | |
2843 | long _arg4; | |
2844 | char * _argc0 = 0; | |
2845 | ||
2846 | self = self; | |
2847 | if(!PyArg_ParseTuple(args,"sllll:wxDC_DrawEllipse",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2848 | return NULL; | |
2849 | if (_argc0) { | |
2850 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
2852 | return NULL; | |
2853 | } | |
2854 | } | |
2855 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2856 | Py_INCREF(Py_None); | |
2857 | _resultobj = Py_None; | |
2858 | return _resultobj; | |
2859 | } | |
2860 | ||
2861 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2862 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args) { | |
2863 | PyObject * _resultobj; | |
2864 | wxDC * _arg0; | |
2865 | long _arg1; | |
2866 | long _arg2; | |
2867 | long _arg3; | |
2868 | long _arg4; | |
2869 | long _arg5; | |
2870 | long _arg6; | |
2871 | char * _argc0 = 0; | |
2872 | ||
2873 | self = self; | |
2874 | if(!PyArg_ParseTuple(args,"sllllll:wxDC_DrawEllipticArc",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
2875 | return NULL; | |
2876 | if (_argc0) { | |
2877 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2883 | Py_INCREF(Py_None); | |
2884 | _resultobj = Py_None; | |
2885 | return _resultobj; | |
2886 | } | |
2887 | ||
2888 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
2889 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args) { | |
2890 | PyObject * _resultobj; | |
2891 | wxDC * _arg0; | |
2892 | wxIcon * _arg1; | |
2893 | long _arg2; | |
2894 | long _arg3; | |
2895 | char * _argc0 = 0; | |
2896 | char * _argc1 = 0; | |
2897 | ||
2898 | self = self; | |
2899 | if(!PyArg_ParseTuple(args,"ssll:wxDC_DrawIcon",&_argc0,&_argc1,&_arg2,&_arg3)) | |
2900 | return NULL; | |
2901 | if (_argc0) { | |
2902 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
2904 | return NULL; | |
2905 | } | |
2906 | } | |
2907 | if (_argc1) { | |
2908 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxIcon_p")) { | |
2909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
2910 | return NULL; | |
2911 | } | |
2912 | } | |
2913 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
2914 | Py_INCREF(Py_None); | |
2915 | _resultobj = Py_None; | |
2916 | return _resultobj; | |
2917 | } | |
2918 | ||
2919 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2920 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args) { | |
2921 | PyObject * _resultobj; | |
2922 | wxDC * _arg0; | |
2923 | long _arg1; | |
2924 | long _arg2; | |
2925 | long _arg3; | |
2926 | long _arg4; | |
2927 | char * _argc0 = 0; | |
2928 | ||
2929 | self = self; | |
2930 | if(!PyArg_ParseTuple(args,"sllll:wxDC_DrawLine",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2931 | return NULL; | |
2932 | if (_argc0) { | |
2933 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
2935 | return NULL; | |
2936 | } | |
2937 | } | |
2938 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2939 | Py_INCREF(Py_None); | |
2940 | _resultobj = Py_None; | |
2941 | return _resultobj; | |
2942 | } | |
2943 | ||
2944 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2945 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args) { | |
2946 | PyObject * _resultobj; | |
2947 | wxDC * _arg0; | |
2948 | int _arg1; | |
2949 | wxPoint * _arg2; | |
2950 | long _arg3 = 0; | |
2951 | long _arg4 = 0; | |
2952 | char * _argc0 = 0; | |
2953 | PyObject * _obj2 = 0; | |
2954 | ||
2955 | self = self; | |
2956 | if(!PyArg_ParseTuple(args,"sO|ll:wxDC_DrawLines",&_argc0,&_obj2,&_arg3,&_arg4)) | |
2957 | return NULL; | |
2958 | if (_argc0) { | |
2959 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
2960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
2961 | return NULL; | |
2962 | } | |
2963 | } | |
2964 | if (_obj2) | |
2965 | { | |
2966 | _arg2 = wxPoint_LIST_helper(_obj2); | |
2967 | if (_arg2 == NULL) { | |
2968 | return NULL; | |
2969 | } | |
2970 | } | |
2971 | { | |
2972 | _arg1 = PyList_Size(_obj2); | |
2973 | } | |
2974 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2975 | Py_INCREF(Py_None); | |
2976 | _resultobj = Py_None; | |
2977 | { | |
2978 | delete [] _arg2; | |
2979 | } | |
2980 | return _resultobj; | |
2981 | } | |
2982 | ||
2983 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2984 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args) { | |
2985 | PyObject * _resultobj; | |
2986 | wxDC * _arg0; | |
2987 | int _arg1; | |
2988 | wxPoint * _arg2; | |
2989 | long _arg3 = 0; | |
2990 | long _arg4 = 0; | |
2991 | int _arg5 = (wxODDEVEN_RULE); | |
2992 | char * _argc0 = 0; | |
2993 | PyObject * _obj2 = 0; | |
2994 | ||
2995 | self = self; | |
2996 | if(!PyArg_ParseTuple(args,"sO|lli:wxDC_DrawPolygon",&_argc0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
2997 | return NULL; | |
2998 | if (_argc0) { | |
2999 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
3001 | return NULL; | |
3002 | } | |
3003 | } | |
3004 | if (_obj2) | |
3005 | { | |
3006 | _arg2 = wxPoint_LIST_helper(_obj2); | |
3007 | if (_arg2 == NULL) { | |
3008 | return NULL; | |
3009 | } | |
3010 | } | |
3011 | { | |
3012 | _arg1 = PyList_Size(_obj2); | |
3013 | } | |
3014 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3015 | Py_INCREF(Py_None); | |
3016 | _resultobj = Py_None; | |
3017 | { | |
3018 | delete [] _arg2; | |
3019 | } | |
3020 | return _resultobj; | |
3021 | } | |
3022 | ||
3023 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
3024 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args) { | |
3025 | PyObject * _resultobj; | |
3026 | wxDC * _arg0; | |
3027 | long _arg1; | |
3028 | long _arg2; | |
3029 | char * _argc0 = 0; | |
3030 | ||
3031 | self = self; | |
3032 | if(!PyArg_ParseTuple(args,"sll:wxDC_DrawPoint",&_argc0,&_arg1,&_arg2)) | |
3033 | return NULL; | |
3034 | if (_argc0) { | |
3035 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
3037 | return NULL; | |
3038 | } | |
3039 | } | |
3040 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
3041 | Py_INCREF(Py_None); | |
3042 | _resultobj = Py_None; | |
3043 | return _resultobj; | |
3044 | } | |
3045 | ||
3046 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3047 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args) { | |
3048 | PyObject * _resultobj; | |
3049 | wxDC * _arg0; | |
3050 | long _arg1; | |
3051 | long _arg2; | |
3052 | long _arg3; | |
3053 | long _arg4; | |
3054 | char * _argc0 = 0; | |
3055 | ||
3056 | self = self; | |
3057 | if(!PyArg_ParseTuple(args,"sllll:wxDC_DrawRectangle",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3058 | return NULL; | |
3059 | if (_argc0) { | |
3060 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
3065 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3066 | Py_INCREF(Py_None); | |
3067 | _resultobj = Py_None; | |
3068 | return _resultobj; | |
3069 | } | |
3070 | ||
3071 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3072 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args) { | |
3073 | PyObject * _resultobj; | |
3074 | wxDC * _arg0; | |
3075 | long _arg1; | |
3076 | long _arg2; | |
3077 | long _arg3; | |
3078 | long _arg4; | |
3079 | long _arg5 = 20; | |
3080 | char * _argc0 = 0; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTuple(args,"sllll|l:wxDC_DrawRoundedRectangle",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
3084 | return NULL; | |
3085 | if (_argc0) { | |
3086 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
3088 | return NULL; | |
3089 | } | |
3090 | } | |
3091 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3092 | Py_INCREF(Py_None); | |
3093 | _resultobj = Py_None; | |
3094 | return _resultobj; | |
3095 | } | |
3096 | ||
3097 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
3098 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args) { | |
3099 | PyObject * _resultobj; | |
3100 | wxDC * _arg0; | |
3101 | int _arg1; | |
3102 | wxPoint * _arg2; | |
3103 | char * _argc0 = 0; | |
3104 | PyObject * _obj2 = 0; | |
3105 | ||
3106 | self = self; | |
3107 | if(!PyArg_ParseTuple(args,"sO:wxDC_DrawSpline",&_argc0,&_obj2)) | |
3108 | return NULL; | |
3109 | if (_argc0) { | |
3110 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
3112 | return NULL; | |
3113 | } | |
3114 | } | |
3115 | if (_obj2) | |
3116 | { | |
3117 | _arg2 = wxPoint_LIST_helper(_obj2); | |
3118 | if (_arg2 == NULL) { | |
3119 | return NULL; | |
3120 | } | |
3121 | } | |
3122 | { | |
3123 | _arg1 = PyList_Size(_obj2); | |
3124 | } | |
3125 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
3126 | Py_INCREF(Py_None); | |
3127 | _resultobj = Py_None; | |
3128 | { | |
3129 | delete [] _arg2; | |
3130 | } | |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
3135 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args) { | |
3136 | PyObject * _resultobj; | |
3137 | wxDC * _arg0; | |
3138 | wxString * _arg1; | |
3139 | long _arg2; | |
3140 | long _arg3; | |
3141 | char * _argc0 = 0; | |
3142 | PyObject * _obj1 = 0; | |
3143 | ||
3144 | self = self; | |
3145 | if(!PyArg_ParseTuple(args,"sOll:wxDC_DrawText",&_argc0,&_obj1,&_arg2,&_arg3)) | |
3146 | return NULL; | |
3147 | if (_argc0) { | |
3148 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); | |
3150 | return NULL; | |
3151 | } | |
3152 | } | |
3153 | { | |
3154 | if (!PyString_Check(_obj1)) { | |
3155 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3156 | return NULL; | |
3157 | } | |
3158 | _arg1 = new wxString(PyString_AsString(_obj1)); | |
3159 | } | |
3160 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
3161 | Py_INCREF(Py_None); | |
3162 | _resultobj = Py_None; | |
3163 | { | |
3164 | if (_obj1) | |
3165 | delete _arg1; | |
3166 | } | |
3167 | return _resultobj; | |
3168 | } | |
3169 | ||
3170 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
3171 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args) { | |
3172 | PyObject * _resultobj; | |
3173 | wxDC * _arg0; | |
3174 | char * _argc0 = 0; | |
3175 | ||
3176 | self = self; | |
3177 | if(!PyArg_ParseTuple(args,"s:wxDC_EndDoc",&_argc0)) | |
3178 | return NULL; | |
3179 | if (_argc0) { | |
3180 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
3182 | return NULL; | |
3183 | } | |
3184 | } | |
3185 | wxDC_EndDoc(_arg0); | |
3186 | Py_INCREF(Py_None); | |
3187 | _resultobj = Py_None; | |
3188 | return _resultobj; | |
3189 | } | |
3190 | ||
3191 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
3192 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args) { | |
3193 | PyObject * _resultobj; | |
3194 | wxDC * _arg0; | |
3195 | char * _argc0 = 0; | |
3196 | ||
3197 | self = self; | |
3198 | if(!PyArg_ParseTuple(args,"s:wxDC_EndDrawing",&_argc0)) | |
3199 | return NULL; | |
3200 | if (_argc0) { | |
3201 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
3203 | return NULL; | |
3204 | } | |
3205 | } | |
3206 | wxDC_EndDrawing(_arg0); | |
3207 | Py_INCREF(Py_None); | |
3208 | _resultobj = Py_None; | |
3209 | return _resultobj; | |
3210 | } | |
3211 | ||
3212 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
3213 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args) { | |
3214 | PyObject * _resultobj; | |
3215 | wxDC * _arg0; | |
3216 | char * _argc0 = 0; | |
3217 | ||
3218 | self = self; | |
3219 | if(!PyArg_ParseTuple(args,"s:wxDC_EndPage",&_argc0)) | |
3220 | return NULL; | |
3221 | if (_argc0) { | |
3222 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
3224 | return NULL; | |
3225 | } | |
3226 | } | |
3227 | wxDC_EndPage(_arg0); | |
3228 | Py_INCREF(Py_None); | |
3229 | _resultobj = Py_None; | |
3230 | return _resultobj; | |
3231 | } | |
3232 | ||
3233 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3234 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args) { | |
3235 | PyObject * _resultobj; | |
3236 | wxDC * _arg0; | |
3237 | long _arg1; | |
3238 | long _arg2; | |
3239 | wxColour * _arg3; | |
3240 | int _arg4 = (wxFLOOD_SURFACE); | |
3241 | char * _argc0 = 0; | |
3242 | char * _argc3 = 0; | |
3243 | ||
3244 | self = self; | |
3245 | if(!PyArg_ParseTuple(args,"slls|i:wxDC_FloodFill",&_argc0,&_arg1,&_arg2,&_argc3,&_arg4)) | |
3246 | return NULL; | |
3247 | if (_argc0) { | |
3248 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
3250 | return NULL; | |
3251 | } | |
3252 | } | |
3253 | if (_argc3) { | |
3254 | if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxColour_p")) { | |
3255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDC_FloodFill. Expected _wxColour_p."); | |
3256 | return NULL; | |
3257 | } | |
3258 | } | |
105e45b9 | 3259 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
70551f47 RD |
3260 | Py_INCREF(Py_None); |
3261 | _resultobj = Py_None; | |
3262 | return _resultobj; | |
3263 | } | |
3264 | ||
3265 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
3266 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args) { | |
3267 | PyObject * _resultobj; | |
3268 | wxBrush * _result; | |
3269 | wxDC * _arg0; | |
3270 | char * _argc0 = 0; | |
3271 | char _ptemp[128]; | |
3272 | ||
3273 | self = self; | |
3274 | if(!PyArg_ParseTuple(args,"s:wxDC_GetBackground",&_argc0)) | |
3275 | return NULL; | |
3276 | if (_argc0) { | |
3277 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
3279 | return NULL; | |
3280 | } | |
3281 | } | |
c95e68d8 RD |
3282 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); |
3283 | _result = (wxBrush *) &_result_ref; | |
3284 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
70551f47 RD |
3285 | _resultobj = Py_BuildValue("s",_ptemp); |
3286 | return _resultobj; | |
3287 | } | |
3288 | ||
3289 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
3290 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args) { | |
3291 | PyObject * _resultobj; | |
3292 | wxBrush * _result; | |
3293 | wxDC * _arg0; | |
3294 | char * _argc0 = 0; | |
3295 | char _ptemp[128]; | |
3296 | ||
3297 | self = self; | |
3298 | if(!PyArg_ParseTuple(args,"s:wxDC_GetBrush",&_argc0)) | |
3299 | return NULL; | |
3300 | if (_argc0) { | |
3301 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
3303 | return NULL; | |
3304 | } | |
3305 | } | |
c95e68d8 RD |
3306 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); |
3307 | _result = (wxBrush *) &_result_ref; | |
3308 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
70551f47 RD |
3309 | _resultobj = Py_BuildValue("s",_ptemp); |
3310 | return _resultobj; | |
3311 | } | |
3312 | ||
3313 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
3314 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args) { | |
3315 | PyObject * _resultobj; | |
3316 | long _result; | |
3317 | wxDC * _arg0; | |
3318 | char * _argc0 = 0; | |
3319 | ||
3320 | self = self; | |
3321 | if(!PyArg_ParseTuple(args,"s:wxDC_GetCharHeight",&_argc0)) | |
3322 | return NULL; | |
3323 | if (_argc0) { | |
3324 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
3326 | return NULL; | |
3327 | } | |
3328 | } | |
3329 | _result = (long )wxDC_GetCharHeight(_arg0); | |
3330 | _resultobj = Py_BuildValue("l",_result); | |
3331 | return _resultobj; | |
3332 | } | |
3333 | ||
3334 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
3335 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args) { | |
3336 | PyObject * _resultobj; | |
3337 | long _result; | |
3338 | wxDC * _arg0; | |
3339 | char * _argc0 = 0; | |
3340 | ||
3341 | self = self; | |
3342 | if(!PyArg_ParseTuple(args,"s:wxDC_GetCharWidth",&_argc0)) | |
3343 | return NULL; | |
3344 | if (_argc0) { | |
3345 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
3347 | return NULL; | |
3348 | } | |
3349 | } | |
3350 | _result = (long )wxDC_GetCharWidth(_arg0); | |
3351 | _resultobj = Py_BuildValue("l",_result); | |
3352 | return _resultobj; | |
3353 | } | |
3354 | ||
3355 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3356 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args) { | |
3357 | PyObject * _resultobj; | |
3358 | wxDC * _arg0; | |
3359 | long * _arg1; | |
3360 | long temp; | |
3361 | long * _arg2; | |
3362 | long temp0; | |
3363 | long * _arg3; | |
3364 | long temp1; | |
3365 | long * _arg4; | |
3366 | long temp2; | |
3367 | char * _argc0 = 0; | |
3368 | ||
3369 | self = self; | |
3370 | { | |
3371 | _arg1 = &temp; | |
3372 | } | |
3373 | { | |
3374 | _arg2 = &temp0; | |
3375 | } | |
3376 | { | |
3377 | _arg3 = &temp1; | |
3378 | } | |
3379 | { | |
3380 | _arg4 = &temp2; | |
3381 | } | |
3382 | if(!PyArg_ParseTuple(args,"s:wxDC_GetClippingBox",&_argc0)) | |
3383 | return NULL; | |
3384 | if (_argc0) { | |
3385 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
3387 | return NULL; | |
3388 | } | |
3389 | } | |
3390 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3391 | Py_INCREF(Py_None); | |
3392 | _resultobj = Py_None; | |
3393 | { | |
3394 | PyObject *o; | |
3395 | o = PyInt_FromLong((long) (*_arg1)); | |
3396 | _resultobj = t_output_helper(_resultobj, o); | |
3397 | } | |
3398 | { | |
3399 | PyObject *o; | |
3400 | o = PyInt_FromLong((long) (*_arg2)); | |
3401 | _resultobj = t_output_helper(_resultobj, o); | |
3402 | } | |
3403 | { | |
3404 | PyObject *o; | |
3405 | o = PyInt_FromLong((long) (*_arg3)); | |
3406 | _resultobj = t_output_helper(_resultobj, o); | |
3407 | } | |
3408 | { | |
3409 | PyObject *o; | |
3410 | o = PyInt_FromLong((long) (*_arg4)); | |
3411 | _resultobj = t_output_helper(_resultobj, o); | |
3412 | } | |
3413 | return _resultobj; | |
3414 | } | |
3415 | ||
3416 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
3417 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args) { | |
3418 | PyObject * _resultobj; | |
3419 | wxFont * _result; | |
3420 | wxDC * _arg0; | |
3421 | char * _argc0 = 0; | |
3422 | char _ptemp[128]; | |
3423 | ||
3424 | self = self; | |
3425 | if(!PyArg_ParseTuple(args,"s:wxDC_GetFont",&_argc0)) | |
3426 | return NULL; | |
3427 | if (_argc0) { | |
3428 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
3430 | return NULL; | |
3431 | } | |
3432 | } | |
c95e68d8 RD |
3433 | wxFont & _result_ref = wxDC_GetFont(_arg0); |
3434 | _result = (wxFont *) &_result_ref; | |
3435 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
70551f47 RD |
3436 | _resultobj = Py_BuildValue("s",_ptemp); |
3437 | return _resultobj; | |
3438 | } | |
3439 | ||
3440 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
3441 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args) { | |
3442 | PyObject * _resultobj; | |
3443 | int _result; | |
3444 | wxDC * _arg0; | |
3445 | char * _argc0 = 0; | |
3446 | ||
3447 | self = self; | |
3448 | if(!PyArg_ParseTuple(args,"s:wxDC_GetLogicalFunction",&_argc0)) | |
3449 | return NULL; | |
3450 | if (_argc0) { | |
3451 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
3453 | return NULL; | |
3454 | } | |
3455 | } | |
3456 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
3457 | _resultobj = Py_BuildValue("i",_result); | |
3458 | return _resultobj; | |
3459 | } | |
3460 | ||
3461 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
3462 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args) { | |
3463 | PyObject * _resultobj; | |
3464 | int _result; | |
3465 | wxDC * _arg0; | |
3466 | char * _argc0 = 0; | |
3467 | ||
3468 | self = self; | |
3469 | if(!PyArg_ParseTuple(args,"s:wxDC_GetMapMode",&_argc0)) | |
3470 | return NULL; | |
3471 | if (_argc0) { | |
3472 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
3474 | return NULL; | |
3475 | } | |
3476 | } | |
3477 | _result = (int )wxDC_GetMapMode(_arg0); | |
3478 | _resultobj = Py_BuildValue("i",_result); | |
3479 | return _resultobj; | |
3480 | } | |
3481 | ||
3482 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
3483 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args) { | |
3484 | PyObject * _resultobj; | |
3485 | bool _result; | |
3486 | wxDC * _arg0; | |
3487 | char * _argc0 = 0; | |
3488 | ||
3489 | self = self; | |
3490 | if(!PyArg_ParseTuple(args,"s:wxDC_GetOptimization",&_argc0)) | |
3491 | return NULL; | |
3492 | if (_argc0) { | |
3493 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
3495 | return NULL; | |
3496 | } | |
3497 | } | |
3498 | _result = (bool )wxDC_GetOptimization(_arg0); | |
3499 | _resultobj = Py_BuildValue("i",_result); | |
3500 | return _resultobj; | |
3501 | } | |
3502 | ||
3503 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
3504 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args) { | |
3505 | PyObject * _resultobj; | |
3506 | wxPen * _result; | |
3507 | wxDC * _arg0; | |
3508 | char * _argc0 = 0; | |
3509 | char _ptemp[128]; | |
3510 | ||
3511 | self = self; | |
3512 | if(!PyArg_ParseTuple(args,"s:wxDC_GetPen",&_argc0)) | |
3513 | return NULL; | |
3514 | if (_argc0) { | |
3515 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
3517 | return NULL; | |
3518 | } | |
3519 | } | |
c95e68d8 RD |
3520 | wxPen & _result_ref = wxDC_GetPen(_arg0); |
3521 | _result = (wxPen *) &_result_ref; | |
3522 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
70551f47 RD |
3523 | _resultobj = Py_BuildValue("s",_ptemp); |
3524 | return _resultobj; | |
3525 | } | |
3526 | ||
3527 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
3528 | wxColour* wc = new wxColour(); | |
3529 | self->GetPixel(x, y, wc); | |
3530 | return wc; | |
3531 | } | |
3532 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args) { | |
3533 | PyObject * _resultobj; | |
3534 | wxColour * _result; | |
3535 | wxDC * _arg0; | |
3536 | long _arg1; | |
3537 | long _arg2; | |
3538 | char * _argc0 = 0; | |
3539 | char _ptemp[128]; | |
3540 | ||
3541 | self = self; | |
3542 | if(!PyArg_ParseTuple(args,"sll:wxDC_GetPixel",&_argc0,&_arg1,&_arg2)) | |
3543 | return NULL; | |
3544 | if (_argc0) { | |
3545 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
3547 | return NULL; | |
3548 | } | |
3549 | } | |
3550 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
3551 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3552 | _resultobj = Py_BuildValue("s",_ptemp); | |
3553 | return _resultobj; | |
3554 | } | |
3555 | ||
3556 | #define wxDC_GetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
3557 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args) { | |
3558 | PyObject * _resultobj; | |
3559 | wxDC * _arg0; | |
3560 | int * _arg1; | |
3561 | int temp; | |
3562 | int * _arg2; | |
3563 | int temp0; | |
3564 | char * _argc0 = 0; | |
3565 | ||
3566 | self = self; | |
3567 | { | |
3568 | _arg1 = &temp; | |
3569 | } | |
3570 | { | |
3571 | _arg2 = &temp0; | |
3572 | } | |
3573 | if(!PyArg_ParseTuple(args,"s:wxDC_GetSize",&_argc0)) | |
3574 | return NULL; | |
3575 | if (_argc0) { | |
3576 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); | |
3578 | return NULL; | |
3579 | } | |
3580 | } | |
3581 | wxDC_GetSize(_arg0,_arg1,_arg2); | |
3582 | Py_INCREF(Py_None); | |
3583 | _resultobj = Py_None; | |
3584 | { | |
3585 | PyObject *o; | |
3586 | o = PyInt_FromLong((long) (*_arg1)); | |
3587 | _resultobj = t_output_helper(_resultobj, o); | |
3588 | } | |
3589 | { | |
3590 | PyObject *o; | |
3591 | o = PyInt_FromLong((long) (*_arg2)); | |
3592 | _resultobj = t_output_helper(_resultobj, o); | |
3593 | } | |
3594 | return _resultobj; | |
3595 | } | |
3596 | ||
3597 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
3598 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args) { | |
3599 | PyObject * _resultobj; | |
3600 | wxColour * _result; | |
3601 | wxDC * _arg0; | |
3602 | char * _argc0 = 0; | |
3603 | char _ptemp[128]; | |
3604 | ||
3605 | self = self; | |
3606 | if(!PyArg_ParseTuple(args,"s:wxDC_GetTextBackground",&_argc0)) | |
3607 | return NULL; | |
3608 | if (_argc0) { | |
3609 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
3611 | return NULL; | |
3612 | } | |
3613 | } | |
3614 | wxColour & _result_ref = wxDC_GetTextBackground(_arg0); | |
3615 | _result = (wxColour *) &_result_ref; | |
3616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3617 | _resultobj = Py_BuildValue("s",_ptemp); | |
3618 | return _resultobj; | |
3619 | } | |
3620 | ||
3621 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3622 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args) { | |
3623 | PyObject * _resultobj; | |
3624 | wxDC * _arg0; | |
3625 | wxString * _arg1; | |
3626 | long * _arg2; | |
3627 | long temp; | |
3628 | long * _arg3; | |
3629 | long temp0; | |
3630 | long * _arg4; | |
3631 | long temp1; | |
3632 | long * _arg5; | |
3633 | long temp2; | |
3634 | char * _argc0 = 0; | |
3635 | PyObject * _obj1 = 0; | |
3636 | ||
3637 | self = self; | |
3638 | { | |
3639 | _arg2 = &temp; | |
3640 | } | |
3641 | { | |
3642 | _arg3 = &temp0; | |
3643 | } | |
3644 | { | |
3645 | _arg4 = &temp1; | |
3646 | } | |
3647 | { | |
3648 | _arg5 = &temp2; | |
3649 | } | |
3650 | if(!PyArg_ParseTuple(args,"sO:wxDC_GetTextExtent",&_argc0,&_obj1)) | |
3651 | return NULL; | |
3652 | if (_argc0) { | |
3653 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); | |
3655 | return NULL; | |
3656 | } | |
3657 | } | |
3658 | { | |
3659 | if (!PyString_Check(_obj1)) { | |
3660 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3661 | return NULL; | |
3662 | } | |
3663 | _arg1 = new wxString(PyString_AsString(_obj1)); | |
3664 | } | |
3665 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
3666 | Py_INCREF(Py_None); | |
3667 | _resultobj = Py_None; | |
3668 | { | |
3669 | PyObject *o; | |
3670 | o = PyInt_FromLong((long) (*_arg2)); | |
3671 | _resultobj = t_output_helper(_resultobj, o); | |
3672 | } | |
3673 | { | |
3674 | PyObject *o; | |
3675 | o = PyInt_FromLong((long) (*_arg3)); | |
3676 | _resultobj = t_output_helper(_resultobj, o); | |
3677 | } | |
3678 | { | |
3679 | PyObject *o; | |
3680 | o = PyInt_FromLong((long) (*_arg4)); | |
3681 | _resultobj = t_output_helper(_resultobj, o); | |
3682 | } | |
3683 | { | |
3684 | PyObject *o; | |
3685 | o = PyInt_FromLong((long) (*_arg5)); | |
3686 | _resultobj = t_output_helper(_resultobj, o); | |
3687 | } | |
3688 | { | |
3689 | if (_obj1) | |
3690 | delete _arg1; | |
3691 | } | |
3692 | return _resultobj; | |
3693 | } | |
3694 | ||
3695 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
3696 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args) { | |
3697 | PyObject * _resultobj; | |
3698 | wxColour * _result; | |
3699 | wxDC * _arg0; | |
3700 | char * _argc0 = 0; | |
3701 | char _ptemp[128]; | |
3702 | ||
3703 | self = self; | |
3704 | if(!PyArg_ParseTuple(args,"s:wxDC_GetTextForeground",&_argc0)) | |
3705 | return NULL; | |
3706 | if (_argc0) { | |
3707 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
3709 | return NULL; | |
3710 | } | |
3711 | } | |
3712 | wxColour & _result_ref = wxDC_GetTextForeground(_arg0); | |
3713 | _result = (wxColour *) &_result_ref; | |
3714 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3715 | _resultobj = Py_BuildValue("s",_ptemp); | |
3716 | return _resultobj; | |
3717 | } | |
3718 | ||
3719 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
3720 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args) { | |
3721 | PyObject * _resultobj; | |
3722 | long _result; | |
3723 | wxDC * _arg0; | |
3724 | long _arg1; | |
3725 | char * _argc0 = 0; | |
3726 | ||
3727 | self = self; | |
3728 | if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceX",&_argc0,&_arg1)) | |
3729 | return NULL; | |
3730 | if (_argc0) { | |
3731 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
3737 | _resultobj = Py_BuildValue("l",_result); | |
3738 | return _resultobj; | |
3739 | } | |
3740 | ||
3741 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
3742 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args) { | |
3743 | PyObject * _resultobj; | |
3744 | long _result; | |
3745 | wxDC * _arg0; | |
3746 | long _arg1; | |
3747 | char * _argc0 = 0; | |
3748 | ||
3749 | self = self; | |
3750 | if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceXRel",&_argc0,&_arg1)) | |
3751 | return NULL; | |
3752 | if (_argc0) { | |
3753 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
3755 | return NULL; | |
3756 | } | |
3757 | } | |
3758 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
3759 | _resultobj = Py_BuildValue("l",_result); | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
3763 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
3764 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args) { | |
3765 | PyObject * _resultobj; | |
3766 | long _result; | |
3767 | wxDC * _arg0; | |
3768 | long _arg1; | |
3769 | char * _argc0 = 0; | |
3770 | ||
3771 | self = self; | |
3772 | if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceY",&_argc0,&_arg1)) | |
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_LogicalToDeviceY. Expected _wxDC_p."); | |
3777 | return NULL; | |
3778 | } | |
3779 | } | |
3780 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
3781 | _resultobj = Py_BuildValue("l",_result); | |
3782 | return _resultobj; | |
3783 | } | |
3784 | ||
3785 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
3786 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args) { | |
3787 | PyObject * _resultobj; | |
3788 | long _result; | |
3789 | wxDC * _arg0; | |
3790 | long _arg1; | |
3791 | char * _argc0 = 0; | |
3792 | ||
3793 | self = self; | |
3794 | if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceYRel",&_argc0,&_arg1)) | |
3795 | return NULL; | |
3796 | if (_argc0) { | |
3797 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
3799 | return NULL; | |
3800 | } | |
3801 | } | |
3802 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
3803 | _resultobj = Py_BuildValue("l",_result); | |
3804 | return _resultobj; | |
3805 | } | |
3806 | ||
3807 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
3808 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args) { | |
3809 | PyObject * _resultobj; | |
3810 | long _result; | |
3811 | wxDC * _arg0; | |
3812 | char * _argc0 = 0; | |
3813 | ||
3814 | self = self; | |
3815 | if(!PyArg_ParseTuple(args,"s:wxDC_MaxX",&_argc0)) | |
3816 | return NULL; | |
3817 | if (_argc0) { | |
3818 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
3820 | return NULL; | |
3821 | } | |
3822 | } | |
3823 | _result = (long )wxDC_MaxX(_arg0); | |
3824 | _resultobj = Py_BuildValue("l",_result); | |
3825 | return _resultobj; | |
3826 | } | |
3827 | ||
3828 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
3829 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args) { | |
3830 | PyObject * _resultobj; | |
3831 | long _result; | |
3832 | wxDC * _arg0; | |
3833 | char * _argc0 = 0; | |
3834 | ||
3835 | self = self; | |
3836 | if(!PyArg_ParseTuple(args,"s:wxDC_MaxY",&_argc0)) | |
3837 | return NULL; | |
3838 | if (_argc0) { | |
3839 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
3841 | return NULL; | |
3842 | } | |
3843 | } | |
3844 | _result = (long )wxDC_MaxY(_arg0); | |
3845 | _resultobj = Py_BuildValue("l",_result); | |
3846 | return _resultobj; | |
3847 | } | |
3848 | ||
3849 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
3850 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args) { | |
3851 | PyObject * _resultobj; | |
3852 | long _result; | |
3853 | wxDC * _arg0; | |
3854 | char * _argc0 = 0; | |
3855 | ||
3856 | self = self; | |
3857 | if(!PyArg_ParseTuple(args,"s:wxDC_MinX",&_argc0)) | |
3858 | return NULL; | |
3859 | if (_argc0) { | |
3860 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
3865 | _result = (long )wxDC_MinX(_arg0); | |
3866 | _resultobj = Py_BuildValue("l",_result); | |
3867 | return _resultobj; | |
3868 | } | |
3869 | ||
3870 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
3871 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args) { | |
3872 | PyObject * _resultobj; | |
3873 | long _result; | |
3874 | wxDC * _arg0; | |
3875 | char * _argc0 = 0; | |
3876 | ||
3877 | self = self; | |
3878 | if(!PyArg_ParseTuple(args,"s:wxDC_MinY",&_argc0)) | |
3879 | return NULL; | |
3880 | if (_argc0) { | |
3881 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
3883 | return NULL; | |
3884 | } | |
3885 | } | |
3886 | _result = (long )wxDC_MinY(_arg0); | |
3887 | _resultobj = Py_BuildValue("l",_result); | |
3888 | return _resultobj; | |
3889 | } | |
3890 | ||
3891 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
3892 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args) { | |
3893 | PyObject * _resultobj; | |
3894 | bool _result; | |
3895 | wxDC * _arg0; | |
3896 | char * _argc0 = 0; | |
3897 | ||
3898 | self = self; | |
3899 | if(!PyArg_ParseTuple(args,"s:wxDC_Ok",&_argc0)) | |
3900 | return NULL; | |
3901 | if (_argc0) { | |
3902 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
3904 | return NULL; | |
3905 | } | |
3906 | } | |
3907 | _result = (bool )wxDC_Ok(_arg0); | |
3908 | _resultobj = Py_BuildValue("i",_result); | |
3909 | return _resultobj; | |
3910 | } | |
3911 | ||
3912 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
3913 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args) { | |
3914 | PyObject * _resultobj; | |
3915 | wxDC * _arg0; | |
3916 | long _arg1; | |
3917 | long _arg2; | |
3918 | char * _argc0 = 0; | |
3919 | ||
3920 | self = self; | |
3921 | if(!PyArg_ParseTuple(args,"sll:wxDC_SetDeviceOrigin",&_argc0,&_arg1,&_arg2)) | |
3922 | return NULL; | |
3923 | if (_argc0) { | |
3924 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
3926 | return NULL; | |
3927 | } | |
3928 | } | |
3929 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
3930 | Py_INCREF(Py_None); | |
3931 | _resultobj = Py_None; | |
3932 | return _resultobj; | |
3933 | } | |
3934 | ||
3935 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
3936 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args) { | |
3937 | PyObject * _resultobj; | |
3938 | wxDC * _arg0; | |
3939 | wxBrush * _arg1; | |
3940 | char * _argc0 = 0; | |
3941 | char * _argc1 = 0; | |
3942 | ||
3943 | self = self; | |
3944 | if(!PyArg_ParseTuple(args,"ss:wxDC_SetBackground",&_argc0,&_argc1)) | |
3945 | return NULL; | |
3946 | if (_argc0) { | |
3947 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
3949 | return NULL; | |
3950 | } | |
3951 | } | |
3952 | if (_argc1) { | |
3953 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBrush_p")) { | |
3954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
3955 | return NULL; | |
3956 | } | |
3957 | } | |
3958 | wxDC_SetBackground(_arg0,*_arg1); | |
3959 | Py_INCREF(Py_None); | |
3960 | _resultobj = Py_None; | |
3961 | return _resultobj; | |
3962 | } | |
3963 | ||
3964 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
3965 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args) { | |
3966 | PyObject * _resultobj; | |
3967 | wxDC * _arg0; | |
3968 | int _arg1; | |
3969 | char * _argc0 = 0; | |
3970 | ||
3971 | self = self; | |
3972 | if(!PyArg_ParseTuple(args,"si:wxDC_SetBackgroundMode",&_argc0,&_arg1)) | |
3973 | return NULL; | |
3974 | if (_argc0) { | |
3975 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
3976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
3977 | return NULL; | |
3978 | } | |
3979 | } | |
3980 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
3981 | Py_INCREF(Py_None); | |
3982 | _resultobj = Py_None; | |
3983 | return _resultobj; | |
3984 | } | |
3985 | ||
3986 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3987 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args) { | |
3988 | PyObject * _resultobj; | |
3989 | wxDC * _arg0; | |
3990 | long _arg1; | |
3991 | long _arg2; | |
3992 | long _arg3; | |
3993 | long _arg4; | |
3994 | char * _argc0 = 0; | |
3995 | ||
3996 | self = self; | |
3997 | if(!PyArg_ParseTuple(args,"sllll:wxDC_SetClippingRegion",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3998 | return NULL; | |
3999 | if (_argc0) { | |
4000 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
4002 | return NULL; | |
4003 | } | |
4004 | } | |
4005 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4006 | Py_INCREF(Py_None); | |
4007 | _resultobj = Py_None; | |
4008 | return _resultobj; | |
4009 | } | |
4010 | ||
4011 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
4012 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args) { | |
4013 | PyObject * _resultobj; | |
4014 | wxDC * _arg0; | |
4015 | wxPalette * _arg1; | |
4016 | char * _argc0 = 0; | |
4017 | char * _argc1 = 0; | |
4018 | ||
4019 | self = self; | |
4020 | if(!PyArg_ParseTuple(args,"ss:wxDC_SetPalette",&_argc0,&_argc1)) | |
4021 | return NULL; | |
4022 | if (_argc0) { | |
4023 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
4025 | return NULL; | |
4026 | } | |
4027 | } | |
4028 | if (_argc1) { | |
4029 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPalette_p")) { | |
4030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
4031 | return NULL; | |
4032 | } | |
4033 | } | |
4034 | wxDC_SetPalette(_arg0,*_arg1); | |
4035 | Py_INCREF(Py_None); | |
4036 | _resultobj = Py_None; | |
4037 | return _resultobj; | |
4038 | } | |
4039 | ||
4040 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
4041 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args) { | |
4042 | PyObject * _resultobj; | |
4043 | wxDC * _arg0; | |
4044 | wxBrush * _arg1; | |
4045 | char * _argc0 = 0; | |
4046 | char * _argc1 = 0; | |
4047 | ||
4048 | self = self; | |
4049 | if(!PyArg_ParseTuple(args,"ss:wxDC_SetBrush",&_argc0,&_argc1)) | |
4050 | return NULL; | |
4051 | if (_argc0) { | |
4052 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
4054 | return NULL; | |
4055 | } | |
4056 | } | |
4057 | if (_argc1) { | |
4058 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBrush_p")) { | |
4059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
4060 | return NULL; | |
4061 | } | |
4062 | } | |
4063 | wxDC_SetBrush(_arg0,*_arg1); | |
4064 | Py_INCREF(Py_None); | |
4065 | _resultobj = Py_None; | |
4066 | return _resultobj; | |
4067 | } | |
4068 | ||
4069 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
4070 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args) { | |
4071 | PyObject * _resultobj; | |
4072 | wxDC * _arg0; | |
4073 | wxFont * _arg1; | |
4074 | char * _argc0 = 0; | |
4075 | char * _argc1 = 0; | |
4076 | ||
4077 | self = self; | |
4078 | if(!PyArg_ParseTuple(args,"ss:wxDC_SetFont",&_argc0,&_argc1)) | |
4079 | return NULL; | |
4080 | if (_argc0) { | |
4081 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
4083 | return NULL; | |
4084 | } | |
4085 | } | |
4086 | if (_argc1) { | |
4087 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxFont_p")) { | |
4088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
4089 | return NULL; | |
4090 | } | |
4091 | } | |
4092 | wxDC_SetFont(_arg0,*_arg1); | |
4093 | Py_INCREF(Py_None); | |
4094 | _resultobj = Py_None; | |
4095 | return _resultobj; | |
4096 | } | |
4097 | ||
4098 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
4099 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args) { | |
4100 | PyObject * _resultobj; | |
4101 | wxDC * _arg0; | |
4102 | int _arg1; | |
4103 | char * _argc0 = 0; | |
4104 | ||
4105 | self = self; | |
4106 | if(!PyArg_ParseTuple(args,"si:wxDC_SetLogicalFunction",&_argc0,&_arg1)) | |
4107 | return NULL; | |
4108 | if (_argc0) { | |
4109 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
4111 | return NULL; | |
4112 | } | |
4113 | } | |
4114 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
4115 | Py_INCREF(Py_None); | |
4116 | _resultobj = Py_None; | |
4117 | return _resultobj; | |
4118 | } | |
4119 | ||
4120 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
4121 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args) { | |
4122 | PyObject * _resultobj; | |
4123 | wxDC * _arg0; | |
4124 | int _arg1; | |
4125 | char * _argc0 = 0; | |
4126 | ||
4127 | self = self; | |
4128 | if(!PyArg_ParseTuple(args,"si:wxDC_SetMapMode",&_argc0,&_arg1)) | |
4129 | return NULL; | |
4130 | if (_argc0) { | |
4131 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); | |
4133 | return NULL; | |
4134 | } | |
4135 | } | |
4136 | wxDC_SetMapMode(_arg0,_arg1); | |
4137 | Py_INCREF(Py_None); | |
4138 | _resultobj = Py_None; | |
4139 | return _resultobj; | |
4140 | } | |
4141 | ||
4142 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
4143 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args) { | |
4144 | PyObject * _resultobj; | |
4145 | wxDC * _arg0; | |
4146 | bool _arg1; | |
4147 | char * _argc0 = 0; | |
4148 | int tempbool1; | |
4149 | ||
4150 | self = self; | |
4151 | if(!PyArg_ParseTuple(args,"si:wxDC_SetOptimization",&_argc0,&tempbool1)) | |
4152 | return NULL; | |
4153 | if (_argc0) { | |
4154 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
4156 | return NULL; | |
4157 | } | |
4158 | } | |
4159 | _arg1 = (bool ) tempbool1; | |
4160 | wxDC_SetOptimization(_arg0,_arg1); | |
4161 | Py_INCREF(Py_None); | |
4162 | _resultobj = Py_None; | |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
4166 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
4167 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args) { | |
4168 | PyObject * _resultobj; | |
4169 | wxDC * _arg0; | |
4170 | wxPen * _arg1; | |
4171 | char * _argc0 = 0; | |
4172 | char * _argc1 = 0; | |
4173 | ||
4174 | self = self; | |
4175 | if(!PyArg_ParseTuple(args,"ss:wxDC_SetPen",&_argc0,&_argc1)) | |
4176 | return NULL; | |
4177 | if (_argc0) { | |
4178 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
4180 | return NULL; | |
4181 | } | |
4182 | } | |
4183 | if (_argc1) { | |
4184 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPen_p")) { | |
4185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
4186 | return NULL; | |
4187 | } | |
4188 | } | |
4189 | wxDC_SetPen(_arg0,*_arg1); | |
4190 | Py_INCREF(Py_None); | |
4191 | _resultobj = Py_None; | |
4192 | return _resultobj; | |
4193 | } | |
4194 | ||
4195 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
4196 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args) { | |
4197 | PyObject * _resultobj; | |
4198 | wxDC * _arg0; | |
4199 | wxColour * _arg1; | |
4200 | char * _argc0 = 0; | |
4201 | char * _argc1 = 0; | |
4202 | ||
4203 | self = self; | |
4204 | if(!PyArg_ParseTuple(args,"ss:wxDC_SetTextBackground",&_argc0,&_argc1)) | |
4205 | return NULL; | |
4206 | if (_argc0) { | |
4207 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
4212 | if (_argc1) { | |
4213 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) { | |
4214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextBackground. Expected _wxColour_p."); | |
4215 | return NULL; | |
4216 | } | |
4217 | } | |
4218 | wxDC_SetTextBackground(_arg0,*_arg1); | |
4219 | Py_INCREF(Py_None); | |
4220 | _resultobj = Py_None; | |
4221 | return _resultobj; | |
4222 | } | |
4223 | ||
4224 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
4225 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args) { | |
4226 | PyObject * _resultobj; | |
4227 | wxDC * _arg0; | |
4228 | wxColour * _arg1; | |
4229 | char * _argc0 = 0; | |
4230 | char * _argc1 = 0; | |
4231 | ||
4232 | self = self; | |
4233 | if(!PyArg_ParseTuple(args,"ss:wxDC_SetTextForeground",&_argc0,&_argc1)) | |
4234 | return NULL; | |
4235 | if (_argc0) { | |
4236 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
4238 | return NULL; | |
4239 | } | |
4240 | } | |
4241 | if (_argc1) { | |
4242 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) { | |
4243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextForeground. Expected _wxColour_p."); | |
4244 | return NULL; | |
4245 | } | |
4246 | } | |
4247 | wxDC_SetTextForeground(_arg0,*_arg1); | |
4248 | Py_INCREF(Py_None); | |
4249 | _resultobj = Py_None; | |
4250 | return _resultobj; | |
4251 | } | |
4252 | ||
4253 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
4254 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args) { | |
4255 | PyObject * _resultobj; | |
4256 | wxDC * _arg0; | |
4257 | double _arg1; | |
4258 | double _arg2; | |
4259 | char * _argc0 = 0; | |
4260 | ||
4261 | self = self; | |
4262 | if(!PyArg_ParseTuple(args,"sdd:wxDC_SetUserScale",&_argc0,&_arg1,&_arg2)) | |
4263 | return NULL; | |
4264 | if (_argc0) { | |
4265 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); | |
4267 | return NULL; | |
4268 | } | |
4269 | } | |
4270 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
4271 | Py_INCREF(Py_None); | |
4272 | _resultobj = Py_None; | |
4273 | return _resultobj; | |
4274 | } | |
4275 | ||
4276 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
4277 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args) { | |
4278 | PyObject * _resultobj; | |
4279 | bool _result; | |
4280 | wxDC * _arg0; | |
4281 | wxString * _arg1; | |
4282 | char * _argc0 = 0; | |
4283 | PyObject * _obj1 = 0; | |
4284 | ||
4285 | self = self; | |
4286 | if(!PyArg_ParseTuple(args,"sO:wxDC_StartDoc",&_argc0,&_obj1)) | |
4287 | return NULL; | |
4288 | if (_argc0) { | |
4289 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
4291 | return NULL; | |
4292 | } | |
4293 | } | |
4294 | { | |
4295 | if (!PyString_Check(_obj1)) { | |
4296 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4297 | return NULL; | |
4298 | } | |
4299 | _arg1 = new wxString(PyString_AsString(_obj1)); | |
4300 | } | |
4301 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
4302 | _resultobj = Py_BuildValue("i",_result); | |
4303 | { | |
4304 | if (_obj1) | |
4305 | delete _arg1; | |
4306 | } | |
4307 | return _resultobj; | |
4308 | } | |
4309 | ||
4310 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
4311 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args) { | |
4312 | PyObject * _resultobj; | |
4313 | wxDC * _arg0; | |
4314 | char * _argc0 = 0; | |
4315 | ||
4316 | self = self; | |
4317 | if(!PyArg_ParseTuple(args,"s:wxDC_StartPage",&_argc0)) | |
4318 | return NULL; | |
4319 | if (_argc0) { | |
4320 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); | |
4322 | return NULL; | |
4323 | } | |
4324 | } | |
4325 | wxDC_StartPage(_arg0); | |
4326 | Py_INCREF(Py_None); | |
4327 | _resultobj = Py_None; | |
4328 | return _resultobj; | |
4329 | } | |
4330 | ||
105e45b9 | 4331 | static void wxDC_DrawBitmap(wxDC *self,wxBitmap & bitmap,long x,long y,bool swapPalette) { |
70551f47 RD |
4332 | wxMemoryDC* memDC = new wxMemoryDC; |
4333 | memDC->SelectObject(bitmap); | |
4334 | if (swapPalette) | |
105e45b9 RD |
4335 | self->SetPalette(*bitmap.GetPalette()); |
4336 | self->Blit(x, y, bitmap.GetWidth(), bitmap.GetHeight(), memDC, | |
70551f47 RD |
4337 | 0, 0, self->GetLogicalFunction()); |
4338 | memDC->SelectObject(wxNullBitmap); | |
4339 | delete memDC; | |
4340 | } | |
4341 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args) { | |
4342 | PyObject * _resultobj; | |
4343 | wxDC * _arg0; | |
4344 | wxBitmap * _arg1; | |
4345 | long _arg2; | |
4346 | long _arg3; | |
4347 | bool _arg4 = (1); | |
4348 | char * _argc0 = 0; | |
4349 | char * _argc1 = 0; | |
4350 | int tempbool4; | |
4351 | ||
4352 | self = self; | |
4353 | if(!PyArg_ParseTuple(args,"ssll|i:wxDC_DrawBitmap",&_argc0,&_argc1,&_arg2,&_arg3,&tempbool4)) | |
4354 | return NULL; | |
4355 | if (_argc0) { | |
4356 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) { | |
4357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
4358 | return NULL; | |
4359 | } | |
4360 | } | |
4361 | if (_argc1) { | |
4362 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBitmap_p")) { | |
4363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
4364 | return NULL; | |
4365 | } | |
4366 | } | |
4367 | _arg4 = (bool ) tempbool4; | |
105e45b9 | 4368 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
70551f47 RD |
4369 | Py_INCREF(Py_None); |
4370 | _resultobj = Py_None; | |
4371 | return _resultobj; | |
4372 | } | |
4373 | ||
4374 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
4375 | wxMemoryDC *src; | |
4376 | wxDC *dest; | |
4377 | src = (wxMemoryDC *) ptr; | |
4378 | dest = (wxDC *) src; | |
4379 | return (void *) dest; | |
4380 | } | |
4381 | ||
4382 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
4383 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args) { | |
4384 | PyObject * _resultobj; | |
4385 | wxMemoryDC * _result; | |
4386 | char _ptemp[128]; | |
4387 | ||
4388 | self = self; | |
4389 | if(!PyArg_ParseTuple(args,":new_wxMemoryDC")) | |
4390 | return NULL; | |
4391 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
4392 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
4393 | _resultobj = Py_BuildValue("s",_ptemp); | |
4394 | return _resultobj; | |
4395 | } | |
4396 | ||
4397 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
4398 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args) { | |
4399 | PyObject * _resultobj; | |
4400 | wxMemoryDC * _arg0; | |
4401 | wxBitmap * _arg1; | |
4402 | char * _argc0 = 0; | |
4403 | char * _argc1 = 0; | |
4404 | ||
4405 | self = self; | |
4406 | if(!PyArg_ParseTuple(args,"ss:wxMemoryDC_SelectObject",&_argc0,&_argc1)) | |
4407 | return NULL; | |
4408 | if (_argc0) { | |
4409 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
4411 | return NULL; | |
4412 | } | |
4413 | } | |
4414 | if (_argc1) { | |
4415 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBitmap_p")) { | |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
4417 | return NULL; | |
4418 | } | |
4419 | } | |
4420 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
4421 | Py_INCREF(Py_None); | |
4422 | _resultobj = Py_None; | |
4423 | return _resultobj; | |
4424 | } | |
4425 | ||
4426 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
4427 | wxScreenDC *src; | |
4428 | wxDC *dest; | |
4429 | src = (wxScreenDC *) ptr; | |
4430 | dest = (wxDC *) src; | |
4431 | return (void *) dest; | |
4432 | } | |
4433 | ||
4434 | #define new_wxScreenDC() (new wxScreenDC()) | |
4435 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args) { | |
4436 | PyObject * _resultobj; | |
4437 | wxScreenDC * _result; | |
4438 | char _ptemp[128]; | |
4439 | ||
4440 | self = self; | |
4441 | if(!PyArg_ParseTuple(args,":new_wxScreenDC")) | |
4442 | return NULL; | |
4443 | _result = (wxScreenDC *)new_wxScreenDC(); | |
4444 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
4445 | _resultobj = Py_BuildValue("s",_ptemp); | |
4446 | return _resultobj; | |
4447 | } | |
4448 | ||
4449 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
4450 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args) { | |
4451 | PyObject * _resultobj; | |
4452 | bool _result; | |
4453 | wxScreenDC * _arg0; | |
4454 | wxWindow * _arg1; | |
4455 | char * _argc0 = 0; | |
4456 | char * _argc1 = 0; | |
4457 | ||
4458 | self = self; | |
4459 | if(!PyArg_ParseTuple(args,"ss:wxScreenDC_StartDrawingOnTop",&_argc0,&_argc1)) | |
4460 | return NULL; | |
4461 | if (_argc0) { | |
4462 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxScreenDC_p")) { | |
4463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
4464 | return NULL; | |
4465 | } | |
4466 | } | |
4467 | if (_argc1) { | |
4468 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxWindow_p")) { | |
4469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTop. Expected _wxWindow_p."); | |
4470 | return NULL; | |
4471 | } | |
4472 | } | |
4473 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); | |
4474 | _resultobj = Py_BuildValue("i",_result); | |
4475 | return _resultobj; | |
4476 | } | |
4477 | ||
4478 | #define wxScreenDC_StartDrawingOnTopRect(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
4479 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopRect(PyObject *self, PyObject *args) { | |
4480 | PyObject * _resultobj; | |
4481 | bool _result; | |
4482 | wxScreenDC * _arg0; | |
4483 | wxRect * _arg1 = NULL; | |
4484 | char * _argc0 = 0; | |
4485 | char * _argc1 = 0; | |
4486 | ||
4487 | self = self; | |
4488 | if(!PyArg_ParseTuple(args,"s|s:wxScreenDC_StartDrawingOnTopRect",&_argc0,&_argc1)) | |
4489 | return NULL; | |
4490 | if (_argc0) { | |
4491 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxScreenDC_p")) { | |
4492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopRect. Expected _wxScreenDC_p."); | |
4493 | return NULL; | |
4494 | } | |
4495 | } | |
4496 | if (_argc1) { | |
4497 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxRect_p")) { | |
4498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopRect. Expected _wxRect_p."); | |
4499 | return NULL; | |
4500 | } | |
4501 | } | |
4502 | _result = (bool )wxScreenDC_StartDrawingOnTopRect(_arg0,_arg1); | |
4503 | _resultobj = Py_BuildValue("i",_result); | |
4504 | return _resultobj; | |
4505 | } | |
4506 | ||
4507 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
4508 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args) { | |
4509 | PyObject * _resultobj; | |
4510 | bool _result; | |
4511 | wxScreenDC * _arg0; | |
4512 | char * _argc0 = 0; | |
4513 | ||
4514 | self = self; | |
4515 | if(!PyArg_ParseTuple(args,"s:wxScreenDC_EndDrawingOnTop",&_argc0)) | |
4516 | return NULL; | |
4517 | if (_argc0) { | |
4518 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxScreenDC_p")) { | |
4519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
4520 | return NULL; | |
4521 | } | |
4522 | } | |
4523 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
4524 | _resultobj = Py_BuildValue("i",_result); | |
4525 | return _resultobj; | |
4526 | } | |
4527 | ||
4528 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
4529 | wxClientDC *src; | |
4530 | wxDC *dest; | |
4531 | src = (wxClientDC *) ptr; | |
4532 | dest = (wxDC *) src; | |
4533 | return (void *) dest; | |
4534 | } | |
4535 | ||
4536 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
4537 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args) { | |
4538 | PyObject * _resultobj; | |
4539 | wxClientDC * _result; | |
4540 | wxWindow * _arg0; | |
4541 | char * _argc0 = 0; | |
4542 | char _ptemp[128]; | |
4543 | ||
4544 | self = self; | |
4545 | if(!PyArg_ParseTuple(args,"s:new_wxClientDC",&_argc0)) | |
4546 | return NULL; | |
4547 | if (_argc0) { | |
4548 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) { | |
4549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
4550 | return NULL; | |
4551 | } | |
4552 | } | |
4553 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
4554 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
4555 | _resultobj = Py_BuildValue("s",_ptemp); | |
4556 | return _resultobj; | |
4557 | } | |
4558 | ||
4559 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
4560 | wxPaintDC *src; | |
4561 | wxDC *dest; | |
4562 | src = (wxPaintDC *) ptr; | |
4563 | dest = (wxDC *) src; | |
4564 | return (void *) dest; | |
4565 | } | |
4566 | ||
4567 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
4568 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args) { | |
4569 | PyObject * _resultobj; | |
4570 | wxPaintDC * _result; | |
4571 | wxWindow * _arg0; | |
4572 | char * _argc0 = 0; | |
4573 | char _ptemp[128]; | |
4574 | ||
4575 | self = self; | |
4576 | if(!PyArg_ParseTuple(args,"s:new_wxPaintDC",&_argc0)) | |
4577 | return NULL; | |
4578 | if (_argc0) { | |
4579 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) { | |
4580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
4581 | return NULL; | |
4582 | } | |
4583 | } | |
4584 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
4585 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
4586 | _resultobj = Py_BuildValue("s",_ptemp); | |
4587 | return _resultobj; | |
4588 | } | |
4589 | ||
c95e68d8 RD |
4590 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
4591 | wxWindowDC *src; | |
4592 | wxDC *dest; | |
4593 | src = (wxWindowDC *) ptr; | |
4594 | dest = (wxDC *) src; | |
4595 | return (void *) dest; | |
4596 | } | |
4597 | ||
4598 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
4599 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args) { | |
4600 | PyObject * _resultobj; | |
4601 | wxWindowDC * _result; | |
4602 | wxWindow * _arg0; | |
4603 | char * _argc0 = 0; | |
4604 | char _ptemp[128]; | |
4605 | ||
4606 | self = self; | |
4607 | if(!PyArg_ParseTuple(args,"s:new_wxWindowDC",&_argc0)) | |
4608 | return NULL; | |
4609 | if (_argc0) { | |
4610 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) { | |
4611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
4612 | return NULL; | |
4613 | } | |
4614 | } | |
4615 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
4616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
4617 | _resultobj = Py_BuildValue("s",_ptemp); | |
4618 | return _resultobj; | |
4619 | } | |
4620 | ||
70551f47 RD |
4621 | static void *SwigwxPostScriptDCTowxDC(void *ptr) { |
4622 | wxPostScriptDC *src; | |
4623 | wxDC *dest; | |
4624 | src = (wxPostScriptDC *) ptr; | |
4625 | dest = (wxDC *) src; | |
4626 | return (void *) dest; | |
4627 | } | |
4628 | ||
4629 | #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2)) | |
4630 | static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args) { | |
4631 | PyObject * _resultobj; | |
4632 | wxPostScriptDC * _result; | |
4633 | wxString * _arg0; | |
4634 | bool _arg1 = (1); | |
4635 | wxWindow * _arg2 = NULL; | |
4636 | PyObject * _obj0 = 0; | |
4637 | int tempbool1; | |
4638 | char * _argc2 = 0; | |
4639 | char _ptemp[128]; | |
4640 | ||
4641 | self = self; | |
4642 | if(!PyArg_ParseTuple(args,"O|is:new_wxPostScriptDC",&_obj0,&tempbool1,&_argc2)) | |
4643 | return NULL; | |
4644 | { | |
4645 | if (!PyString_Check(_obj0)) { | |
4646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4647 | return NULL; | |
4648 | } | |
4649 | _arg0 = new wxString(PyString_AsString(_obj0)); | |
4650 | } | |
4651 | _arg1 = (bool ) tempbool1; | |
4652 | if (_argc2) { | |
4653 | if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_wxWindow_p")) { | |
4654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p."); | |
4655 | return NULL; | |
4656 | } | |
4657 | } | |
4658 | _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2); | |
4659 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p"); | |
4660 | _resultobj = Py_BuildValue("s",_ptemp); | |
4661 | { | |
4662 | if (_obj0) | |
4663 | delete _arg0; | |
4664 | } | |
4665 | return _resultobj; | |
4666 | } | |
4667 | ||
105e45b9 RD |
4668 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4669 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args) { | |
4670 | PyObject * _resultobj; | |
4671 | wxPalette * _result; | |
4672 | int _arg0; | |
4673 | byte * _arg1; | |
4674 | byte * _arg2; | |
4675 | byte * _arg3; | |
4676 | PyObject * _obj1 = 0; | |
4677 | PyObject * _obj2 = 0; | |
4678 | PyObject * _obj3 = 0; | |
4679 | char _ptemp[128]; | |
4680 | ||
4681 | self = self; | |
4682 | if(!PyArg_ParseTuple(args,"OOO:new_wxPalette",&_obj1,&_obj2,&_obj3)) | |
4683 | return NULL; | |
4684 | { | |
4685 | _arg1 = byte_LIST_helper(_obj1); | |
4686 | if (_arg1 == NULL) { | |
4687 | return NULL; | |
4688 | } | |
4689 | } | |
4690 | { | |
4691 | _arg2 = byte_LIST_helper(_obj2); | |
4692 | if (_arg2 == NULL) { | |
4693 | return NULL; | |
4694 | } | |
4695 | } | |
4696 | if (_obj3) | |
4697 | { | |
4698 | _arg3 = byte_LIST_helper(_obj3); | |
4699 | if (_arg3 == NULL) { | |
4700 | return NULL; | |
4701 | } | |
4702 | } | |
4703 | { | |
4704 | _arg0 = PyList_Size(_obj1); | |
4705 | } | |
4706 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
4707 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
4708 | _resultobj = Py_BuildValue("s",_ptemp); | |
4709 | { | |
4710 | delete [] _arg1; | |
4711 | } | |
4712 | { | |
4713 | delete [] _arg2; | |
4714 | } | |
4715 | { | |
4716 | delete [] _arg3; | |
4717 | } | |
4718 | return _resultobj; | |
4719 | } | |
4720 | ||
4721 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
4722 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args) { | |
4723 | PyObject * _resultobj; | |
4724 | wxPalette * _arg0; | |
4725 | char * _argc0 = 0; | |
4726 | ||
4727 | self = self; | |
4728 | if(!PyArg_ParseTuple(args,"s:delete_wxPalette",&_argc0)) | |
4729 | return NULL; | |
4730 | if (_argc0) { | |
4731 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPalette_p")) { | |
4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
4733 | return NULL; | |
4734 | } | |
4735 | } | |
4736 | delete_wxPalette(_arg0); | |
4737 | Py_INCREF(Py_None); | |
4738 | _resultobj = Py_None; | |
4739 | return _resultobj; | |
4740 | } | |
4741 | ||
4742 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
4743 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args) { | |
4744 | PyObject * _resultobj; | |
4745 | int _result; | |
4746 | wxPalette * _arg0; | |
4747 | byte _arg1; | |
4748 | byte _arg2; | |
4749 | byte _arg3; | |
4750 | char * _argc0 = 0; | |
4751 | ||
4752 | self = self; | |
4753 | if(!PyArg_ParseTuple(args,"sbbb:wxPalette_GetPixel",&_argc0,&_arg1,&_arg2,&_arg3)) | |
4754 | return NULL; | |
4755 | if (_argc0) { | |
4756 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPalette_p")) { | |
4757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
4758 | return NULL; | |
4759 | } | |
4760 | } | |
4761 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
4762 | _resultobj = Py_BuildValue("i",_result); | |
4763 | return _resultobj; | |
4764 | } | |
4765 | ||
4766 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4767 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args) { | |
4768 | PyObject * _resultobj; | |
4769 | bool _result; | |
4770 | wxPalette * _arg0; | |
4771 | int _arg1; | |
4772 | byte * _arg2; | |
4773 | byte * _arg3; | |
4774 | byte * _arg4; | |
4775 | char * _argc0 = 0; | |
4776 | char * _argc2 = 0; | |
4777 | char * _argc3 = 0; | |
4778 | char * _argc4 = 0; | |
4779 | ||
4780 | self = self; | |
4781 | if(!PyArg_ParseTuple(args,"sisss:wxPalette_GetRGB",&_argc0,&_arg1,&_argc2,&_argc3,&_argc4)) | |
4782 | return NULL; | |
4783 | if (_argc0) { | |
4784 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPalette_p")) { | |
4785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
4786 | return NULL; | |
4787 | } | |
4788 | } | |
4789 | if (_argc2) { | |
4790 | if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_byte_p")) { | |
4791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); | |
4792 | return NULL; | |
4793 | } | |
4794 | } | |
4795 | if (_argc3) { | |
4796 | if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_byte_p")) { | |
4797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); | |
4798 | return NULL; | |
4799 | } | |
4800 | } | |
4801 | if (_argc4) { | |
4802 | if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_byte_p")) { | |
4803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); | |
4804 | return NULL; | |
4805 | } | |
4806 | } | |
4807 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4808 | _resultobj = Py_BuildValue("i",_result); | |
4809 | return _resultobj; | |
4810 | } | |
4811 | ||
4812 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
4813 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args) { | |
4814 | PyObject * _resultobj; | |
4815 | bool _result; | |
4816 | wxPalette * _arg0; | |
4817 | char * _argc0 = 0; | |
4818 | ||
4819 | self = self; | |
4820 | if(!PyArg_ParseTuple(args,"s:wxPalette_Ok",&_argc0)) | |
4821 | return NULL; | |
4822 | if (_argc0) { | |
4823 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPalette_p")) { | |
4824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
4825 | return NULL; | |
4826 | } | |
4827 | } | |
4828 | _result = (bool )wxPalette_Ok(_arg0); | |
4829 | _resultobj = Py_BuildValue("i",_result); | |
4830 | return _resultobj; | |
4831 | } | |
4832 | ||
70551f47 | 4833 | static PyMethodDef gdicMethods[] = { |
105e45b9 RD |
4834 | { "wxPalette_Ok", _wrap_wxPalette_Ok, 1 }, |
4835 | { "wxPalette_GetRGB", _wrap_wxPalette_GetRGB, 1 }, | |
4836 | { "wxPalette_GetPixel", _wrap_wxPalette_GetPixel, 1 }, | |
4837 | { "delete_wxPalette", _wrap_delete_wxPalette, 1 }, | |
4838 | { "new_wxPalette", _wrap_new_wxPalette, 1 }, | |
70551f47 | 4839 | { "new_wxPostScriptDC", _wrap_new_wxPostScriptDC, 1 }, |
c95e68d8 | 4840 | { "new_wxWindowDC", _wrap_new_wxWindowDC, 1 }, |
70551f47 RD |
4841 | { "new_wxPaintDC", _wrap_new_wxPaintDC, 1 }, |
4842 | { "new_wxClientDC", _wrap_new_wxClientDC, 1 }, | |
4843 | { "wxScreenDC_EndDrawingOnTop", _wrap_wxScreenDC_EndDrawingOnTop, 1 }, | |
4844 | { "wxScreenDC_StartDrawingOnTopRect", _wrap_wxScreenDC_StartDrawingOnTopRect, 1 }, | |
4845 | { "wxScreenDC_StartDrawingOnTop", _wrap_wxScreenDC_StartDrawingOnTop, 1 }, | |
4846 | { "new_wxScreenDC", _wrap_new_wxScreenDC, 1 }, | |
4847 | { "wxMemoryDC_SelectObject", _wrap_wxMemoryDC_SelectObject, 1 }, | |
4848 | { "new_wxMemoryDC", _wrap_new_wxMemoryDC, 1 }, | |
4849 | { "wxDC_DrawBitmap", _wrap_wxDC_DrawBitmap, 1 }, | |
4850 | { "wxDC_StartPage", _wrap_wxDC_StartPage, 1 }, | |
4851 | { "wxDC_StartDoc", _wrap_wxDC_StartDoc, 1 }, | |
4852 | { "wxDC_SetUserScale", _wrap_wxDC_SetUserScale, 1 }, | |
4853 | { "wxDC_SetTextForeground", _wrap_wxDC_SetTextForeground, 1 }, | |
4854 | { "wxDC_SetTextBackground", _wrap_wxDC_SetTextBackground, 1 }, | |
4855 | { "wxDC_SetPen", _wrap_wxDC_SetPen, 1 }, | |
4856 | { "wxDC_SetOptimization", _wrap_wxDC_SetOptimization, 1 }, | |
4857 | { "wxDC_SetMapMode", _wrap_wxDC_SetMapMode, 1 }, | |
4858 | { "wxDC_SetLogicalFunction", _wrap_wxDC_SetLogicalFunction, 1 }, | |
4859 | { "wxDC_SetFont", _wrap_wxDC_SetFont, 1 }, | |
4860 | { "wxDC_SetBrush", _wrap_wxDC_SetBrush, 1 }, | |
4861 | { "wxDC_SetPalette", _wrap_wxDC_SetPalette, 1 }, | |
4862 | { "wxDC_SetClippingRegion", _wrap_wxDC_SetClippingRegion, 1 }, | |
4863 | { "wxDC_SetBackgroundMode", _wrap_wxDC_SetBackgroundMode, 1 }, | |
4864 | { "wxDC_SetBackground", _wrap_wxDC_SetBackground, 1 }, | |
4865 | { "wxDC_SetDeviceOrigin", _wrap_wxDC_SetDeviceOrigin, 1 }, | |
4866 | { "wxDC_Ok", _wrap_wxDC_Ok, 1 }, | |
4867 | { "wxDC_MinY", _wrap_wxDC_MinY, 1 }, | |
4868 | { "wxDC_MinX", _wrap_wxDC_MinX, 1 }, | |
4869 | { "wxDC_MaxY", _wrap_wxDC_MaxY, 1 }, | |
4870 | { "wxDC_MaxX", _wrap_wxDC_MaxX, 1 }, | |
4871 | { "wxDC_LogicalToDeviceYRel", _wrap_wxDC_LogicalToDeviceYRel, 1 }, | |
4872 | { "wxDC_LogicalToDeviceY", _wrap_wxDC_LogicalToDeviceY, 1 }, | |
4873 | { "wxDC_LogicalToDeviceXRel", _wrap_wxDC_LogicalToDeviceXRel, 1 }, | |
4874 | { "wxDC_LogicalToDeviceX", _wrap_wxDC_LogicalToDeviceX, 1 }, | |
4875 | { "wxDC_GetTextForeground", _wrap_wxDC_GetTextForeground, 1 }, | |
4876 | { "wxDC_GetTextExtent", _wrap_wxDC_GetTextExtent, 1 }, | |
4877 | { "wxDC_GetTextBackground", _wrap_wxDC_GetTextBackground, 1 }, | |
4878 | { "wxDC_GetSize", _wrap_wxDC_GetSize, 1 }, | |
4879 | { "wxDC_GetPixel", _wrap_wxDC_GetPixel, 1 }, | |
4880 | { "wxDC_GetPen", _wrap_wxDC_GetPen, 1 }, | |
4881 | { "wxDC_GetOptimization", _wrap_wxDC_GetOptimization, 1 }, | |
4882 | { "wxDC_GetMapMode", _wrap_wxDC_GetMapMode, 1 }, | |
4883 | { "wxDC_GetLogicalFunction", _wrap_wxDC_GetLogicalFunction, 1 }, | |
4884 | { "wxDC_GetFont", _wrap_wxDC_GetFont, 1 }, | |
4885 | { "wxDC_GetClippingBox", _wrap_wxDC_GetClippingBox, 1 }, | |
4886 | { "wxDC_GetCharWidth", _wrap_wxDC_GetCharWidth, 1 }, | |
4887 | { "wxDC_GetCharHeight", _wrap_wxDC_GetCharHeight, 1 }, | |
4888 | { "wxDC_GetBrush", _wrap_wxDC_GetBrush, 1 }, | |
4889 | { "wxDC_GetBackground", _wrap_wxDC_GetBackground, 1 }, | |
4890 | { "wxDC_FloodFill", _wrap_wxDC_FloodFill, 1 }, | |
4891 | { "wxDC_EndPage", _wrap_wxDC_EndPage, 1 }, | |
4892 | { "wxDC_EndDrawing", _wrap_wxDC_EndDrawing, 1 }, | |
4893 | { "wxDC_EndDoc", _wrap_wxDC_EndDoc, 1 }, | |
4894 | { "wxDC_DrawText", _wrap_wxDC_DrawText, 1 }, | |
4895 | { "wxDC_DrawSpline", _wrap_wxDC_DrawSpline, 1 }, | |
4896 | { "wxDC_DrawRoundedRectangle", _wrap_wxDC_DrawRoundedRectangle, 1 }, | |
4897 | { "wxDC_DrawRectangle", _wrap_wxDC_DrawRectangle, 1 }, | |
4898 | { "wxDC_DrawPoint", _wrap_wxDC_DrawPoint, 1 }, | |
4899 | { "wxDC_DrawPolygon", _wrap_wxDC_DrawPolygon, 1 }, | |
4900 | { "wxDC_DrawLines", _wrap_wxDC_DrawLines, 1 }, | |
4901 | { "wxDC_DrawLine", _wrap_wxDC_DrawLine, 1 }, | |
4902 | { "wxDC_DrawIcon", _wrap_wxDC_DrawIcon, 1 }, | |
4903 | { "wxDC_DrawEllipticArc", _wrap_wxDC_DrawEllipticArc, 1 }, | |
4904 | { "wxDC_DrawEllipse", _wrap_wxDC_DrawEllipse, 1 }, | |
4905 | { "wxDC_DrawArc", _wrap_wxDC_DrawArc, 1 }, | |
4906 | { "wxDC_DeviceToLogicalYRel", _wrap_wxDC_DeviceToLogicalYRel, 1 }, | |
4907 | { "wxDC_DeviceToLogicalY", _wrap_wxDC_DeviceToLogicalY, 1 }, | |
4908 | { "wxDC_DeviceToLogicalXRel", _wrap_wxDC_DeviceToLogicalXRel, 1 }, | |
4909 | { "wxDC_DeviceToLogicalX", _wrap_wxDC_DeviceToLogicalX, 1 }, | |
4910 | { "wxDC_DestroyClippingRegion", _wrap_wxDC_DestroyClippingRegion, 1 }, | |
4911 | { "wxDC_CrossHair", _wrap_wxDC_CrossHair, 1 }, | |
4912 | { "wxDC_Clear", _wrap_wxDC_Clear, 1 }, | |
4913 | { "wxDC_Blit", _wrap_wxDC_Blit, 1 }, | |
4914 | { "wxDC_BeginDrawing", _wrap_wxDC_BeginDrawing, 1 }, | |
4915 | { "delete_wxDC", _wrap_delete_wxDC, 1 }, | |
c95e68d8 RD |
4916 | { "wxBrush_SetStyle", _wrap_wxBrush_SetStyle, 1 }, |
4917 | { "wxBrush_SetStipple", _wrap_wxBrush_SetStipple, 1 }, | |
4918 | { "wxBrush_SetColour", _wrap_wxBrush_SetColour, 1 }, | |
70551f47 RD |
4919 | { "wxBrush_Ok", _wrap_wxBrush_Ok, 1 }, |
4920 | { "wxBrush_GetStyle", _wrap_wxBrush_GetStyle, 1 }, | |
4921 | { "wxBrush_GetStipple", _wrap_wxBrush_GetStipple, 1 }, | |
4922 | { "wxBrush_GetColour", _wrap_wxBrush_GetColour, 1 }, | |
4923 | { "new_wxBrush", _wrap_new_wxBrush, 1 }, | |
4924 | { "wxPen_SetWidth", _wrap_wxPen_SetWidth, 1 }, | |
4925 | { "wxPen_SetStyle", _wrap_wxPen_SetStyle, 1 }, | |
4926 | { "wxPen_SetJoin", _wrap_wxPen_SetJoin, 1 }, | |
4927 | { "wxPen_SetColour", _wrap_wxPen_SetColour, 1 }, | |
4928 | { "wxPen_SetCap", _wrap_wxPen_SetCap, 1 }, | |
4929 | { "wxPen_Ok", _wrap_wxPen_Ok, 1 }, | |
4930 | { "wxPen_GetWidth", _wrap_wxPen_GetWidth, 1 }, | |
4931 | { "wxPen_GetStyle", _wrap_wxPen_GetStyle, 1 }, | |
4932 | { "wxPen_GetJoin", _wrap_wxPen_GetJoin, 1 }, | |
4933 | { "wxPen_GetColour", _wrap_wxPen_GetColour, 1 }, | |
4934 | { "wxPen_GetCap", _wrap_wxPen_GetCap, 1 }, | |
4935 | { "new_wxPen", _wrap_new_wxPen, 1 }, | |
4936 | { "wxColour_Get", _wrap_wxColour_Get, 1 }, | |
4937 | { "wxColour_Set", _wrap_wxColour_Set, 1 }, | |
4938 | { "wxColour_Ok", _wrap_wxColour_Ok, 1 }, | |
4939 | { "wxColour_Blue", _wrap_wxColour_Blue, 1 }, | |
4940 | { "wxColour_Green", _wrap_wxColour_Green, 1 }, | |
4941 | { "wxColour_Red", _wrap_wxColour_Red, 1 }, | |
4942 | { "delete_wxColour", _wrap_delete_wxColour, 1 }, | |
4943 | { "new_wxColour", _wrap_new_wxColour, 1 }, | |
d3b4d113 RR |
4944 | { "wxFont_SetWeight", _wrap_wxFont_SetWeight, 1 }, |
4945 | { "wxFont_SetUnderlined", _wrap_wxFont_SetUnderlined, 1 }, | |
4946 | { "wxFont_SetStyle", _wrap_wxFont_SetStyle, 1 }, | |
4947 | { "wxFont_SetPointSize", _wrap_wxFont_SetPointSize, 1 }, | |
4948 | { "wxFont_SetFamily", _wrap_wxFont_SetFamily, 1 }, | |
4949 | { "wxFont_SetFaceName", _wrap_wxFont_SetFaceName, 1 }, | |
70551f47 RD |
4950 | { "wxFont_GetWeight", _wrap_wxFont_GetWeight, 1 }, |
4951 | { "wxFont_GetUnderlined", _wrap_wxFont_GetUnderlined, 1 }, | |
4952 | { "wxFont_GetStyle", _wrap_wxFont_GetStyle, 1 }, | |
4953 | { "wxFont_GetPointSize", _wrap_wxFont_GetPointSize, 1 }, | |
4954 | { "wxFont_GetFontId", _wrap_wxFont_GetFontId, 1 }, | |
4955 | { "wxFont_GetFamily", _wrap_wxFont_GetFamily, 1 }, | |
4956 | { "wxFont_GetFaceName", _wrap_wxFont_GetFaceName, 1 }, | |
4957 | { "new_wxFont", _wrap_new_wxFont, 1 }, | |
4958 | { "wxCursor_Ok", _wrap_wxCursor_Ok, 1 }, | |
4959 | { "delete_wxCursor", _wrap_delete_wxCursor, 1 }, | |
4960 | { "wxIcon_SetWidth", _wrap_wxIcon_SetWidth, 1 }, | |
4961 | { "wxIcon_SetHeight", _wrap_wxIcon_SetHeight, 1 }, | |
4962 | { "wxIcon_SetDepth", _wrap_wxIcon_SetDepth, 1 }, | |
4963 | { "wxIcon_Ok", _wrap_wxIcon_Ok, 1 }, | |
4964 | { "wxIcon_LoadFile", _wrap_wxIcon_LoadFile, 1 }, | |
4965 | { "wxIcon_GetWidth", _wrap_wxIcon_GetWidth, 1 }, | |
4966 | { "wxIcon_GetHeight", _wrap_wxIcon_GetHeight, 1 }, | |
4967 | { "wxIcon_GetDepth", _wrap_wxIcon_GetDepth, 1 }, | |
4968 | { "delete_wxIcon", _wrap_delete_wxIcon, 1 }, | |
4969 | { "delete_wxMask", _wrap_delete_wxMask, 1 }, | |
4970 | { "new_wxMask", _wrap_new_wxMask, 1 }, | |
4971 | { "wxBitmap_SetWidth", _wrap_wxBitmap_SetWidth, 1 }, | |
4972 | { "wxBitmap_SetMask", _wrap_wxBitmap_SetMask, 1 }, | |
4973 | { "wxBitmap_SetHeight", _wrap_wxBitmap_SetHeight, 1 }, | |
4974 | { "wxBitmap_SetDepth", _wrap_wxBitmap_SetDepth, 1 }, | |
4975 | { "wxBitmap_SaveFile", _wrap_wxBitmap_SaveFile, 1 }, | |
4976 | { "wxBitmap_Ok", _wrap_wxBitmap_Ok, 1 }, | |
4977 | { "wxBitmap_LoadFile", _wrap_wxBitmap_LoadFile, 1 }, | |
4978 | { "wxBitmap_GetWidth", _wrap_wxBitmap_GetWidth, 1 }, | |
4979 | { "wxBitmap_GetMask", _wrap_wxBitmap_GetMask, 1 }, | |
4980 | { "wxBitmap_GetPalette", _wrap_wxBitmap_GetPalette, 1 }, | |
4981 | { "wxBitmap_GetHeight", _wrap_wxBitmap_GetHeight, 1 }, | |
4982 | { "wxBitmap_GetDepth", _wrap_wxBitmap_GetDepth, 1 }, | |
4983 | { "delete_wxBitmap", _wrap_delete_wxBitmap, 1 }, | |
4984 | { "new_wxBitmap", _wrap_new_wxBitmap, 1 }, | |
4985 | { "wxMemoryDCFromDC", _wrap_wxMemoryDCFromDC, 1 }, | |
4986 | { "wxNamedColour", _wrap_wxNamedColour, 1 }, | |
4987 | { "wxStockCursor", _wrap_wxStockCursor, 1 }, | |
4988 | { "wxMaskColour", _wrap_wxMaskColour, 1 }, | |
4989 | { "wxNoRefBitmap", _wrap_wxNoRefBitmap, 1 }, | |
4990 | { "wxEmptyBitmap", _wrap_wxEmptyBitmap, 1 }, | |
4991 | { NULL, NULL } | |
4992 | }; | |
4993 | static PyObject *SWIG_globals; | |
4994 | #ifdef __cplusplus | |
4995 | extern "C" | |
4996 | #endif | |
4997 | SWIGEXPORT(void,initgdic)() { | |
4998 | PyObject *m, *d; | |
4999 | SWIG_globals = SWIG_newvarlink(); | |
5000 | m = Py_InitModule("gdic", gdicMethods); | |
5001 | d = PyModule_GetDict(m); | |
5002 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
5003 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
5004 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
5005 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
5006 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
5007 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
5008 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
5009 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
5010 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
5011 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
5012 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
5013 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
5014 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
5015 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
5016 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
5017 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
5018 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
5019 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
5020 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
5021 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
5022 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
5023 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
5024 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
5025 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
5026 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
5027 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
5028 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
5029 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
5030 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
5031 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
5032 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
5033 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
5034 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
5035 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
5036 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
5037 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
5038 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
5039 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
5040 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
5041 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
5042 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
5043 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
5044 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
5045 | /* | |
5046 | * These are the pointer type-equivalency mappings. | |
5047 | * (Used by the SWIG pointer type-checker). | |
5048 | */ | |
faf3cb35 | 5049 | SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); |
70551f47 | 5050 | SWIG_RegisterMapping("_signed_long","_long",0); |
105e45b9 | 5051 | SWIG_RegisterMapping("_class_wxRegionIterator","_wxRegionIterator",0); |
70551f47 RD |
5052 | SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0); |
5053 | SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0); | |
5054 | SWIG_RegisterMapping("_wxMask","_class_wxMask",0); | |
5055 | SWIG_RegisterMapping("_wxPen","_class_wxPen",0); | |
5056 | SWIG_RegisterMapping("_byte","_unsigned_char",0); | |
5057 | SWIG_RegisterMapping("_long","_wxDash",0); | |
5058 | SWIG_RegisterMapping("_long","_unsigned_long",0); | |
5059 | SWIG_RegisterMapping("_long","_signed_long",0); | |
faf3cb35 | 5060 | SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); |
70551f47 RD |
5061 | SWIG_RegisterMapping("_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC); |
5062 | SWIG_RegisterMapping("_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC); | |
c95e68d8 RD |
5063 | SWIG_RegisterMapping("_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC); |
5064 | SWIG_RegisterMapping("_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC); | |
70551f47 RD |
5065 | SWIG_RegisterMapping("_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC); |
5066 | SWIG_RegisterMapping("_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC); | |
5067 | SWIG_RegisterMapping("_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC); | |
5068 | SWIG_RegisterMapping("_wxDC","_wxClientDC",SwigwxClientDCTowxDC); | |
5069 | SWIG_RegisterMapping("_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC); | |
5070 | SWIG_RegisterMapping("_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC); | |
5071 | SWIG_RegisterMapping("_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC); | |
5072 | SWIG_RegisterMapping("_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC); | |
5073 | SWIG_RegisterMapping("_wxDC","_class_wxDC",0); | |
5074 | SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); | |
5075 | SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0); | |
5076 | SWIG_RegisterMapping("_class_wxMask","_wxMask",0); | |
5077 | SWIG_RegisterMapping("_wxColour","_class_wxColour",0); | |
5078 | SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0); | |
5079 | SWIG_RegisterMapping("_uint","_unsigned_int",0); | |
5080 | SWIG_RegisterMapping("_uint","_int",0); | |
5081 | SWIG_RegisterMapping("_uint","_wxWindowID",0); | |
5082 | SWIG_RegisterMapping("_wxRect","_class_wxRect",0); | |
5083 | SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0); | |
5084 | SWIG_RegisterMapping("_wxBitmap","_class_wxCursor",SwigwxCursorTowxBitmap); | |
5085 | SWIG_RegisterMapping("_wxBitmap","_wxCursor",SwigwxCursorTowxBitmap); | |
5086 | SWIG_RegisterMapping("_wxBitmap","_class_wxIcon",SwigwxIconTowxBitmap); | |
5087 | SWIG_RegisterMapping("_wxBitmap","_wxIcon",SwigwxIconTowxBitmap); | |
5088 | SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0); | |
5089 | SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0); | |
c95e68d8 | 5090 | SWIG_RegisterMapping("_wxWindowDC","_class_wxWindowDC",0); |
70551f47 RD |
5091 | SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0); |
5092 | SWIG_RegisterMapping("_EBool","_signed_int",0); | |
5093 | SWIG_RegisterMapping("_EBool","_int",0); | |
5094 | SWIG_RegisterMapping("_EBool","_wxWindowID",0); | |
105e45b9 | 5095 | SWIG_RegisterMapping("_class_wxRegion","_wxRegion",0); |
70551f47 RD |
5096 | SWIG_RegisterMapping("_wxFont","_class_wxFont",0); |
5097 | SWIG_RegisterMapping("_unsigned_long","_wxDash",0); | |
5098 | SWIG_RegisterMapping("_unsigned_long","_long",0); | |
5099 | SWIG_RegisterMapping("_class_wxRect","_wxRect",0); | |
5100 | SWIG_RegisterMapping("_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC); | |
5101 | SWIG_RegisterMapping("_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC); | |
c95e68d8 RD |
5102 | SWIG_RegisterMapping("_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC); |
5103 | SWIG_RegisterMapping("_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC); | |
70551f47 RD |
5104 | SWIG_RegisterMapping("_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC); |
5105 | SWIG_RegisterMapping("_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC); | |
5106 | SWIG_RegisterMapping("_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC); | |
5107 | SWIG_RegisterMapping("_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC); | |
5108 | SWIG_RegisterMapping("_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC); | |
5109 | SWIG_RegisterMapping("_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC); | |
5110 | SWIG_RegisterMapping("_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC); | |
5111 | SWIG_RegisterMapping("_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC); | |
5112 | SWIG_RegisterMapping("_class_wxDC","_wxDC",0); | |
5113 | SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); | |
faf3cb35 | 5114 | SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); |
70551f47 RD |
5115 | SWIG_RegisterMapping("_signed_int","_EBool",0); |
5116 | SWIG_RegisterMapping("_signed_int","_wxWindowID",0); | |
5117 | SWIG_RegisterMapping("_signed_int","_int",0); | |
5118 | SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0); | |
5119 | SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0); | |
5120 | SWIG_RegisterMapping("_WXTYPE","_short",0); | |
5121 | SWIG_RegisterMapping("_WXTYPE","_signed_short",0); | |
5122 | SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0); | |
5123 | SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0); | |
5124 | SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0); | |
5125 | SWIG_RegisterMapping("_unsigned_short","_short",0); | |
5126 | SWIG_RegisterMapping("_class_wxFont","_wxFont",0); | |
5127 | SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0); | |
5128 | SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0); | |
5129 | SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0); | |
5130 | SWIG_RegisterMapping("_signed_short","_WXTYPE",0); | |
5131 | SWIG_RegisterMapping("_signed_short","_short",0); | |
5132 | SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0); | |
5133 | SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); | |
c95e68d8 | 5134 | SWIG_RegisterMapping("_class_wxWindowDC","_wxWindowDC",0); |
faf3cb35 | 5135 | SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); |
70551f47 RD |
5136 | SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); |
5137 | SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); | |
5138 | SWIG_RegisterMapping("_unsigned_char","_byte",0); | |
5139 | SWIG_RegisterMapping("_unsigned_int","_uint",0); | |
5140 | SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0); | |
5141 | SWIG_RegisterMapping("_unsigned_int","_int",0); | |
5142 | SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0); | |
5143 | SWIG_RegisterMapping("_class_wxPen","_wxPen",0); | |
5144 | SWIG_RegisterMapping("_short","_WXTYPE",0); | |
5145 | SWIG_RegisterMapping("_short","_unsigned_short",0); | |
5146 | SWIG_RegisterMapping("_short","_signed_short",0); | |
5147 | SWIG_RegisterMapping("_wxWindowID","_EBool",0); | |
5148 | SWIG_RegisterMapping("_wxWindowID","_uint",0); | |
5149 | SWIG_RegisterMapping("_wxWindowID","_int",0); | |
5150 | SWIG_RegisterMapping("_wxWindowID","_signed_int",0); | |
5151 | SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0); | |
5152 | SWIG_RegisterMapping("_int","_EBool",0); | |
5153 | SWIG_RegisterMapping("_int","_uint",0); | |
5154 | SWIG_RegisterMapping("_int","_wxWindowID",0); | |
5155 | SWIG_RegisterMapping("_int","_unsigned_int",0); | |
5156 | SWIG_RegisterMapping("_int","_signed_int",0); | |
5157 | SWIG_RegisterMapping("_wxSize","_class_wxSize",0); | |
105e45b9 | 5158 | SWIG_RegisterMapping("_wxRegionIterator","_class_wxRegionIterator",0); |
70551f47 RD |
5159 | SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0); |
5160 | SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0); | |
5161 | SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0); | |
5162 | SWIG_RegisterMapping("_class_wxColour","_wxColour",0); | |
5163 | SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0); | |
105e45b9 RD |
5164 | SWIG_RegisterMapping("_wxPalette","_class_wxPalette",0); |
5165 | SWIG_RegisterMapping("_wxRegion","_class_wxRegion",0); | |
70551f47 RD |
5166 | SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0); |
5167 | SWIG_RegisterMapping("_class_wxSize","_wxSize",0); | |
5168 | SWIG_RegisterMapping("_class_wxBitmap","_class_wxCursor",SwigwxCursorTowxBitmap); | |
5169 | SWIG_RegisterMapping("_class_wxBitmap","_wxCursor",SwigwxCursorTowxBitmap); | |
5170 | SWIG_RegisterMapping("_class_wxBitmap","_class_wxIcon",SwigwxIconTowxBitmap); | |
5171 | SWIG_RegisterMapping("_class_wxBitmap","_wxIcon",SwigwxIconTowxBitmap); | |
5172 | SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0); | |
5173 | SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0); | |
5174 | SWIG_RegisterMapping("_wxDash","_unsigned_long",0); | |
5175 | SWIG_RegisterMapping("_wxDash","_long",0); | |
105e45b9 | 5176 | SWIG_RegisterMapping("_class_wxPalette","_wxPalette",0); |
70551f47 | 5177 | } |