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