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